@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.
Files changed (100) hide show
  1. package/ad_service.proto +53 -0
  2. package/ad_service_pb.d.ts +248 -0
  3. package/ad_service_pb.js +99 -0
  4. package/cart.proto +122 -0
  5. package/cart_pb.d.ts +656 -0
  6. package/cart_pb.js +237 -0
  7. package/configuration.proto +147 -0
  8. package/configuration_pb.d.ts +716 -0
  9. package/configuration_pb.js +237 -0
  10. package/crepro_campaign.proto +277 -0
  11. package/crepro_campaign_pb.d.ts +1266 -0
  12. package/crepro_campaign_pb.js +436 -0
  13. package/crepro_code.proto +77 -0
  14. package/crepro_code_pb.d.ts +355 -0
  15. package/crepro_code_pb.js +130 -0
  16. package/crepro_log.proto +32 -0
  17. package/crepro_log_pb.d.ts +142 -0
  18. package/crepro_log_pb.js +51 -0
  19. package/crepro_redemption.proto +76 -0
  20. package/crepro_redemption_pb.d.ts +352 -0
  21. package/crepro_redemption_pb.js +119 -0
  22. package/dongtot.proto +758 -0
  23. package/dongtot_pb.d.ts +4169 -0
  24. package/dongtot_pb.js +1357 -0
  25. package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.d.ts +350 -0
  26. package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.js +551 -0
  27. package/dongtot_service.proto +154 -0
  28. package/dongtot_service_connect.d.ts +316 -0
  29. package/dongtot_service_connect.js +316 -0
  30. package/econtract.proto +675 -0
  31. package/econtract_pb.d.ts +3522 -0
  32. package/econtract_pb.js +1176 -0
  33. package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.d.ts +419 -0
  34. package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.js +673 -0
  35. package/econtract_service.proto +71 -0
  36. package/econtract_service_connect.d.ts +381 -0
  37. package/econtract_service_connect.js +381 -0
  38. package/fundiin.proto +53 -0
  39. package/fundiin_pb.d.ts +255 -0
  40. package/fundiin_pb.js +85 -0
  41. package/google_billing.proto +65 -0
  42. package/google_billing_pb.d.ts +372 -0
  43. package/google_billing_pb.js +146 -0
  44. package/iap.proto +53 -0
  45. package/iap_pb.d.ts +281 -0
  46. package/iap_pb.js +109 -0
  47. package/momo.proto +92 -0
  48. package/momo_pb.d.ts +481 -0
  49. package/momo_pb.js +150 -0
  50. package/napas.proto +110 -0
  51. package/napas_pb.d.ts +587 -0
  52. package/napas_pb.js +192 -0
  53. package/order.proto +81 -0
  54. package/order_pb.d.ts +372 -0
  55. package/order_pb.js +123 -0
  56. package/package.json +10 -0
  57. package/package.proto +382 -0
  58. package/package_pb.d.ts +1907 -0
  59. package/package_pb.js +621 -0
  60. package/payment_promotion.proto +170 -0
  61. package/payment_promotion_pb.d.ts +893 -0
  62. package/payment_promotion_pb.js +311 -0
  63. package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.d.ts +112 -0
  64. package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.js +171 -0
  65. package/payment_promotion_service.proto +73 -0
  66. package/payment_promotion_service_connect.d.ts +102 -0
  67. package/payment_promotion_service_connect.js +102 -0
  68. package/payoo.proto +55 -0
  69. package/payoo_pb.d.ts +282 -0
  70. package/payoo_pb.js +105 -0
  71. package/pricer.proto +154 -0
  72. package/pricer_pb.d.ts +823 -0
  73. package/pricer_pb.js +260 -0
  74. package/rabbit_mq.proto +51 -0
  75. package/rabbit_mq_pb.d.ts +257 -0
  76. package/rabbit_mq_pb.js +78 -0
  77. package/refund_order.proto +37 -0
  78. package/refund_order_pb.d.ts +184 -0
  79. package/refund_order_pb.js +63 -0
  80. package/scripts/modify_package_json.js +50 -0
  81. package/service-LogicUniRevPaymentService_connectquery.d.ts +1239 -0
  82. package/service-LogicUniRevPaymentService_connectquery.js +1968 -0
  83. package/service.proto +643 -0
  84. package/service_connect.d.ts +1120 -0
  85. package/service_connect.js +1120 -0
  86. package/subscription.proto +24 -0
  87. package/subscription_pb.d.ts +98 -0
  88. package/subscription_pb.js +37 -0
  89. package/template.proto +76 -0
  90. package/template_pb.d.ts +387 -0
  91. package/template_pb.js +140 -0
  92. package/transaction.proto +513 -0
  93. package/transaction_pb.d.ts +2717 -0
  94. package/transaction_pb.js +856 -0
  95. package/virtual_account.proto +265 -0
  96. package/virtual_account_pb.d.ts +1442 -0
  97. package/virtual_account_pb.js +478 -0
  98. package/zalopay.proto +78 -0
  99. package/zalopay_pb.d.ts +423 -0
  100. package/zalopay_pb.js +153 -0
