@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.
- package/cart_service-LogicUniRevOrderCartService_connectquery.d.ts +88 -0
- package/cart_service-LogicUniRevOrderCartService_connectquery.js +131 -0
- package/cart_service.proto +108 -0
- package/cart_service_connect.d.ts +80 -0
- package/cart_service_connect.js +80 -0
- package/cart_service_pb.d.ts +525 -0
- package/cart_service_pb.js +194 -0
- package/change_order_status.proto +110 -0
- package/change_order_status_pb.d.ts +494 -0
- package/change_order_status_pb.js +163 -0
- package/invoice.proto +565 -0
- package/invoice_entities.proto +205 -0
- package/invoice_entities_pb.d.ts +414 -0
- package/invoice_entities_pb.js +113 -0
- package/invoice_pb.d.ts +2875 -0
- package/invoice_pb.js +917 -0
- package/invoice_service-LogicUniRevOrderInvoiceService_connectquery.d.ts +238 -0
- package/invoice_service-LogicUniRevOrderInvoiceService_connectquery.js +371 -0
- package/invoice_service.proto +240 -0
- package/invoice_service_connect.d.ts +215 -0
- package/invoice_service_connect.js +215 -0
- package/onbehalf_service-LogicUniRevOrderOnBehalfService_connectquery.d.ts +108 -0
- package/onbehalf_service-LogicUniRevOrderOnBehalfService_connectquery.js +163 -0
- package/onbehalf_service.proto +355 -0
- package/onbehalf_service_connect.d.ts +98 -0
- package/onbehalf_service_connect.js +98 -0
- package/onbehalf_service_pb.d.ts +1789 -0
- package/onbehalf_service_pb.js +568 -0
- package/order_entities.proto +75 -0
- package/order_entities_pb.d.ts +366 -0
- package/order_entities_pb.js +111 -0
- package/order_history_order_service_detail.proto +485 -0
- package/order_history_order_service_detail_pb.d.ts +2599 -0
- package/order_history_order_service_detail_pb.js +768 -0
- package/order_history_paid_order.proto +224 -0
- package/order_history_paid_order_pb.d.ts +1139 -0
- package/order_history_paid_order_pb.js +343 -0
- package/order_history_revamp.proto +107 -0
- package/order_history_revamp_pb.d.ts +577 -0
- package/order_history_revamp_pb.js +164 -0
- package/order_info.proto +74 -0
- package/order_info_pb.d.ts +381 -0
- package/order_info_pb.js +138 -0
- package/package.json +10 -0
- package/paid_product.proto +94 -0
- package/paid_product_order.proto +430 -0
- package/paid_product_order_pb.d.ts +2120 -0
- package/paid_product_order_pb.js +698 -0
- package/paid_product_pb.d.ts +287 -0
- package/paid_product_pb.js +105 -0
- package/rabbit_mq.proto +69 -0
- package/rabbit_mq_pb.d.ts +251 -0
- package/rabbit_mq_pb.js +94 -0
- package/refund_order.proto +195 -0
- package/refund_order_pb.d.ts +1030 -0
- package/refund_order_pb.js +359 -0
- package/scripts/modify_package_json.js +50 -0
- package/service-LogicUniRevOrderService_connectquery.d.ts +638 -0
- package/service-LogicUniRevOrderService_connectquery.js +1014 -0
- package/service.proto +179 -0
- package/service_connect.d.ts +578 -0
- package/service_connect.js +578 -0
package/invoice.proto
ADDED
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package ct_logic_uni_rev_order.v1;
|
|
4
|
+
|
|
5
|
+
// import "google/protobuf/timestamp.proto";
|
|
6
|
+
import "ct-logic-uni-rev-order/v1/invoice_entities.proto";
|
|
7
|
+
import "validate/validate.proto";
|
|
8
|
+
import "google/protobuf/timestamp.proto";
|
|
9
|
+
|
|
10
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-order;pb";
|
|
11
|
+
|
|
12
|
+
message FullInvoice {
|
|
13
|
+
Invoice invoice = 1;
|
|
14
|
+
InvoiceType invoice_type = 2;
|
|
15
|
+
Invoicee invoicee = 3;
|
|
16
|
+
repeated Order orders = 4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message GetFullInvoiceResponse {
|
|
20
|
+
repeated FullInvoice full_invoices = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message InvoiceAndOrderReq {
|
|
24
|
+
int64 order_id = 1 [(validate.rules).int64 = {
|
|
25
|
+
gte: 1,
|
|
26
|
+
ignore_empty: true
|
|
27
|
+
}];
|
|
28
|
+
Invoicee invoicee = 2;
|
|
29
|
+
string requester = 3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message IssuableOrder {
|
|
33
|
+
int64 order_id = 1 [(validate.rules).int64 = {gte: 1}];
|
|
34
|
+
Invoicee invoicee = 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message EInvoiceSettingConfig {
|
|
38
|
+
string pattern_number = 1;
|
|
39
|
+
string pattern_sign = 2;
|
|
40
|
+
string invoice_type_id = 3;
|
|
41
|
+
string invoice_type_name = 4;
|
|
42
|
+
int64 modify_date = 5;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message EInvoiceSetting {
|
|
46
|
+
repeated string payment_method = 1;
|
|
47
|
+
string key = 2;
|
|
48
|
+
bool status = 3;
|
|
49
|
+
EInvoiceSettingConfig config = 4;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message EInvoiceOrderDB {
|
|
53
|
+
int64 id = 1;
|
|
54
|
+
string invoice_id = 2;
|
|
55
|
+
int64 account_id = 3;
|
|
56
|
+
string tax_id = 4;
|
|
57
|
+
string bank_id = 5;
|
|
58
|
+
string company_name = 6;
|
|
59
|
+
string invoice_address = 7;
|
|
60
|
+
string invoice_email = 8;
|
|
61
|
+
string invoice_phone = 9;
|
|
62
|
+
int64 invoice_amount = 10;
|
|
63
|
+
string payment_method = 11;
|
|
64
|
+
string payment_code = 12;
|
|
65
|
+
string paid_date = 13;
|
|
66
|
+
string addition_params = 14;
|
|
67
|
+
bool is_require_invoice = 15;
|
|
68
|
+
int64 created_date = 16;
|
|
69
|
+
string error_text = 17;
|
|
70
|
+
string invoice_setting_key = 18;
|
|
71
|
+
string invoice_sign = 19;
|
|
72
|
+
int64 shard_paid_date = 20;
|
|
73
|
+
int64 failed_order_id = 21;
|
|
74
|
+
bool is_cs_request = 22;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message GetFullInvoicesForCSRequest {
|
|
78
|
+
int64 start_date = 1;
|
|
79
|
+
int64 end_date = 2;
|
|
80
|
+
string key = 3;
|
|
81
|
+
int64 page = 4;
|
|
82
|
+
int64 limit = 5;
|
|
83
|
+
bool load_issued_invoice_only = 6;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message ResponseInvoiceForCS {
|
|
87
|
+
int64 order_id = 1;
|
|
88
|
+
string invoice_id = 2;
|
|
89
|
+
int64 account_id = 3;
|
|
90
|
+
string tax_id = 4;
|
|
91
|
+
string company_name = 5;
|
|
92
|
+
string invoice_address = 6;
|
|
93
|
+
string invoice_email = 7;
|
|
94
|
+
string invoice_phone = 8;
|
|
95
|
+
int64 invoice_amount = 9;
|
|
96
|
+
string payment_method = 10;
|
|
97
|
+
string payment_code = 11;
|
|
98
|
+
string paid_date = 12;
|
|
99
|
+
string sign = 13;
|
|
100
|
+
string invoice_settings_key = 14;
|
|
101
|
+
string created_at = 15;
|
|
102
|
+
int64 tax_amount = 16;
|
|
103
|
+
int64 net_amount = 17;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message GetFullInvoicesForCSResponse {
|
|
107
|
+
repeated ResponseInvoiceForCS data = 1;
|
|
108
|
+
GetAllInvoiceTypeResponse invoice_settings = 2;
|
|
109
|
+
int64 offset = 3;
|
|
110
|
+
int64 limit = 4;
|
|
111
|
+
int64 total = 5;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message GetOrdersByDateRequest {
|
|
115
|
+
int64 start_date = 1;
|
|
116
|
+
int64 end_date = 2;
|
|
117
|
+
int64 page = 3;
|
|
118
|
+
int64 limit = 4;
|
|
119
|
+
string payment_method = 5;
|
|
120
|
+
bool load_issued_invoice_only = 6;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message RespInvoice {
|
|
124
|
+
string invoice_id = 1;
|
|
125
|
+
string invoice_date = 2;
|
|
126
|
+
int64 invoice_amount = 3;
|
|
127
|
+
int64 number_of_order = 4;
|
|
128
|
+
string issue_date = 5;
|
|
129
|
+
int64 tax_amount = 6;
|
|
130
|
+
int64 net_amount = 7;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
message GetOrdersByDateResponse {
|
|
134
|
+
repeated RespInvoice data = 1;
|
|
135
|
+
int64 offset = 2;
|
|
136
|
+
int64 limit = 3;
|
|
137
|
+
int64 total = 4;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message IssueCombinedInvoiceByDateRequest {
|
|
141
|
+
string publish_date = 1;
|
|
142
|
+
string invoice_key = 2;
|
|
143
|
+
string logged_user = 3;
|
|
144
|
+
string require_from = 4;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message IssueCombinedInvoiceByDateResponse {
|
|
148
|
+
string invoice_id = 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message GetAllInvoiceTypeRequest {}
|
|
152
|
+
|
|
153
|
+
message GetAllInvoiceTypeResponse {
|
|
154
|
+
EInvoiceSetting group_invoice = 1;
|
|
155
|
+
EInvoiceSetting require_invoice = 2;
|
|
156
|
+
EInvoiceSetting manual_invoice = 3;
|
|
157
|
+
EInvoiceSetting econtract_invoice = 4;
|
|
158
|
+
EInvoiceSetting internal_invoice = 5;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message InputSubInvoiceSetting {
|
|
162
|
+
string pattern_number = 1;
|
|
163
|
+
string pattern_sign = 2;
|
|
164
|
+
string modify_user_id = 3;
|
|
165
|
+
string invoicestype_id = 4;
|
|
166
|
+
string invoice_type_name = 5;
|
|
167
|
+
string activity_name = 6;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
message UpdateInvoiceTypeRequest {
|
|
171
|
+
InputSubInvoiceSetting config = 1;
|
|
172
|
+
bool status = 2;
|
|
173
|
+
string key = 3;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
message UpdateInvoiceTypeResponse {
|
|
177
|
+
bool success = 1;
|
|
178
|
+
string error = 2;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message GetInvoiceRequest {
|
|
182
|
+
string id = 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
message GetInvoiceResponse {
|
|
186
|
+
string id = 1;
|
|
187
|
+
int64 number_of_orders = 2;
|
|
188
|
+
int64 account_id = 3;
|
|
189
|
+
string tax_id = 4;
|
|
190
|
+
string company_name = 5;
|
|
191
|
+
string invoice_id = 6;
|
|
192
|
+
string invoice_address = 7;
|
|
193
|
+
string invoice_email = 8;
|
|
194
|
+
string invoice_phone = 9;
|
|
195
|
+
int64 invoice_amount = 10;
|
|
196
|
+
string paid_date = 11;
|
|
197
|
+
string addition_params = 12;
|
|
198
|
+
string invoice_settings_key = 13;
|
|
199
|
+
int64 created_date = 14;
|
|
200
|
+
string invoice_sign = 15;
|
|
201
|
+
int64 shard_create_date = 16;
|
|
202
|
+
int64 tax_amount = 17;
|
|
203
|
+
int64 net_amount = 18;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
message IssueInvoiceForOrderRequest {
|
|
207
|
+
int64 order_id = 1;
|
|
208
|
+
string company_name = 2;
|
|
209
|
+
string tax = 3;
|
|
210
|
+
string tax_id = 4;
|
|
211
|
+
string company_address = 5;
|
|
212
|
+
string email = 6;
|
|
213
|
+
string activity_name = 7;
|
|
214
|
+
string logged_user = 8;
|
|
215
|
+
string require_from = 9;
|
|
216
|
+
bool is_cs_request = 10;
|
|
217
|
+
int64 account_id = 11;
|
|
218
|
+
string buyer_name = 12;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message IssueInvoiceForOrderResponse {
|
|
222
|
+
string invoice_id = 1;
|
|
223
|
+
string invoice_code = 2;
|
|
224
|
+
string error = 3;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
message AddInvoiceRequest {
|
|
228
|
+
string id = 1;
|
|
229
|
+
int64 order_id = 2;
|
|
230
|
+
string company_name = 3;
|
|
231
|
+
string tax_id = 4;
|
|
232
|
+
string company_address = 5;
|
|
233
|
+
string email = 6;
|
|
234
|
+
string invoice_settings_key = 7;
|
|
235
|
+
string activity_name = 8;
|
|
236
|
+
string logged_user = 9;
|
|
237
|
+
string require_from = 10;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message AddInvoiceResponse {
|
|
241
|
+
string status = 1;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message GetInvoiceHistoriesRequest {
|
|
245
|
+
int64 page = 1;
|
|
246
|
+
int64 limit = 2;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
message EInvoiceLogStruct {
|
|
250
|
+
string activity_name = 1;
|
|
251
|
+
string status = 2;
|
|
252
|
+
string old_info = 3;
|
|
253
|
+
string new_info = 4;
|
|
254
|
+
int64 created_date = 5;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
message GetInvoiceHistoriesResponse {
|
|
258
|
+
repeated EInvoiceLogStruct data = 1;
|
|
259
|
+
int64 offset = 2;
|
|
260
|
+
int64 limit = 3;
|
|
261
|
+
int64 total = 4;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
message ValidateIssuableOrdersRequest {
|
|
265
|
+
repeated ImportInvoicesReq invoices = 1;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
message ImportInvoicesReq {
|
|
269
|
+
int64 order_id = 1;
|
|
270
|
+
string company_name = 2;
|
|
271
|
+
string tax = 3;
|
|
272
|
+
string company_address = 4;
|
|
273
|
+
string email = 5;
|
|
274
|
+
string phone = 6;
|
|
275
|
+
string status = 7;
|
|
276
|
+
string message = 8;
|
|
277
|
+
string sign = 9;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
message ValidateIssuableOrdersResponse {
|
|
281
|
+
repeated ImportInvoicesReq data = 1;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
message GetFullInvoicesRequest {
|
|
285
|
+
int64 start_date = 1;
|
|
286
|
+
int64 end_date = 2;
|
|
287
|
+
string paid_date = 3;
|
|
288
|
+
string invoice_id = 4;
|
|
289
|
+
int64 order_id = 5;
|
|
290
|
+
bool is_require_invoice = 6;
|
|
291
|
+
string key = 7;
|
|
292
|
+
string payment_method = 8;
|
|
293
|
+
int64 page = 9;
|
|
294
|
+
int64 limit = 10;
|
|
295
|
+
bool load_issued_invoice_only = 11;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
message ResponseEInvoiceOrder {
|
|
299
|
+
int64 id = 1;
|
|
300
|
+
string invoice_id = 2;
|
|
301
|
+
int64 account_id = 3;
|
|
302
|
+
string tax_id = 4;
|
|
303
|
+
string bank_id = 5;
|
|
304
|
+
string company_name = 6;
|
|
305
|
+
string invoice_address = 7;
|
|
306
|
+
string invoice_email = 8;
|
|
307
|
+
string invoice_phone = 9;
|
|
308
|
+
int64 invoice_amount = 10;
|
|
309
|
+
string payment_method = 11;
|
|
310
|
+
string payment_code = 12;
|
|
311
|
+
string paid_date = 13;
|
|
312
|
+
string addition_params = 14;
|
|
313
|
+
bool is_require_invoice = 15;
|
|
314
|
+
int64 created_date = 16;
|
|
315
|
+
string error_text = 17;
|
|
316
|
+
string invoice_setting_key = 18;
|
|
317
|
+
string invoice_sign = 19;
|
|
318
|
+
int64 shard_paid_date = 20;
|
|
319
|
+
int64 failed_order_id = 21;
|
|
320
|
+
bool is_cs_request = 22;
|
|
321
|
+
int64 order_id = 23;
|
|
322
|
+
int64 tax_amount = 24;
|
|
323
|
+
int64 net_amount = 25;
|
|
324
|
+
string invoice_status = 26;
|
|
325
|
+
string buyer_name = 27;
|
|
326
|
+
string invoice_status_desc = 28;
|
|
327
|
+
string invoice_prefix = 29;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
message GetFullInvoicesResponse {
|
|
331
|
+
repeated ResponseEInvoiceOrder data = 1;
|
|
332
|
+
GetAllInvoiceTypeResponse invoice_settings = 2;
|
|
333
|
+
int64 offset = 3;
|
|
334
|
+
int64 limit = 4;
|
|
335
|
+
int64 total = 5;
|
|
336
|
+
}
|
|
337
|
+
message GetInvoiceeRequest {
|
|
338
|
+
string account_id = 1;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
message OpapiInvoiceByAccount {
|
|
342
|
+
string company_address = 1;
|
|
343
|
+
string company_name = 2;
|
|
344
|
+
string company_phone = 3;
|
|
345
|
+
string company_taxcode = 4;
|
|
346
|
+
string company_email = 5;
|
|
347
|
+
int64 account_id = 6;
|
|
348
|
+
string buyer_name = 7;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
message GetInvoiceeResponse {
|
|
352
|
+
OpapiInvoiceByAccount invoicee = 1;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
message InsertInvoiceForOrderRequest {
|
|
356
|
+
int64 account_id = 1;
|
|
357
|
+
int64 order_id = 2;
|
|
358
|
+
OpapiInvoiceByAccount params = 3;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
message InsertInvoiceForOrderResponse {
|
|
362
|
+
string id = 1; // invoicee id
|
|
363
|
+
string error = 2;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
message GetInvoiceeByOrderRequest {
|
|
367
|
+
int64 order_id = 1;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
message OxOrderExtendInfo {
|
|
371
|
+
string id = 1;
|
|
372
|
+
int64 account_id = 2;
|
|
373
|
+
int64 order_id = 3;
|
|
374
|
+
string params = 4;
|
|
375
|
+
string invoice_account_id = 5;
|
|
376
|
+
int64 created_date = 6;
|
|
377
|
+
int64 updated_date = 7;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
message GetInvoiceeByOrderResponse {
|
|
381
|
+
OxOrderExtendInfo invoicee = 1;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
message GetInvoiceesAndOrdersRequest {
|
|
385
|
+
int64 order_id = 1;
|
|
386
|
+
int64 offset = 2;
|
|
387
|
+
int64 limit = 3;
|
|
388
|
+
int64 start_at = 4;
|
|
389
|
+
int64 end_at = 5;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
message OxOrderExtendInfoExtended {
|
|
393
|
+
int64 account_id = 1;
|
|
394
|
+
int64 order_id = 2;
|
|
395
|
+
string invoice_account_id = 3;
|
|
396
|
+
string company_address = 4;
|
|
397
|
+
string company_name = 5;
|
|
398
|
+
string company_phone = 6;
|
|
399
|
+
string company_taxcode = 7;
|
|
400
|
+
string company_email = 8;
|
|
401
|
+
string buyer_name = 9;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
message GetInvoiceesAndOrdersResponse {
|
|
405
|
+
repeated OxOrderExtendInfoExtended invoicees = 1;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
message IssueInvoiceForOrdersRequest {
|
|
409
|
+
repeated ImportInvoicesReq invoices = 1;
|
|
410
|
+
string required_from = 2;
|
|
411
|
+
string logged_user = 3;
|
|
412
|
+
bool is_cs_request = 4;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
message IssueInvoiceForOrdersResponse {
|
|
416
|
+
int64 last_order_id = 1;
|
|
417
|
+
string status = 2;
|
|
418
|
+
string message = 3;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
message SaveInvoiceeRequest {
|
|
422
|
+
string company_address = 1;
|
|
423
|
+
string company_name = 2;
|
|
424
|
+
string company_phone = 3;
|
|
425
|
+
string company_taxcode = 4;
|
|
426
|
+
string company_email = 5;
|
|
427
|
+
int64 account_id = 6;
|
|
428
|
+
string buyer_name = 7;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
message SaveInvoiceeResponse {
|
|
432
|
+
string id = 1;
|
|
433
|
+
string status = 2;
|
|
434
|
+
string error = 3;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
message InvoiceCheckIssuanceRequest {
|
|
438
|
+
repeated int64 order_ids = 1;
|
|
439
|
+
int64 account_id = 2;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
message InvoiceCheckIssuance {
|
|
443
|
+
int64 order_id = 1;
|
|
444
|
+
string status = 2;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message InvoiceCheckIssuanceResponse {
|
|
448
|
+
repeated InvoiceCheckIssuance data = 1;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
message FindFullInvoicesByCondsRequest {
|
|
452
|
+
string invoice_type_name = 1 [(validate.rules).string = {
|
|
453
|
+
min_len: 1,
|
|
454
|
+
pattern: "^([0-9A-Za-z][_ ]?)+[0-9A-Za-z]$",
|
|
455
|
+
ignore_empty: true
|
|
456
|
+
}];
|
|
457
|
+
string payment_method = 2 [(validate.rules).string = {
|
|
458
|
+
min_len: 1,
|
|
459
|
+
max_len: 255,
|
|
460
|
+
ignore_empty: true
|
|
461
|
+
}];
|
|
462
|
+
int64 page = 3 [(validate.rules).int64 = {
|
|
463
|
+
gte: 1,
|
|
464
|
+
ignore_empty: true
|
|
465
|
+
}];
|
|
466
|
+
int64 page_size = 4 [(validate.rules).int64 = {
|
|
467
|
+
gte: 1,
|
|
468
|
+
ignore_empty: true
|
|
469
|
+
}];
|
|
470
|
+
google.protobuf.Timestamp from_date = 5;
|
|
471
|
+
google.protobuf.Timestamp to_date = 6;
|
|
472
|
+
google.protobuf.Timestamp paid_date = 7;
|
|
473
|
+
repeated string requesters = 8;
|
|
474
|
+
bool load_issued_invoice_only = 9;
|
|
475
|
+
int64 account_id = 10;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
message FindFullInvoicesByCondsResponse {
|
|
479
|
+
repeated FullInvoice full_invoices = 1;
|
|
480
|
+
int64 count_total = 2;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
message GetInvoiceValidationRulesRequest {
|
|
484
|
+
int64 account_id = 1;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
message InvoiceValidationBasicRule {
|
|
488
|
+
string field = 1;
|
|
489
|
+
bool is_required = 2;
|
|
490
|
+
int64 min_length = 3;
|
|
491
|
+
int64 max_length = 4;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
message GetInvoiceValidationRulesResponse {
|
|
495
|
+
repeated InvoiceValidationBasicRule basic_rules = 1;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
message InvoiceFormItem {
|
|
499
|
+
string field = 1;
|
|
500
|
+
string value = 2;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
message PreValidateInvoiceRequest {
|
|
504
|
+
repeated InvoiceFormItem payload = 1;
|
|
505
|
+
int64 account_id = 2;
|
|
506
|
+
int64 order_id = 3;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
message InvoiceFormItemValidationResponse {
|
|
510
|
+
string field = 1;
|
|
511
|
+
bool is_valid = 2;
|
|
512
|
+
string message = 3;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
message PreValidateInvoiceResponse {
|
|
516
|
+
repeated InvoiceFormItemValidationResponse data = 1;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
message ExportInvoicesByDateRequest {
|
|
521
|
+
int64 next_token = 1; // This token represents order_id - the last order_id from previous call, and func similarly to an offset.
|
|
522
|
+
google.protobuf.Timestamp from_date = 2;
|
|
523
|
+
google.protobuf.Timestamp to_date = 3;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
message ExportInvoicesByDateResponse {
|
|
527
|
+
repeated OrderWithInvoiceExport full_invoices = 1;
|
|
528
|
+
int64 count_total = 2;
|
|
529
|
+
int64 next_token = 3;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
message OrderWithInvoiceExport {
|
|
533
|
+
int64 account_id = 1 [(validate.rules).int64 = {
|
|
534
|
+
gte: 1
|
|
535
|
+
}];
|
|
536
|
+
int64 order_id = 2 [(validate.rules).int64 = {
|
|
537
|
+
gte: 1,
|
|
538
|
+
ignore_empty: true
|
|
539
|
+
}];
|
|
540
|
+
int64 amount = 3 [(validate.rules).int64 = {
|
|
541
|
+
gte: 0
|
|
542
|
+
}];
|
|
543
|
+
int64 tax_amount = 4 [(validate.rules).int64 = {
|
|
544
|
+
gte: 0
|
|
545
|
+
}];
|
|
546
|
+
int64 net_amount = 5 [(validate.rules).int64 = {
|
|
547
|
+
gte: 0
|
|
548
|
+
}];
|
|
549
|
+
google.protobuf.Timestamp paid_date = 6;
|
|
550
|
+
google.protobuf.Timestamp created_at = 7;
|
|
551
|
+
string payment_method = 8 [(validate.rules).string = {
|
|
552
|
+
min_len: 1,
|
|
553
|
+
max_len: 255,
|
|
554
|
+
ignore_empty: true
|
|
555
|
+
}];
|
|
556
|
+
string bank_id = 9 [(validate.rules).string = {
|
|
557
|
+
min_len: 1,
|
|
558
|
+
max_len: 255,
|
|
559
|
+
ignore_empty: true
|
|
560
|
+
}];
|
|
561
|
+
string transaction_id = 10; // payment vendor transaction_id
|
|
562
|
+
string invoice_id = 11;
|
|
563
|
+
string invoice_sign = 12;
|
|
564
|
+
string invoice_prefix = 13;
|
|
565
|
+
}
|