Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijeet Singh Rathor authored and Abhijeet Singh Rathor committed Aug 30, 2022
0 parents commit 5856b59
Show file tree
Hide file tree
Showing 23 changed files with 1,190 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
20 changes: 20 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.openapi-generator-ignore
README.md
models/error.proto
models/error_error.proto
models/get_all_issue_track_response.proto
models/get_all_issue_track_response_message_inner.proto
models/issue.proto
models/issue_post_req.proto
models/issue_post_req_message.proto
models/issue_raise_post202_response.proto
models/issue_raise_post202_response_message.proto
models/issue_track_response.proto
models/issue_track_response_message_inner.proto
models/order.proto
models/person.proto
models/reason.proto
models/reason_response.proto
models/reason_response_message_inner.proto
services/issue_service.proto
services/reason_service.proto
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.0.1
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# gPRC for openapitools

API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.

## Overview
These files were generated by the [OpenAPI Generator](https://openapi-generator.tech) project.

- API version: 1.0.0
- Package version:
- Build package: org.openapitools.codegen.languages.ProtobufSchemaCodegen

## Usage

Below are some usage examples for Go and Ruby. For other languages, please refer to https://grpc.io/docs/quickstart/.

### Go
```
# assuming `protoc-gen-go` has been installed with `go get -u github.com/golang/protobuf/protoc-gen-go`
mkdir /var/tmp/go/
protoc --go_out=/var/tmp/go/ services/*
protoc --go_out=/var/tmp/go/ models/*
```

### Ruby
```
# assuming `grpc_tools_ruby_protoc` has been installed via `gem install grpc-tools`
RUBY_OUTPUT_DIR="/var/tmp/ruby/openapitools"
mkdir $RUBY_OUTPUT_DIR
grpc_tools_ruby_protoc --ruby_out=$RUBY_OUTPUT_DIR --grpc_out=$RUBY_OUTPUT_DIR/lib services/*
grpc_tools_ruby_protoc --ruby_out=$RUBY_OUTPUT_DIR --grpc_out=$RUBY_OUTPUT_DIR/lib models/*
```
21 changes: 21 additions & 0 deletions models/error.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;

import public "models/error_error.proto";

message Error {

ErrorError error = 96784904;

}
37 changes: 37 additions & 0 deletions models/error_error.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;


message ErrorError {

// Error type
enum TypeEnum {
TypeEnum_CONTEXT_ERROR = 0;
TypeEnum_DOMAIN_ERROR = 1;
TypeEnum_POLICY_ERROR = 2;
TypeEnum_JSON_SCHEMA_ERROR = 3;
}

TypeEnum type = 3575610;

// Describes an error object
string code = 3059181;

// Path to json schema generating the error. Used only during json schema validation errors
string path = 3433509;

// Human readable message describing the error
string message = 418054152;

}
21 changes: 21 additions & 0 deletions models/get_all_issue_track_response.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;

import public "models/get_all_issue_track_response_message_inner.proto";

message GetAllIssueTrackResponse {

repeated GetAllIssueTrackResponseMessageInner message = 418054152;

}
30 changes: 30 additions & 0 deletions models/get_all_issue_track_response_message_inner.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;

import public "models/issue_id.proto";
import public "models/issue_status.proto";
import public "models/order_id.proto";
import public "models/timestamp.proto";

message GetAllIssueTrackResponseMessageInner {

IssueId issueUnderscoreid = 79087824;

IssueStatus issueUnderscorestatus = 428440101;

OrderId orderUnderscoreid = 34578371;

Timestamp timestamp = 55126294;

}
53 changes: 53 additions & 0 deletions models/issue.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;


message Issue {

// unique issue id
int64 issueUnderscoreid = 79087824;

// timestamp for issue
string timestamp = 55126294;

// Issue Status
enum IssueUnderscorestatusEnum {
IssueUnderscorestatusEnum_ACKNOWLEDGE = 0;
IssueUnderscorestatusEnum_FULFILLED = 1;
IssueUnderscorestatusEnum_DECLINED = 2;
IssueUnderscorestatusEnum_IN_PROGRESS = 3;
IssueUnderscorestatusEnum_RETURN_INITIATED = 4;
IssueUnderscorestatusEnum_RETURN_INPROGRESS = 5;
IssueUnderscorestatusEnum_RETURN_COMPLETED = 6;
IssueUnderscorestatusEnum_RETURN_DECLINED = 7;
IssueUnderscorestatusEnum_REFUND_INITIATED = 8;
IssueUnderscorestatusEnum_REFUND_INPROGRESS = 9;
IssueUnderscorestatusEnum_REFUND_COMPLETED = 10;
IssueUnderscorestatusEnum_REFUND_DECLINED = 11;
}

IssueUnderscorestatusEnum issueUnderscorestatus = 428440101;

// message description the issue
string issueUnderscoremessage = 509305805;

// request constants
enum RequestUnderscoreforEnum {
RequestUnderscoreforEnum_REFUND = 0;
RequestUnderscoreforEnum_RETURN = 1;
}

RequestUnderscoreforEnum requestUnderscorefor = 191040131;

}
21 changes: 21 additions & 0 deletions models/issue_post_req.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;

import public "models/issue_post_req_message.proto";

message IssuePostReq {

IssuePostReqMessage message = 418054152;

}
44 changes: 44 additions & 0 deletions models/issue_post_req_message.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;

import public "models/issue_message.proto";
import public "models/order_id.proto";
import public "models/reason_id.proto";
import public "models/request_for.proto";
import public "models/timestamp.proto";

message IssuePostReqMessage {

OrderId orderUnderscoreid = 34578371;

ReasonId reasonUnderscoreid = 433264200;

Timestamp timestamp = 55126294;

IssueMessage issueUnderscoremessage = 509305805;

RequestFor requestUnderscorefor = 191040131;

// preference contact detail
enum PreferenceUnderscorecontactEnum {
PreferenceUnderscorecontactEnum_MOBILE = 0;
PreferenceUnderscorecontactEnum_EMAIL = 1;
}

PreferenceUnderscorecontactEnum preferenceUnderscorecontact = 350228344;

// callback function url
string callbackUnderscoreurl = 378636241;

}
21 changes: 21 additions & 0 deletions models/issue_raise_post202_response.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;

import public "models/issue_raise_post202_response_message.proto";

message IssueRaisePost202Response {

IssueRaisePost202ResponseMessage message = 418054152;

}
29 changes: 29 additions & 0 deletions models/issue_raise_post202_response_message.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;


message IssueRaisePost202ResponseMessage {

// response code
string code = 3059181;

// response status
enum StatusEnum {
StatusEnum_ACK = 0;
StatusEnum_NACK = 1;
}

StatusEnum status = 355610639;

}
21 changes: 21 additions & 0 deletions models/issue_track_response.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
API for independant issue ticket system
API flow for raiseing, tracking and getting specific information regaring the issue raised and order related to that issue.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package openapitools;

import public "models/issue_track_response_message_inner.proto";

message IssueTrackResponse {

repeated IssueTrackResponseMessageInner message = 418054152;

}
Loading

0 comments on commit 5856b59

Please sign in to comment.