@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,205 @@
1
+ syntax = "proto3";
2
+
3
+ package ct_logic_uni_rev_order.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+ import "validate/validate.proto";
7
+
8
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-order;pb";
9
+
10
+ message Invoicee {
11
+ string id = 1 [(validate.rules).string = {
12
+ uuid: true,
13
+ ignore_empty: true
14
+ }];
15
+ string name = 2;
16
+ string address = 3;
17
+ string email = 4 [(validate.rules).string = {
18
+ min_len: 1,
19
+ max_len: 255,
20
+ ignore_empty: true
21
+ }];
22
+ string phone = 5 [(validate.rules).string = {
23
+ min_len: 1,
24
+ max_len: 255,
25
+ ignore_empty: true
26
+ }];
27
+ string tax_code = 6 [(validate.rules).string = {
28
+ ignore_empty: true,
29
+ }];
30
+ int64 account_id = 7;
31
+ google.protobuf.Timestamp created_at = 8;
32
+ string buyer_name = 9;
33
+ }
34
+
35
+ message InvoiceType {
36
+ int64 id = 1 [(validate.rules).int64 = {
37
+ gte: 1,
38
+ ignore_empty: true
39
+ }];
40
+ string name = 2 [(validate.rules).string = {
41
+ min_len: 1,
42
+ max_len: 255,
43
+ }];
44
+ bool is_active = 3;
45
+ string allowed_payment_methods = 4;
46
+ string pattern_number = 5 [(validate.rules).string = {
47
+ min_len: 1,
48
+ max_len: 255,
49
+ ignore_empty: true
50
+ }];
51
+ string pattern_sign = 6 [(validate.rules).string = {
52
+ min_len: 1,
53
+ max_len: 255,
54
+ pattern: "^([0-9A-Za-zÀ-ž][_ ]?)+[0-9A-Za-zÀ-ž]$",
55
+ ignore_empty: true
56
+ }];
57
+ google.protobuf.Timestamp created_at = 7;
58
+ google.protobuf.Timestamp updated_at = 8;
59
+ int64 invoice_year = 9;
60
+ string invoice_prefix = 10;
61
+ }
62
+
63
+ message Order {
64
+ int64 id = 1 [(validate.rules).int64 = {
65
+ gte: 1,
66
+ ignore_empty: true
67
+ }];
68
+ string status = 2 [(validate.rules).string = {
69
+ in: [
70
+ "new",
71
+ "paid",
72
+ "cancelled"
73
+ ]
74
+ }];
75
+ int64 amount = 3 [(validate.rules).int64 = {
76
+ gte: 0
77
+ }];
78
+ string invoice_id = 4;
79
+ int64 account_id = 5 [(validate.rules).int64 = {
80
+ gte: 1
81
+ }];
82
+ string promotion_id = 6 [(validate.rules).string = {
83
+ uuid: true,
84
+ ignore_empty: true
85
+ }];
86
+ string payment_code = 7 [(validate.rules).string = {
87
+ min_len: 1,
88
+ max_len: 255,
89
+ ignore_empty: true
90
+ }];
91
+ string payment_method = 8 [(validate.rules).string = {
92
+ min_len: 1,
93
+ max_len: 255,
94
+ ignore_empty: true
95
+ }];
96
+ string bank_id = 9 [(validate.rules).string = {
97
+ min_len: 1,
98
+ max_len: 255,
99
+ ignore_empty: true
100
+ }];
101
+ int64 refunded_id = 10 [(validate.rules).int64 = {
102
+ gte: 1,
103
+ ignore_empty: true
104
+ }];
105
+ int64 econtract_id = 11 [(validate.rules).int64 = {
106
+ gte: 1,
107
+ ignore_empty: true
108
+ }];
109
+ string requester = 12 [(validate.rules).string = {
110
+ in: [
111
+ "user",
112
+ "cs",
113
+ "system"
114
+ ]
115
+ }];
116
+ google.protobuf.Timestamp paid_date = 13;
117
+ google.protobuf.Timestamp created_at = 14;
118
+ google.protobuf.Timestamp updated_at = 15;
119
+ string transaction_id = 16; // payment vendor transaction_id
120
+ string vendor_order_id = 17; // order_id to be sent to vendor
121
+ int64 tax_amount = 18 [(validate.rules).int64 = {
122
+ gte: 0
123
+ }];
124
+ int64 net_amount = 19 [(validate.rules).int64 = {
125
+ gte: 0
126
+ }];
127
+ }
128
+
129
+ message Invoice {
130
+ string id = 1 [(validate.rules).string = {
131
+ uuid: true,
132
+ ignore_empty: true
133
+ }];
134
+ string code = 2 [(validate.rules).string = {
135
+ min_len: 1,
136
+ max_len: 255,
137
+ ignore_empty: true
138
+ }];
139
+ string status = 3 [(validate.rules).string = {
140
+ in: [
141
+ "new",
142
+ "issued",
143
+ "cancelled"
144
+ ]
145
+ }];
146
+ int64 amount = 4 [(validate.rules).int64 = {
147
+ gte: 0
148
+ }];
149
+ string invoice_type_name = 5 [(validate.rules).string = {
150
+ min_len: 1,
151
+ max_len: 255,
152
+ ignore_empty: true
153
+ }];
154
+ string invoicee_id = 6 [(validate.rules).string = {
155
+ uuid: true,
156
+ min_len: 1
157
+ }];
158
+ string promotion_id = 7 [(validate.rules).string = {
159
+ uuid: true,
160
+ min_len: 1,
161
+ ignore_empty: true
162
+ }];
163
+ int64 order_count = 8 [(validate.rules).int64 = {
164
+ gte: 1
165
+ }];
166
+ int64 retry_count = 9 [(validate.rules).int64 = {
167
+ gte: 0
168
+ }];
169
+ string issued_error = 10;
170
+ google.protobuf.Timestamp invoice_date = 11;
171
+ google.protobuf.Timestamp issued_at = 12;
172
+ google.protobuf.Timestamp created_at = 13;
173
+ google.protobuf.Timestamp updated_at = 14;
174
+ int64 tax_amount = 15 [(validate.rules).int64 = {
175
+ gte: 0
176
+ }];
177
+ int64 net_amount = 16 [(validate.rules).int64 = {
178
+ gte: 0
179
+ }]; // include amount + service_fee + tax
180
+ }
181
+
182
+ message Promotion {
183
+ string id = 1 [(validate.rules).string = {
184
+ uuid: true,
185
+ ignore_empty: true
186
+ }];
187
+ string status = 2 [(validate.rules).string = {
188
+ in: [
189
+ "active",
190
+ "inactive",
191
+ "issued"
192
+ ]
193
+ }];
194
+ string external_id = 3 [(validate.rules).string = {
195
+ min_len: 1
196
+ }];
197
+ string external_type = 4 [(validate.rules).string = {
198
+ in: [
199
+ "dt","service"
200
+ ]
201
+ }];
202
+ string legal_code = 5;
203
+ google.protobuf.Timestamp created_at = 6;
204
+ google.protobuf.Timestamp updated_at = 7;
205
+ }
@@ -0,0 +1,414 @@
1
+ // @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
2
+ // @generated from file ct-logic-uni-rev-order/v1/invoice_entities.proto (package ct_logic_uni_rev_order.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from message ct_logic_uni_rev_order.v1.Invoicee
11
+ */
12
+ export declare class Invoicee extends Message<Invoicee> {
13
+ /**
14
+ * @generated from field: string id = 1;
15
+ */
16
+ id: string;
17
+
18
+ /**
19
+ * @generated from field: string name = 2;
20
+ */
21
+ name: string;
22
+
23
+ /**
24
+ * @generated from field: string address = 3;
25
+ */
26
+ address: string;
27
+
28
+ /**
29
+ * @generated from field: string email = 4;
30
+ */
31
+ email: string;
32
+
33
+ /**
34
+ * @generated from field: string phone = 5;
35
+ */
36
+ phone: string;
37
+
38
+ /**
39
+ * @generated from field: string tax_code = 6;
40
+ */
41
+ taxCode: string;
42
+
43
+ /**
44
+ * @generated from field: int64 account_id = 7;
45
+ */
46
+ accountId: bigint;
47
+
48
+ /**
49
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
50
+ */
51
+ createdAt?: Timestamp;
52
+
53
+ /**
54
+ * @generated from field: string buyer_name = 9;
55
+ */
56
+ buyerName: string;
57
+
58
+ constructor(data?: PartialMessage<Invoicee>);
59
+
60
+ static readonly runtime: typeof proto3;
61
+ static readonly typeName = "ct_logic_uni_rev_order.v1.Invoicee";
62
+ static readonly fields: FieldList;
63
+
64
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Invoicee;
65
+
66
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Invoicee;
67
+
68
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Invoicee;
69
+
70
+ static equals(a: Invoicee | PlainMessage<Invoicee> | undefined, b: Invoicee | PlainMessage<Invoicee> | undefined): boolean;
71
+ }
72
+
73
+ /**
74
+ * @generated from message ct_logic_uni_rev_order.v1.InvoiceType
75
+ */
76
+ export declare class InvoiceType extends Message<InvoiceType> {
77
+ /**
78
+ * @generated from field: int64 id = 1;
79
+ */
80
+ id: bigint;
81
+
82
+ /**
83
+ * @generated from field: string name = 2;
84
+ */
85
+ name: string;
86
+
87
+ /**
88
+ * @generated from field: bool is_active = 3;
89
+ */
90
+ isActive: boolean;
91
+
92
+ /**
93
+ * @generated from field: string allowed_payment_methods = 4;
94
+ */
95
+ allowedPaymentMethods: string;
96
+
97
+ /**
98
+ * @generated from field: string pattern_number = 5;
99
+ */
100
+ patternNumber: string;
101
+
102
+ /**
103
+ * @generated from field: string pattern_sign = 6;
104
+ */
105
+ patternSign: string;
106
+
107
+ /**
108
+ * @generated from field: google.protobuf.Timestamp created_at = 7;
109
+ */
110
+ createdAt?: Timestamp;
111
+
112
+ /**
113
+ * @generated from field: google.protobuf.Timestamp updated_at = 8;
114
+ */
115
+ updatedAt?: Timestamp;
116
+
117
+ /**
118
+ * @generated from field: int64 invoice_year = 9;
119
+ */
120
+ invoiceYear: bigint;
121
+
122
+ /**
123
+ * @generated from field: string invoice_prefix = 10;
124
+ */
125
+ invoicePrefix: string;
126
+
127
+ constructor(data?: PartialMessage<InvoiceType>);
128
+
129
+ static readonly runtime: typeof proto3;
130
+ static readonly typeName = "ct_logic_uni_rev_order.v1.InvoiceType";
131
+ static readonly fields: FieldList;
132
+
133
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvoiceType;
134
+
135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvoiceType;
136
+
137
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvoiceType;
138
+
139
+ static equals(a: InvoiceType | PlainMessage<InvoiceType> | undefined, b: InvoiceType | PlainMessage<InvoiceType> | undefined): boolean;
140
+ }
141
+
142
+ /**
143
+ * @generated from message ct_logic_uni_rev_order.v1.Order
144
+ */
145
+ export declare class Order extends Message<Order> {
146
+ /**
147
+ * @generated from field: int64 id = 1;
148
+ */
149
+ id: bigint;
150
+
151
+ /**
152
+ * @generated from field: string status = 2;
153
+ */
154
+ status: string;
155
+
156
+ /**
157
+ * @generated from field: int64 amount = 3;
158
+ */
159
+ amount: bigint;
160
+
161
+ /**
162
+ * @generated from field: string invoice_id = 4;
163
+ */
164
+ invoiceId: string;
165
+
166
+ /**
167
+ * @generated from field: int64 account_id = 5;
168
+ */
169
+ accountId: bigint;
170
+
171
+ /**
172
+ * @generated from field: string promotion_id = 6;
173
+ */
174
+ promotionId: string;
175
+
176
+ /**
177
+ * @generated from field: string payment_code = 7;
178
+ */
179
+ paymentCode: string;
180
+
181
+ /**
182
+ * @generated from field: string payment_method = 8;
183
+ */
184
+ paymentMethod: string;
185
+
186
+ /**
187
+ * @generated from field: string bank_id = 9;
188
+ */
189
+ bankId: string;
190
+
191
+ /**
192
+ * @generated from field: int64 refunded_id = 10;
193
+ */
194
+ refundedId: bigint;
195
+
196
+ /**
197
+ * @generated from field: int64 econtract_id = 11;
198
+ */
199
+ econtractId: bigint;
200
+
201
+ /**
202
+ * @generated from field: string requester = 12;
203
+ */
204
+ requester: string;
205
+
206
+ /**
207
+ * @generated from field: google.protobuf.Timestamp paid_date = 13;
208
+ */
209
+ paidDate?: Timestamp;
210
+
211
+ /**
212
+ * @generated from field: google.protobuf.Timestamp created_at = 14;
213
+ */
214
+ createdAt?: Timestamp;
215
+
216
+ /**
217
+ * @generated from field: google.protobuf.Timestamp updated_at = 15;
218
+ */
219
+ updatedAt?: Timestamp;
220
+
221
+ /**
222
+ * payment vendor transaction_id
223
+ *
224
+ * @generated from field: string transaction_id = 16;
225
+ */
226
+ transactionId: string;
227
+
228
+ /**
229
+ * order_id to be sent to vendor
230
+ *
231
+ * @generated from field: string vendor_order_id = 17;
232
+ */
233
+ vendorOrderId: string;
234
+
235
+ /**
236
+ * @generated from field: int64 tax_amount = 18;
237
+ */
238
+ taxAmount: bigint;
239
+
240
+ /**
241
+ * @generated from field: int64 net_amount = 19;
242
+ */
243
+ netAmount: bigint;
244
+
245
+ constructor(data?: PartialMessage<Order>);
246
+
247
+ static readonly runtime: typeof proto3;
248
+ static readonly typeName = "ct_logic_uni_rev_order.v1.Order";
249
+ static readonly fields: FieldList;
250
+
251
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Order;
252
+
253
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Order;
254
+
255
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Order;
256
+
257
+ static equals(a: Order | PlainMessage<Order> | undefined, b: Order | PlainMessage<Order> | undefined): boolean;
258
+ }
259
+
260
+ /**
261
+ * @generated from message ct_logic_uni_rev_order.v1.Invoice
262
+ */
263
+ export declare class Invoice extends Message<Invoice> {
264
+ /**
265
+ * @generated from field: string id = 1;
266
+ */
267
+ id: string;
268
+
269
+ /**
270
+ * @generated from field: string code = 2;
271
+ */
272
+ code: string;
273
+
274
+ /**
275
+ * @generated from field: string status = 3;
276
+ */
277
+ status: string;
278
+
279
+ /**
280
+ * @generated from field: int64 amount = 4;
281
+ */
282
+ amount: bigint;
283
+
284
+ /**
285
+ * @generated from field: string invoice_type_name = 5;
286
+ */
287
+ invoiceTypeName: string;
288
+
289
+ /**
290
+ * @generated from field: string invoicee_id = 6;
291
+ */
292
+ invoiceeId: string;
293
+
294
+ /**
295
+ * @generated from field: string promotion_id = 7;
296
+ */
297
+ promotionId: string;
298
+
299
+ /**
300
+ * @generated from field: int64 order_count = 8;
301
+ */
302
+ orderCount: bigint;
303
+
304
+ /**
305
+ * @generated from field: int64 retry_count = 9;
306
+ */
307
+ retryCount: bigint;
308
+
309
+ /**
310
+ * @generated from field: string issued_error = 10;
311
+ */
312
+ issuedError: string;
313
+
314
+ /**
315
+ * @generated from field: google.protobuf.Timestamp invoice_date = 11;
316
+ */
317
+ invoiceDate?: Timestamp;
318
+
319
+ /**
320
+ * @generated from field: google.protobuf.Timestamp issued_at = 12;
321
+ */
322
+ issuedAt?: Timestamp;
323
+
324
+ /**
325
+ * @generated from field: google.protobuf.Timestamp created_at = 13;
326
+ */
327
+ createdAt?: Timestamp;
328
+
329
+ /**
330
+ * @generated from field: google.protobuf.Timestamp updated_at = 14;
331
+ */
332
+ updatedAt?: Timestamp;
333
+
334
+ /**
335
+ * @generated from field: int64 tax_amount = 15;
336
+ */
337
+ taxAmount: bigint;
338
+
339
+ /**
340
+ * include amount + service_fee + tax
341
+ *
342
+ * @generated from field: int64 net_amount = 16;
343
+ */
344
+ netAmount: bigint;
345
+
346
+ constructor(data?: PartialMessage<Invoice>);
347
+
348
+ static readonly runtime: typeof proto3;
349
+ static readonly typeName = "ct_logic_uni_rev_order.v1.Invoice";
350
+ static readonly fields: FieldList;
351
+
352
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Invoice;
353
+
354
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Invoice;
355
+
356
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Invoice;
357
+
358
+ static equals(a: Invoice | PlainMessage<Invoice> | undefined, b: Invoice | PlainMessage<Invoice> | undefined): boolean;
359
+ }
360
+
361
+ /**
362
+ * @generated from message ct_logic_uni_rev_order.v1.Promotion
363
+ */
364
+ export declare class Promotion extends Message<Promotion> {
365
+ /**
366
+ * @generated from field: string id = 1;
367
+ */
368
+ id: string;
369
+
370
+ /**
371
+ * @generated from field: string status = 2;
372
+ */
373
+ status: string;
374
+
375
+ /**
376
+ * @generated from field: string external_id = 3;
377
+ */
378
+ externalId: string;
379
+
380
+ /**
381
+ * @generated from field: string external_type = 4;
382
+ */
383
+ externalType: string;
384
+
385
+ /**
386
+ * @generated from field: string legal_code = 5;
387
+ */
388
+ legalCode: string;
389
+
390
+ /**
391
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
392
+ */
393
+ createdAt?: Timestamp;
394
+
395
+ /**
396
+ * @generated from field: google.protobuf.Timestamp updated_at = 7;
397
+ */
398
+ updatedAt?: Timestamp;
399
+
400
+ constructor(data?: PartialMessage<Promotion>);
401
+
402
+ static readonly runtime: typeof proto3;
403
+ static readonly typeName = "ct_logic_uni_rev_order.v1.Promotion";
404
+ static readonly fields: FieldList;
405
+
406
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Promotion;
407
+
408
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Promotion;
409
+
410
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Promotion;
411
+
412
+ static equals(a: Promotion | PlainMessage<Promotion> | undefined, b: Promotion | PlainMessage<Promotion> | undefined): boolean;
413
+ }
414
+