@chotot/ct-logic-uni-rev-order-v1 1.197.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/cart_service-LogicUniRevOrderCartService_connectquery.d.ts +88 -0
  2. package/cart_service-LogicUniRevOrderCartService_connectquery.js +131 -0
  3. package/cart_service.proto +108 -0
  4. package/cart_service_connect.d.ts +80 -0
  5. package/cart_service_connect.js +80 -0
  6. package/cart_service_pb.d.ts +525 -0
  7. package/cart_service_pb.js +194 -0
  8. package/change_order_status.proto +110 -0
  9. package/change_order_status_pb.d.ts +494 -0
  10. package/change_order_status_pb.js +163 -0
  11. package/invoice.proto +565 -0
  12. package/invoice_entities.proto +205 -0
  13. package/invoice_entities_pb.d.ts +414 -0
  14. package/invoice_entities_pb.js +113 -0
  15. package/invoice_pb.d.ts +2875 -0
  16. package/invoice_pb.js +917 -0
  17. package/invoice_service-LogicUniRevOrderInvoiceService_connectquery.d.ts +238 -0
  18. package/invoice_service-LogicUniRevOrderInvoiceService_connectquery.js +371 -0
  19. package/invoice_service.proto +240 -0
  20. package/invoice_service_connect.d.ts +215 -0
  21. package/invoice_service_connect.js +215 -0
  22. package/onbehalf_service-LogicUniRevOrderOnBehalfService_connectquery.d.ts +108 -0
  23. package/onbehalf_service-LogicUniRevOrderOnBehalfService_connectquery.js +163 -0
  24. package/onbehalf_service.proto +355 -0
  25. package/onbehalf_service_connect.d.ts +98 -0
  26. package/onbehalf_service_connect.js +98 -0
  27. package/onbehalf_service_pb.d.ts +1789 -0
  28. package/onbehalf_service_pb.js +568 -0
  29. package/order_entities.proto +75 -0
  30. package/order_entities_pb.d.ts +366 -0
  31. package/order_entities_pb.js +111 -0
  32. package/order_history_order_service_detail.proto +485 -0
  33. package/order_history_order_service_detail_pb.d.ts +2599 -0
  34. package/order_history_order_service_detail_pb.js +768 -0
  35. package/order_history_paid_order.proto +224 -0
  36. package/order_history_paid_order_pb.d.ts +1139 -0
  37. package/order_history_paid_order_pb.js +343 -0
  38. package/order_history_revamp.proto +107 -0
  39. package/order_history_revamp_pb.d.ts +577 -0
  40. package/order_history_revamp_pb.js +164 -0
  41. package/order_info.proto +74 -0
  42. package/order_info_pb.d.ts +381 -0
  43. package/order_info_pb.js +138 -0
  44. package/package.json +10 -0
  45. package/paid_product.proto +94 -0
  46. package/paid_product_order.proto +430 -0
  47. package/paid_product_order_pb.d.ts +2120 -0
  48. package/paid_product_order_pb.js +698 -0
  49. package/paid_product_pb.d.ts +287 -0
  50. package/paid_product_pb.js +105 -0
  51. package/rabbit_mq.proto +69 -0
  52. package/rabbit_mq_pb.d.ts +251 -0
  53. package/rabbit_mq_pb.js +94 -0
  54. package/refund_order.proto +195 -0
  55. package/refund_order_pb.d.ts +1030 -0
  56. package/refund_order_pb.js +359 -0
  57. package/scripts/modify_package_json.js +50 -0
  58. package/service-LogicUniRevOrderService_connectquery.d.ts +638 -0
  59. package/service-LogicUniRevOrderService_connectquery.js +1014 -0
  60. package/service.proto +179 -0
  61. package/service_connect.d.ts +578 -0
  62. package/service_connect.js +578 -0
