@chotot/ct-logic-uni-rev-payment-v1 1.133.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/ad_service.proto +53 -0
- package/ad_service_pb.d.ts +248 -0
- package/ad_service_pb.js +99 -0
- package/cart.proto +122 -0
- package/cart_pb.d.ts +656 -0
- package/cart_pb.js +237 -0
- package/configuration.proto +147 -0
- package/configuration_pb.d.ts +716 -0
- package/configuration_pb.js +237 -0
- package/crepro_campaign.proto +277 -0
- package/crepro_campaign_pb.d.ts +1266 -0
- package/crepro_campaign_pb.js +436 -0
- package/crepro_code.proto +77 -0
- package/crepro_code_pb.d.ts +355 -0
- package/crepro_code_pb.js +130 -0
- package/crepro_log.proto +32 -0
- package/crepro_log_pb.d.ts +142 -0
- package/crepro_log_pb.js +51 -0
- package/crepro_redemption.proto +76 -0
- package/crepro_redemption_pb.d.ts +352 -0
- package/crepro_redemption_pb.js +119 -0
- package/dongtot.proto +758 -0
- package/dongtot_pb.d.ts +4169 -0
- package/dongtot_pb.js +1357 -0
- package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.d.ts +350 -0
- package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.js +551 -0
- package/dongtot_service.proto +154 -0
- package/dongtot_service_connect.d.ts +316 -0
- package/dongtot_service_connect.js +316 -0
- package/econtract.proto +675 -0
- package/econtract_pb.d.ts +3522 -0
- package/econtract_pb.js +1176 -0
- package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.d.ts +419 -0
- package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.js +673 -0
- package/econtract_service.proto +71 -0
- package/econtract_service_connect.d.ts +381 -0
- package/econtract_service_connect.js +381 -0
- package/fundiin.proto +53 -0
- package/fundiin_pb.d.ts +255 -0
- package/fundiin_pb.js +85 -0
- package/google_billing.proto +65 -0
- package/google_billing_pb.d.ts +372 -0
- package/google_billing_pb.js +146 -0
- package/iap.proto +53 -0
- package/iap_pb.d.ts +281 -0
- package/iap_pb.js +109 -0
- package/momo.proto +92 -0
- package/momo_pb.d.ts +481 -0
- package/momo_pb.js +150 -0
- package/napas.proto +110 -0
- package/napas_pb.d.ts +587 -0
- package/napas_pb.js +192 -0
- package/order.proto +81 -0
- package/order_pb.d.ts +372 -0
- package/order_pb.js +123 -0
- package/package.json +10 -0
- package/package.proto +382 -0
- package/package_pb.d.ts +1907 -0
- package/package_pb.js +621 -0
- package/payment_promotion.proto +170 -0
- package/payment_promotion_pb.d.ts +893 -0
- package/payment_promotion_pb.js +311 -0
- package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.d.ts +112 -0
- package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.js +171 -0
- package/payment_promotion_service.proto +73 -0
- package/payment_promotion_service_connect.d.ts +102 -0
- package/payment_promotion_service_connect.js +102 -0
- package/payoo.proto +55 -0
- package/payoo_pb.d.ts +282 -0
- package/payoo_pb.js +105 -0
- package/pricer.proto +154 -0
- package/pricer_pb.d.ts +823 -0
- package/pricer_pb.js +260 -0
- package/rabbit_mq.proto +51 -0
- package/rabbit_mq_pb.d.ts +257 -0
- package/rabbit_mq_pb.js +78 -0
- package/refund_order.proto +37 -0
- package/refund_order_pb.d.ts +184 -0
- package/refund_order_pb.js +63 -0
- package/scripts/modify_package_json.js +50 -0
- package/service-LogicUniRevPaymentService_connectquery.d.ts +1239 -0
- package/service-LogicUniRevPaymentService_connectquery.js +1968 -0
- package/service.proto +643 -0
- package/service_connect.d.ts +1120 -0
- package/service_connect.js +1120 -0
- package/subscription.proto +24 -0
- package/subscription_pb.d.ts +98 -0
- package/subscription_pb.js +37 -0
- package/template.proto +76 -0
- package/template_pb.d.ts +387 -0
- package/template_pb.js +140 -0
- package/transaction.proto +513 -0
- package/transaction_pb.d.ts +2717 -0
- package/transaction_pb.js +856 -0
- package/virtual_account.proto +265 -0
- package/virtual_account_pb.d.ts +1442 -0
- package/virtual_account_pb.js +478 -0
- package/zalopay.proto +78 -0
- package/zalopay_pb.d.ts +423 -0
- package/zalopay_pb.js +153 -0
package/econtract.proto
ADDED
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_payment.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
6
|
+
// import third party protos
|
|
7
|
+
import "validate/validate.proto";
|
|
8
|
+
|
|
9
|
+
// language specs
|
|
10
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
|
|
11
|
+
|
|
12
|
+
message Econtract {
|
|
13
|
+
int32 id = 1;
|
|
14
|
+
string phone = 2;
|
|
15
|
+
int32 order_id = 3;
|
|
16
|
+
int32 account_id = 4;
|
|
17
|
+
string created_user = 5;
|
|
18
|
+
string approved_user = 6;
|
|
19
|
+
int32 package_id = 7;
|
|
20
|
+
int64 amount = 8;
|
|
21
|
+
int64 amount_dongtot = 9;
|
|
22
|
+
string bank_id = 10;
|
|
23
|
+
string transaction_ref = 11;
|
|
24
|
+
string info = 12;
|
|
25
|
+
google.protobuf.Timestamp expiration_time = 13;
|
|
26
|
+
string contract_info = 14;
|
|
27
|
+
string contract_invoice = 15;
|
|
28
|
+
string contract_status = 16;
|
|
29
|
+
bool is_near_expire = 17;
|
|
30
|
+
string patch_info = 18;
|
|
31
|
+
string transfer_ref = 19;
|
|
32
|
+
string ct_bank_info = 20;
|
|
33
|
+
int32 vertical = 21;
|
|
34
|
+
string expiration_type = 22;
|
|
35
|
+
int32 usage_day = 23;
|
|
36
|
+
bool is_read = 24;
|
|
37
|
+
string contract_type = 25;
|
|
38
|
+
google.protobuf.Timestamp created_date = 26;
|
|
39
|
+
google.protobuf.Timestamp modified_date = 27;
|
|
40
|
+
string hash = 28;
|
|
41
|
+
int64 vnd_tax_price = 29;
|
|
42
|
+
int64 vnd_total_price = 30;
|
|
43
|
+
PostPaymentInfo post_payment_info = 31;
|
|
44
|
+
google.protobuf.Timestamp payment_expired_at = 32;
|
|
45
|
+
string payment_code = 33;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message CreateEcontractRequest {
|
|
49
|
+
string phone = 1;
|
|
50
|
+
int32 order_id = 2;
|
|
51
|
+
int32 account_id = 3;
|
|
52
|
+
string created_user = 4;
|
|
53
|
+
string approved_user = 5;
|
|
54
|
+
int32 package_id = 6;
|
|
55
|
+
int64 amount = 7;
|
|
56
|
+
int64 amount_dongtot = 8;
|
|
57
|
+
string bank_id = 9;
|
|
58
|
+
string transaction_ref = 10;
|
|
59
|
+
string info = 11;
|
|
60
|
+
google.protobuf.Timestamp expiration_time = 12;
|
|
61
|
+
string contract_info = 13;
|
|
62
|
+
string contract_invoice = 14;
|
|
63
|
+
string contract_status = 15 [(validate.rules).string = {
|
|
64
|
+
in: [
|
|
65
|
+
"waiting",
|
|
66
|
+
"pending",
|
|
67
|
+
"approved",
|
|
68
|
+
"bank_pending",
|
|
69
|
+
"failed",
|
|
70
|
+
"cancelled",
|
|
71
|
+
"deleted",
|
|
72
|
+
"processing_payment"
|
|
73
|
+
]
|
|
74
|
+
}];
|
|
75
|
+
bool is_near_expire = 16;
|
|
76
|
+
string patch_info = 17;
|
|
77
|
+
string transfer_ref = 18;
|
|
78
|
+
string ct_bank_info = 19;
|
|
79
|
+
string ct_bank_status = 20;
|
|
80
|
+
int32 vertical = 21;
|
|
81
|
+
string expiration_type = 22 [(validate.rules).string = {
|
|
82
|
+
in: [
|
|
83
|
+
"dynamic-date",
|
|
84
|
+
"fixed-date"
|
|
85
|
+
]
|
|
86
|
+
}];
|
|
87
|
+
int32 usage_day = 23;
|
|
88
|
+
bool is_read = 24;
|
|
89
|
+
string contract_type = 25 [(validate.rules).string = {
|
|
90
|
+
in: [
|
|
91
|
+
"online",
|
|
92
|
+
"offline",
|
|
93
|
+
"manual"
|
|
94
|
+
]
|
|
95
|
+
}];
|
|
96
|
+
string created_user_name = 26;
|
|
97
|
+
PostPaymentInfo post_payment_info = 27;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message PostPaymentInfo {
|
|
101
|
+
google.protobuf.Timestamp payment_due_date = 1;
|
|
102
|
+
string customized_service_description = 2;
|
|
103
|
+
google.protobuf.Timestamp payment_date = 3;
|
|
104
|
+
int32 debt_day = 4;
|
|
105
|
+
string type = 5 [(validate.rules).string = {
|
|
106
|
+
in: [
|
|
107
|
+
"",
|
|
108
|
+
"dynamic_date",
|
|
109
|
+
"fixed_date"
|
|
110
|
+
]
|
|
111
|
+
}];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message CreateEcontractResponse {
|
|
115
|
+
bool is_success = 1;
|
|
116
|
+
string message = 2;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message GetEcontractRequest {
|
|
120
|
+
int32 id = 1;
|
|
121
|
+
string phone = 2;
|
|
122
|
+
int32 order_id = 3;
|
|
123
|
+
int32 limit = 4;
|
|
124
|
+
int32 offset = 5;
|
|
125
|
+
string created_user = 6;
|
|
126
|
+
bool is_post_payment = 7;
|
|
127
|
+
string contract_status = 8;
|
|
128
|
+
google.protobuf.Timestamp payment_due_date_start = 9;
|
|
129
|
+
google.protobuf.Timestamp payment_due_date_end = 10;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message GetEcontractResponse {
|
|
133
|
+
repeated Econtract data = 1;
|
|
134
|
+
int32 total = 2;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message UpdateEcontractStatusRequest {
|
|
138
|
+
int32 id = 1;
|
|
139
|
+
int32 account_id = 2;
|
|
140
|
+
string contract_status = 3;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message UpdateEcontractStatusResponse {
|
|
144
|
+
bool is_success = 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message GetEcontractByIdRequest {
|
|
148
|
+
int32 id = 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message GetEcontractByIdResponse {
|
|
152
|
+
Econtract data = 1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message GetEcontractByIdAndAccountIdRequest {
|
|
156
|
+
int32 id = 1;
|
|
157
|
+
int32 account_id = 2;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
message GetEcontractByIdAndAccountIdResponse {
|
|
161
|
+
Econtract data = 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message UpdateEcontractByIdRequest {
|
|
165
|
+
int32 id = 1;
|
|
166
|
+
int32 usage_day = 2;
|
|
167
|
+
string contract_status = 3;
|
|
168
|
+
string contract_info = 4;
|
|
169
|
+
string contract_invoice = 5;
|
|
170
|
+
int32 package_id = 6;
|
|
171
|
+
int64 amount = 7;
|
|
172
|
+
int64 amount_dongtot = 8;
|
|
173
|
+
google.protobuf.Timestamp expiration_time = 9;
|
|
174
|
+
string modified_by = 10;
|
|
175
|
+
string info = 15;
|
|
176
|
+
string transaction_ref = 16;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message UpdateEcontractByIdResponse {
|
|
180
|
+
bool is_success = 1;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
message GetEcontractLogWithFilterRequest {
|
|
184
|
+
int32 request_id = 1;
|
|
185
|
+
int32 limit = 2;
|
|
186
|
+
int32 offset = 3;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message EcontractLog {
|
|
190
|
+
int32 request_id = 1;
|
|
191
|
+
string action = 2;
|
|
192
|
+
string payload = 3;
|
|
193
|
+
string modified_by = 4;
|
|
194
|
+
google.protobuf.Timestamp modified_date = 5;
|
|
195
|
+
int32 id = 6;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
message GetEcontractLogWithFilterResponse {
|
|
199
|
+
repeated EcontractLog data = 1;
|
|
200
|
+
int32 total = 2;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
message ApproveEcontractManualRequest {
|
|
204
|
+
int32 id = 1;
|
|
205
|
+
string approved_user = 2;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
message ApproveEcontractManualResponse {
|
|
209
|
+
bool is_success = 1;
|
|
210
|
+
string message = 2;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message GetEcontractByAccountIdRequest {
|
|
214
|
+
int32 account_id = 1;
|
|
215
|
+
int32 limit = 2;
|
|
216
|
+
int32 offset = 3;
|
|
217
|
+
string status = 4;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
message GetEcontractByAccountIdResponse {
|
|
221
|
+
repeated Econtract data = 1;
|
|
222
|
+
int32 total = 2;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
message GetEcontractDetailByAccountIdRequest {
|
|
226
|
+
int32 account_id = 1;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
message GetEcontractDetailByAccountIdResponse {
|
|
230
|
+
int32 id = 1;
|
|
231
|
+
int64 amount = 2;
|
|
232
|
+
int64 amount_dongtot = 3;
|
|
233
|
+
google.protobuf.Timestamp expiration_time = 4;
|
|
234
|
+
string e_contract_url = 5;
|
|
235
|
+
int32 e_contract_id = 6;
|
|
236
|
+
string e_contract_hash_id = 7;
|
|
237
|
+
string expiration_type = 8;
|
|
238
|
+
int32 usage_day = 9;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
message GetEcontractByIdAndHashRequest {
|
|
242
|
+
int32 id = 1;
|
|
243
|
+
string hash = 2;
|
|
244
|
+
int32 account_id = 3;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
message GetEcontractByIdAndHashResponse {
|
|
248
|
+
Econtract data = 1;
|
|
249
|
+
PackageEcontract package = 2;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message PackageEcontract {
|
|
253
|
+
int64 id = 1;
|
|
254
|
+
string name = 2;
|
|
255
|
+
string type = 3;
|
|
256
|
+
int64 price = 4;
|
|
257
|
+
int64 free_amount = 5;
|
|
258
|
+
int64 paid_amount = 6;
|
|
259
|
+
int64 promotion_amount = 7;
|
|
260
|
+
string platform = 8;
|
|
261
|
+
bool active = 9;
|
|
262
|
+
string method = 10;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
message UpdateEcontractInfoByIdRequest {
|
|
266
|
+
int32 id = 1;
|
|
267
|
+
int32 account_id = 2;
|
|
268
|
+
string contract_number = 3;
|
|
269
|
+
string contract_date = 4;
|
|
270
|
+
string card_id = 5;
|
|
271
|
+
string permanent_residence = 6;
|
|
272
|
+
string announce_id = 7;
|
|
273
|
+
string payment_method = 8;
|
|
274
|
+
string payment_method_order = 9;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
message UpdateEcontractInfoByIdResponse {
|
|
278
|
+
bool is_success = 1;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
message UpdateEcontractToPendingRequest {
|
|
282
|
+
int32 id = 1;
|
|
283
|
+
int32 account_id = 2;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
message UpdateEcontractToPendingResponse {
|
|
287
|
+
bool is_success = 1;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
message UpdateEcontractIsReadStatusByIdRequest {
|
|
291
|
+
int32 id = 1;
|
|
292
|
+
int32 account_id = 2;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
message UpdateEcontractIsReadStatusByIdResponse {
|
|
296
|
+
bool is_success = 1;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
message UpdateInvoiceInfoByIdRequest {
|
|
300
|
+
int32 id = 1;
|
|
301
|
+
int32 account_id = 2;
|
|
302
|
+
string company_name = 3;
|
|
303
|
+
string company_address = 4;
|
|
304
|
+
string tax_id = 5;
|
|
305
|
+
string email = 6;
|
|
306
|
+
string buyer_name = 7;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
message UpdateInvoiceInfoByIdResponse {
|
|
310
|
+
bool is_success = 1;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
message PayContractRequest {
|
|
314
|
+
int32 account_id = 1;
|
|
315
|
+
string gateway = 2;
|
|
316
|
+
string platform = 3;
|
|
317
|
+
string source = 4;
|
|
318
|
+
string ip = 5;
|
|
319
|
+
string order_type = 6;
|
|
320
|
+
string extend_type = 7;
|
|
321
|
+
int32 econtract_id = 8;
|
|
322
|
+
string return_url = 9;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
message PayContractResponse {
|
|
326
|
+
int64 order_id = 1;
|
|
327
|
+
string payment_code = 2;
|
|
328
|
+
string redirect_url = 3;
|
|
329
|
+
string expiry_date = 4;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
message GetEcontractByOrderIdRequest {
|
|
333
|
+
int32 order_id = 1;
|
|
334
|
+
int32 account_id = 2;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
message GetEcontractByOrderIdResponse {
|
|
338
|
+
Econtract data = 1;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
message ContractInfoCRM {
|
|
342
|
+
string contract_number = 1;
|
|
343
|
+
string card_id = 2;
|
|
344
|
+
string permanent_residence = 3;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
message ContractInvoiceCRM {
|
|
348
|
+
string company_name = 1;
|
|
349
|
+
string company_address = 2;
|
|
350
|
+
string tax_id = 3;
|
|
351
|
+
string email = 4;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
message CreateEcontractViaCRMRequest {
|
|
355
|
+
string phone = 1;
|
|
356
|
+
string expiration_type = 2 [(validate.rules).string = {
|
|
357
|
+
in: [
|
|
358
|
+
"dynamic_date",
|
|
359
|
+
"fixed_date"
|
|
360
|
+
]
|
|
361
|
+
}];
|
|
362
|
+
google.protobuf.Timestamp expiration_time = 3;
|
|
363
|
+
string vertical = 4 [(validate.rules).string = {
|
|
364
|
+
in: [
|
|
365
|
+
"pty",
|
|
366
|
+
"car",
|
|
367
|
+
"mobile",
|
|
368
|
+
"job",
|
|
369
|
+
"rest_of_gds",
|
|
370
|
+
"rest_of_veh"
|
|
371
|
+
]
|
|
372
|
+
}];
|
|
373
|
+
string contract_type = 5 [(validate.rules).string = {
|
|
374
|
+
in: [
|
|
375
|
+
"online",
|
|
376
|
+
"offline",
|
|
377
|
+
"manual"
|
|
378
|
+
]
|
|
379
|
+
}];
|
|
380
|
+
int64 package_id = 6 [(validate.rules).int64.gte = 0];
|
|
381
|
+
ContractInfoCRM contract_info = 7;
|
|
382
|
+
ContractInvoiceCRM contract_invoice = 8;
|
|
383
|
+
string creator = 9;
|
|
384
|
+
int64 usage_day = 10;
|
|
385
|
+
string bank_id = 11;
|
|
386
|
+
string transaction_ref = 12;
|
|
387
|
+
string info = 13;
|
|
388
|
+
PostPaymentInfo post_payment_info = 14;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
message CreateEcontractViaCRMErrorData {
|
|
392
|
+
string description = 1;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
message CreateEcontractViaCRMResponse {
|
|
396
|
+
bool success = 1;
|
|
397
|
+
string error_code = 3;
|
|
398
|
+
string error_message = 4;
|
|
399
|
+
CreateEcontractViaCRMErrorData error_data = 5;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
message UpdatePostPaymentInfoRequest {
|
|
403
|
+
int32 econtract_id = 1;
|
|
404
|
+
PostPaymentInfo post_payment_info = 3;
|
|
405
|
+
string modified_by = 4;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
message UpdatePostPaymentInfoResponse {
|
|
409
|
+
bool is_success = 1;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
message RevampedEcontract {
|
|
413
|
+
int64 account_id = 1;
|
|
414
|
+
string created_by = 2;
|
|
415
|
+
string status = 3; // approved, expired,...
|
|
416
|
+
string status_desc = 4; // Thành công, Hết hạn,
|
|
417
|
+
ContractInfo contract_info = 5;
|
|
418
|
+
CustomerInfo customer_info = 6;
|
|
419
|
+
optional InvoiceInfo invoice_info = 7;
|
|
420
|
+
BillingInfo billing_info = 8;
|
|
421
|
+
optional PaymentInfo payment_info = 9;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
message ContractInfo {
|
|
425
|
+
string contract_number = 1;
|
|
426
|
+
string phone = 2;
|
|
427
|
+
int64 dongtot_amount = 3;
|
|
428
|
+
int64 discount_amount = 4;
|
|
429
|
+
string expiration_time = 5;
|
|
430
|
+
int64 package_id = 6;
|
|
431
|
+
string contract_type = 7;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
message CustomerInfo {
|
|
435
|
+
string id_card = 1;
|
|
436
|
+
string permanent_residence = 2;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
message InvoiceInfo {
|
|
440
|
+
string buyer_name = 1;
|
|
441
|
+
string company_name = 2;
|
|
442
|
+
string company_address = 3;
|
|
443
|
+
string tax_id = 4;
|
|
444
|
+
string email = 5;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message BillingInfo {
|
|
448
|
+
int64 contract_amount = 1;
|
|
449
|
+
int64 discount_amount = 2;
|
|
450
|
+
int64 after_discount = 3;
|
|
451
|
+
int64 tax_amount = 4;
|
|
452
|
+
int64 charged_amount = 5;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
message PaymentInfo {
|
|
456
|
+
int64 order_id = 1;
|
|
457
|
+
string payment_code = 2;
|
|
458
|
+
google.protobuf.Timestamp expired_timestamp = 3;
|
|
459
|
+
string expired_at = 4;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
message RevampedGetEcontractByIdRequest {
|
|
463
|
+
int64 id = 1;
|
|
464
|
+
int64 account_id = 2;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
message RevampedGetEcontractByIdResponse {
|
|
468
|
+
RevampedEcontract econtract = 1;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
message UpdateEcontractInvoiceRequest {
|
|
472
|
+
int64 order_id = 1;
|
|
473
|
+
InvoiceInfo invoice_info = 2;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
message UpdateEcontractInvoiceResponse {
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
message GetCommercialSchemeRequest {
|
|
480
|
+
int32 limit = 1;
|
|
481
|
+
int32 offset = 2;
|
|
482
|
+
string status = 3;
|
|
483
|
+
int32 id = 4;
|
|
484
|
+
int32 vertical_id = 5;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
message GetCommercialSchemeResponse {
|
|
488
|
+
repeated CommercialScheme data = 1;
|
|
489
|
+
int32 total = 2;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
message CommercialScheme {
|
|
493
|
+
int32 id = 1;
|
|
494
|
+
repeated int32 verticals = 2;
|
|
495
|
+
repeated int32 credit_packages = 3;
|
|
496
|
+
google.protobuf.Timestamp start_date = 4;
|
|
497
|
+
google.protobuf.Timestamp end_date = 5;
|
|
498
|
+
string status = 6;
|
|
499
|
+
google.protobuf.Timestamp created_date = 7;
|
|
500
|
+
google.protobuf.Timestamp modified_date = 8;
|
|
501
|
+
string created_user = 9;
|
|
502
|
+
string modified_user = 10;
|
|
503
|
+
repeated PromotionRange promotion_ranges = 11;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
message CreateCommercialSchemeRequest {
|
|
507
|
+
repeated int32 verticals = 1;
|
|
508
|
+
repeated int32 credit_packages = 2;
|
|
509
|
+
google.protobuf.Timestamp start_date = 3;
|
|
510
|
+
google.protobuf.Timestamp end_date = 4;
|
|
511
|
+
string status = 5;
|
|
512
|
+
string created_user = 6;
|
|
513
|
+
repeated PromotionRange promotion_ranges = 7;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
message CreateCommercialSchemeResponse {
|
|
517
|
+
int32 id = 1;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
message UpdateCommercialSchemeRequest {
|
|
521
|
+
int32 id = 1;
|
|
522
|
+
string modified_user = 2;
|
|
523
|
+
repeated int32 verticals = 3;
|
|
524
|
+
repeated int32 credit_packages = 4;
|
|
525
|
+
google.protobuf.Timestamp start_date = 5;
|
|
526
|
+
google.protobuf.Timestamp end_date = 6;
|
|
527
|
+
string status = 7;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
message UpdateCommercialSchemeResponse {}
|
|
531
|
+
|
|
532
|
+
message DeleteCommercialSchemeRequest {
|
|
533
|
+
int32 id = 1;
|
|
534
|
+
string modified_user = 2;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
message DeleteCommercialSchemeResponse {}
|
|
538
|
+
|
|
539
|
+
message ApproveNewEcontractRequest {
|
|
540
|
+
int32 id = 1;
|
|
541
|
+
string approved_user = 2;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
message ApproveNewEcontractResponse {}
|
|
545
|
+
|
|
546
|
+
message RejectNewEcontractRequest {
|
|
547
|
+
int32 id = 1;
|
|
548
|
+
string rejected_user = 2;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
message RejectNewEcontractResponse {}
|
|
552
|
+
|
|
553
|
+
message CreatePromotionRangeRequest {
|
|
554
|
+
int32 scheme_id = 1;
|
|
555
|
+
int64 min_value = 2;
|
|
556
|
+
int64 max_value = 3;
|
|
557
|
+
float min_promotion_rate = 4;
|
|
558
|
+
float max_promotion_rate = 5;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
message CreatePromotionRangeResponse {}
|
|
562
|
+
|
|
563
|
+
message UpdatePromotionRangeRequest {
|
|
564
|
+
int32 scheme_id = 1;
|
|
565
|
+
int32 id = 2;
|
|
566
|
+
int64 min_value = 3;
|
|
567
|
+
int64 max_value = 4;
|
|
568
|
+
float min_promotion_rate = 5;
|
|
569
|
+
float max_promotion_rate = 6;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
message UpdatePromotionRangeResponse {}
|
|
573
|
+
|
|
574
|
+
message DeletePromotionRangeRequest {
|
|
575
|
+
int32 scheme_id = 1;
|
|
576
|
+
int32 id = 2;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
message DeletePromotionRangeResponse {}
|
|
580
|
+
|
|
581
|
+
message PromotionRange {
|
|
582
|
+
int32 id = 1;
|
|
583
|
+
int64 min_value = 2;
|
|
584
|
+
int64 max_value = 3;
|
|
585
|
+
float min_promotion_rate = 4;
|
|
586
|
+
float max_promotion_rate = 5;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
message GetContractApprovalHistoryRequest {
|
|
590
|
+
int32 limit = 1;
|
|
591
|
+
int32 offset = 2;
|
|
592
|
+
int32 contract_id = 3;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
message GetContractApprovalHistoryResponse {
|
|
596
|
+
repeated ContractApprovalHistory data = 1;
|
|
597
|
+
int32 total = 2;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
message ContractApprovalHistory {
|
|
601
|
+
int32 id = 1;
|
|
602
|
+
int32 vertical_id = 2;
|
|
603
|
+
int32 contract_id = 3;
|
|
604
|
+
string phone = 4;
|
|
605
|
+
int32 package_id = 5;
|
|
606
|
+
int64 amount = 6;
|
|
607
|
+
int64 amount_dongtot = 7;
|
|
608
|
+
float promotion_rate = 8;
|
|
609
|
+
string status = 9;
|
|
610
|
+
string reviewer_email = 10;
|
|
611
|
+
google.protobuf.Timestamp created_at = 11;
|
|
612
|
+
google.protobuf.Timestamp updated_at = 12;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
message CreateContractReviewerRequest {
|
|
616
|
+
int32 vertical_id = 1;
|
|
617
|
+
string email = 2;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
message CreateContractReviewerResponse {}
|
|
621
|
+
|
|
622
|
+
message DeleteContractReviewerRequest {
|
|
623
|
+
int32 id = 1;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
message DeleteContractReviewerResponse {}
|
|
627
|
+
|
|
628
|
+
message UpdateContractReviewerRequest {
|
|
629
|
+
int32 id = 1;
|
|
630
|
+
string status = 2;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
message UpdateContractReviewerResponse {}
|
|
634
|
+
|
|
635
|
+
message GetContractReviewerRequest {
|
|
636
|
+
int32 vertical_id = 1;
|
|
637
|
+
int32 limit = 2;
|
|
638
|
+
int32 offset = 3;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
message GetContractReviewerResponse {
|
|
642
|
+
repeated ContractReviewer data = 1;
|
|
643
|
+
int32 total = 2;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
message ContractReviewer {
|
|
647
|
+
int32 id = 1;
|
|
648
|
+
int32 vertical_id = 2;
|
|
649
|
+
string vertical_name = 3;
|
|
650
|
+
string email = 4;
|
|
651
|
+
google.protobuf.Timestamp created_at = 5;
|
|
652
|
+
google.protobuf.Timestamp updated_at = 6;
|
|
653
|
+
string status = 7;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
message GetVerticalRequest {}
|
|
657
|
+
|
|
658
|
+
message GetVerticalResponse {
|
|
659
|
+
repeated Vertical data = 1;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
message Vertical {
|
|
663
|
+
int32 id = 1;
|
|
664
|
+
string vertical_id = 2;
|
|
665
|
+
string name = 3;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
message SendEcontractPaymentNotificationRequest {
|
|
670
|
+
int64 id = 1;
|
|
671
|
+
string hash = 2;
|
|
672
|
+
int64 account_id = 3;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
message SendEcontractPaymentNotificationResponse {}
|