package/cart_pb.js ADDED
@@ -0,0 +1,237 @@
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/cart.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import { proto3, Struct } from "@bufbuild/protobuf";
9
+
10
+ /**
11
+ * @generated from message ct_logic_uni_rev_payment.v1.GetCartRequest
12
+ */
13
+ export const GetCartRequest = proto3.makeMessageType(
14
+ "ct_logic_uni_rev_payment.v1.GetCartRequest",
15
+ () => [
16
+ { no: 1, name: "cart_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
18
+ { no: 3, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
19
+ { no: 4, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
20
+ ],
21
+ );
22
+
23
+ /**
24
+ * @generated from message ct_logic_uni_rev_payment.v1.CartBlockTime
25
+ */
26
+ export const CartBlockTime = proto3.makeMessageType(
27
+ "ct_logic_uni_rev_payment.v1.CartBlockTime",
28
+ () => [
29
+ { no: 1, name: "start", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
30
+ { no: 2, name: "end", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
31
+ ],
32
+ );
33
+
34
+ /**
35
+ * @generated from message ct_logic_uni_rev_payment.v1.CartServicePrice
36
+ */
37
+ export const CartServicePrice = proto3.makeMessageType(
38
+ "ct_logic_uni_rev_payment.v1.CartServicePrice",
39
+ () => [
40
+ { no: 1, name: "vnd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
41
+ { no: 2, name: "credit", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
42
+ { no: 3, name: "promotion", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
43
+ ],
44
+ );
45
+
46
+ /**
47
+ * @generated from message ct_logic_uni_rev_payment.v1.CartServiceRequest
48
+ */
49
+ export const CartServiceRequest = proto3.makeMessageType(
50
+ "ct_logic_uni_rev_payment.v1.CartServiceRequest",
51
+ () => [
52
+ { no: 1, name: "target", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
53
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
54
+ { no: 3, name: "params", kind: "message", T: Struct },
55
+ ],
56
+ );
57
+
58
+ /**
59
+ * @generated from message ct_logic_uni_rev_payment.v1.CartServiceSuccess
60
+ */
61
+ export const CartServiceSuccess = proto3.makeMessageType(
62
+ "ct_logic_uni_rev_payment.v1.CartServiceSuccess",
63
+ () => [
64
+ { no: 1, name: "target", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
65
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
+ { no: 3, name: "params", kind: "message", T: Struct },
67
+ ],
68
+ );
69
+
70
+ /**
71
+ * @generated from message ct_logic_uni_rev_payment.v1.AddCartServiceFail
72
+ */
73
+ export const AddCartServiceFail = proto3.makeMessageType(
74
+ "ct_logic_uni_rev_payment.v1.AddCartServiceFail",
75
+ () => [
76
+ { no: 1, name: "target", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
77
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
78
+ { no: 3, name: "params", kind: "message", T: Struct },
79
+ { no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
80
+ { no: 5, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
81
+ ],
82
+ );
83
+
84
+ /**
85
+ * @generated from message ct_logic_uni_rev_payment.v1.CartServiceResponse
86
+ */
87
+ export const CartServiceResponse = proto3.makeMessageType(
88
+ "ct_logic_uni_rev_payment.v1.CartServiceResponse",
89
+ () => [
90
+ { no: 1, name: "target", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
91
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
92
+ { no: 3, name: "params", kind: "message", T: Struct },
93
+ { no: 4, name: "price", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
94
+ { no: 5, name: "price_unit", kind: "message", T: CartServicePrice },
95
+ ],
96
+ );
97
+
98
+ /**
99
+ * @generated from message ct_logic_uni_rev_payment.v1.GetCartResponse
100
+ */
101
+ export const GetCartResponse = proto3.makeMessageType(
102
+ "ct_logic_uni_rev_payment.v1.GetCartResponse",
103
+ () => [
104
+ { no: 1, name: "services", kind: "message", T: CartServiceResponse, repeated: true },
105
+ ],
106
+ );
107
+
108
+ /**
109
+ * @generated from message ct_logic_uni_rev_payment.v1.GetCartInfoResponse
110
+ */
111
+ export const GetCartInfoResponse = proto3.makeMessageType(
112
+ "ct_logic_uni_rev_payment.v1.GetCartInfoResponse",
113
+ () => [
114
+ { no: 1, name: "services", kind: "message", T: CartInfoServiceResponse, repeated: true },
115
+ ],
116
+ );
117
+
118
+ /**
119
+ * @generated from message ct_logic_uni_rev_payment.v1.CartInfoServiceResponse
120
+ */
121
+ export const CartInfoServiceResponse = proto3.makeMessageType(
122
+ "ct_logic_uni_rev_payment.v1.CartInfoServiceResponse",
123
+ () => [
124
+ { no: 1, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
125
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
126
+ { no: 3, name: "params", kind: "message", T: Struct },
127
+ { no: 4, name: "price", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
128
+ { no: 5, name: "price_unit", kind: "message", T: CartServicePrice },
129
+ ],
130
+ );
131
+
132
+ /**
133
+ * @generated from message ct_logic_uni_rev_payment.v1.AddToCartRequest
134
+ */
135
+ export const AddToCartRequest = proto3.makeMessageType(
136
+ "ct_logic_uni_rev_payment.v1.AddToCartRequest",
137
+ () => [
138
+ { no: 1, name: "cart_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
139
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
140
+ { no: 3, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
141
+ { no: 4, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
+ { no: 5, name: "services", kind: "message", T: CartServiceRequest, repeated: true },
143
+ ],
144
+ );
145
+
146
+ /**
147
+ * @generated from message ct_logic_uni_rev_payment.v1.AddToCartResponse
148
+ */
149
+ export const AddToCartResponse = proto3.makeMessageType(
150
+ "ct_logic_uni_rev_payment.v1.AddToCartResponse",
151
+ () => [
152
+ { no: 1, name: "success", kind: "message", T: CartServiceSuccess, repeated: true },
153
+ { no: 2, name: "fail", kind: "message", T: AddCartServiceFail, repeated: true },
154
+ ],
155
+ );
156
+
157
+ /**
158
+ * @generated from message ct_logic_uni_rev_payment.v1.DeleteCartService
159
+ */
160
+ export const DeleteCartService = proto3.makeMessageType(
161
+ "ct_logic_uni_rev_payment.v1.DeleteCartService",
162
+ () => [
163
+ { no: 1, name: "target", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
164
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
165
+ ],
166
+ );
167
+
168
+ /**
169
+ * @generated from message ct_logic_uni_rev_payment.v1.DeleteCartRequest
170
+ */
171
+ export const DeleteCartRequest = proto3.makeMessageType(
172
+ "ct_logic_uni_rev_payment.v1.DeleteCartRequest",
173
+ () => [
174
+ { no: 1, name: "cart_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
175
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
176
+ { no: 3, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ { no: 4, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
178
+ { no: 5, name: "services", kind: "message", T: DeleteCartService, repeated: true },
179
+ ],
180
+ );
181
+
182
+ /**
183
+ * @generated from message ct_logic_uni_rev_payment.v1.DeleteCartSuccess
184
+ */
185
+ export const DeleteCartSuccess = proto3.makeMessageType(
186
+ "ct_logic_uni_rev_payment.v1.DeleteCartSuccess",
187
+ () => [
188
+ { no: 1, name: "target", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
189
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
+ ],
191
+ );
192
+
193
+ /**
194
+ * @generated from message ct_logic_uni_rev_payment.v1.DeleteCartFail
195
+ */
196
+ export const DeleteCartFail = proto3.makeMessageType(
197
+ "ct_logic_uni_rev_payment.v1.DeleteCartFail",
198
+ () => [
199
+ { no: 1, name: "target", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
200
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
201
+ { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
202
+ { no: 4, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
+ ],
204
+ );
205
+
206
+ /**
207
+ * @generated from message ct_logic_uni_rev_payment.v1.DeleteCartResponse
208
+ */
209
+ export const DeleteCartResponse = proto3.makeMessageType(
210
+ "ct_logic_uni_rev_payment.v1.DeleteCartResponse",
211
+ () => [
212
+ { no: 1, name: "success", kind: "message", T: DeleteCartSuccess, repeated: true },
213
+ { no: 2, name: "fail", kind: "message", T: DeleteCartFail, repeated: true },
214
+ ],
215
+ );
216
+
217
+ /**
218
+ * @generated from message ct_logic_uni_rev_payment.v1.DeleteAllCartRequest
219
+ */
220
+ export const DeleteAllCartRequest = proto3.makeMessageType(
221
+ "ct_logic_uni_rev_payment.v1.DeleteAllCartRequest",
222
+ () => [
223
+ { no: 1, name: "cart_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
224
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
225
+ ],
226
+ );
227
+
228
+ /**
229
+ * @generated from message ct_logic_uni_rev_payment.v1.DeleteAllCartResponse
230
+ */
231
+ export const DeleteAllCartResponse = proto3.makeMessageType(
232
+ "ct_logic_uni_rev_payment.v1.DeleteAllCartResponse",
233
+ () => [
234
+ { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
235
+ ],
236
+ );
237
+
@@ -0,0 +1,147 @@
1
+ // general
2
+ syntax = "proto3";
3
+ package ct_logic_uni_rev_payment.v1;
4
+
5
+ // import third party protos
6
+ import "validate/validate.proto";
7
+ import "ct-logic-uni-rev-payment/v1/econtract.proto";
8
+
9
+ // language specs
10
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
11
+
12
+ message ForceUpdateInfoRequest {
13
+ int64 category_id = 1 [(validate.rules).int64.gte = 0];
14
+ string app_version = 2 [(validate.rules).string.min_len = 1];
15
+ string app_platform = 3 [(validate.rules).string.min_len = 1];
16
+ string screen_name = 4 [(validate.rules).string.min_len = 1];
17
+ }
18
+
19
+ message ForceUpdateInfoResponse {
20
+ bool is_forced_update = 1;
21
+ int64 force_update_mode = 2;
22
+ string message = 3;
23
+ string button_text = 4;
24
+ int64 id = 5;
25
+ string title = 6;
26
+ }
27
+
28
+ message PaymentGatewayInfoRequest {
29
+ string platform = 1 [(validate.rules).string = {
30
+ in: [
31
+ "web",
32
+ "android",
33
+ "ios"
34
+ ]
35
+ }];
36
+ string app_version = 2;
37
+ string payment_code = 3; // either payment_code, order_id is required
38
+ int64 order_id = 4; // either payment_code or order_id is required
39
+ string page_type = 5;
40
+ int64 account_id = 6;
41
+ }
42
+
43
+ message PaymentGatewayInfo {
44
+ string payment_gateway_key = 1;
45
+ string state = 2;
46
+ string message = 3;
47
+ string payment_method_key = 4;
48
+ string payment_method_name = 5;
49
+ string payment_method_desc = 6; // short description below payment method name
50
+ string payment_method_icon = 7;
51
+ int64 charged_amount = 8;
52
+ string unit = 9;
53
+ bool support_invoice = 10;
54
+ int64 total_dongtot_balance = 11;
55
+ int64 before_tax_amount = 12;
56
+ optional int64 tax_amount = 13; // all gw + gg billing
57
+ optional int64 service_fee = 14; // only google billing
58
+ optional int64 tax_service_fee = 15; // only in-app purchase
59
+ }
60
+
61
+ message PaymentGatewayInfoResponse {
62
+ repeated PaymentGatewayInfo payment_gateway_info = 1;
63
+ }
64
+
65
+ message PaymentGatewayCheckoutInfoRequest {
66
+ string platform = 1 [(validate.rules).string = {
67
+ in: [
68
+ "web",
69
+ "android",
70
+ "ios"
71
+ ]
72
+ }];
73
+ string app_version = 2;
74
+ string order_type = 3;
75
+ OrderParams order_params = 4;
76
+ string page_type = 5;
77
+ }
78
+
79
+ message OrderParams {
80
+ optional CartParams cart = 1;
81
+ optional ShopParams shop = 2;
82
+ optional SubscriptionParams subscription = 3;
83
+ optional PaasParams paas = 4;
84
+ optional TopupParams topup = 5;
85
+ }
86
+
87
+ message CartParams {
88
+ string cart_id = 1;
89
+ }
90
+
91
+ message ShopParams {
92
+ int64 category_id = 1;
93
+ string action_type = 2;
94
+ int64 duration = 3;
95
+ }
96
+
97
+ message SubscriptionParams {
98
+ int64 subscription_id = 1;
99
+ int64 quantity = 2;
100
+ int64 previous_subscription_id = 3;
101
+ int64 recurring_subscribe_id = 4;
102
+ string subscription_payment_source = 5;
103
+ }
104
+
105
+ message PaasParams {
106
+ int64 order_id = 1;
107
+ string payment_code = 2;
108
+ }
109
+
110
+ message TopupParams {
111
+ int64 package_id = 1;
112
+ }
113
+
114
+ message PaymentGatewayCheckoutInfoResponse {
115
+ repeated PaymentGatewayInfo payment_gateway_info = 1;
116
+ string selected_payment_method = 2;
117
+ HighlightedMessage highlighted_message = 3;
118
+ optional WarningPopup warning_popup = 4;
119
+ string note = 5;
120
+ PricingDescription pricing_description = 6;
121
+ optional InvoiceInfo invoice_info = 7;
122
+ }
123
+
124
+ message PricingDescription {
125
+ string charged_amount_desc = 1;
126
+ string before_tax_amount_desc = 2;
127
+ string tax_amount_desc = 3;
128
+ string service_fee_desc = 4;
129
+ string tax_service_fee_desc = 5;
130
+ }
131
+
132
+ message HighlightedMessage {
133
+ string title = 1;
134
+ HighlightedMessageContent content = 2;
135
+ }
136
+
137
+ message HighlightedMessageContent {
138
+ string content = 1;
139
+ string icon_url = 2;
140
+ string link_url = 3;
141
+ }
142
+
143
+ message WarningPopup {
144
+ string warning_type = 1;
145
+ string content = 2;
146
+ string return_page = 3;
147
+ }