@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/template_pb.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file ct-logic-uni-rev-payment/v1/template.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message ct_logic_uni_rev_payment.v1.TemplateContent
|
|
10
|
+
*/
|
|
11
|
+
export const TemplateContent = proto3.makeMessageType(
|
|
12
|
+
"ct_logic_uni_rev_payment.v1.TemplateContent",
|
|
13
|
+
() => [
|
|
14
|
+
{ no: 1, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
15
|
+
{ no: 2, name: "icon_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
16
|
+
],
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @generated from message ct_logic_uni_rev_payment.v1.BnplPaymentLimitTemplateRequest
|
|
21
|
+
*/
|
|
22
|
+
export const BnplPaymentLimitTemplateRequest = proto3.makeMessageType(
|
|
23
|
+
"ct_logic_uni_rev_payment.v1.BnplPaymentLimitTemplateRequest",
|
|
24
|
+
() => [
|
|
25
|
+
{ no: 1, name: "ad_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
26
|
+
{ no: 2, name: "package_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
27
|
+
{ no: 3, name: "shop_package_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
28
|
+
{ no: 4, name: "page", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
29
|
+
],
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from message ct_logic_uni_rev_payment.v1.BnplPaymentLimitTemplateResponse
|
|
34
|
+
*/
|
|
35
|
+
export const BnplPaymentLimitTemplateResponse = proto3.makeMessageType(
|
|
36
|
+
"ct_logic_uni_rev_payment.v1.BnplPaymentLimitTemplateResponse",
|
|
37
|
+
() => [
|
|
38
|
+
{ no: 1, name: "html", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
39
|
+
{ no: 2, name: "modal_img_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
40
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
41
|
+
{ no: 4, name: "content_arr", kind: "message", T: TemplateContent, repeated: true },
|
|
42
|
+
],
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @generated from message ct_logic_uni_rev_payment.v1.BnplCallCenterTemplateRequest
|
|
47
|
+
*/
|
|
48
|
+
export const BnplCallCenterTemplateRequest = proto3.makeMessageType(
|
|
49
|
+
"ct_logic_uni_rev_payment.v1.BnplCallCenterTemplateRequest",
|
|
50
|
+
() => [
|
|
51
|
+
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
52
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
53
|
+
],
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from message ct_logic_uni_rev_payment.v1.BnplCallCenterTemplateResponse
|
|
58
|
+
*/
|
|
59
|
+
export const BnplCallCenterTemplateResponse = proto3.makeMessageType(
|
|
60
|
+
"ct_logic_uni_rev_payment.v1.BnplCallCenterTemplateResponse",
|
|
61
|
+
() => [
|
|
62
|
+
{ no: 1, name: "html", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
63
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
64
|
+
{ no: 3, name: "content", kind: "message", T: TemplateContent },
|
|
65
|
+
],
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GoogleBillingServiceMessageTemplateRequest
|
|
70
|
+
*/
|
|
71
|
+
export const GoogleBillingServiceMessageTemplateRequest = proto3.makeMessageType(
|
|
72
|
+
"ct_logic_uni_rev_payment.v1.GoogleBillingServiceMessageTemplateRequest",
|
|
73
|
+
() => [
|
|
74
|
+
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
76
|
+
],
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GoogleBillingServiceMessageTemplateResponse
|
|
81
|
+
*/
|
|
82
|
+
export const GoogleBillingServiceMessageTemplateResponse = proto3.makeMessageType(
|
|
83
|
+
"ct_logic_uni_rev_payment.v1.GoogleBillingServiceMessageTemplateResponse",
|
|
84
|
+
() => [
|
|
85
|
+
{ no: 1, name: "html", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
86
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
87
|
+
{ no: 3, name: "content", kind: "message", T: TemplateContent },
|
|
88
|
+
],
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GoogleBillingPaymentMessageTemplateRequest
|
|
93
|
+
*/
|
|
94
|
+
export const GoogleBillingPaymentMessageTemplateRequest = proto3.makeMessageType(
|
|
95
|
+
"ct_logic_uni_rev_payment.v1.GoogleBillingPaymentMessageTemplateRequest",
|
|
96
|
+
() => [
|
|
97
|
+
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
98
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
99
|
+
],
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GoogleBillingPaymentMessageTemplateResponse
|
|
104
|
+
*/
|
|
105
|
+
export const GoogleBillingPaymentMessageTemplateResponse = proto3.makeMessageType(
|
|
106
|
+
"ct_logic_uni_rev_payment.v1.GoogleBillingPaymentMessageTemplateResponse",
|
|
107
|
+
() => [
|
|
108
|
+
{ no: 1, name: "html", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
110
|
+
{ no: 3, name: "content", kind: "message", T: TemplateContent },
|
|
111
|
+
],
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GoogleBillingPaymentPageTemplateRequest
|
|
116
|
+
*/
|
|
117
|
+
export const GoogleBillingPaymentPageTemplateRequest = proto3.makeMessageType(
|
|
118
|
+
"ct_logic_uni_rev_payment.v1.GoogleBillingPaymentPageTemplateRequest",
|
|
119
|
+
() => [
|
|
120
|
+
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
121
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
122
|
+
],
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GoogleBillingPaymentPageTemplateResponse
|
|
127
|
+
*/
|
|
128
|
+
export const GoogleBillingPaymentPageTemplateResponse = proto3.makeMessageType(
|
|
129
|
+
"ct_logic_uni_rev_payment.v1.GoogleBillingPaymentPageTemplateResponse",
|
|
130
|
+
() => [
|
|
131
|
+
{ no: 1, name: "html", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
133
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
134
|
+
{ no: 4, name: "footer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
135
|
+
{ no: 5, name: "button_text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
136
|
+
{ no: 6, name: "modal_img_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
137
|
+
{ no: 7, name: "content_arr", kind: "message", T: TemplateContent, repeated: true },
|
|
138
|
+
],
|
|
139
|
+
);
|
|
140
|
+
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_payment.v1;
|
|
4
|
+
|
|
5
|
+
// import third party protos
|
|
6
|
+
import "google/protobuf/timestamp.proto";
|
|
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
|
+
// internal imports
|
|
12
|
+
|
|
13
|
+
message CreateTransactionRequest {
|
|
14
|
+
int64 account_id = 1;
|
|
15
|
+
int64 order_id = 2;
|
|
16
|
+
string gateway = 3;
|
|
17
|
+
string bank_id = 4;
|
|
18
|
+
string phone = 5;
|
|
19
|
+
string user = 6;
|
|
20
|
+
string title = 7;
|
|
21
|
+
string ip = 8;
|
|
22
|
+
string return_url = 9;
|
|
23
|
+
int32 no_cart = 10;
|
|
24
|
+
int32 save_card = 11;
|
|
25
|
+
string authen_token = 12;
|
|
26
|
+
int64 amount = 13;
|
|
27
|
+
string payment_code = 14;
|
|
28
|
+
repeated int64 packages = 15;
|
|
29
|
+
string order_type = 16;
|
|
30
|
+
string source = 17;
|
|
31
|
+
string platform = 18;
|
|
32
|
+
int64 extend_id = 19;
|
|
33
|
+
string extend_type = 20;
|
|
34
|
+
string token_id = 21;
|
|
35
|
+
int64 campaign_id = 22;
|
|
36
|
+
string type = 23;
|
|
37
|
+
bool is_internal = 24;
|
|
38
|
+
int64 promotion_code = 25;
|
|
39
|
+
int64 package_id = 26;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message PayOrderRequest {
|
|
43
|
+
int64 account_id = 1;
|
|
44
|
+
string unit = 2;
|
|
45
|
+
string source = 3;
|
|
46
|
+
string order_type = 4;
|
|
47
|
+
string title = 5;
|
|
48
|
+
string ip = 6;
|
|
49
|
+
string cart_id = 7;
|
|
50
|
+
string return_url = 8;
|
|
51
|
+
string gateway = 9;
|
|
52
|
+
string bank_id = 10;
|
|
53
|
+
int32 save_card = 11;
|
|
54
|
+
string platform = 12;
|
|
55
|
+
string authen_token = 13;
|
|
56
|
+
int64 amount = 14;
|
|
57
|
+
string payment_code = 15;
|
|
58
|
+
repeated int64 packages = 16;
|
|
59
|
+
int64 extend_id = 17;
|
|
60
|
+
string extend_type = 18;
|
|
61
|
+
int32 subscription_id = 19;
|
|
62
|
+
int32 quantity = 20;
|
|
63
|
+
int32 category_id = 21;
|
|
64
|
+
int32 duration = 22;
|
|
65
|
+
string token_id = 23;
|
|
66
|
+
int64 campaign_id = 24;
|
|
67
|
+
int32 level = 25;
|
|
68
|
+
int32 delay_min = 26;
|
|
69
|
+
int32 previous_subscription_id = 27;
|
|
70
|
+
int64 recurring_subscribe_id = 28;
|
|
71
|
+
string subscription_payment_source = 29;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message CreateTransactionResponse {
|
|
75
|
+
string request_id = 1;
|
|
76
|
+
string cv_request_id = 2;
|
|
77
|
+
string partner_trans_id = 3;
|
|
78
|
+
string description = 4;
|
|
79
|
+
string redirect_url = 5;
|
|
80
|
+
int64 order_id = 6;
|
|
81
|
+
int64 extend_id = 7;
|
|
82
|
+
string extend_type = 8;
|
|
83
|
+
google.protobuf.Timestamp created_at = 9;
|
|
84
|
+
google.protobuf.Timestamp updated_at = 10;
|
|
85
|
+
string billing_code = 11;
|
|
86
|
+
int64 amount = 12; // original order amount
|
|
87
|
+
string status = 13;
|
|
88
|
+
int64 charged_amount = 14; // actual amount charged (including gateway service fee)
|
|
89
|
+
int64 payment_attempt_id = 15;
|
|
90
|
+
string qrcode_url = 16; //momo,zlp qrcode payment
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message PayOrderResponse {
|
|
94
|
+
string request_id = 1;
|
|
95
|
+
string cv_request_id = 2;
|
|
96
|
+
string return_code = 3;
|
|
97
|
+
string partner_trans_id = 4;
|
|
98
|
+
string description = 5;
|
|
99
|
+
string redirect_url = 6;
|
|
100
|
+
int64 order_id = 7;
|
|
101
|
+
PayOrderInfoResponse order_info = 8;
|
|
102
|
+
string status = 9;
|
|
103
|
+
int64 parent_account_id = 10;
|
|
104
|
+
google.protobuf.Timestamp created_at = 11;
|
|
105
|
+
google.protobuf.Timestamp updated_at = 12;
|
|
106
|
+
int64 amount = 13; // original order amount
|
|
107
|
+
string billing_code = 14;
|
|
108
|
+
int64 extend_id = 15;
|
|
109
|
+
string extend_type = 16;
|
|
110
|
+
repeated string google_product_ids = 17; // for google_billing
|
|
111
|
+
// for gateway free shop
|
|
112
|
+
string shop_alias = 18;
|
|
113
|
+
string shop_name = 19;
|
|
114
|
+
string shop_status = 20;
|
|
115
|
+
bool is_verified = 21;
|
|
116
|
+
string expired_date = 22;
|
|
117
|
+
int64 charged_amount = 23; // actual amount charged (including gateway service fee)
|
|
118
|
+
int64 payment_attempt_id = 24;
|
|
119
|
+
string qrcode_url = 25; //momo,zlp qrcode payment
|
|
120
|
+
PopupContent popup_content = 26;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message PopupContent {
|
|
124
|
+
string title = 1;
|
|
125
|
+
ContentDetail content_detail = 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message ContentDetail {
|
|
129
|
+
string image_url = 1;
|
|
130
|
+
string icon_url = 2;
|
|
131
|
+
string amount_full_text = 3;
|
|
132
|
+
string amount_shorten_text = 4;
|
|
133
|
+
string content = 5;
|
|
134
|
+
string notice = 6;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message PayOrderInfoResponse {
|
|
138
|
+
PayOrderServiceResponse service = 1;
|
|
139
|
+
PayOrderTopupResponse topup = 2;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
message PayOrderServiceResponse {
|
|
143
|
+
int64 order_id = 1;
|
|
144
|
+
string payment_code = 2;
|
|
145
|
+
int64 amount = 3;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message PayOrderTopupResponse {
|
|
149
|
+
int64 order_id = 1;
|
|
150
|
+
string payment_code = 2;
|
|
151
|
+
int64 amount = 3;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message GetResponseTransactionRequest {
|
|
155
|
+
string cv_request_id = 1;
|
|
156
|
+
int64 order_id = 2;
|
|
157
|
+
int64 account_id = 3;
|
|
158
|
+
string user = 4;
|
|
159
|
+
string phone = 5;
|
|
160
|
+
string ip = 6;
|
|
161
|
+
string source = 7;
|
|
162
|
+
string gateway = 8;
|
|
163
|
+
string params = 9;
|
|
164
|
+
repeated string type_list = 10;
|
|
165
|
+
int64 diff_account = 11;
|
|
166
|
+
int64 payment_attempt_id = 12;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
message GetResponseTransactionResponse {
|
|
170
|
+
string code = 1;
|
|
171
|
+
string message = 2;
|
|
172
|
+
string gateway = 3;
|
|
173
|
+
string status = 4;
|
|
174
|
+
int64 order_id = 5;
|
|
175
|
+
int64 amount = 6;
|
|
176
|
+
GetResponseTransactionResponseOrderInfo o_info = 7;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message GetResponseTransactionResponseOrderInfo {
|
|
180
|
+
int64 order_id = 1;
|
|
181
|
+
string order_status = 2;
|
|
182
|
+
int64 account_id = 3;
|
|
183
|
+
int64 child_account_id = 4;
|
|
184
|
+
int64 failed_order_id = 5;
|
|
185
|
+
string phone = 6;
|
|
186
|
+
int64 value = 7;
|
|
187
|
+
string source = 8;
|
|
188
|
+
string unit = 9;
|
|
189
|
+
string payment_code = 10;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message ViewTransactionRequest {
|
|
193
|
+
int64 order_id = 1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message ViewTransactionResponse {
|
|
197
|
+
string response_status = 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message CreatePaaSTransactionRequest {
|
|
201
|
+
int64 account_id = 1 [(validate.rules).int64 = {gte: 0}];
|
|
202
|
+
string payment_code = 2 [(validate.rules).string = {min_len: 1}];
|
|
203
|
+
string gateway = 3 [(validate.rules).string = {min_len: 1}];
|
|
204
|
+
string ip = 4 [(validate.rules).string = {min_len: 1}];
|
|
205
|
+
string return_url = 5 [(validate.rules).string = {min_len: 1}];
|
|
206
|
+
CreatePaaSTransactionPaymentGatewayParamsRequest gateway_params = 6;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message CreatePaaSTransactionPaymentGatewayParamsRequest {
|
|
210
|
+
CreatePaaSTransactionNapasParamsRequest napas = 1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message CreatePaaSTransactionNapasParamsRequest {
|
|
214
|
+
string bank_id = 1;
|
|
215
|
+
string token_id = 2;
|
|
216
|
+
bool save_card = 3;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
message CreatePaaSTransactionResponse {
|
|
220
|
+
string redirect_url = 1; // credit, iOS iap, google_billing this will be empty string
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message GetStatusTokenRequest {
|
|
224
|
+
int64 price = 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
message GetStatusTokenResponse {
|
|
228
|
+
AtmToken atm = 1;
|
|
229
|
+
VisaToken visa = 2;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
message AtmToken {
|
|
233
|
+
int64 gateway_123pay = 1;
|
|
234
|
+
int64 gateway_napas = 2;
|
|
235
|
+
int64 gateway_zalopay = 3;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message VisaToken {
|
|
239
|
+
int64 gateway_123pay = 1;
|
|
240
|
+
int64 gateway_napas = 2;
|
|
241
|
+
int64 gateway_zalopay = 3;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message GetCartPaymentInfoRequest {
|
|
245
|
+
int64 price = 1;
|
|
246
|
+
int64 account_id = 2;
|
|
247
|
+
string campaign_type = 3;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
message GetCartPaymentInfoResponse {
|
|
251
|
+
ShowPaymentTokenInfo show_token = 1;
|
|
252
|
+
map<string, CartCampaign> campaigns = 2;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
message GetCartSubscriptionInfoRequest {
|
|
256
|
+
int64 subscription_id = 1;
|
|
257
|
+
int64 quantity = 2;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
message GetCartSubscriptionInfoResponse {
|
|
261
|
+
CartSubscriptionInfo subscription_info = 1;
|
|
262
|
+
ShowPaymentTokenInfo show_token = 2;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
message GetCartShopInfoRequest {
|
|
266
|
+
int64 category_id = 1;
|
|
267
|
+
int64 duration = 2;
|
|
268
|
+
int64 package_id = 3;
|
|
269
|
+
string campaign_type = 4;
|
|
270
|
+
int64 account_id = 5;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
message GetCartShopInfoResponse {
|
|
274
|
+
CartShopInfo shop_info = 1;
|
|
275
|
+
ShowPaymentTokenInfo show_token = 2;
|
|
276
|
+
map<string, CartCampaign> campaigns = 3;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
message GetCartTopupInfoRequest {
|
|
280
|
+
int64 package_id = 1;
|
|
281
|
+
int64 account_id = 2;
|
|
282
|
+
int64 dongtot_amount = 3; // either package_id or dongtot_amount is provided
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
message GetCartTopupInfoResponse {
|
|
286
|
+
ShowPaymentTokenInfo show_token = 1;
|
|
287
|
+
CartPackageInfo package_info = 2;
|
|
288
|
+
map<string, CartCampaign> campaigns = 3;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
message CartShopInfo {
|
|
292
|
+
int64 price = 1;
|
|
293
|
+
CartPriceUnit price_unit = 2;
|
|
294
|
+
CartShopInfoDetail details = 3;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
message CartShopInfoDetail {
|
|
298
|
+
int64 free_ads_per_month = 1;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
message CartSubscriptionInfo {
|
|
302
|
+
int64 price = 1;
|
|
303
|
+
CartPriceUnit price_unit = 2;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
message CartPriceUnit {
|
|
307
|
+
int64 vnd = 1;
|
|
308
|
+
int64 credit = 2;
|
|
309
|
+
int64 promotion = 3;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
message ShowPaymentTokenInfo {
|
|
313
|
+
AtmToken atm = 1;
|
|
314
|
+
VisaToken visa = 2;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
message CartPackageInfo {
|
|
318
|
+
int64 id = 1;
|
|
319
|
+
string package_type = 2;
|
|
320
|
+
int64 paid_amount = 3;
|
|
321
|
+
int64 promotion_amount = 4;
|
|
322
|
+
bool actived = 5;
|
|
323
|
+
string method = 6;
|
|
324
|
+
string icon = 7;
|
|
325
|
+
bool is_default = 8;
|
|
326
|
+
int64 group_id = 9;
|
|
327
|
+
bool is_auto_online_contract = 10;
|
|
328
|
+
int64 price = 11;
|
|
329
|
+
string type = 12;
|
|
330
|
+
string name = 13;
|
|
331
|
+
string purpose = 14;
|
|
332
|
+
string status = 15;
|
|
333
|
+
string platform = 16;
|
|
334
|
+
int64 vnd_paid_price = 17;
|
|
335
|
+
int64 paid_dongtot = 18;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
message CartCampaign {
|
|
339
|
+
CartCampaignInfo campaign = 1;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
message CartCampaignInfo {
|
|
343
|
+
string campaign_name = 1;
|
|
344
|
+
string campaign_type = 2;
|
|
345
|
+
string description = 3;
|
|
346
|
+
string image_url = 4;
|
|
347
|
+
google.protobuf.Timestamp start_time = 5;
|
|
348
|
+
google.protobuf.Timestamp end_time = 6;
|
|
349
|
+
int64 min_order_value = 7;
|
|
350
|
+
int64 max_order_value = 8;
|
|
351
|
+
int64 limit_per_user = 9;
|
|
352
|
+
int64 limit_total_budget = 10;
|
|
353
|
+
string status = 11;
|
|
354
|
+
int32 priority = 12;
|
|
355
|
+
int64 id = 13;
|
|
356
|
+
CartCampaignParams campaign_params = 14;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
message CartCampaignParams {
|
|
360
|
+
repeated string payment_methods = 1;
|
|
361
|
+
string discount_type = 2;
|
|
362
|
+
int64 discount_value = 3;
|
|
363
|
+
int64 max_promotion_value = 4;
|
|
364
|
+
string segment_id = 5;
|
|
365
|
+
string announcement_message = 6;
|
|
366
|
+
repeated string package_icons = 7;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
message ProcessPaymentRequest {
|
|
370
|
+
int64 account_id = 1 [(validate.rules).int64 = {gte: 0}];
|
|
371
|
+
string payment_code = 2;
|
|
372
|
+
int64 order_id = 3;
|
|
373
|
+
string ip = 4;
|
|
374
|
+
string payment_method = 5 [(validate.rules).string = {
|
|
375
|
+
in: [
|
|
376
|
+
"credit",
|
|
377
|
+
"credit_biz",
|
|
378
|
+
"momo",
|
|
379
|
+
"zalopay",
|
|
380
|
+
"domestic_card",
|
|
381
|
+
"international_card",
|
|
382
|
+
"fundiin",
|
|
383
|
+
"saved_card",
|
|
384
|
+
"google_billing",
|
|
385
|
+
"bank_transfer",
|
|
386
|
+
"others"
|
|
387
|
+
]
|
|
388
|
+
}];
|
|
389
|
+
oneof payment_method_params {
|
|
390
|
+
MomoRequestParams momo_request_params = 6;
|
|
391
|
+
ZalopayRequestParams zalopay_request_params = 7;
|
|
392
|
+
DomesticCardRequestParams domestic_card_request_params = 8;
|
|
393
|
+
InternationalCardRequestParams international_card_request_params = 9;
|
|
394
|
+
SavedCardRequestParams saved_card_request_params = 10;
|
|
395
|
+
FundiinRequestParams fundiin_request_params = 11;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
message MomoRequestParams {
|
|
400
|
+
string return_url = 1;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
message ZalopayRequestParams {
|
|
404
|
+
string return_url = 1;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
message FundiinRequestParams {
|
|
408
|
+
string return_url = 1;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
message DomesticCardRequestParams {
|
|
412
|
+
string return_url = 1;
|
|
413
|
+
string bank_id = 2;
|
|
414
|
+
bool save_card = 3;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
message InternationalCardRequestParams {
|
|
418
|
+
string return_url = 1;
|
|
419
|
+
bool save_card = 2;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
message SavedCardRequestParams {
|
|
423
|
+
string return_url = 1;
|
|
424
|
+
string gatway = 2;
|
|
425
|
+
string token_id = 3;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
message ProcessPaymentResponse {
|
|
429
|
+
int64 order_id = 1;
|
|
430
|
+
int64 original_amount = 2;
|
|
431
|
+
int64 charged_amount = 3;
|
|
432
|
+
string status = 4;
|
|
433
|
+
int64 payment_attempt_id = 5;
|
|
434
|
+
oneof payment_method_response_params {
|
|
435
|
+
MomoResponseParams momo_response_params = 6;
|
|
436
|
+
ZalopayResponseParams zalopay_response_params = 7;
|
|
437
|
+
DomesticCardResponseParams domestic_card_response_params = 8;
|
|
438
|
+
InternationalCardResponseParams international_card_response_params = 9;
|
|
439
|
+
GoogleBillingResponseParams google_billing_response_params = 10;
|
|
440
|
+
SaveCardResponseParams saved_card_response_params = 11;
|
|
441
|
+
FundiinResponseParams fundiin_response_params = 12;
|
|
442
|
+
BankTransferResponseParams bank_transfer_response_params = 13;
|
|
443
|
+
}
|
|
444
|
+
PopupContent popup_content = 14;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message MomoResponseParams {
|
|
448
|
+
string redirect_url = 1;
|
|
449
|
+
string qrcode_url = 2;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
message ZalopayResponseParams {
|
|
453
|
+
string redirect_url = 1;
|
|
454
|
+
string qrcode_url = 2;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
message InternationalCardResponseParams {
|
|
458
|
+
string redirect_url = 1;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
message DomesticCardResponseParams {
|
|
462
|
+
string redirect_url = 1;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
message GoogleBillingResponseParams {
|
|
466
|
+
repeated string google_product_ids = 1;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
message SaveCardResponseParams {
|
|
470
|
+
string redirect_url = 1;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
message FundiinResponseParams {
|
|
474
|
+
string redirect_url = 1;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
message BankTransferResponseParams {
|
|
478
|
+
string redirect_url = 1;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
message GetIPNStatusRequest {
|
|
482
|
+
int64 payment_attempt_id = 1;
|
|
483
|
+
string order_id = 2;
|
|
484
|
+
string gateway = 3;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
message GetIPNStatusResponse {
|
|
488
|
+
string result = 1;
|
|
489
|
+
string message = 2;
|
|
490
|
+
string gateway = 3;
|
|
491
|
+
string redirect_url = 4;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
message ValidateMappingPaymentRequest {
|
|
496
|
+
int64 order_id = 1;
|
|
497
|
+
int64 order_value = 2; // original order amount, no service fee, no tax
|
|
498
|
+
int64 account_id = 3;
|
|
499
|
+
string gateway = 4;
|
|
500
|
+
string transaction_id = 5;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
message ValidateMappingPaymentResponse {}
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
message ForceMappingPaymentRequest {
|
|
507
|
+
int64 order_id = 1;
|
|
508
|
+
int64 order_value = 2; // original order amount, no service fee, no tax
|
|
509
|
+
string gateway = 3;
|
|
510
|
+
string transaction_id = 4;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
message ForceMappingPaymentResponse {}
|