@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,343 @@
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/order_history_paid_order.proto (package ct_logic_uni_rev_order.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import { proto3, Timestamp } from "@bufbuild/protobuf";
9
+
10
+ /**
11
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidOrdersFromOrderHistoryByAccountIdRequest
12
+ */
13
+ export const GetPaidOrdersFromOrderHistoryByAccountIdRequest = proto3.makeMessageType(
14
+ "ct_logic_uni_rev_order.v1.GetPaidOrdersFromOrderHistoryByAccountIdRequest",
15
+ () => [
16
+ { no: 1, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
18
+ { no: 3, name: "limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
19
+ { no: 4, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
20
+ ],
21
+ );
22
+
23
+ /**
24
+ * @generated from message ct_logic_uni_rev_order.v1.GetPaidOrdersFromOrderHistoryByAccountIdResponse
25
+ */
26
+ export const GetPaidOrdersFromOrderHistoryByAccountIdResponse = proto3.makeMessageType(
27
+ "ct_logic_uni_rev_order.v1.GetPaidOrdersFromOrderHistoryByAccountIdResponse",
28
+ () => [
29
+ { no: 1, name: "orders", kind: "message", T: PaidOrder, repeated: true },
30
+ { no: 2, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
31
+ ],
32
+ );
33
+
34
+ /**
35
+ * @generated from message ct_logic_uni_rev_order.v1.PaidOrder
36
+ */
37
+ export const PaidOrder = proto3.makeMessageType(
38
+ "ct_logic_uni_rev_order.v1.PaidOrder",
39
+ () => [
40
+ { no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
41
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
42
+ { no: 3, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
+ { no: 4, name: "order_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
44
+ { no: 5, name: "order_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
+ { no: 6, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ { no: 7, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
47
+ { no: 8, name: "payment_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
48
+ { no: 9, name: "failed_payment_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
49
+ { no: 10, name: "payment_method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
50
+ { no: 11, name: "transaction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
51
+ { no: 12, name: "order_created", kind: "scalar", T: 9 /* ScalarType.STRING */ },
52
+ { no: 13, name: "paid_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
53
+ { no: 14, name: "closed_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
54
+ { no: 15, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
55
+ { no: 16, name: "prefix_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
+ { no: 17, name: "number_of_services", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
57
+ { no: 18, name: "failed_order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
58
+ { no: 19, name: "admin_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
59
+ { no: 20, name: "order_notes", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60
+ { no: 21, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
61
+ { no: 22, name: "service_details", kind: "message", T: ServiceDetail, repeated: true },
62
+ { no: 23, name: "order_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
63
+ { no: 24, name: "packages", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
64
+ { no: 25, name: "list_ads", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
65
+ { no: 26, name: "list_ad_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
+ { no: 27, name: "list_service_params", kind: "scalar", T: 9 /* ScalarType.STRING */ },
67
+ { no: 28, name: "list_service_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
68
+ { no: 29, name: "credit_order", kind: "message", T: CreditOrderHistoryResponse },
69
+ { no: 30, name: "total_dongtot_topup", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
70
+ ],
71
+ );
72
+
73
+ /**
74
+ * @generated from message ct_logic_uni_rev_order.v1.CreditBizPaidOrder
75
+ */
76
+ export const CreditBizPaidOrder = proto3.makeMessageType(
77
+ "ct_logic_uni_rev_order.v1.CreditBizPaidOrder",
78
+ () => [
79
+ { no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
80
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
81
+ { no: 3, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
82
+ { no: 4, name: "order_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
83
+ { no: 5, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
84
+ { no: 6, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
+ { no: 7, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
+ { no: 8, name: "payment_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
+ { no: 9, name: "failed_payment_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
88
+ { no: 10, name: "services", kind: "scalar", T: 9 /* ScalarType.STRING */ },
89
+ { no: 11, name: "actions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
90
+ { no: 12, name: "payment_method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
91
+ { no: 13, name: "transaction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
92
+ { no: 14, name: "created_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
93
+ { no: 15, name: "paid_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
94
+ { no: 16, name: "closed_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
95
+ { no: 17, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
96
+ { no: 18, name: "number_of_services", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
97
+ { no: 19, name: "failed_order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
98
+ { no: 20, name: "admin_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
99
+ { no: 21, name: "order_notes", kind: "scalar", T: 9 /* ScalarType.STRING */ },
100
+ { no: 22, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
101
+ { no: 23, name: "parent_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
102
+ { no: 24, name: "vertical_creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
103
+ ],
104
+ );
105
+
106
+ /**
107
+ * @generated from message ct_logic_uni_rev_order.v1.ServiceDetail
108
+ */
109
+ export const ServiceDetail = proto3.makeMessageType(
110
+ "ct_logic_uni_rev_order.v1.ServiceDetail",
111
+ () => [
112
+ { no: 1, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
113
+ { no: 2, name: "service_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
114
+ { no: 3, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
115
+ { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
+ { no: 5, name: "service_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
117
+ { no: 6, name: "service_params", kind: "scalar", T: 9 /* ScalarType.STRING */ },
118
+ { no: 7, name: "expected_delivery_time", kind: "scalar", T: 9 /* ScalarType.STRING */ },
119
+ { no: 8, name: "delivery_time", kind: "scalar", T: 9 /* ScalarType.STRING */ },
120
+ { no: 9, name: "price", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
121
+ ],
122
+ );
123
+
124
+ /**
125
+ * @generated from message ct_logic_uni_rev_order.v1.CreditOrderHistoryResponse
126
+ */
127
+ export const CreditOrderHistoryResponse = proto3.makeMessageType(
128
+ "ct_logic_uni_rev_order.v1.CreditOrderHistoryResponse",
129
+ () => [
130
+ { no: 1, name: "account_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
131
+ { no: 2, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
132
+ { no: 3, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
133
+ { no: 4, name: "service_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
134
+ { no: 5, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
135
+ { no: 6, name: "created_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
136
+ { no: 7, name: "order_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
137
+ { no: 8, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
138
+ ],
139
+ );
140
+
141
+ /**
142
+ * @generated from message ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersByParamsRequest
143
+ */
144
+ export const GetCreditBizPaidOrdersByParamsRequest = proto3.makeMessageType(
145
+ "ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersByParamsRequest",
146
+ () => [
147
+ { no: 1, name: "parent_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
148
+ { no: 2, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
149
+ { no: 3, name: "from", kind: "message", T: Timestamp, opt: true },
150
+ { no: 4, name: "to", kind: "message", T: Timestamp, opt: true },
151
+ { no: 5, name: "limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
152
+ { no: 6, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
153
+ ],
154
+ );
155
+
156
+ /**
157
+ * @generated from message ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersByParamsResponse
158
+ */
159
+ export const GetCreditBizPaidOrdersByParamsResponse = proto3.makeMessageType(
160
+ "ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersByParamsResponse",
161
+ () => [
162
+ { no: 1, name: "data", kind: "message", T: CreditBizPaidOrder, repeated: true },
163
+ { no: 2, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
164
+ ],
165
+ );
166
+
167
+ /**
168
+ * @generated from message ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersWithServiceDetailRequest
169
+ */
170
+ export const GetCreditBizPaidOrdersWithServiceDetailRequest = proto3.makeMessageType(
171
+ "ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersWithServiceDetailRequest",
172
+ () => [
173
+ { no: 1, name: "parent_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
174
+ { no: 2, name: "child_account_ids", kind: "scalar", T: 9 /* ScalarType.STRING */ },
175
+ { no: 3, name: "from", kind: "message", T: Timestamp, opt: true },
176
+ { no: 4, name: "to", kind: "message", T: Timestamp, opt: true },
177
+ { no: 5, name: "limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
178
+ { no: 6, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
179
+ ],
180
+ );
181
+
182
+ /**
183
+ * @generated from message ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersWithServiceDetailResponse
184
+ */
185
+ export const GetCreditBizPaidOrdersWithServiceDetailResponse = proto3.makeMessageType(
186
+ "ct_logic_uni_rev_order.v1.GetCreditBizPaidOrdersWithServiceDetailResponse",
187
+ () => [
188
+ { no: 1, name: "data", kind: "message", T: PaidOrder, repeated: true },
189
+ { no: 2, name: "child_accounts", kind: "message", T: ChildAccountInfo, repeated: true },
190
+ { no: 3, name: "total_orders", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
191
+ { no: 4, name: "total_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
192
+ ],
193
+ );
194
+
195
+ /**
196
+ * @generated from message ct_logic_uni_rev_order.v1.ChildAccountInfo
197
+ */
198
+ export const ChildAccountInfo = proto3.makeMessageType(
199
+ "ct_logic_uni_rev_order.v1.ChildAccountInfo",
200
+ () => [
201
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
202
+ { no: 2, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
204
+ ],
205
+ );
206
+
207
+ /**
208
+ * @generated from message ct_logic_uni_rev_order.v1.GetCreditBizCostWithParamsRequest
209
+ */
210
+ export const GetCreditBizCostWithParamsRequest = proto3.makeMessageType(
211
+ "ct_logic_uni_rev_order.v1.GetCreditBizCostWithParamsRequest",
212
+ () => [
213
+ { no: 1, name: "parent_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
214
+ { no: 2, name: "child_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
215
+ { no: 3, name: "from", kind: "message", T: Timestamp, opt: true },
216
+ { no: 4, name: "to", kind: "message", T: Timestamp, opt: true },
217
+ { no: 5, name: "limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
218
+ { no: 6, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
219
+ { no: 7, name: "child_account_ids", kind: "scalar", T: 9 /* ScalarType.STRING */ },
220
+ ],
221
+ );
222
+
223
+ /**
224
+ * @generated from message ct_logic_uni_rev_order.v1.GetCreditBizCostWithParamsResponse
225
+ */
226
+ export const GetCreditBizCostWithParamsResponse = proto3.makeMessageType(
227
+ "ct_logic_uni_rev_order.v1.GetCreditBizCostWithParamsResponse",
228
+ () => [
229
+ { no: 1, name: "cost", kind: "message", T: BizCost },
230
+ { no: 2, name: "staffs", kind: "message", T: ChildAccountWithExpiredDate, repeated: true },
231
+ { no: 3, name: "number_of_childs", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
232
+ ],
233
+ );
234
+
235
+ /**
236
+ * @generated from message ct_logic_uni_rev_order.v1.BizCost
237
+ */
238
+ export const BizCost = proto3.makeMessageType(
239
+ "ct_logic_uni_rev_order.v1.BizCost",
240
+ () => [
241
+ { no: 1, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
242
+ { no: 2, name: "parent", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
243
+ { no: 3, name: "staff", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
244
+ ],
245
+ );
246
+
247
+ /**
248
+ * @generated from message ct_logic_uni_rev_order.v1.ChildAccountWithExpiredDate
249
+ */
250
+ export const ChildAccountWithExpiredDate = proto3.makeMessageType(
251
+ "ct_logic_uni_rev_order.v1.ChildAccountWithExpiredDate",
252
+ () => [
253
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
254
+ { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
255
+ { no: 3, name: "expired_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
256
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
257
+ { no: 5, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
258
+ { no: 6, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
259
+ ],
260
+ );
261
+
262
+ /**
263
+ * @generated from message ct_logic_uni_rev_order.v1.PaidOrderWithDetailServiceParam
264
+ */
265
+ export const PaidOrderWithDetailServiceParam = proto3.makeMessageType(
266
+ "ct_logic_uni_rev_order.v1.PaidOrderWithDetailServiceParam",
267
+ () => [
268
+ { no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
269
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
270
+ { no: 3, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
271
+ { no: 4, name: "order_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
272
+ { no: 5, name: "order_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
273
+ { no: 6, name: "payment_method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
274
+ { no: 7, name: "transaction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
275
+ { no: 8, name: "order_created", kind: "scalar", T: 9 /* ScalarType.STRING */ },
276
+ { no: 9, name: "paid_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
277
+ { no: 10, name: "closed_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
278
+ { no: 11, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
279
+ { no: 12, name: "number_of_services", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
280
+ { no: 13, name: "failed_order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
281
+ { no: 14, name: "services", kind: "message", T: ServiceIdWithDetailParam, repeated: true },
282
+ ],
283
+ );
284
+
285
+ /**
286
+ * @generated from message ct_logic_uni_rev_order.v1.ServiceIdWithDetailParam
287
+ */
288
+ export const ServiceIdWithDetailParam = proto3.makeMessageType(
289
+ "ct_logic_uni_rev_order.v1.ServiceIdWithDetailParam",
290
+ () => [
291
+ { no: 1, name: "service_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
292
+ { no: 2, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
293
+ { no: 3, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
294
+ { no: 4, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
295
+ { no: 5, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
296
+ { no: 6, name: "shop_alias", kind: "scalar", T: 9 /* ScalarType.STRING */ },
297
+ { no: 7, name: "subscription_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
298
+ { no: 8, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
299
+ { no: 9, name: "price", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
300
+ ],
301
+ );
302
+
303
+ /**
304
+ * @generated from message ct_logic_uni_rev_order.v1.GetListOrdersByAccountIdAndOrderTypeRequest
305
+ */
306
+ export const GetListOrdersByAccountIdAndOrderTypeRequest = proto3.makeMessageType(
307
+ "ct_logic_uni_rev_order.v1.GetListOrdersByAccountIdAndOrderTypeRequest",
308
+ () => [
309
+ { no: 1, name: "limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
310
+ { no: 2, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
311
+ { no: 3, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
312
+ { no: 4, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
313
+ ],
314
+ );
315
+
316
+ /**
317
+ * @generated from message ct_logic_uni_rev_order.v1.GetListOrdersByAccountIdAndOrderTypeResponse
318
+ */
319
+ export const GetListOrdersByAccountIdAndOrderTypeResponse = proto3.makeMessageType(
320
+ "ct_logic_uni_rev_order.v1.GetListOrdersByAccountIdAndOrderTypeResponse",
321
+ () => [
322
+ { no: 1, name: "data", kind: "message", T: PaidOrderWithDetailServiceParam, repeated: true },
323
+ ],
324
+ );
325
+
326
+ /**
327
+ * @generated from message ct_logic_uni_rev_order.v1.GetListServiceTypeToFilterBORequest
328
+ */
329
+ export const GetListServiceTypeToFilterBORequest = proto3.makeMessageType(
330
+ "ct_logic_uni_rev_order.v1.GetListServiceTypeToFilterBORequest",
331
+ [],
332
+ );
333
+
334
+ /**
335
+ * @generated from message ct_logic_uni_rev_order.v1.GetListServiceTypeToFilterBOResponse
336
+ */
337
+ export const GetListServiceTypeToFilterBOResponse = proto3.makeMessageType(
338
+ "ct_logic_uni_rev_order.v1.GetListServiceTypeToFilterBOResponse",
339
+ () => [
340
+ { no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
341
+ ],
342
+ );
343
+
@@ -0,0 +1,107 @@
1
+ // general
2
+ syntax = "proto3";
3
+ package ct_logic_uni_rev_order.v1;
4
+
5
+ // language specs
6
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-order;pb";
7
+
8
+ message OrderHistoryOrder {
9
+ int64 order_id = 1;
10
+ string order_title = 2;
11
+ string payment_code = 3;
12
+ int64 order_value = 4;
13
+ string order_unit = 5;
14
+ string order_status = 6;
15
+ string order_status_desc = 7;
16
+ int64 created_timestamp = 8;
17
+ string created_at = 9;
18
+ int64 expired_timestamp = 10;
19
+ string expired_at = 11;
20
+ string invoice_status = 12;
21
+ string invoice_status_desc = 13;
22
+ string order_thumbnail = 14;
23
+ }
24
+
25
+ message GetOrdersByAccountIdRequest {
26
+ int64 account_id = 1;
27
+ string order_type = 2;
28
+ int64 limit = 3;
29
+ string next_page_token = 4;
30
+ }
31
+
32
+ message GetOrdersByAccountIdResponse {
33
+ repeated OrderHistoryOrder orders = 1;
34
+ string next_page_token = 2;
35
+ }
36
+
37
+ message OrderHistoryOrderDetail {
38
+ int64 order_id = 1;
39
+ string order_title = 2;
40
+ string payment_code = 3;
41
+ int64 order_value = 4;
42
+ string order_unit = 5;
43
+ string order_type = 6;
44
+ string order_status = 7;
45
+ string order_status_desc = 8;
46
+ int64 created_timestamp = 9;
47
+ int64 expired_timestamp = 10;
48
+ string created_at = 11;
49
+ string expired_at = 12;
50
+ string invoice_status = 13;
51
+ string invoice_status_desc = 14;
52
+ string payment_method = 15;
53
+ string payment_method_desc = 16;
54
+ int64 refund_order_id = 17;
55
+ string refund_order_code = 18;
56
+ repeated ServicesByAd services_by_ad = 19;
57
+ repeated OrderHistoryService services_by_account = 20;
58
+ optional int64 remaining_dongtot = 21;
59
+ BillingSummary billing_summary = 22;
60
+ optional string top_note = 23;
61
+ }
62
+
63
+ message OrderHistoryService {
64
+ int64 service_id = 1;
65
+ string service_name = 2;
66
+ string service_desc = 3; // ex: "Thời hạn: 1 tháng, Số lượt: 5, Khuyến mãi 9.000 ĐT"
67
+ string service_type = 4;
68
+ int64 price = 5;
69
+ string price_unit = 6;
70
+ string service_status = 7;
71
+ string service_status_desc = 8;
72
+ repeated string service_deliveries = 9;
73
+ string service_thumbnail = 10;
74
+ }
75
+
76
+ message ServicesByAd {
77
+ int64 ad_id = 1;
78
+ string ad_title = 2;
79
+ string ad_thumbnail = 3;
80
+ int32 service_count = 4;
81
+ repeated OrderHistoryService services = 5;
82
+ }
83
+
84
+ message BillingSummary {
85
+ optional int64 before_tax = 1; // Thành tiền trước thuế
86
+ optional int64 tax = 2; // Thuế
87
+ optional int64 service_fee = 3; // Phí dịch vụ
88
+ optional int64 tax_service_fee = 4; // Thuế + phí dịch vụ
89
+ optional int64 total = 5; // Tổng tiền
90
+ optional int64 total_with_tax = 6; // Tổng tiền ( Đã bao gồm thuế GTGT)
91
+ optional string before_tax_desc = 7; // Thành tiền trước thuế(Not paid yet)|Tổng
92
+ optional string tax_desc = 8; // Thuế GTGT
93
+ optional string service_fee_desc = 9; // Phí dịch vụ
94
+ optional string tax_service_fee_desc = 10; // Thuế + phí dịch vụ
95
+ optional string total_desc = 11; // Tổng tiền (not paid yet)|Tổng tiền thanh toán
96
+ optional string total_with_tax_desc = 12; // Tổng tiền ( Đã bao gồm thuế GTGT)
97
+ }
98
+
99
+ message GetOrderHistoryOrderDetailRequest {
100
+ int64 order_id = 1;
101
+ int64 account_id = 2;
102
+ string platform = 3;
103
+ }
104
+
105
+ message GetOrderHistoryOrderDetailResponse {
106
+ OrderHistoryOrderDetail order_detail = 1;
107
+ }