@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
|
@@ -0,0 +1,265 @@
|
|
|
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 "validate/validate.proto";
|
|
8
|
+
import "google/protobuf/timestamp.proto";
|
|
9
|
+
|
|
10
|
+
message VirtualAccountOnboardingPopup {
|
|
11
|
+
string image = 1;
|
|
12
|
+
string title = 2;
|
|
13
|
+
string description = 3;
|
|
14
|
+
string button_text = 4;
|
|
15
|
+
string button_link = 5;
|
|
16
|
+
string note = 6;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message VirtualAccountDesktopGuide {
|
|
20
|
+
string title = 1;
|
|
21
|
+
string guide_title = 2;
|
|
22
|
+
string guide = 3;
|
|
23
|
+
string note = 4;
|
|
24
|
+
string note_econtract = 5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message VirtualAccountMobileStep {
|
|
28
|
+
string note = 1;
|
|
29
|
+
string title = 2;
|
|
30
|
+
string guide = 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message VirtualAccountMobileGuide {
|
|
34
|
+
string title = 1;
|
|
35
|
+
repeated VirtualAccountMobileStep account = 2;
|
|
36
|
+
repeated VirtualAccountMobileStep qr = 3;
|
|
37
|
+
string warning = 4;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message VirtualAccountGuides {
|
|
41
|
+
string bank_logo = 1;
|
|
42
|
+
string bank_name = 2;
|
|
43
|
+
string bank_acronym_name = 3;
|
|
44
|
+
string help_page_url = 4;
|
|
45
|
+
VirtualAccountDesktopGuide desktop = 5;
|
|
46
|
+
VirtualAccountMobileGuide mobile = 6;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message GetVirtualAccountInfoRequest {
|
|
50
|
+
int64 account_id = 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message GetVirtualAccountInfoResponse {
|
|
54
|
+
repeated VirtualAccountOnboardingPopup onboarding_popup = 1;
|
|
55
|
+
VirtualAccountGuides guides = 2;
|
|
56
|
+
repeated VirtualAccountBank banks = 3;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message VirtualAccountBank {
|
|
60
|
+
string app_id = 1;
|
|
61
|
+
string app_logo = 2;
|
|
62
|
+
string app_name = 3;
|
|
63
|
+
string bank_name = 4;
|
|
64
|
+
string deeplink = 5;
|
|
65
|
+
string package_name = 6;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message GetVirtualAccountRequest {
|
|
69
|
+
int64 account_id = 1;
|
|
70
|
+
string account_oid = 2;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message GetVirtualAccountResponse {
|
|
74
|
+
string va_no = 1;
|
|
75
|
+
string va_name = 2;
|
|
76
|
+
string qr = 3;
|
|
77
|
+
string bank_name = 4;
|
|
78
|
+
string qr_data = 5;
|
|
79
|
+
bool is_va_econtract = 6;
|
|
80
|
+
int64 account_id = 7;
|
|
81
|
+
string vendor = 8;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message GetDynamicVirtualAccountRequest {
|
|
85
|
+
int64 account_id = 1 [(validate.rules).int64 = {gte : -10}]; // negative number is CT system internal account
|
|
86
|
+
int64 amount = 2 [(validate.rules).int64 = {gt : 0, lte: 9999999999999}]; // limit of VPB and NAPAS
|
|
87
|
+
string purpose = 3 [(validate.rules).string.max_len = 25]; // limit of VPB and NAPAS
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message GetDynamicVirtualAccountResponse {
|
|
91
|
+
string va_no = 1;
|
|
92
|
+
string va_name = 2;
|
|
93
|
+
string dynamic_qr = 3;
|
|
94
|
+
string bank_name = 4;
|
|
95
|
+
string dynamic_qr_data = 5;
|
|
96
|
+
bool is_va_econtract = 6;
|
|
97
|
+
int64 account_id = 7;
|
|
98
|
+
string vendor = 8;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message VPBIPNRequest {
|
|
102
|
+
string master_account_number = 1;
|
|
103
|
+
string virtual_account_number = 2;
|
|
104
|
+
string virtual_name = 3;
|
|
105
|
+
string virtual_alkey = 4;
|
|
106
|
+
int64 amount = 5;
|
|
107
|
+
string booking_date = 6;
|
|
108
|
+
string transaction_date = 7;
|
|
109
|
+
string transaction_id = 8;
|
|
110
|
+
string remark = 9;
|
|
111
|
+
string authorization_token = 10;
|
|
112
|
+
string signature = 11;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message VPBIPNResponse {
|
|
116
|
+
string status = 1;
|
|
117
|
+
string message = 2;
|
|
118
|
+
string transaction_id = 3;
|
|
119
|
+
string error_code = 4;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message ProcessRawCakeIPNRequest{
|
|
123
|
+
string ciphertext = 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message ProcessRawCakeIPNResponse{}
|
|
127
|
+
|
|
128
|
+
message VirtualAccountSendZNSRequest {
|
|
129
|
+
int64 account_id = 1 [ (validate.rules).int64 = {gte : 0} ];
|
|
130
|
+
string type = 2;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
message VirtualAccountSendZNSResponse {
|
|
134
|
+
string msg = 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message GetVirtualAccountViewStatementsRequest {
|
|
138
|
+
int64 account_id = 1;
|
|
139
|
+
string va_no = 2;
|
|
140
|
+
google.protobuf.Timestamp start_date = 3;
|
|
141
|
+
google.protobuf.Timestamp end_date = 4;
|
|
142
|
+
string phone_number = 5;
|
|
143
|
+
string vendor = 6;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message GetVirtualAccountViewStatementResponse {
|
|
147
|
+
string transaction_code = 1;
|
|
148
|
+
google.protobuf.Timestamp value_date_time = 2;
|
|
149
|
+
string transaction_description = 3;
|
|
150
|
+
string status = 4;
|
|
151
|
+
string currency = 5;
|
|
152
|
+
string credit_amount = 6;
|
|
153
|
+
string debit_amount = 7;
|
|
154
|
+
google.protobuf.Timestamp transaction_date = 8;
|
|
155
|
+
string vendor = 9;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message VirtualAccountResponse {
|
|
159
|
+
string va_no = 1;
|
|
160
|
+
string va_name = 2;
|
|
161
|
+
int64 account_id = 3;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message GetVirtualAccountViewStatementsResponse {
|
|
165
|
+
repeated GetVirtualAccountViewStatementResponse statements = 1;
|
|
166
|
+
VirtualAccountResponse virtual_account = 2;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
message GetVirtualAccountRemitterRequest {
|
|
170
|
+
string transaction_id = 1;
|
|
171
|
+
int64 order_id = 2;
|
|
172
|
+
string vendor = 3;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
message GetVirtualAccountRemitterResponse {
|
|
176
|
+
string sending_account = 1;
|
|
177
|
+
string sending_name = 2;
|
|
178
|
+
string bank_name = 3;
|
|
179
|
+
int64 amount = 4;
|
|
180
|
+
string currency = 5;
|
|
181
|
+
string credit_debit_indicator = 6;
|
|
182
|
+
string credit_van = 7;
|
|
183
|
+
string status = 8;
|
|
184
|
+
string transaction_date = 9;
|
|
185
|
+
string value_date = 10;
|
|
186
|
+
string description = 11;
|
|
187
|
+
int64 order_id = 12;
|
|
188
|
+
string transaction_id = 13;
|
|
189
|
+
int64 account_id = 14;
|
|
190
|
+
string va_no = 15;
|
|
191
|
+
string va_name = 16;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
message GetVirtualAccountRemittersRequest {
|
|
195
|
+
repeated string transaction_ids = 1;
|
|
196
|
+
repeated int64 order_ids = 2;
|
|
197
|
+
string vendor = 3;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message GetVirtualAccountRemittersResponse {
|
|
201
|
+
repeated GetVirtualAccountRemitterResponse remitters = 1;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
message GetVirtualAccountPaymentOrderBaseRequest {
|
|
205
|
+
string payment_code = 1;
|
|
206
|
+
int64 order_id = 2;
|
|
207
|
+
int64 account_id = 3;
|
|
208
|
+
string api_source = 4 [(validate.rules).string = {
|
|
209
|
+
min_len: 1,
|
|
210
|
+
max_len: 50,
|
|
211
|
+
in: [ "public", "private", "internal" ],
|
|
212
|
+
}];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
message GetVirtualAccountPaymentOrderBaseResponse {
|
|
216
|
+
GetVirtualAccountResponse va = 1;
|
|
217
|
+
VirtualAccountPaymentOrderBase payment = 2;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
message VirtualAccountPaymentOrderBase {
|
|
221
|
+
string payment_code = 1;
|
|
222
|
+
int64 order_id = 2;
|
|
223
|
+
int64 amount = 3;
|
|
224
|
+
string qr = 4;
|
|
225
|
+
string purpose = 5;
|
|
226
|
+
google.protobuf.Timestamp expired_time = 6;
|
|
227
|
+
string qr_data = 7;
|
|
228
|
+
string vendor = 8;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message GetVirtualAccountBankTransferRequest {}
|
|
232
|
+
|
|
233
|
+
message GetVirtualAccountBankTransferResponse {
|
|
234
|
+
string va_no = 1;
|
|
235
|
+
string va_name = 2;
|
|
236
|
+
string qr = 3;
|
|
237
|
+
string bank_name = 4;
|
|
238
|
+
string qr_data = 5;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
message VirtualAccountSendZNSsCampaignRequest {
|
|
242
|
+
string template_id = 1 [ (validate.rules).string = {min_len : 1} ];
|
|
243
|
+
repeated VirtualAccountSendZNSsCampaign data = 2 [ (validate.rules).repeated = {min_items : 1} ];
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
message VirtualAccountSendZNSsCampaign {
|
|
247
|
+
int64 account_id = 2 [ (validate.rules).int64 = {gte : 0} ];
|
|
248
|
+
string percent_discount = 3;
|
|
249
|
+
string payment_method = 4;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message VirtualAccountSendZNSsCampaignResponse {}
|
|
253
|
+
|
|
254
|
+
message CalculateVATopupDongtotRequest {
|
|
255
|
+
int64 account_id = 1;
|
|
256
|
+
optional int64 vnd_amount = 2;
|
|
257
|
+
optional int64 dongtot_amount = 3;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
message CalculateVATopupDongtotResponse {
|
|
261
|
+
int64 vnd_amount = 1;
|
|
262
|
+
int64 dongtot_amount = 2;
|
|
263
|
+
int64 tax_amount = 3;
|
|
264
|
+
int64 tax_rate = 4; // 800 as 8%, 850 as 8.5%, 875 as 8.75%
|
|
265
|
+
}
|