@@ -0,0 +1,287 @@
1
+ // general
2
+
3
+ // @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
4
+ // @generated from file ct-logic-uni-rev-order/v1/paid_product.proto (package ct_logic_uni_rev_order.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
9
+ import { Message, proto3 } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * @generated from message ct_logic_uni_rev_order.v1.CreatePaidProductRequest
13
+ */
14
+ export declare class CreatePaidProductRequest extends Message<CreatePaidProductRequest> {
15
+ /**
16
+ * @generated from field: string type = 1;
17
+ */
18
+ type: string;
19
+
20
+ /**
21
+ * @generated from field: string name = 2;
22
+ */
23
+ name: string;
24
+
25
+ /**
26
+ * @generated from field: string delivery_type = 3;
27
+ */
28
+ deliveryType: string;
29
+
30
+ /**
31
+ * @generated from field: string delivery_name = 4;
32
+ */
33
+ deliveryName: string;
34
+
35
+ /**
36
+ * @generated from field: string status = 5;
37
+ */
38
+ status: string;
39
+
40
+ /**
41
+ * @generated from field: string image_url = 6;
42
+ */
43
+ imageUrl: string;
44
+
45
+ /**
46
+ * @generated from field: string metadata = 7;
47
+ */
48
+ metadata: string;
49
+
50
+ constructor(data?: PartialMessage<CreatePaidProductRequest>);
51
+
52
+ static readonly runtime: typeof proto3;
53
+ static readonly typeName = "ct_logic_uni_rev_order.v1.CreatePaidProductRequest";
54
+ static readonly fields: FieldList;
55
+
56
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePaidProductRequest;
57
+
58
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePaidProductRequest;
59
+
60
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePaidProductRequest;
61
+
62
+ static equals(a: CreatePaidProductRequest | PlainMessage<CreatePaidProductRequest> | undefined, b: CreatePaidProductRequest | PlainMessage<CreatePaidProductRequest> | undefined): boolean;
63
+ }
64
+
65
+ /**
66
+ * @generated from message ct_logic_uni_rev_order.v1.CreatePaidProductResponse
67
+ */
68
+ export declare class CreatePaidProductResponse extends Message<CreatePaidProductResponse> {
69
+ /**
70
+ * @generated from field: string status = 1;
71
+ */
72
+ status: string;
73
+
74
+ constructor(data?: PartialMessage<CreatePaidProductResponse>);
75
+
76
+ static readonly runtime: typeof proto3;
77
+ static readonly typeName = "ct_logic_uni_rev_order.v1.CreatePaidProductResponse";
78
+ static readonly fields: FieldList;
79
+
80
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePaidProductResponse;
81
+
82
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePaidProductResponse;
83
+
84
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePaidProductResponse;
85
+
86
+ static equals(a: CreatePaidProductResponse | PlainMessage<CreatePaidProductResponse> | undefined, b: CreatePaidProductResponse | PlainMessage<CreatePaidProductResponse> | undefined): boolean;
87
+ }
88
+
89
+ /**
90
+ * @generated from message ct_logic_uni_rev_order.v1.UpdatePaidProductRequest
91
+ */
92
+ export declare class UpdatePaidProductRequest extends Message<UpdatePaidProductRequest> {
93
+ /**
94
+ * @generated from field: string type = 1;
95
+ */
96
+ type: string;
97
+
98
+ /**
99
+ * @generated from field: string name = 2;
100
+ */
101
+ name: string;
102
+
103
+ /**
104
+ * @generated from field: string delivery_name = 3;
105
+ */
106
+ deliveryName: string;
107
+
108
+ /**
109
+ * @generated from field: string status = 4;
110
+ */
111
+ status: string;
112
+
113
+ /**
114
+ * @generated from field: string image_url = 5;
115
+ */
116
+ imageUrl: string;
117
+
118
+ /**
119
+ * @generated from field: string metadata = 6;
120
+ */
121
+ metadata: string;
122
+
123
+ constructor(data?: PartialMessage<UpdatePaidProductRequest>);
124
+
125
+ static readonly runtime: typeof proto3;
126
+ static readonly typeName = "ct_logic_uni_rev_order.v1.UpdatePaidProductRequest";
127
+ static readonly fields: FieldList;
128
+
129
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePaidProductRequest;
130
+
131
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePaidProductRequest;
132
+
133
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePaidProductRequest;
134
+
135
+ static equals(a: UpdatePaidProductRequest | PlainMessage<UpdatePaidProductRequest> | undefined, b: UpdatePaidProductRequest | PlainMessage<UpdatePaidProductRequest> | undefined): boolean;
136
+ }
137
+
138
+ /**
139
+ * @generated from message ct_logic_uni_rev_order.v1.UpdatePaidProductResponse
140
+ */
141
+ export declare class UpdatePaidProductResponse extends Message<UpdatePaidProductResponse> {
142
+ /**
143
+ * @generated from field: string status = 1;
144
+ */
145
+ status: string;
146
+
147
+ constructor(data?: PartialMessage<UpdatePaidProductResponse>);
148
+
149
+ static readonly runtime: typeof proto3;
150
+ static readonly typeName = "ct_logic_uni_rev_order.v1.UpdatePaidProductResponse";
151
+ static readonly fields: FieldList;
152
+
153
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePaidProductResponse;
154
+
155
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePaidProductResponse;
156
+
157
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePaidProductResponse;
158
+
159
+ static equals(a: UpdatePaidProductResponse | PlainMessage<UpdatePaidProductResponse> | undefined, b: UpdatePaidProductResponse | PlainMessage<UpdatePaidProductResponse> | undefined): boolean;
160
+ }
161
+
162
+ /**
163
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductByTypeRequest
164
+ */
165
+ export declare class GetPaidProductByTypeRequest extends Message<GetPaidProductByTypeRequest> {
166
+ /**
167
+ * @generated from field: string type = 1;
168
+ */
169
+ type: string;
170
+
171
+ constructor(data?: PartialMessage<GetPaidProductByTypeRequest>);
172
+
173
+ static readonly runtime: typeof proto3;
174
+ static readonly typeName = "ct_logic_uni_rev_order.v1.GetPaidProductByTypeRequest";
175
+ static readonly fields: FieldList;
176
+
177
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPaidProductByTypeRequest;
178
+
179
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPaidProductByTypeRequest;
180
+
181
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPaidProductByTypeRequest;
182
+
183
+ static equals(a: GetPaidProductByTypeRequest | PlainMessage<GetPaidProductByTypeRequest> | undefined, b: GetPaidProductByTypeRequest | PlainMessage<GetPaidProductByTypeRequest> | undefined): boolean;
184
+ }
185
+
186
+ /**
187
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductByTypeResponse
188
+ */
189
+ export declare class GetPaidProductByTypeResponse extends Message<GetPaidProductByTypeResponse> {
190
+ /**
191
+ * @generated from field: string type = 1;
192
+ */
193
+ type: string;
194
+
195
+ /**
196
+ * @generated from field: string name = 2;
197
+ */
198
+ name: string;
199
+
200
+ /**
201
+ * @generated from field: string delivery_type = 3;
202
+ */
203
+ deliveryType: string;
204
+
205
+ /**
206
+ * @generated from field: string delivery_name = 4;
207
+ */
208
+ deliveryName: string;
209
+
210
+ /**
211
+ * @generated from field: string status = 5;
212
+ */
213
+ status: string;
214
+
215
+ /**
216
+ * @generated from field: string image_url = 6;
217
+ */
218
+ imageUrl: string;
219
+
220
+ /**
221
+ * @generated from field: string metadata = 7;
222
+ */
223
+ metadata: string;
224
+
225
+ /**
226
+ * @generated from field: string vertical = 8;
227
+ */
228
+ vertical: string;
229
+
230
+ constructor(data?: PartialMessage<GetPaidProductByTypeResponse>);
231
+
232
+ static readonly runtime: typeof proto3;
233
+ static readonly typeName = "ct_logic_uni_rev_order.v1.GetPaidProductByTypeResponse";
234
+ static readonly fields: FieldList;
235
+
236
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPaidProductByTypeResponse;
237
+
238
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPaidProductByTypeResponse;
239
+
240
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPaidProductByTypeResponse;
241
+
242
+ static equals(a: GetPaidProductByTypeResponse | PlainMessage<GetPaidProductByTypeResponse> | undefined, b: GetPaidProductByTypeResponse | PlainMessage<GetPaidProductByTypeResponse> | undefined): boolean;
243
+ }
244
+
245
+ /**
246
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalRequest
247
+ */
248
+ export declare class GetPaidProductsByVerticalRequest extends Message<GetPaidProductsByVerticalRequest> {
249
+ constructor(data?: PartialMessage<GetPaidProductsByVerticalRequest>);
250
+
251
+ static readonly runtime: typeof proto3;
252
+ static readonly typeName = "ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalRequest";
253
+ static readonly fields: FieldList;
254
+
255
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPaidProductsByVerticalRequest;
256
+
257
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPaidProductsByVerticalRequest;
258
+
259
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPaidProductsByVerticalRequest;
260
+
261
+ static equals(a: GetPaidProductsByVerticalRequest | PlainMessage<GetPaidProductsByVerticalRequest> | undefined, b: GetPaidProductsByVerticalRequest | PlainMessage<GetPaidProductsByVerticalRequest> | undefined): boolean;
262
+ }
263
+
264
+ /**
265
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalResponse
266
+ */
267
+ export declare class GetPaidProductsByVerticalResponse extends Message<GetPaidProductsByVerticalResponse> {
268
+ /**
269
+ * @generated from field: repeated ct_logic_uni_rev_order.v1.GetPaidProductByTypeResponse paid_products = 1;
270
+ */
271
+ paidProducts: GetPaidProductByTypeResponse[];
272
+
273
+ constructor(data?: PartialMessage<GetPaidProductsByVerticalResponse>);
274
+
275
+ static readonly runtime: typeof proto3;
276
+ static readonly typeName = "ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalResponse";
277
+ static readonly fields: FieldList;
278
+
279
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPaidProductsByVerticalResponse;
280
+
281
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPaidProductsByVerticalResponse;
282
+
283
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPaidProductsByVerticalResponse;
284
+
285
+ static equals(a: GetPaidProductsByVerticalResponse | PlainMessage<GetPaidProductsByVerticalResponse> | undefined, b: GetPaidProductsByVerticalResponse | PlainMessage<GetPaidProductsByVerticalResponse> | undefined): boolean;
286
+ }
287
+
@@ -0,0 +1,105 @@
1
+ // general
2
+
3
+ // @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
4
+ // @generated from file ct-logic-uni-rev-order/v1/paid_product.proto (package ct_logic_uni_rev_order.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import { proto3 } from "@bufbuild/protobuf";
9
+
10
+ /**
11
+ * @generated from message ct_logic_uni_rev_order.v1.CreatePaidProductRequest
12
+ */
13
+ export const CreatePaidProductRequest = proto3.makeMessageType(
14
+ "ct_logic_uni_rev_order.v1.CreatePaidProductRequest",
15
+ () => [
16
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
18
+ { no: 3, name: "delivery_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
19
+ { no: 4, name: "delivery_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
20
+ { no: 5, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
21
+ { no: 6, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
22
+ { no: 7, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
23
+ ],
24
+ );
25
+
26
+ /**
27
+ * @generated from message ct_logic_uni_rev_order.v1.CreatePaidProductResponse
28
+ */
29
+ export const CreatePaidProductResponse = proto3.makeMessageType(
30
+ "ct_logic_uni_rev_order.v1.CreatePaidProductResponse",
31
+ () => [
32
+ { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33
+ ],
34
+ );
35
+
36
+ /**
37
+ * @generated from message ct_logic_uni_rev_order.v1.UpdatePaidProductRequest
38
+ */
39
+ export const UpdatePaidProductRequest = proto3.makeMessageType(
40
+ "ct_logic_uni_rev_order.v1.UpdatePaidProductRequest",
41
+ () => [
42
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
44
+ { no: 3, name: "delivery_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
+ { no: 4, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ { no: 5, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
47
+ { no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
48
+ ],
49
+ );
50
+
51
+ /**
52
+ * @generated from message ct_logic_uni_rev_order.v1.UpdatePaidProductResponse
53
+ */
54
+ export const UpdatePaidProductResponse = proto3.makeMessageType(
55
+ "ct_logic_uni_rev_order.v1.UpdatePaidProductResponse",
56
+ () => [
57
+ { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ ],
59
+ );
60
+
61
+ /**
62
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductByTypeRequest
63
+ */
64
+ export const GetPaidProductByTypeRequest = proto3.makeMessageType(
65
+ "ct_logic_uni_rev_order.v1.GetPaidProductByTypeRequest",
66
+ () => [
67
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
68
+ ],
69
+ );
70
+
71
+ /**
72
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductByTypeResponse
73
+ */
74
+ export const GetPaidProductByTypeResponse = proto3.makeMessageType(
75
+ "ct_logic_uni_rev_order.v1.GetPaidProductByTypeResponse",
76
+ () => [
77
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
78
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
+ { no: 3, name: "delivery_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
80
+ { no: 4, name: "delivery_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
81
+ { no: 5, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
82
+ { no: 6, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
83
+ { no: 7, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
84
+ { no: 8, name: "vertical", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
+ ],
86
+ );
87
+
88
+ /**
89
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalRequest
90
+ */
91
+ export const GetPaidProductsByVerticalRequest = proto3.makeMessageType(
92
+ "ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalRequest",
93
+ [],
94
+ );
95
+
96
+ /**
97
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalResponse
98
+ */
99
+ export const GetPaidProductsByVerticalResponse = proto3.makeMessageType(
100
+ "ct_logic_uni_rev_order.v1.GetPaidProductsByVerticalResponse",
101
+ () => [
102
+ { no: 1, name: "paid_products", kind: "message", T: GetPaidProductByTypeResponse, repeated: true },
103
+ ],
104
+ );
105
+
@@ -0,0 +1,69 @@
1
+ // general
2
+ syntax = "proto3";
3
+ package ct_logic_uni_rev_order.v1;
4
+ import "validate/validate.proto";
5
+ import "google/protobuf/timestamp.proto";
6
+ // language specs
7
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-order;pb";
8
+
9
+ // rev send to vertical
10
+ message PaaSPaymentStatusMessage {
11
+ int64 order_id = 1 [(validate.rules).int64.gt = 0];
12
+ string status = 2 [(validate.rules).string = {
13
+ min_len: 1,
14
+ max_len: 50,
15
+ in: ["paid", "cancelled"],
16
+ }];
17
+ string transaction_id = 3 [(validate.rules).string.min_len = 1];
18
+ string gateway = 4 [(validate.rules).string.min_len = 1];
19
+ repeated OrderServiceMessage services = 5;
20
+ }
21
+
22
+ // rev send to vertical
23
+ message OrderServiceMessage {
24
+ int64 service_id = 1 [(validate.rules).int64.gt = 0];
25
+ int64 price = 2 [(validate.rules).int64.gt = 0];
26
+ string type = 3 [(validate.rules).string.min_len = 1];
27
+ int64 ad_id = 4 [(validate.rules).int64.gt = 0];
28
+ string service_params = 5;
29
+ }
30
+
31
+ // rev send to vertical
32
+ message PaaSRefundMessage {
33
+ int64 order_id = 1 [(validate.rules).int64.gt = 0];
34
+ int64 service_id = 2 [(validate.rules).int64.gt = 0];
35
+ string service_type = 3 [(validate.rules).string.min_len = 1];
36
+ int64 refund_price = 4 [(validate.rules).int64.gt = 0];
37
+ string reason = 5 [(validate.rules).string.min_len = 1];
38
+ }
39
+
40
+ // vertical send to rev
41
+ // `Authorization` is required on header of rabbit mq message
42
+ // currently only support `plus` type (minus TBD by pruduct team)
43
+ message PaasFulfillmentMessage {
44
+ string id = 1 [(validate.rules).string.min_len = 1]; // id of vertical to make unique fulfillment
45
+ int64 order_id = 2 [(validate.rules).int64.gt = 0];
46
+ int64 service_id = 3 [(validate.rules).int64.gt = 0];
47
+ string type = 4 [(validate.rules).string = {
48
+ min_len: 1,
49
+ max_len: 50,
50
+ in: ["plus", "minus"],
51
+ }];
52
+ uint64 count = 5 [(validate.rules).uint64.gt = 0];
53
+ string service_description = 6;
54
+ }
55
+
56
+ // vertical send to rev
57
+ // `Authorization` is required on header of rabbit mq message
58
+ // Once the service/paid product is completed/failed, the vertical must send this message to rev, when updated, you can not modify it
59
+ message PaaSOrderServiceInfoMessage {
60
+ int64 order_id = 1 [(validate.rules).int64.gt = 0];
61
+ int64 service_id = 2 [(validate.rules).int64.gt = 0];
62
+ string status = 3 [(validate.rules).string = {
63
+ min_len: 1,
64
+ max_len: 50,
65
+ in: ["delivering", "completed", "failed"],
66
+ }];
67
+ google.protobuf.Timestamp start_time = 4;
68
+ string service_description = 5;
69
+ }