@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,485 @@
1
+ // general
2
+ syntax = "proto3";
3
+ package ct_logic_uni_rev_order.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+ import "validate/validate.proto";
7
+
8
+ // language specs
9
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-order;pb";
10
+
11
+ message GetOrderServiceDetailByParamsRequest {
12
+ int64 account_id = 1;
13
+ string payment_method = 2;
14
+ int64 ad_id = 3;
15
+ string status = 4;
16
+ int64 limit = 5;
17
+ int64 offset = 6;
18
+ string order_by = 7;
19
+ bool is_ad_scheduling = 8;
20
+ string created_date_from = 9;
21
+ string created_date_to = 10;
22
+ string is_credit = 11;
23
+ int64 failed_order_id = 12;
24
+ string service_type = 13;
25
+ string phone = 14;
26
+ repeated string service_types = 15;
27
+ }
28
+
29
+ message GetOrderServiceDetailByParamsResponse {
30
+ repeated OrderServiceDetailByParams data = 1;
31
+ int64 total = 2;
32
+ }
33
+
34
+ message OrderServiceDetailByParams {
35
+ int64 order_id = 1;
36
+ string status = 2;
37
+ int64 account_id = 3;
38
+ string payment_method = 4;
39
+ string order_type = 5;
40
+ string phone = 6;
41
+ bool is_auto_online_contract = 7;
42
+ int64 value = 8;
43
+ string source = 9;
44
+ string unit = 10;
45
+ string pay_time = 11;
46
+ string creation_time = 12;
47
+ string list_services = 13;
48
+ int64 failed_order_id = 14;
49
+ string admin_id = 15;
50
+ string order_notes = 16;
51
+ string closed_date = 17;
52
+ string updated_at = 18;
53
+ }
54
+
55
+ message GetOrderServiceDetailWithAddOnPFInfoRequest {
56
+ int64 order_id = 1;
57
+ string order_type = 2;
58
+ bool is_show_invoice = 3;
59
+ bool check_econtract_topup = 4;
60
+ }
61
+
62
+ message GetOrderServiceDetailWithAddOnPFInfoResponse {
63
+ bool is_contract = 1;
64
+ bool is_redeem_from_diemtot = 2;
65
+ string invoice_id = 3;
66
+ string invoice_sign = 4;
67
+ string invoice_settings_key = 5;
68
+ map<string, string> invoice_info = 6;
69
+ bool show_publish_einvoice = 7;
70
+ int64 service_fee = 8;
71
+ int64 order_id = 9;
72
+ int64 account_id = 10;
73
+ string phone = 11;
74
+ string order_status = 12;
75
+ int64 value = 13;
76
+ string source = 14;
77
+ string unit = 15;
78
+ string payment_code = 16;
79
+ repeated ActionDetail actions = 17;
80
+ string payment_method = 18;
81
+ string payment_method_text = 19;
82
+ string transaction_id = 20;
83
+ bool is_auto_online_contract = 21;
84
+ string order_created = 22;
85
+ string paid_date = 23;
86
+ string closed_date = 24;
87
+ string order_type = 25;
88
+ int64 number_of_services = 26;
89
+ int64 failed_order_id = 27;
90
+ string failed_payment_code = 28;
91
+ map<int64, string> packages = 29;
92
+ map<int64, string> list_ads = 30;
93
+ CreditDetail credit_detail = 31;
94
+ repeated OrderServiceDetailWithAddOnPF services = 32;
95
+ optional int64 econtract_id = 33;
96
+ int64 original_value = 34;
97
+ int64 tax_value = 35;
98
+ string broken_status = 36; // broken, unbroken, not_applicable
99
+ optional string broken_order_note = 37;
100
+ bool can_update_transaction = 38;
101
+ }
102
+
103
+ message ActionDetail {
104
+ int64 action_id = 1;
105
+ int64 order_id = 2;
106
+ string type = 3;
107
+ string action_time = 4;
108
+ string name = 5;
109
+ string value = 6;
110
+ }
111
+
112
+ message CreditDetail {
113
+ bool ok = 1;
114
+ repeated CreditOrderDetail data = 2;
115
+ CreditDetailAmount amount = 3;
116
+ }
117
+
118
+ message CreditOrderDetail {
119
+ int64 id = 1;
120
+ string status_id = 2;
121
+ string platform_id = 3;
122
+ int64 ref_service_id = 4;
123
+ int64 credit_order_id = 5;
124
+ string type_id = 6;
125
+ string transactiontype_id = 7;
126
+ int64 amount = 8;
127
+ int64 is_refund = 9;
128
+ int64 topup_transaction_detail_id = 10;
129
+ }
130
+
131
+ message CreditDetailAmount {
132
+ int64 free = 1;
133
+ int64 paid = 2;
134
+ }
135
+
136
+ message OrderServiceDetailWithAddOnPF {
137
+ string ad_id = 1;
138
+ int64 service_id = 2;
139
+ int64 price = 3;
140
+ string service_status = 4;
141
+ string service_status_text = 5;
142
+ string type = 6;
143
+ string service_params = 7;
144
+ string expected_delivery_time = 8;
145
+ string delivery_time = 9;
146
+ string shop_alias = 10;
147
+ int64 category_id = 11;
148
+ int64 package_id = 12;
149
+ int64 duration = 13;
150
+ int64 quantity = 14;
151
+ string start_time_param = 15;
152
+ string service_name = 16;
153
+ repeated string service_description = 17;
154
+ repeated ResponseScheduleBumpServiceData schedule_bump = 18;
155
+ ResponseFeatureAdData feature_info = 19;
156
+ ResponseStickyData sticky_info = 20;
157
+ ResponseCupidData cupid_info = 21;
158
+ ResponseSpecialDisplayData special_display = 22;
159
+ ResponseZeroDepositData zero_deposit = 23;
160
+ ResponseIntensiveBumpData intensive_bump = 24;
161
+ }
162
+
163
+ message ResponseScheduleBumpServiceData {
164
+ int64 service_id = 1;
165
+ int64 ad_id = 2;
166
+ string type = 3;
167
+ string schedule_bump_time = 4;
168
+ string expected_bump_time = 5;
169
+ string bump_time = 6;
170
+ string status = 7;
171
+ }
172
+
173
+ message ResponseFeatureAdData {
174
+ int64 service_id = 1;
175
+ int64 ad_id = 2;
176
+ int64 feature_mapping_id = 3;
177
+ string value = 4;
178
+ string created_date = 5;
179
+ string expired_time = 6;
180
+ string modified_date = 7;
181
+ string delivery_time = 8;
182
+ }
183
+
184
+ message ResponseStickyData {
185
+ int64 service_id = 1;
186
+ int64 ad_id = 2;
187
+ int64 placement_setting_id = 3;
188
+ string type = 4;
189
+ string status = 5;
190
+ int64 end_time = 6;
191
+ int64 modified_date = 7;
192
+ int64 created_date = 8;
193
+ int64 delivery_time = 9;
194
+ }
195
+
196
+ message ResponseCupidData {
197
+ int64 service_id = 1;
198
+ int64 ad_id = 2;
199
+ string type = 3;
200
+ string status = 4;
201
+ int64 end_time = 5;
202
+ int64 modified_date = 6;
203
+ int64 created_date = 7;
204
+ int64 delivery_time = 8;
205
+ int64 unit_amount = 9;
206
+ }
207
+
208
+ message ResponseSpecialDisplayData {
209
+ int64 service_id = 1;
210
+ int64 ad_id = 2;
211
+ string type = 3;
212
+ string status = 4;
213
+ int64 end_time = 5;
214
+ int64 modified_date = 6;
215
+ int64 created_date = 7;
216
+ int64 delivery_time = 8;
217
+ }
218
+
219
+ message ResponseZeroDepositData {
220
+ int64 service_id = 1;
221
+ int64 ad_id = 2;
222
+ string type = 3;
223
+ string status = 4;
224
+ int64 end_time = 5;
225
+ int64 modified_date = 6;
226
+ int64 created_date = 7;
227
+ int64 delivery_time = 8;
228
+ }
229
+
230
+ message ResponseIntensiveBumpData {
231
+ int64 service_id = 1;
232
+ int64 ad_id = 2;
233
+ string type = 3;
234
+ string status = 4;
235
+ int64 end_time = 5;
236
+ int64 modified_date = 6;
237
+ int64 created_date = 7;
238
+ int64 delivery_time = 8;
239
+ }
240
+
241
+ message GetOrderServiceDetailWithAddOnPFInfoWithAccountIdRequest {
242
+ int64 account_id = 1;
243
+ int64 order_id = 2;
244
+ string order_type = 3;
245
+ }
246
+
247
+ message GetOrderServiceDetailWithAddOnPFInfoWithAccountIdResponse {
248
+ bool is_contract = 1;
249
+ bool is_redeem_from_diemtot = 2;
250
+ string invoice_id = 3;
251
+ string invoice_sign = 4;
252
+ string invoice_settings_key = 5;
253
+ map<string, string> invoice_info = 6;
254
+ bool show_publish_einvoice = 7;
255
+ int64 service_fee = 8;
256
+ int64 order_id = 9;
257
+ int64 account_id = 10;
258
+ string phone = 11;
259
+ string order_status = 12;
260
+ int64 value = 13;
261
+ string source = 14;
262
+ string unit = 15;
263
+ string payment_code = 16;
264
+ repeated ActionDetail actions = 17;
265
+ string payment_method = 18;
266
+ string payment_method_text = 19;
267
+ string transaction_id = 20;
268
+ bool is_auto_online_contract = 21;
269
+ string order_created = 22;
270
+ string paid_date = 23;
271
+ string closed_date = 24;
272
+ string order_type = 25;
273
+ int64 number_of_services = 26;
274
+ int64 failed_order_id = 27;
275
+ string failed_payment_code = 28;
276
+ map<int64, string> packages = 29;
277
+ map<int64, string> list_ads = 30;
278
+ CreditDetail credit_detail = 31;
279
+ repeated OrderServiceDetailWithAddOnPF services = 32;
280
+ optional bool is_show_invoice_tooltip = 33;
281
+ }
282
+ message GetUpSellingPointRequest {
283
+ int64 account_id = 1;
284
+ int64 ad_id = 2;
285
+ }
286
+
287
+ message GetUpSellingPointResponse {
288
+ string message = 1;
289
+ string type = 2;
290
+ }
291
+
292
+ message GetFailedOrderServiceDetailRequest {
293
+ int64 account_id = 1;
294
+ int64 failed_order_id = 2;
295
+ }
296
+
297
+ message GetFailedOrderServiceDetailResponse {
298
+ repeated FailedOrderServiceDetail data = 1;
299
+ }
300
+
301
+ message FailedOrderServiceDetail {
302
+ int64 ad_id = 1;
303
+ int64 service_id = 2;
304
+ int64 price = 3;
305
+ string service_type = 4;
306
+ string service_status = 5;
307
+ string service_params = 6;
308
+ }
309
+
310
+ message GetDeliveryServiceByAdIdRequest {
311
+ int64 account_id = 1;
312
+ int64 ad_id = 2;
313
+ }
314
+
315
+ message GetDeliveryServiceByAdIdResponse {
316
+ AdInfoAdStats ad_info = 1;
317
+ repeated DeliveryTimeServiceAd sticky_ads = 2;
318
+ repeated DeliveryTimeServiceAd special_displays = 3;
319
+ repeated DeliveryTimeServiceAd zero_deposit = 4;
320
+ repeated DeliveryTimeServiceAd gallery_ads = 5;
321
+ repeated DeliveryTimeServiceAd ad_features = 6;
322
+ repeated ScheduleBumpAdStat schedule_bump = 7;
323
+ repeated ScheduleBumpAdStat timer_bump = 8;
324
+ repeated DeliveryTimeServiceAd intensive_bump = 9;
325
+ map<string, string> title_services = 10;
326
+ repeated AdStats ad_state = 11;
327
+ }
328
+
329
+ message AdInfoAdStats {
330
+ int64 ad_id = 1;
331
+ int64 list_id = 2;
332
+ string subject = 3;
333
+ string title = 4;
334
+ int64 category = 5;
335
+ int64 account_id = 6;
336
+ bool company_ad = 7;
337
+ bool is_listed = 8;
338
+ string status = 9;
339
+ string type = 10;
340
+ string state = 11;
341
+ int64 action_id = 12;
342
+ int64 city = 13;
343
+ string body = 14;
344
+ repeated string images = 15;
345
+ string profiler = 16;
346
+ string shop_alias = 17;
347
+ string price_string = 18;
348
+ int64 big_cate = 19;
349
+ int64 accepted_time = 20;
350
+ int64 modified_at = 21;
351
+ int64 list_time = 22;
352
+ int64 region = 23;
353
+ string area = 24;
354
+ string region_v2 = 25;
355
+ string area_v2 = 26;
356
+ }
357
+
358
+ message DeliveryTimeServiceAd {
359
+ int64 service_id = 1;
360
+ string delivery_time = 2;
361
+ string end_time = 3;
362
+ string status = 4;
363
+ string service_params = 5;
364
+ int64 delivery_time_in_unix = 6;
365
+ int64 end_time_in_unix = 7;
366
+ string alternative_service_name = 8;
367
+ }
368
+
369
+ message ScheduleBumpAdStat {
370
+ string delivery_time = 1;
371
+ string status = 2;
372
+ }
373
+
374
+ message AdStats {
375
+ int64 total_page_subcat = 1;
376
+ int64 current_page_subcat = 2;
377
+ int64 position_of_page = 3;
378
+ string position_params = 4;
379
+ int64 impression = 5;
380
+ int64 views = 6;
381
+ string time = 7;
382
+ repeated AdStatsChartItem chart_impressions = 8;
383
+ repeated AdStatsChartItem chart_views = 9;
384
+ }
385
+
386
+ message AdStatsChartItem {
387
+ int64 adlist_id = 1;
388
+ int64 count = 2;
389
+ string accumulated_at = 3;
390
+ string paid_date = 4;
391
+ map<string, string> services_type = 5;
392
+ }
393
+
394
+ message GetPremiumServiceOrdersDeliveringByAdIdsRequest {
395
+ string ad_ids = 1;
396
+ int64 account_id = 2;
397
+ }
398
+
399
+ message GetPremiumServiceOrdersDeliveringByAdIdsResponse {
400
+ map<string, PremimumServiceDeliveryInfoFromAdIdResponse> result = 1;
401
+ }
402
+
403
+ message PremimumServiceDeliveryInfoFromAdIdResponse {
404
+ int64 ad_id = 1;
405
+ bool can_load_more = 2;
406
+ repeated ServiceDeliveryInfo data = 3;
407
+ }
408
+
409
+ message ServiceDeliveryInfo {
410
+ string service_name = 1;
411
+ string service_type = 2;
412
+ int64 delivery_time = 3;
413
+ int64 end_time = 4;
414
+ string status = 5;
415
+ int64 views = 6;
416
+ }
417
+
418
+ message GetPaidServiceByAdIdRequest {
419
+ int64 ad_id = 1;
420
+ int64 account_id = 2;
421
+ }
422
+
423
+ message GetPaidServiceByAdIdResponse {
424
+ repeated PaidServiceByAdId data = 1;
425
+ }
426
+
427
+ message PaidServiceByAdId {
428
+ PaidServiceId id = 1;
429
+ repeated string service_type = 2;
430
+ }
431
+
432
+ message PaidServiceId {
433
+ string paid_date = 1;
434
+ }
435
+
436
+ message GetOrderByTransactionIdRequest {
437
+ int64 account_id = 1;
438
+ string payment_method = 2;
439
+ string transaction_id = 3;
440
+ }
441
+
442
+ message GetOrderByTransactionIdResponse {
443
+ int64 order_id = 1;
444
+ string status = 2;
445
+ int64 value = 3;
446
+ }
447
+
448
+ message GetOrderHistoryPFsCountRequest {
449
+ repeated int64 account_ids = 1 [(validate.rules).repeated.min_items = 1];
450
+ repeated int64 category_ids = 2;
451
+ repeated string service_types = 3;
452
+ google.protobuf.Timestamp created_at = 5;
453
+ repeated string order_statuses = 6;
454
+ }
455
+
456
+ message GetOrderHistoryPFsCountResponse {
457
+ map<int64, GetOrderHistoryPFsCountMsg> result = 1; // map of account_id
458
+ }
459
+
460
+ message GetOrderHistoryPFsCountMsg {
461
+ int64 count = 1;
462
+ google.protobuf.Timestamp latest_created_time = 2;
463
+ }
464
+
465
+ message GetOrderHistoryShopOrdersRequest {
466
+ int64 account_id = 1 [(validate.rules).int64.gt = 0];
467
+ repeated string order_statuses = 2; // one of: paid, closed
468
+ repeated string service_types = 3 [(validate.rules).repeated.min_items = 1]; // shop_create or shop_extend
469
+ repeated int64 category_ids = 4; // required for shop_create
470
+ string shop_alias = 5; // required for shop_extend
471
+ int64 limit = 6; // default 20
472
+ int64 offset = 7; // default 0
473
+ }
474
+
475
+ message GetOrderHistoryShopOrdersResponse {
476
+ repeated GetOrderHistoryShopOrderResponse data = 1;
477
+ int64 total = 2;
478
+ }
479
+
480
+ message GetOrderHistoryShopOrderResponse {
481
+ int64 duration = 1;
482
+ google.protobuf.Timestamp created_date = 2;
483
+ google.protobuf.Timestamp paid_date = 3;
484
+ google.protobuf.Timestamp closed_date = 4;
485
+ }