Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax = "proto3";
- option java_package = "com.skipz.grpc";
- import "google/protobuf/empty.proto";
- service OrdersServiceAuth {
- rpc getOrderStatus (GetOrderStatusRequest) returns (stream GetOrderStatusResponse);
- rpc getNewOrderUuid (google.protobuf.Empty) returns (GetOrderUuidResponse);
- rpc makePayment (MakePaymentRequest) returns (google.protobuf.Empty);
- rpc makeOrder (MakeOrderRequest) returns (MakeOrderResponse);
- rpc checkPayment (CheckPaymentRequest) returns (google.protobuf.Empty);
- rpc getOrderInfo (GetOrderInfoRequest) returns (GetOrderInfoResponse);
- rpc cancelOrder (CancelOrderRequest) returns (google.protobuf.Empty);
- rpc arrivedNotification (ArrivedNotificationRequest) returns (google.protobuf.Empty);
- rpc completeOrder (CompleteOrderRequest) returns (google.protobuf.Empty);
- }
- service OrdersBusinessServiceAuth {
- rpc getCurrentOrders (google.protobuf.Empty) returns (stream GetCurrentOrdersResponse);
- rpc getOrderBusinessInfo (GetOrderBusinessInfoRequest) returns (GetOrderBusinessInfoResponse);
- rpc acceptOrder (AcceptOrderRequest) returns (google.protobuf.Empty);
- rpc rejectOrder (RejectOrderRequest) returns (google.protobuf.Empty);
- rpc completeOrder (CompleteOrderRequest) returns (google.protobuf.Empty);
- rpc cancelOrder (CancelOrderRequest) returns (google.protobuf.Empty);
- }
- message ArrivedNotificationRequest {
- string coordinates = 1;
- string orderUuid = 2;
- }
- message MakeOrderRequest {
- string uuid = 1;
- string fromPointCoordinates = 2;
- string fromPointEnglishName = 3;
- string fromPointRussianName = 4;
- string toPointCoordinates = 5;
- string toPointEnglishName = 6;
- string toPointRussianName = 7;
- repeated Product product = 8;
- string encodedRoute = 9;
- int32 issueTime = 10;
- string pointUuid = 11;
- string routeType = 12;
- string promoCode = 13;
- string networkUuid = 14;
- string pointCoordinates = 15;
- message Product {
- string uuid = 1;
- string version = 2;
- int32 count = 3;
- repeated Option option = 4;
- repeated Ingredient ingredients = 5;
- message Option {
- string type = 1;
- Ingredient ingredient = 2;
- }
- message Ingredient {
- string uuid = 1;
- string version = 2;
- int32 count = 3;
- }
- }
- }
- message MakeOrderResponse {
- int64 humanNumber = 1;
- }
- message GetOrderStatusRequest {
- string orderUuid = 1;
- }
- message GetOrderStatusResponse {
- string type = 1;
- string status = 2;
- string redirectUrl = 3;
- int64 issueDate = 4;
- }
- message GetOrderUuidResponse {
- string uuid = 1;
- }
- message MakePaymentRequest {
- string orderUuid = 1;
- string paymentToken = 2;
- double sum = 3;
- }
- message CheckPaymentRequest {
- string orderUuid = 1;
- }
- message GetOrderInfoRequest {
- string uuid = 1;
- string locale = 2;
- }
- message GetOrderInfoResponse {
- string status = 1;
- string statusType = 2;
- string redirectUrl = 3;
- double sum = 4;
- Point point = 5;
- repeated Product product = 6;
- string fromPointName = 7;
- string fromPointCoordinates = 8;
- string toPointName = 9;
- string toPointCoordinates = 10;
- int64 humanNumber = 11;
- int64 issueDate = 12;
- int32 issueTime = 13;
- message Point {
- string name = 1;
- string address = 2;
- string image = 3;
- repeated string categories = 4;
- string phone = 5;
- int32 priceCategory = 6;
- string pointCoordinates = 7;
- }
- message Product {
- string image = 1;
- string name = 2;
- int32 count = 3;
- double price = 4;
- repeated Option option = 5;
- repeated Ingredient ingredients = 6;
- message Option {
- string type = 1;
- Ingredient ingredient = 2;
- }
- message Ingredient {
- string name = 1;
- double price = 2;
- int32 count = 3;
- string image = 4;
- }
- }
- }
- message CancelOrderRequest {
- string uuid = 1;
- string type = 2;
- string text = 3;
- }
- message GetCurrentOrdersResponse {
- repeated Order order = 1;
- message Order {
- string uuid = 1;
- string status = 2;
- int64 humanNumber = 3;
- int64 date = 4;
- int64 issueDate = 5;
- double sum = 6;
- string productsList = 7;
- }
- }
- message GetOrderBusinessInfoRequest {
- string uuid = 1;
- }
- message GetOrderBusinessInfoResponse {
- string status = 1;
- double sum = 2;
- int64 issueDate = 3;
- int32 issueTime = 4;
- Point point = 5;
- User user = 6;
- repeated Product product = 7;
- int64 humanNumber = 8;
- message Point {
- string name = 1;
- string address = 2;
- string image = 3;
- }
- message User {
- string phone = 1;
- }
- message Product {
- string image = 1;
- string name = 2;
- int32 count = 3;
- double price = 4;
- repeated Option option = 5;
- repeated Ingredient ingredients = 6;
- message Option {
- string type = 1;
- Ingredient ingredient = 2;
- }
- message Ingredient {
- string name = 1;
- double price = 2;
- int32 count = 3;
- string image = 4;
- }
- }
- }
- message AcceptOrderRequest {
- string uuid = 1;
- }
- message RejectOrderRequest {
- string uuid = 1;
- }
- message CompleteOrderRequest {
- string uuid = 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement