@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,224 @@
1
+ // general
2
+ syntax = "proto3";
3
+ package ct_logic_uni_rev_order.v1;
4
+
5
+ import "validate/validate.proto";
6
+ import "google/protobuf/timestamp.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 GetPaidOrdersFromOrderHistoryByAccountIdRequest {
12
+ string order_type = 1 [(validate.rules).string = {
13
+ in: ["dongtot", ""]
14
+ }];
15
+ int64 account_id = 2 [(validate.rules).int64.gt = 0];
16
+ int64 limit = 3 [(validate.rules).int64 = {
17
+ gt: 0,
18
+ lt: 999
19
+ }];
20
+ int64 offset = 4 [(validate.rules).int64.gte = 0];
21
+ }
22
+
23
+ message GetPaidOrdersFromOrderHistoryByAccountIdResponse {
24
+ repeated PaidOrder orders = 1;
25
+ int64 total = 2;
26
+ }
27
+
28
+ message PaidOrder {
29
+ int64 order_id = 1;
30
+ int64 account_id = 2;
31
+ string phone = 3;
32
+ string order_status = 4;
33
+ string order_value = 5;
34
+ string source = 6;
35
+ string unit = 7;
36
+ string payment_code = 8;
37
+ string failed_payment_code = 9;
38
+ string payment_method = 10;
39
+ string transaction_id = 11;
40
+ string order_created = 12;
41
+ string paid_date = 13;
42
+ string closed_date = 14;
43
+ string order_type = 15;
44
+ string prefix_price = 16;
45
+ int64 number_of_services = 17;
46
+ int64 failed_order_id = 18;
47
+ int64 admin_id = 19;
48
+ string order_notes = 20;
49
+ string updated_at = 21;
50
+ repeated ServiceDetail service_details = 22;
51
+ string order_title = 23;
52
+ map<int64, string> packages = 24;
53
+ map<int64, string> list_ads = 25;
54
+ string list_ad_id = 26;
55
+ string list_service_params = 27;
56
+ string list_service_type = 28;
57
+ CreditOrderHistoryResponse credit_order = 29;
58
+ int64 total_dongtot_topup = 30;
59
+ }
60
+
61
+ message CreditBizPaidOrder {
62
+ int64 order_id = 1;
63
+ int64 account_id = 2;
64
+ string phone = 3;
65
+ string order_status = 4;
66
+ string value = 5;
67
+ string source = 6;
68
+ string unit = 7;
69
+ string payment_code = 8;
70
+ string failed_payment_code = 9;
71
+ string services = 10;
72
+ string actions = 11;
73
+ string payment_method = 12;
74
+ string transaction_id = 13;
75
+ string created_date = 14;
76
+ string paid_date = 15;
77
+ string closed_date = 16;
78
+ string order_type = 17;
79
+ int64 number_of_services = 18;
80
+ int64 failed_order_id = 19;
81
+ int64 admin_id = 20;
82
+ string order_notes = 21;
83
+ string updated_at = 22;
84
+ int64 parent_account_id = 23;
85
+ string vertical_creator = 24;
86
+ }
87
+
88
+ message ServiceDetail {
89
+ string updated_at = 1;
90
+ int64 service_id = 2;
91
+ int64 ad_id = 3;
92
+ string type = 4;
93
+ string service_status = 5;
94
+ string service_params = 6;
95
+ string expected_delivery_time = 7;
96
+ string delivery_time = 8;
97
+ int64 price = 9;
98
+ }
99
+
100
+ message CreditOrderHistoryResponse {
101
+ string account_type = 1;
102
+ int64 order_id = 2;
103
+ string order_type = 3;
104
+ int64 service_id = 4;
105
+ string platform = 5;
106
+ int64 created_time = 6;
107
+ string order_status = 7;
108
+ int64 amount = 8;
109
+ }
110
+
111
+ message GetCreditBizPaidOrdersByParamsRequest {
112
+ int64 parent_account_id = 1;
113
+ string phone = 2;
114
+ optional google.protobuf.Timestamp from = 3;
115
+ optional google.protobuf.Timestamp to = 4;
116
+ int64 limit = 5;
117
+ int64 offset = 6;
118
+ }
119
+
120
+ message GetCreditBizPaidOrdersByParamsResponse {
121
+ repeated CreditBizPaidOrder data = 1;
122
+ int64 total = 2;
123
+ }
124
+
125
+ message GetCreditBizPaidOrdersWithServiceDetailRequest {
126
+ int64 parent_account_id = 1;
127
+ string child_account_ids = 2;
128
+ optional google.protobuf.Timestamp from = 3;
129
+ optional google.protobuf.Timestamp to = 4;
130
+ int64 limit = 5;
131
+ int64 offset = 6;
132
+ }
133
+
134
+ message GetCreditBizPaidOrdersWithServiceDetailResponse {
135
+ repeated PaidOrder data = 1;
136
+ repeated ChildAccountInfo child_accounts = 2;
137
+ int64 total_orders = 3;
138
+ int64 total_amount = 4;
139
+ }
140
+
141
+ message ChildAccountInfo {
142
+ int64 account_id = 1;
143
+ string phone = 2;
144
+ string name = 3;
145
+ }
146
+
147
+ message GetCreditBizCostWithParamsRequest {
148
+ int64 parent_account_id = 1;
149
+ int64 child_account_id = 2;
150
+ optional google.protobuf.Timestamp from = 3;
151
+ optional google.protobuf.Timestamp to = 4;
152
+ int64 limit = 5;
153
+ int64 offset = 6;
154
+ string child_account_ids = 7;
155
+ }
156
+
157
+ message GetCreditBizCostWithParamsResponse {
158
+ BizCost cost = 1;
159
+ repeated ChildAccountWithExpiredDate staffs = 2;
160
+ int64 number_of_childs = 3;
161
+ }
162
+
163
+ message BizCost {
164
+ int64 total = 1;
165
+ int64 parent = 2;
166
+ int64 staff = 3;
167
+ }
168
+
169
+ message ChildAccountWithExpiredDate {
170
+ int64 account_id = 1;
171
+ string status = 2;
172
+ string expired_at = 3;
173
+ string name = 4;
174
+ string phone = 5;
175
+ int64 amount = 6;
176
+ }
177
+
178
+ message PaidOrderWithDetailServiceParam {
179
+ int64 order_id = 1;
180
+ int64 account_id = 2;
181
+ string phone = 3;
182
+ string order_status = 4;
183
+ string order_value = 5;
184
+ string payment_method = 6;
185
+ string transaction_id = 7;
186
+ string order_created = 8;
187
+ string paid_date = 9;
188
+ string closed_date = 10;
189
+ string order_type = 11;
190
+ int64 number_of_services = 12;
191
+ int64 failed_order_id = 13;
192
+ repeated ServiceIdWithDetailParam services = 14;
193
+
194
+ }
195
+
196
+ message ServiceIdWithDetailParam {
197
+ int64 service_id = 1;
198
+ int64 category_id = 2;
199
+ int64 duration = 3;
200
+ string phone = 4;
201
+ string type = 5;
202
+ string shop_alias = 6;
203
+ int64 subscription_id = 7;
204
+ int64 ad_id = 8;
205
+ int64 price = 9;
206
+ }
207
+
208
+
209
+ message GetListOrdersByAccountIdAndOrderTypeRequest {
210
+ int64 limit = 1 [(validate.rules).int64.gt = 0];
211
+ int64 offset = 2 [(validate.rules).int64.gte = 0];
212
+ int64 account_id = 3 [(validate.rules).int64.gt = 0];
213
+ repeated string order_type = 4;
214
+ }
215
+
216
+ message GetListOrdersByAccountIdAndOrderTypeResponse {
217
+ repeated PaidOrderWithDetailServiceParam data = 1;
218
+ }
219
+
220
+ message GetListServiceTypeToFilterBORequest {}
221
+
222
+ message GetListServiceTypeToFilterBOResponse {
223
+ repeated string data = 1;
224
+ }