@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/dongtot.proto
ADDED
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_payment.v1;
|
|
4
|
+
// language specs
|
|
5
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
message TransferDongTotRequest {
|
|
10
|
+
int64 sender = 1;
|
|
11
|
+
int64 parent_id = 2; // because pty currently pass parent_id to the body
|
|
12
|
+
repeated int64 receivers = 3;
|
|
13
|
+
string balance_type = 4;
|
|
14
|
+
int64 amount_per_account = 5;
|
|
15
|
+
string platform = 6;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message TransferDongTotInfo {
|
|
19
|
+
int64 total_account = 1;
|
|
20
|
+
int64 total_amount = 2;
|
|
21
|
+
int64 amount_per_account = 3;
|
|
22
|
+
int64 transfer_id = 4;
|
|
23
|
+
string receiver_name = 5;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message TransferDongTotResponse {
|
|
27
|
+
bool ok = 1;
|
|
28
|
+
TransferDongTotInfo data = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message BeforeTransferDongTotRequest {
|
|
32
|
+
int64 sender = 1;
|
|
33
|
+
int64 parent_id = 2; // because pty currently pass parent_id to the body
|
|
34
|
+
repeated int64 receivers = 3;
|
|
35
|
+
string balance_type = 4;
|
|
36
|
+
int64 amount_per_account = 5;
|
|
37
|
+
string platform = 6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message BeforeTransferDongTotResponse {
|
|
41
|
+
bool ok = 1;
|
|
42
|
+
repeated DataBeforeTransferDongTot data = 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message DataBeforeTransferDongTot {
|
|
46
|
+
int64 amount = 1;
|
|
47
|
+
int64 id = 2;
|
|
48
|
+
int64 expire_time = 3;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message GetTransferHistoryRequest {
|
|
52
|
+
int64 sender = 1;
|
|
53
|
+
int64 limit = 2;
|
|
54
|
+
int64 offset = 3;
|
|
55
|
+
string type = 4;
|
|
56
|
+
google.protobuf.Timestamp from = 5;
|
|
57
|
+
google.protobuf.Timestamp to = 6;
|
|
58
|
+
int64 account_id = 7;
|
|
59
|
+
int64 transfer_id = 8;
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message GetTransferHistoryResponse {
|
|
64
|
+
repeated TransferHistory data = 1;
|
|
65
|
+
int64 total = 2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message TransferHistory {
|
|
69
|
+
int64 id = 1;
|
|
70
|
+
string code = 2;
|
|
71
|
+
string platform_id = 3;
|
|
72
|
+
string type_id = 4;
|
|
73
|
+
google.protobuf.Timestamp created_time = 5;
|
|
74
|
+
google.protobuf.Timestamp updated_time = 6;
|
|
75
|
+
int64 number_of_receiver = 7;
|
|
76
|
+
string description = 8;
|
|
77
|
+
int64 sender = 9;
|
|
78
|
+
int64 total_amount = 10;
|
|
79
|
+
string status = 11;
|
|
80
|
+
int64 full_count = 12;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message GetTransferHistoryByTransferIdRequest {
|
|
84
|
+
int64 sender = 1;
|
|
85
|
+
int64 transfer_id = 2;
|
|
86
|
+
int64 limit = 3;
|
|
87
|
+
int64 offset = 4;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message GetTransferHistoryByTransferIdResponse {
|
|
91
|
+
Transfer info = 1;
|
|
92
|
+
repeated TransferHistoryDetail detail = 2;
|
|
93
|
+
int64 total = 3;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message TransferHistoryDetail {
|
|
97
|
+
int64 id = 1;
|
|
98
|
+
int64 transfer_id = 2;
|
|
99
|
+
string platform_id = 3;
|
|
100
|
+
string type_id = 4;
|
|
101
|
+
google.protobuf.Timestamp created_time = 5;
|
|
102
|
+
google.protobuf.Timestamp updated_time = 6;
|
|
103
|
+
int64 sender = 7;
|
|
104
|
+
int64 receiver = 8;
|
|
105
|
+
int64 amount = 9;
|
|
106
|
+
string status = 10;
|
|
107
|
+
google.protobuf.Timestamp dt_expired_time = 11;
|
|
108
|
+
int64 full_count = 12;
|
|
109
|
+
string full_name = 13;
|
|
110
|
+
string email = 14;
|
|
111
|
+
string phone = 15;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message GetReceiveHistoryRequest {
|
|
115
|
+
int64 receiver = 1;
|
|
116
|
+
int64 limit = 2;
|
|
117
|
+
int64 offset = 3;
|
|
118
|
+
google.protobuf.Timestamp from = 4;
|
|
119
|
+
google.protobuf.Timestamp to = 5;
|
|
120
|
+
string type = 6;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message ReceiveHistory {
|
|
124
|
+
int64 id = 1;
|
|
125
|
+
int64 transfer_id = 2;
|
|
126
|
+
string platform_id = 3;
|
|
127
|
+
string type_id = 4;
|
|
128
|
+
google.protobuf.Timestamp created_time = 5;
|
|
129
|
+
google.protobuf.Timestamp updated_time = 6;
|
|
130
|
+
int64 sender = 7;
|
|
131
|
+
int64 receiver = 8;
|
|
132
|
+
int64 amount = 9;
|
|
133
|
+
string status = 10;
|
|
134
|
+
google.protobuf.Timestamp dt_expired_time = 11;
|
|
135
|
+
int64 full_count = 12;
|
|
136
|
+
string code = 13;
|
|
137
|
+
int64 total_amount = 14;
|
|
138
|
+
int64 number_of_receiver = 15;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
message GetReceiveHistoryResponse {
|
|
142
|
+
repeated ReceiveHistory data = 1;
|
|
143
|
+
int64 total = 2;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message GetReceiveHistoryByCodeRequest {
|
|
147
|
+
int64 receiver = 1;
|
|
148
|
+
int64 transfer_id = 2;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message GetReceiveHistoryByCodeResponse {
|
|
152
|
+
Transfer info = 1;
|
|
153
|
+
repeated TransferDetail detail = 2;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message GetTransferTotalRequest {
|
|
157
|
+
int64 account_id = 1;
|
|
158
|
+
int64 from = 2;
|
|
159
|
+
int64 to = 3;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message GetTransferTotalResponse {
|
|
163
|
+
int64 total = 1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
message GetTransferInformationRequest {
|
|
167
|
+
int64 sender = 1;
|
|
168
|
+
int64 receiver = 2;
|
|
169
|
+
string status = 3;
|
|
170
|
+
string dt_type = 4;
|
|
171
|
+
string transfer_code = 5;
|
|
172
|
+
int64 from = 6;
|
|
173
|
+
int64 to = 7;
|
|
174
|
+
int32 limit = 8;
|
|
175
|
+
int32 offset = 9;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
message TransferInformation {
|
|
179
|
+
string code = 1;
|
|
180
|
+
int64 total_amount = 2;
|
|
181
|
+
int64 sender = 3;
|
|
182
|
+
int64 receiver = 4;
|
|
183
|
+
int64 amount = 5;
|
|
184
|
+
string status = 6;
|
|
185
|
+
string type_id = 7;
|
|
186
|
+
int64 created_time = 8;
|
|
187
|
+
int64 dt_expired_time = 9;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message GetTransferInformation {
|
|
191
|
+
repeated TransferInformation transfers = 1;
|
|
192
|
+
int64 total = 2;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message GetTransferInformationResponse {
|
|
196
|
+
bool success = 1;
|
|
197
|
+
GetTransferInformation data = 2;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message Transfer {
|
|
201
|
+
int64 id = 1;
|
|
202
|
+
string code = 2;
|
|
203
|
+
string platform_id = 3;
|
|
204
|
+
string type_id = 4;
|
|
205
|
+
google.protobuf.Timestamp created_time = 5;
|
|
206
|
+
google.protobuf.Timestamp updated_time = 6;
|
|
207
|
+
int64 number_of_receiver = 7;
|
|
208
|
+
string description = 8;
|
|
209
|
+
int64 sender = 9;
|
|
210
|
+
int64 total_amount = 10;
|
|
211
|
+
string status = 11;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
message TransferDetail {
|
|
215
|
+
int64 id = 1;
|
|
216
|
+
int64 transfer_id = 2;
|
|
217
|
+
string platform_id = 3;
|
|
218
|
+
string type_id = 4;
|
|
219
|
+
google.protobuf.Timestamp created_time = 5;
|
|
220
|
+
google.protobuf.Timestamp updated_time = 6;
|
|
221
|
+
int64 sender = 7;
|
|
222
|
+
int64 receiver = 8;
|
|
223
|
+
int64 amount = 9;
|
|
224
|
+
string status = 10;
|
|
225
|
+
google.protobuf.Timestamp dt_expired_time = 11;
|
|
226
|
+
int64 full_count = 12;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
message GetBalanceByTypeRequest {
|
|
230
|
+
int64 account_id = 1;
|
|
231
|
+
string platform = 2;
|
|
232
|
+
string type = 3;
|
|
233
|
+
bool include_frozen_balance = 4;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
message GetBalanceByTypeResponse {
|
|
237
|
+
repeated BalanceByType balances = 1;
|
|
238
|
+
repeated BalanceByType frozen_balances = 2;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
message BalanceByType {
|
|
242
|
+
int64 balance = 1;
|
|
243
|
+
int64 expired = 2;
|
|
244
|
+
string platform = 3;
|
|
245
|
+
string type = 4;
|
|
246
|
+
repeated int64 order_ids = 5;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
message GetBalanceDetailByGroupRequest {
|
|
250
|
+
int64 account_id = 1;
|
|
251
|
+
string platform = 2;
|
|
252
|
+
string type = 3;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
message GetBalanceDetailByGroupResponse {
|
|
256
|
+
repeated GetBalanceDetailByGroup balance_details = 1;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
message GetBalanceDetailByGroup {
|
|
260
|
+
int64 total_amount = 1;
|
|
261
|
+
int64 closest_expired_amount = 2;
|
|
262
|
+
int64 closest_expired_time = 3;
|
|
263
|
+
int64 priority = 4;
|
|
264
|
+
string type_id = 5;
|
|
265
|
+
string type = 6;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
message GetTotalBalanceRequest {
|
|
269
|
+
int64 account_id = 1;
|
|
270
|
+
string platform = 2;
|
|
271
|
+
string type = 3;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
message GetTotalBalanceResponse {
|
|
275
|
+
int64 balance = 1;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
message GetBalanceAfterOrderIdRequest {
|
|
279
|
+
int64 account_id = 1;
|
|
280
|
+
int64 order_id = 2;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
message GetBalanceAfterOrderIdResponse {
|
|
284
|
+
int64 before_balance = 1;
|
|
285
|
+
int64 after_balance = 2;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
message ForceExpireDongTotRequest {
|
|
289
|
+
int64 account_id = 1;
|
|
290
|
+
int64 topup_order_id = 2;
|
|
291
|
+
string note_withdraw = 3;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
message ForceExpireDongTotResponse {
|
|
295
|
+
string status = 1;
|
|
296
|
+
int64 total_refund = 2;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
message RefundUnrecordedWithdrawRequest {
|
|
300
|
+
int64 order_id = 1;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message RefundUnrecordedWithdrawResponse {}
|
|
304
|
+
|
|
305
|
+
message GetBalanceTopupOrderRequest {
|
|
306
|
+
string platform = 1;
|
|
307
|
+
repeated int64 orderids = 2;
|
|
308
|
+
repeated int64 creditorderids = 3;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
message GetBalanceTopupOrderResponse {
|
|
312
|
+
bool ok = 1;
|
|
313
|
+
map<string, int64> data = 2;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
message GetBalancesByAccountIdsRequest {
|
|
317
|
+
string platform = 1;
|
|
318
|
+
string type = 2;
|
|
319
|
+
repeated int64 account_ids = 3;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
message GetBalancesByAccountIdsResponse {
|
|
323
|
+
repeated BalanceByAccountId balances = 1;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
message BalanceByAccountId {
|
|
327
|
+
int64 balance = 1;
|
|
328
|
+
int64 expired = 2;
|
|
329
|
+
string platform = 3;
|
|
330
|
+
string type = 4;
|
|
331
|
+
int64 account_id = 5;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
message GetOrderCheckRequest {
|
|
335
|
+
string platform = 1;
|
|
336
|
+
repeated int64 orderids = 2;
|
|
337
|
+
repeated int64 creditorderids = 3;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
message GetOrderCheckResponse {
|
|
341
|
+
repeated Order orders = 1;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
message Order {
|
|
345
|
+
int64 id = 1;
|
|
346
|
+
string platform_id = 2;
|
|
347
|
+
int64 amount = 3;
|
|
348
|
+
string type_id = 4;
|
|
349
|
+
int64 ref_service_id = 5;
|
|
350
|
+
string status_id = 6;
|
|
351
|
+
int64 created_time = 7;
|
|
352
|
+
int64 updated_time = 8;
|
|
353
|
+
int64 account_id = 9;
|
|
354
|
+
string transactiontype_id = 10;
|
|
355
|
+
int64 ref_order_id = 11;
|
|
356
|
+
int64 total_balance_after = 12;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
message CheckAmountOrderRequest {
|
|
360
|
+
int64 order_id = 1;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
message CheckAmountOrderResponse {
|
|
364
|
+
bool is_remain_amount = 1;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
message GetTopupInfoRequest {
|
|
368
|
+
int64 order_id = 1;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
message GetTopupInfoResponse {
|
|
372
|
+
bool ok = 1;
|
|
373
|
+
repeated TopupInfo data = 2;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
message TopupInfo {
|
|
377
|
+
int64 amount = 1;
|
|
378
|
+
string type_id = 2;
|
|
379
|
+
int64 created_time = 3;
|
|
380
|
+
int64 account_id = 4;
|
|
381
|
+
int64 priority = 5;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
message GetHistoryRequest {
|
|
385
|
+
int64 account_id = 1;
|
|
386
|
+
string platform = 2;
|
|
387
|
+
string type = 3;
|
|
388
|
+
string order_type = 4;
|
|
389
|
+
int64 begin = 5;
|
|
390
|
+
int64 end = 6;
|
|
391
|
+
int64 limit = 7;
|
|
392
|
+
int64 offset = 8;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
message GetHistoryResponse {
|
|
397
|
+
repeated History histories = 1;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
message History {
|
|
401
|
+
int64 id = 1;
|
|
402
|
+
int64 amount = 2;
|
|
403
|
+
string account_type = 3;
|
|
404
|
+
int64 account_id = 4;
|
|
405
|
+
int64 credit_order_id = 5;
|
|
406
|
+
int64 created_time = 6;
|
|
407
|
+
string order_status = 7;
|
|
408
|
+
string order_type = 8;
|
|
409
|
+
int64 order_id = 9;
|
|
410
|
+
int64 service_id = 10;
|
|
411
|
+
int64 topup_transaction_detail_id = 11;
|
|
412
|
+
string platform = 12;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
message GetHistoryByAccountIdAndOrderIdRequest {
|
|
416
|
+
int64 account_id = 1;
|
|
417
|
+
int64 order_id = 2;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
message GetHistoryByAccountIdAndOrderIdResponse {
|
|
421
|
+
bool ok = 1;
|
|
422
|
+
repeated HistoryByAccountIdAndOrderId data = 2;
|
|
423
|
+
AmountHistoryByAccountIdAndOrderId amount = 3;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
message HistoryByAccountIdAndOrderId {
|
|
427
|
+
int64 id = 1;
|
|
428
|
+
int64 amount = 2;
|
|
429
|
+
string type_id = 3;
|
|
430
|
+
int64 account_id = 4;
|
|
431
|
+
int64 credit_order_id = 5;
|
|
432
|
+
string status_id = 6;
|
|
433
|
+
string transactiontype_id = 7;
|
|
434
|
+
int64 ref_order_id = 8;
|
|
435
|
+
int64 ref_service_id = 9;
|
|
436
|
+
int64 is_refund = 10;
|
|
437
|
+
int64 topup_transaction_detail_id = 11;
|
|
438
|
+
string platform_id = 12;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
message AmountHistoryByAccountIdAndOrderId {
|
|
442
|
+
int64 paid = 1;
|
|
443
|
+
int64 free = 2;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
message GetHistoryDetailRequest {
|
|
447
|
+
int64 account_id = 1;
|
|
448
|
+
repeated int64 orderids = 2;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
message GetHistoryDetailResponse {
|
|
452
|
+
bool ok = 1;
|
|
453
|
+
repeated HistoryDetail data = 2;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
message HistoryDetail {
|
|
457
|
+
string account_type = 1;
|
|
458
|
+
int64 order_id = 2;
|
|
459
|
+
string order_type = 3;
|
|
460
|
+
int64 service_id = 4;
|
|
461
|
+
string platform = 5;
|
|
462
|
+
int64 created_time = 6;
|
|
463
|
+
string order_status = 7;
|
|
464
|
+
string amount = 8; // because client currently using type string (order-history), will refactor later
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// RabbitMQ message for topup DongTot
|
|
468
|
+
message TopupDongtotRequest {
|
|
469
|
+
int64 order_id = 1;
|
|
470
|
+
string source = 2;
|
|
471
|
+
int64 account_id = 3;
|
|
472
|
+
int64 service_id = 4;
|
|
473
|
+
ServiceInfo service_info = 5;
|
|
474
|
+
int64 price = 6;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
message ServiceInfo {
|
|
478
|
+
string package_id = 1;
|
|
479
|
+
string service_params = 2;
|
|
480
|
+
string type = 3;
|
|
481
|
+
string topup_type = 4;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
message WithdrawDongtotRequest {
|
|
485
|
+
string platform = 1;
|
|
486
|
+
int64 account_id = 2;
|
|
487
|
+
int64 amount = 3;
|
|
488
|
+
int64 order = 4;
|
|
489
|
+
repeated int64 service_ids = 5;
|
|
490
|
+
repeated int64 service_amounts = 6;
|
|
491
|
+
string payment_method = 7;
|
|
492
|
+
int64 child_account_id = 8;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
message WithdrawDongtotResponse {
|
|
496
|
+
string status = 1;
|
|
497
|
+
string message = 2;
|
|
498
|
+
bool ok = 3;
|
|
499
|
+
int64 transaction_id = 4;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
message CreateTopupDongtotOrderRequest {
|
|
503
|
+
optional int64 account_id = 1; // legacy support. Otherwise, we should extract from context
|
|
504
|
+
string phone = 2;
|
|
505
|
+
string source = 3;
|
|
506
|
+
repeated int64 package_ids = 4;
|
|
507
|
+
string platform = 5; // legacy, probably not used
|
|
508
|
+
int64 credit_order_id = 6; // order_id need to be paid by Dongtot after this topup completed
|
|
509
|
+
string topup_type = 7; // only to distinguisA between topup_credit and topup, probably not use
|
|
510
|
+
int64 campaign_id = 8; // support ProPay
|
|
511
|
+
string payment_method = 9; // support ProPay
|
|
512
|
+
int64 dongtot_amount = 10; // amount of DT users want to receive
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
message CreateTopupDongtotOrderResponse {
|
|
516
|
+
int64 order_id = 1;
|
|
517
|
+
string payment_code = 2;
|
|
518
|
+
int64 cost = 3;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
message ForceExpireDongTotBoRequest {
|
|
522
|
+
int64 account_id = 1;
|
|
523
|
+
int64 topup_order_id = 2;
|
|
524
|
+
string note_withdraw = 3;
|
|
525
|
+
string phone = 4;
|
|
526
|
+
BoAdminInfo bo_admin_info = 6;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
message ForceExpireDongTotBoResponse {
|
|
530
|
+
string status = 1;
|
|
531
|
+
int64 total_refund = 2;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
message BoDongtotExpired {
|
|
535
|
+
int64 id = 1;
|
|
536
|
+
int64 order_id = 2;
|
|
537
|
+
string phone = 3;
|
|
538
|
+
string expired_type = 4;
|
|
539
|
+
google.protobuf.Timestamp created_at = 5;
|
|
540
|
+
string admin_id = 6;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
message BoAdminInfo {
|
|
544
|
+
string id = 1;
|
|
545
|
+
string email = 2;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
message GetListBoDongtotExpiredRequest {
|
|
549
|
+
int64 limit = 1;
|
|
550
|
+
int64 offset = 2;
|
|
551
|
+
int64 order_id = 3;
|
|
552
|
+
string phone = 4;
|
|
553
|
+
string expired_type = 5;
|
|
554
|
+
string admin_id = 6;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
message GetListBoDongtotExpiredResponse {
|
|
558
|
+
repeated BoDongtotExpired list_bo_dongtot_expired = 1;
|
|
559
|
+
int64 total = 2;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
message GetDongtotManagementPageCategoriesRequest {
|
|
563
|
+
string platform = 1;
|
|
564
|
+
int64 account_id = 2;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
message GetDongtotManagementPageCategoriesResponse {
|
|
568
|
+
repeated DongtotManagementPageCategory categories = 1;
|
|
569
|
+
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
message DongtotManagementPageCategory {
|
|
573
|
+
string title = 1;
|
|
574
|
+
string key = 2;
|
|
575
|
+
string badge = 3;
|
|
576
|
+
string web_icon_url = 4;
|
|
577
|
+
string mobile_icon_url = 5;
|
|
578
|
+
int64 position = 6;
|
|
579
|
+
string hidden_web_icon_url = 7;
|
|
580
|
+
string hidden_mobile_icon_url = 8;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
message GetDongtotManagementPageDetailRequest {
|
|
584
|
+
int64 account_id = 1;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
message GetDongtotManagementPageDetailResponse {
|
|
588
|
+
int64 total_amount = 1;
|
|
589
|
+
int64 total_amount_expired_within_7_days = 2;
|
|
590
|
+
BalanceDetailEachType dt_365 = 3;
|
|
591
|
+
BalanceDetailEachType dt_expiry = 4;
|
|
592
|
+
BalanceDetailEachType dt_free = 5;
|
|
593
|
+
AccountHierarchyInfo account_hierarchy_info = 6;
|
|
594
|
+
string highlight_message = 7;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
message BalanceDetailEachType {
|
|
598
|
+
int64 total_amount = 1;
|
|
599
|
+
repeated BalanceDetailFullInfo balance_detail_full_info = 2;
|
|
600
|
+
repeated BalanceDetailFullInfo frozen_balance_detail_full_info = 3;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
message BalanceDetailFullInfo {
|
|
604
|
+
int64 id = 1;
|
|
605
|
+
int64 amount = 2;
|
|
606
|
+
google.protobuf.Timestamp expired_time = 3;
|
|
607
|
+
string dt_type = 4;
|
|
608
|
+
int64 priority = 5;
|
|
609
|
+
string type_id = 6;
|
|
610
|
+
int64 account_id = 7;
|
|
611
|
+
string dt_source = 8;
|
|
612
|
+
int64 order_id = 9;
|
|
613
|
+
string order_code = 10;
|
|
614
|
+
bool near_expired_within_7_days = 11;
|
|
615
|
+
string near_expired_within_7_days_note = 12;
|
|
616
|
+
bool near_expired_within_today = 13;
|
|
617
|
+
string e_contract_hash = 14;
|
|
618
|
+
int64 e_contract_id = 15;
|
|
619
|
+
string description_message = 16; // used for frozen balance detail
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
message AccountHierarchyInfo {
|
|
623
|
+
int64 remaining_budget = 1;
|
|
624
|
+
google.protobuf.Timestamp end_time = 2;
|
|
625
|
+
int64 amount_per_order = 3;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
message GetDongtotManagementPromotionCodesRequest {
|
|
629
|
+
int64 account_id = 1;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
message GetDongtotManagementPromotionCodesResponse {
|
|
633
|
+
repeated DongtotManagementPromotionCode promotion_codes = 1;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
message DongtotManagementPromotionCode {
|
|
637
|
+
string icon_url = 1;
|
|
638
|
+
string code = 2;
|
|
639
|
+
google.protobuf.Timestamp end_time = 3;
|
|
640
|
+
int64 assignment_id = 4;
|
|
641
|
+
int64 credit_value = 5;
|
|
642
|
+
int64 quantity = 6;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
message GetDongtotManagementEContractsRequest {
|
|
646
|
+
int64 account_id = 1;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
message GetDongtotManagementEContractsResponse {
|
|
650
|
+
repeated DongtotManagementEContract e_contracts = 1;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
message DongtotManagementEContract {
|
|
654
|
+
int64 amount = 1;
|
|
655
|
+
int64 amount_dongtot = 2;
|
|
656
|
+
google.protobuf.Timestamp expiration_time = 3;
|
|
657
|
+
string e_contract_url = 4;
|
|
658
|
+
string e_contract_hash_id = 5;
|
|
659
|
+
string expiration_type = 6;
|
|
660
|
+
int64 usage_day = 7;
|
|
661
|
+
string banner_url = 8;
|
|
662
|
+
int64 id = 9;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
message GetDongtotManagementTopupPackagesRequest {
|
|
666
|
+
int64 account_id = 1;
|
|
667
|
+
string platform = 2;
|
|
668
|
+
string type = 3;
|
|
669
|
+
string method = 4;
|
|
670
|
+
string packagesids = 5;
|
|
671
|
+
int64 promotion = 6;
|
|
672
|
+
int64 show_iap_package = 7;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
message GetDongtotManagementTopupPackagesResponse {
|
|
676
|
+
repeated DongtotManagementTopupPackage packages = 1;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
message DongtotManagementTopupPackage {
|
|
680
|
+
int64 id = 1;
|
|
681
|
+
string name = 2;
|
|
682
|
+
string type = 3;
|
|
683
|
+
int64 price = 4;
|
|
684
|
+
int64 free_amount = 5;
|
|
685
|
+
int64 paid_amount = 6;
|
|
686
|
+
int64 promotion_amount = 7;
|
|
687
|
+
string platform = 8;
|
|
688
|
+
int64 created_at = 9;
|
|
689
|
+
int64 expired_at = 10;
|
|
690
|
+
bool actived = 11;
|
|
691
|
+
string method = 12;
|
|
692
|
+
string package_type = 13;
|
|
693
|
+
string icon = 14;
|
|
694
|
+
bool is_default = 15;
|
|
695
|
+
int64 group_id = 16;
|
|
696
|
+
int64 priority = 17;
|
|
697
|
+
int64 group_created_at = 18;
|
|
698
|
+
int64 user_id = 19;
|
|
699
|
+
string promotion_text = 20;
|
|
700
|
+
string product_id = 21;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
message GetDongtotManagementPageDetailBoRequest {
|
|
704
|
+
int64 account_id = 1;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
message GetDongtotManagementPageDetailBoResponse {
|
|
708
|
+
int64 total_dongtot_balance = 1;
|
|
709
|
+
int64 total_dongtot_paid_balance = 2;
|
|
710
|
+
int64 total_dongtot_expiry_balance = 3;
|
|
711
|
+
int64 total_dongtot_promotion_balance = 4;
|
|
712
|
+
repeated BalanceDetailBoInfo balance_detail = 5;
|
|
713
|
+
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
message BalanceDetailBoInfo {
|
|
717
|
+
int64 order_id = 1;
|
|
718
|
+
string type = 2;
|
|
719
|
+
int64 current_balance = 3;
|
|
720
|
+
google.protobuf.Timestamp expiry_date = 4;
|
|
721
|
+
string note = 5;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
message OnChangeBalanceDetailMessage {
|
|
725
|
+
repeated ChangedBalanceDetail changed_balance_details = 1;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
message ChangedBalanceDetail {
|
|
729
|
+
int64 ref_order_id = 1;
|
|
730
|
+
int64 source_account_id = 2;
|
|
731
|
+
int64 current_amount = 3;
|
|
732
|
+
string dt_type = 4;
|
|
733
|
+
string method = 5;
|
|
734
|
+
int64 order_amount = 6;
|
|
735
|
+
int64 expired_at = 7;
|
|
736
|
+
int64 account_id = 8;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
message ValidateTopupServiceInPurchaseRequest {
|
|
740
|
+
int64 account_id = 1;
|
|
741
|
+
int64 order_id = 2;
|
|
742
|
+
repeated TopupServiceInPurchase topup_services = 3;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
message TopupServiceInPurchase {
|
|
746
|
+
int64 service_id = 1;
|
|
747
|
+
int64 service_price = 2;
|
|
748
|
+
string service_params = 3;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
message ValidateTopupServiceInPurchaseResponse {
|
|
752
|
+
repeated InvalidTopupServiceInPurchase invalid_services = 1;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
message InvalidTopupServiceInPurchase {
|
|
756
|
+
int64 service_id = 1;
|
|
757
|
+
string reason = 2;
|
|
758
|
+
}
|