@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/momo_pb.d.ts
ADDED
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
// general
|
|
2
|
+
|
|
3
|
+
// @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
|
|
4
|
+
// @generated from file ct-logic-uni-rev-payment/v1/momo.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
|
|
8
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
9
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MomoIPNRequest
|
|
13
|
+
*/
|
|
14
|
+
export declare class MomoIPNRequest extends Message<MomoIPNRequest> {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: string partner_code = 1;
|
|
17
|
+
*/
|
|
18
|
+
partnerCode: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: string order_id = 2;
|
|
22
|
+
*/
|
|
23
|
+
orderId: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: string request_id = 3;
|
|
27
|
+
*/
|
|
28
|
+
requestId: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: string order_info = 4;
|
|
32
|
+
*/
|
|
33
|
+
orderInfo: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string order_type = 5;
|
|
37
|
+
*/
|
|
38
|
+
orderType: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: int64 trans_id = 6;
|
|
42
|
+
*/
|
|
43
|
+
transId: bigint;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: int64 amount = 7;
|
|
47
|
+
*/
|
|
48
|
+
amount: bigint;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: int32 result_code = 8;
|
|
52
|
+
*/
|
|
53
|
+
resultCode: number;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string message = 9;
|
|
57
|
+
*/
|
|
58
|
+
message: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string pay_type = 10;
|
|
62
|
+
*/
|
|
63
|
+
payType: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: int64 response_time = 11;
|
|
67
|
+
*/
|
|
68
|
+
responseTime: bigint;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string extra_data = 12;
|
|
72
|
+
*/
|
|
73
|
+
extraData: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: string signature = 13;
|
|
77
|
+
*/
|
|
78
|
+
signature: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: string response_time_str = 14;
|
|
82
|
+
*/
|
|
83
|
+
responseTimeStr: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string access_key = 15;
|
|
87
|
+
*/
|
|
88
|
+
accessKey: string;
|
|
89
|
+
|
|
90
|
+
constructor(data?: PartialMessage<MomoIPNRequest>);
|
|
91
|
+
|
|
92
|
+
static readonly runtime: typeof proto3;
|
|
93
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.MomoIPNRequest";
|
|
94
|
+
static readonly fields: FieldList;
|
|
95
|
+
|
|
96
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MomoIPNRequest;
|
|
97
|
+
|
|
98
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MomoIPNRequest;
|
|
99
|
+
|
|
100
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MomoIPNRequest;
|
|
101
|
+
|
|
102
|
+
static equals(a: MomoIPNRequest | PlainMessage<MomoIPNRequest> | undefined, b: MomoIPNRequest | PlainMessage<MomoIPNRequest> | undefined): boolean;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MomoIPNResponse
|
|
107
|
+
*/
|
|
108
|
+
export declare class MomoIPNResponse extends Message<MomoIPNResponse> {
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: string partner_code = 1;
|
|
111
|
+
*/
|
|
112
|
+
partnerCode: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: string order_id = 2;
|
|
116
|
+
*/
|
|
117
|
+
orderId: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string request_id = 3;
|
|
121
|
+
*/
|
|
122
|
+
requestId: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: int32 result_code = 4;
|
|
126
|
+
*/
|
|
127
|
+
resultCode: number;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: string message = 5;
|
|
131
|
+
*/
|
|
132
|
+
message: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: int64 response_time = 6;
|
|
136
|
+
*/
|
|
137
|
+
responseTime: bigint;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: string extra_data = 7;
|
|
141
|
+
*/
|
|
142
|
+
extraData: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: string signature = 8;
|
|
146
|
+
*/
|
|
147
|
+
signature: string;
|
|
148
|
+
|
|
149
|
+
constructor(data?: PartialMessage<MomoIPNResponse>);
|
|
150
|
+
|
|
151
|
+
static readonly runtime: typeof proto3;
|
|
152
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.MomoIPNResponse";
|
|
153
|
+
static readonly fields: FieldList;
|
|
154
|
+
|
|
155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MomoIPNResponse;
|
|
156
|
+
|
|
157
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MomoIPNResponse;
|
|
158
|
+
|
|
159
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MomoIPNResponse;
|
|
160
|
+
|
|
161
|
+
static equals(a: MomoIPNResponse | PlainMessage<MomoIPNResponse> | undefined, b: MomoIPNResponse | PlainMessage<MomoIPNResponse> | undefined): boolean;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneRequest
|
|
166
|
+
*/
|
|
167
|
+
export declare class GetMomoCheckPhoneRequest extends Message<GetMomoCheckPhoneRequest> {
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: string phone = 1;
|
|
170
|
+
*/
|
|
171
|
+
phone: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: string checksum = 2;
|
|
175
|
+
*/
|
|
176
|
+
checksum: string;
|
|
177
|
+
|
|
178
|
+
constructor(data?: PartialMessage<GetMomoCheckPhoneRequest>);
|
|
179
|
+
|
|
180
|
+
static readonly runtime: typeof proto3;
|
|
181
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneRequest";
|
|
182
|
+
static readonly fields: FieldList;
|
|
183
|
+
|
|
184
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMomoCheckPhoneRequest;
|
|
185
|
+
|
|
186
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMomoCheckPhoneRequest;
|
|
187
|
+
|
|
188
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMomoCheckPhoneRequest;
|
|
189
|
+
|
|
190
|
+
static equals(a: GetMomoCheckPhoneRequest | PlainMessage<GetMomoCheckPhoneRequest> | undefined, b: GetMomoCheckPhoneRequest | PlainMessage<GetMomoCheckPhoneRequest> | undefined): boolean;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneResponse
|
|
195
|
+
*/
|
|
196
|
+
export declare class GetMomoCheckPhoneResponse extends Message<GetMomoCheckPhoneResponse> {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: string error = 1;
|
|
199
|
+
*/
|
|
200
|
+
error: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: int32 status_code = 2;
|
|
204
|
+
*/
|
|
205
|
+
statusCode: number;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string register_message = 3;
|
|
209
|
+
*/
|
|
210
|
+
registerMessage: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: string register_link = 4;
|
|
214
|
+
*/
|
|
215
|
+
registerLink: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: string email = 5;
|
|
219
|
+
*/
|
|
220
|
+
email: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: string full_name = 6;
|
|
224
|
+
*/
|
|
225
|
+
fullName: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: string message_promotion = 7;
|
|
229
|
+
*/
|
|
230
|
+
messagePromotion: string;
|
|
231
|
+
|
|
232
|
+
constructor(data?: PartialMessage<GetMomoCheckPhoneResponse>);
|
|
233
|
+
|
|
234
|
+
static readonly runtime: typeof proto3;
|
|
235
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneResponse";
|
|
236
|
+
static readonly fields: FieldList;
|
|
237
|
+
|
|
238
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMomoCheckPhoneResponse;
|
|
239
|
+
|
|
240
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMomoCheckPhoneResponse;
|
|
241
|
+
|
|
242
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMomoCheckPhoneResponse;
|
|
243
|
+
|
|
244
|
+
static equals(a: GetMomoCheckPhoneResponse | PlainMessage<GetMomoCheckPhoneResponse> | undefined, b: GetMomoCheckPhoneResponse | PlainMessage<GetMomoCheckPhoneResponse> | undefined): boolean;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesRequest
|
|
249
|
+
*/
|
|
250
|
+
export declare class GetMomoDongTotPackagesRequest extends Message<GetMomoDongTotPackagesRequest> {
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: string phone = 1;
|
|
253
|
+
*/
|
|
254
|
+
phone: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @generated from field: string checksum = 2;
|
|
258
|
+
*/
|
|
259
|
+
checksum: string;
|
|
260
|
+
|
|
261
|
+
constructor(data?: PartialMessage<GetMomoDongTotPackagesRequest>);
|
|
262
|
+
|
|
263
|
+
static readonly runtime: typeof proto3;
|
|
264
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesRequest";
|
|
265
|
+
static readonly fields: FieldList;
|
|
266
|
+
|
|
267
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMomoDongTotPackagesRequest;
|
|
268
|
+
|
|
269
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMomoDongTotPackagesRequest;
|
|
270
|
+
|
|
271
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMomoDongTotPackagesRequest;
|
|
272
|
+
|
|
273
|
+
static equals(a: GetMomoDongTotPackagesRequest | PlainMessage<GetMomoDongTotPackagesRequest> | undefined, b: GetMomoDongTotPackagesRequest | PlainMessage<GetMomoDongTotPackagesRequest> | undefined): boolean;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesResponse
|
|
278
|
+
*/
|
|
279
|
+
export declare class GetMomoDongTotPackagesResponse extends Message<GetMomoDongTotPackagesResponse> {
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: string error = 1;
|
|
282
|
+
*/
|
|
283
|
+
error: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: int32 status_code = 2;
|
|
287
|
+
*/
|
|
288
|
+
statusCode: number;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @generated from field: string register_message = 3;
|
|
292
|
+
*/
|
|
293
|
+
registerMessage: string;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: string register_link = 4;
|
|
297
|
+
*/
|
|
298
|
+
registerLink: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @generated from field: string email = 5;
|
|
302
|
+
*/
|
|
303
|
+
email: string;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: string full_name = 6;
|
|
307
|
+
*/
|
|
308
|
+
fullName: string;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: string message_promotion = 7;
|
|
312
|
+
*/
|
|
313
|
+
messagePromotion: string;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @generated from field: map<int64, ct_logic_uni_rev_payment.v1.MomoPackage> package_map = 8;
|
|
317
|
+
*/
|
|
318
|
+
packageMap: { [key: string]: MomoPackage };
|
|
319
|
+
|
|
320
|
+
constructor(data?: PartialMessage<GetMomoDongTotPackagesResponse>);
|
|
321
|
+
|
|
322
|
+
static readonly runtime: typeof proto3;
|
|
323
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesResponse";
|
|
324
|
+
static readonly fields: FieldList;
|
|
325
|
+
|
|
326
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMomoDongTotPackagesResponse;
|
|
327
|
+
|
|
328
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMomoDongTotPackagesResponse;
|
|
329
|
+
|
|
330
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMomoDongTotPackagesResponse;
|
|
331
|
+
|
|
332
|
+
static equals(a: GetMomoDongTotPackagesResponse | PlainMessage<GetMomoDongTotPackagesResponse> | undefined, b: GetMomoDongTotPackagesResponse | PlainMessage<GetMomoDongTotPackagesResponse> | undefined): boolean;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MomoPackage
|
|
337
|
+
*/
|
|
338
|
+
export declare class MomoPackage extends Message<MomoPackage> {
|
|
339
|
+
/**
|
|
340
|
+
* @generated from field: int64 id = 1;
|
|
341
|
+
*/
|
|
342
|
+
id: bigint;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @generated from field: string name = 2;
|
|
346
|
+
*/
|
|
347
|
+
name: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: int64 price = 3;
|
|
351
|
+
*/
|
|
352
|
+
price: bigint;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: string icon = 4;
|
|
356
|
+
*/
|
|
357
|
+
icon: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: int64 promotion_id = 5;
|
|
361
|
+
*/
|
|
362
|
+
promotionId: bigint;
|
|
363
|
+
|
|
364
|
+
constructor(data?: PartialMessage<MomoPackage>);
|
|
365
|
+
|
|
366
|
+
static readonly runtime: typeof proto3;
|
|
367
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.MomoPackage";
|
|
368
|
+
static readonly fields: FieldList;
|
|
369
|
+
|
|
370
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MomoPackage;
|
|
371
|
+
|
|
372
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MomoPackage;
|
|
373
|
+
|
|
374
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MomoPackage;
|
|
375
|
+
|
|
376
|
+
static equals(a: MomoPackage | PlainMessage<MomoPackage> | undefined, b: MomoPackage | PlainMessage<MomoPackage> | undefined): boolean;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PostMomoTopupRequest
|
|
381
|
+
*/
|
|
382
|
+
export declare class PostMomoTopupRequest extends Message<PostMomoTopupRequest> {
|
|
383
|
+
/**
|
|
384
|
+
* @generated from field: string phone = 1;
|
|
385
|
+
*/
|
|
386
|
+
phone: string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: int64 package_id = 2;
|
|
390
|
+
*/
|
|
391
|
+
packageId: bigint;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: string trans_id = 3;
|
|
395
|
+
*/
|
|
396
|
+
transId: string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @generated from field: string ip = 4;
|
|
400
|
+
*/
|
|
401
|
+
ip: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: string checksum = 5;
|
|
405
|
+
*/
|
|
406
|
+
checksum: string;
|
|
407
|
+
|
|
408
|
+
constructor(data?: PartialMessage<PostMomoTopupRequest>);
|
|
409
|
+
|
|
410
|
+
static readonly runtime: typeof proto3;
|
|
411
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.PostMomoTopupRequest";
|
|
412
|
+
static readonly fields: FieldList;
|
|
413
|
+
|
|
414
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostMomoTopupRequest;
|
|
415
|
+
|
|
416
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostMomoTopupRequest;
|
|
417
|
+
|
|
418
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostMomoTopupRequest;
|
|
419
|
+
|
|
420
|
+
static equals(a: PostMomoTopupRequest | PlainMessage<PostMomoTopupRequest> | undefined, b: PostMomoTopupRequest | PlainMessage<PostMomoTopupRequest> | undefined): boolean;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PostMomoTopupResponse
|
|
425
|
+
*/
|
|
426
|
+
export declare class PostMomoTopupResponse extends Message<PostMomoTopupResponse> {
|
|
427
|
+
/**
|
|
428
|
+
* @generated from field: string error = 1;
|
|
429
|
+
*/
|
|
430
|
+
error: string;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @generated from field: int32 status_code = 2;
|
|
434
|
+
*/
|
|
435
|
+
statusCode: number;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @generated from field: string trans_id = 3;
|
|
439
|
+
*/
|
|
440
|
+
transId: string;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* @generated from field: string order_code = 4;
|
|
444
|
+
*/
|
|
445
|
+
orderCode: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: int64 order_id = 5;
|
|
449
|
+
*/
|
|
450
|
+
orderId: bigint;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @generated from field: int64 paid_amount = 6;
|
|
454
|
+
*/
|
|
455
|
+
paidAmount: bigint;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* @generated from field: int64 free_amount = 7;
|
|
459
|
+
*/
|
|
460
|
+
freeAmount: bigint;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* @generated from field: int64 amount = 8;
|
|
464
|
+
*/
|
|
465
|
+
amount: bigint;
|
|
466
|
+
|
|
467
|
+
constructor(data?: PartialMessage<PostMomoTopupResponse>);
|
|
468
|
+
|
|
469
|
+
static readonly runtime: typeof proto3;
|
|
470
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.PostMomoTopupResponse";
|
|
471
|
+
static readonly fields: FieldList;
|
|
472
|
+
|
|
473
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostMomoTopupResponse;
|
|
474
|
+
|
|
475
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostMomoTopupResponse;
|
|
476
|
+
|
|
477
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostMomoTopupResponse;
|
|
478
|
+
|
|
479
|
+
static equals(a: PostMomoTopupResponse | PlainMessage<PostMomoTopupResponse> | undefined, b: PostMomoTopupResponse | PlainMessage<PostMomoTopupResponse> | undefined): boolean;
|
|
480
|
+
}
|
|
481
|
+
|
package/momo_pb.js
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// general
|
|
2
|
+
|
|
3
|
+
// @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
|
|
4
|
+
// @generated from file ct-logic-uni-rev-payment/v1/momo.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
|
|
8
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MomoIPNRequest
|
|
12
|
+
*/
|
|
13
|
+
export const MomoIPNRequest = proto3.makeMessageType(
|
|
14
|
+
"ct_logic_uni_rev_payment.v1.MomoIPNRequest",
|
|
15
|
+
() => [
|
|
16
|
+
{ no: 1, name: "partner_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
17
|
+
{ no: 2, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
18
|
+
{ no: 3, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
19
|
+
{ no: 4, name: "order_info", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
20
|
+
{ no: 5, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
21
|
+
{ no: 6, name: "trans_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
22
|
+
{ no: 7, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
23
|
+
{ no: 8, name: "result_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
24
|
+
{ no: 9, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
25
|
+
{ no: 10, name: "pay_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
26
|
+
{ no: 11, name: "response_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
27
|
+
{ no: 12, name: "extra_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
28
|
+
{ no: 13, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
29
|
+
{ no: 14, name: "response_time_str", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
30
|
+
{ no: 15, name: "access_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
31
|
+
],
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MomoIPNResponse
|
|
36
|
+
*/
|
|
37
|
+
export const MomoIPNResponse = proto3.makeMessageType(
|
|
38
|
+
"ct_logic_uni_rev_payment.v1.MomoIPNResponse",
|
|
39
|
+
() => [
|
|
40
|
+
{ no: 1, name: "partner_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
41
|
+
{ no: 2, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
42
|
+
{ no: 3, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
43
|
+
{ no: 4, name: "result_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
44
|
+
{ no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
|
+
{ no: 6, name: "response_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
46
|
+
{ no: 7, name: "extra_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
47
|
+
{ no: 8, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
48
|
+
],
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneRequest
|
|
53
|
+
*/
|
|
54
|
+
export const GetMomoCheckPhoneRequest = proto3.makeMessageType(
|
|
55
|
+
"ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneRequest",
|
|
56
|
+
() => [
|
|
57
|
+
{ no: 1, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
58
|
+
{ no: 2, name: "checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
59
|
+
],
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneResponse
|
|
64
|
+
*/
|
|
65
|
+
export const GetMomoCheckPhoneResponse = proto3.makeMessageType(
|
|
66
|
+
"ct_logic_uni_rev_payment.v1.GetMomoCheckPhoneResponse",
|
|
67
|
+
() => [
|
|
68
|
+
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
69
|
+
{ no: 2, name: "status_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
70
|
+
{ no: 3, name: "register_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
71
|
+
{ no: 4, name: "register_link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
|
+
{ no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
+
{ no: 6, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 7, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
],
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesRequest
|
|
80
|
+
*/
|
|
81
|
+
export const GetMomoDongTotPackagesRequest = proto3.makeMessageType(
|
|
82
|
+
"ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesRequest",
|
|
83
|
+
() => [
|
|
84
|
+
{ no: 1, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
85
|
+
{ no: 2, name: "checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
86
|
+
],
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesResponse
|
|
91
|
+
*/
|
|
92
|
+
export const GetMomoDongTotPackagesResponse = proto3.makeMessageType(
|
|
93
|
+
"ct_logic_uni_rev_payment.v1.GetMomoDongTotPackagesResponse",
|
|
94
|
+
() => [
|
|
95
|
+
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
96
|
+
{ no: 2, name: "status_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
97
|
+
{ no: 3, name: "register_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
98
|
+
{ no: 4, name: "register_link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
99
|
+
{ no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
100
|
+
{ no: 6, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
101
|
+
{ no: 7, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
102
|
+
{ no: 8, name: "package_map", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "message", T: MomoPackage} },
|
|
103
|
+
],
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MomoPackage
|
|
108
|
+
*/
|
|
109
|
+
export const MomoPackage = proto3.makeMessageType(
|
|
110
|
+
"ct_logic_uni_rev_payment.v1.MomoPackage",
|
|
111
|
+
() => [
|
|
112
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
113
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
114
|
+
{ no: 3, name: "price", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
115
|
+
{ no: 4, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
116
|
+
{ no: 5, name: "promotion_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
117
|
+
],
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PostMomoTopupRequest
|
|
122
|
+
*/
|
|
123
|
+
export const PostMomoTopupRequest = proto3.makeMessageType(
|
|
124
|
+
"ct_logic_uni_rev_payment.v1.PostMomoTopupRequest",
|
|
125
|
+
() => [
|
|
126
|
+
{ no: 1, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
|
+
{ no: 2, name: "package_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
128
|
+
{ no: 3, name: "trans_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
+
{ no: 4, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
130
|
+
{ no: 5, name: "checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
|
+
],
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PostMomoTopupResponse
|
|
136
|
+
*/
|
|
137
|
+
export const PostMomoTopupResponse = proto3.makeMessageType(
|
|
138
|
+
"ct_logic_uni_rev_payment.v1.PostMomoTopupResponse",
|
|
139
|
+
() => [
|
|
140
|
+
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
141
|
+
{ no: 2, name: "status_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
142
|
+
{ no: 3, name: "trans_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
143
|
+
{ no: 4, name: "order_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
144
|
+
{ no: 5, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
145
|
+
{ no: 6, name: "paid_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
146
|
+
{ no: 7, name: "free_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
147
|
+
{ no: 8, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
148
|
+
],
|
|
149
|
+
);
|
|
150
|
+
|