@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/pricer_pb.js
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
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/pricer.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.PriceMessage
|
|
12
|
+
*/
|
|
13
|
+
export const PriceMessage = proto3.makeMessageType(
|
|
14
|
+
"ct_logic_uni_rev_payment.v1.PriceMessage",
|
|
15
|
+
() => [
|
|
16
|
+
{ no: 1, name: "vnd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
17
|
+
{ no: 2, name: "credit", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
18
|
+
{ no: 3, name: "promotion", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
19
|
+
],
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message ct_logic_uni_rev_payment.v1.DetailPriceBundle
|
|
24
|
+
*/
|
|
25
|
+
export const DetailPriceBundle = proto3.makeMessageType(
|
|
26
|
+
"ct_logic_uni_rev_payment.v1.DetailPriceBundle",
|
|
27
|
+
() => [
|
|
28
|
+
{ no: 1, name: "service_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
29
|
+
{ no: 2, name: "service_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
30
|
+
{ no: 3, name: "service_params", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
31
|
+
{ no: 4, name: "bundle_segment_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
32
|
+
{ no: 5, name: "price", kind: "message", T: PriceMessage },
|
|
33
|
+
],
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @generated from message ct_logic_uni_rev_payment.v1.BundlePriceMessage
|
|
38
|
+
*/
|
|
39
|
+
export const BundlePriceMessage = proto3.makeMessageType(
|
|
40
|
+
"ct_logic_uni_rev_payment.v1.BundlePriceMessage",
|
|
41
|
+
() => [
|
|
42
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
43
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
44
|
+
{ no: 3, name: "tagging_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
|
+
{ no: 4, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
46
|
+
{ no: 5, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
47
|
+
{ no: 6, name: "gif_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
48
|
+
{ no: 7, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
49
|
+
{ no: 8, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
50
|
+
{ no: 9, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
51
|
+
{ no: 10, name: "is_bundle_listing", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
52
|
+
{ no: 11, name: "bundle_premium_services_only_duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
53
|
+
{ no: 12, name: "price", kind: "message", T: PriceMessage },
|
|
54
|
+
{ no: 13, name: "bundle_segment_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
55
|
+
{ no: 14, name: "segment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
56
|
+
{ no: 15, name: "detail_prices", kind: "message", T: DetailPriceBundle, repeated: true },
|
|
57
|
+
],
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from message ct_logic_uni_rev_payment.v1.InsertAdPriceMessage
|
|
62
|
+
*/
|
|
63
|
+
export const InsertAdPriceMessage = proto3.makeMessageType(
|
|
64
|
+
"ct_logic_uni_rev_payment.v1.InsertAdPriceMessage",
|
|
65
|
+
() => [
|
|
66
|
+
{ no: 1, name: "action_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
67
|
+
{ no: 2, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
68
|
+
{ no: 3, name: "ad_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
69
|
+
{ no: 4, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
70
|
+
{ no: 5, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
71
|
+
{ no: 6, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
|
+
{ no: 7, name: "is_default_duration", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
73
|
+
{ no: 8, name: "price", kind: "message", T: PriceMessage },
|
|
74
|
+
],
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ShopToChototPriceMessage
|
|
79
|
+
*/
|
|
80
|
+
export const ShopToChototPriceMessage = proto3.makeMessageType(
|
|
81
|
+
"ct_logic_uni_rev_payment.v1.ShopToChototPriceMessage",
|
|
82
|
+
() => [
|
|
83
|
+
{ no: 1, name: "action_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
84
|
+
{ no: 2, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
85
|
+
{ no: 3, name: "ad_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
86
|
+
{ no: 4, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
87
|
+
{ no: 5, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
88
|
+
{ no: 6, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
89
|
+
{ no: 7, name: "is_default_duration", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
90
|
+
{ no: 8, name: "price", kind: "message", T: PriceMessage },
|
|
91
|
+
],
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @generated from message ct_logic_uni_rev_payment.v1.StickyAdPriceMessage
|
|
96
|
+
*/
|
|
97
|
+
export const StickyAdPriceMessage = proto3.makeMessageType(
|
|
98
|
+
"ct_logic_uni_rev_payment.v1.StickyAdPriceMessage",
|
|
99
|
+
() => [
|
|
100
|
+
{ no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
101
|
+
{ no: 2, name: "duration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
102
|
+
{ no: 3, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
103
|
+
{ no: 4, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
104
|
+
{ no: 5, name: "discount_label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
105
|
+
{ no: 6, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
106
|
+
{ no: 7, name: "price", kind: "message", T: PriceMessage },
|
|
107
|
+
],
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message ct_logic_uni_rev_payment.v1.BumpPriceMessage
|
|
112
|
+
*/
|
|
113
|
+
export const BumpPriceMessage = proto3.makeMessageType(
|
|
114
|
+
"ct_logic_uni_rev_payment.v1.BumpPriceMessage",
|
|
115
|
+
() => [
|
|
116
|
+
{ no: 1, name: "bump_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
117
|
+
{ no: 2, name: "discount_label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
118
|
+
{ no: 3, name: "duration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
119
|
+
{ no: 4, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
120
|
+
{ no: 5, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
121
|
+
{ no: 6, name: "price", kind: "message", T: PriceMessage },
|
|
122
|
+
],
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @generated from message ct_logic_uni_rev_payment.v1.TimerBumpPriceMessage
|
|
127
|
+
*/
|
|
128
|
+
export const TimerBumpPriceMessage = proto3.makeMessageType(
|
|
129
|
+
"ct_logic_uni_rev_payment.v1.TimerBumpPriceMessage",
|
|
130
|
+
() => [
|
|
131
|
+
{ no: 1, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
|
+
{ no: 2, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
133
|
+
{ no: 3, name: "price", kind: "message", T: PriceMessage },
|
|
134
|
+
],
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CupidPriceMessage
|
|
139
|
+
*/
|
|
140
|
+
export const CupidPriceMessage = proto3.makeMessageType(
|
|
141
|
+
"ct_logic_uni_rev_payment.v1.CupidPriceMessage",
|
|
142
|
+
() => [
|
|
143
|
+
{ no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
144
|
+
{ no: 2, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
145
|
+
{ no: 3, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
146
|
+
{ no: 4, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
147
|
+
{ no: 5, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
148
|
+
{ no: 6, name: "price", kind: "message", T: PriceMessage },
|
|
149
|
+
],
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @generated from message ct_logic_uni_rev_payment.v1.IntensiveBumpPriceMessage
|
|
154
|
+
*/
|
|
155
|
+
export const IntensiveBumpPriceMessage = proto3.makeMessageType(
|
|
156
|
+
"ct_logic_uni_rev_payment.v1.IntensiveBumpPriceMessage",
|
|
157
|
+
() => [
|
|
158
|
+
{ no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
159
|
+
{ no: 2, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
160
|
+
{ no: 3, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
161
|
+
{ no: 4, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
162
|
+
{ no: 5, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
163
|
+
{ no: 6, name: "discount_label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
164
|
+
{ no: 7, name: "price", kind: "message", T: PriceMessage },
|
|
165
|
+
],
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @generated from message ct_logic_uni_rev_payment.v1.SpecialDisplayPriceMessage
|
|
170
|
+
*/
|
|
171
|
+
export const SpecialDisplayPriceMessage = proto3.makeMessageType(
|
|
172
|
+
"ct_logic_uni_rev_payment.v1.SpecialDisplayPriceMessage",
|
|
173
|
+
() => [
|
|
174
|
+
{ no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
175
|
+
{ no: 2, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
176
|
+
{ no: 3, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
177
|
+
{ no: 4, name: "ad_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
178
|
+
{ no: 5, name: "message_promotion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
179
|
+
{ no: 6, name: "price", kind: "message", T: PriceMessage },
|
|
180
|
+
],
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdItemRequest
|
|
185
|
+
*/
|
|
186
|
+
export const GetPricePremiumFeatureByAdItemRequest = proto3.makeMessageType(
|
|
187
|
+
"ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdItemRequest",
|
|
188
|
+
() => [
|
|
189
|
+
{ no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
190
|
+
{ no: 2, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
191
|
+
{ no: 3, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
192
|
+
{ no: 4, name: "ad_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
193
|
+
{ no: 5, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
194
|
+
],
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdRequest
|
|
199
|
+
*/
|
|
200
|
+
export const GetPricePremiumFeatureByAdRequest = proto3.makeMessageType(
|
|
201
|
+
"ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdRequest",
|
|
202
|
+
() => [
|
|
203
|
+
{ no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
204
|
+
{ no: 2, name: "data", kind: "message", T: GetPricePremiumFeatureByAdItemRequest, repeated: true },
|
|
205
|
+
],
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdItemResponse
|
|
210
|
+
*/
|
|
211
|
+
export const GetPricePremiumFeatureByAdItemResponse = proto3.makeMessageType(
|
|
212
|
+
"ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdItemResponse",
|
|
213
|
+
() => [
|
|
214
|
+
{ no: 1, name: "bundles", kind: "message", T: BundlePriceMessage, repeated: true },
|
|
215
|
+
{ no: 2, name: "insert_ads", kind: "message", T: InsertAdPriceMessage, repeated: true },
|
|
216
|
+
{ no: 3, name: "sticky_ads", kind: "message", T: StickyAdPriceMessage, repeated: true },
|
|
217
|
+
{ no: 4, name: "bump", kind: "message", T: BumpPriceMessage, repeated: true },
|
|
218
|
+
{ no: 5, name: "timer_bump", kind: "message", T: TimerBumpPriceMessage },
|
|
219
|
+
{ no: 6, name: "cupid", kind: "message", T: CupidPriceMessage, repeated: true },
|
|
220
|
+
{ no: 7, name: "intensive_bump", kind: "message", T: IntensiveBumpPriceMessage, repeated: true },
|
|
221
|
+
{ no: 8, name: "special_display", kind: "message", T: SpecialDisplayPriceMessage, repeated: true },
|
|
222
|
+
{ no: 9, name: "shop_to_chotot", kind: "message", T: ShopToChototPriceMessage, repeated: true },
|
|
223
|
+
],
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdResponse
|
|
228
|
+
*/
|
|
229
|
+
export const GetPricePremiumFeatureByAdResponse = proto3.makeMessageType(
|
|
230
|
+
"ct_logic_uni_rev_payment.v1.GetPricePremiumFeatureByAdResponse",
|
|
231
|
+
() => [
|
|
232
|
+
{ no: 1, name: "data", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "message", T: GetPricePremiumFeatureByAdItemResponse} },
|
|
233
|
+
],
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPriceListingFeeDurationRequest
|
|
238
|
+
*/
|
|
239
|
+
export const GetPriceListingFeeDurationRequest = proto3.makeMessageType(
|
|
240
|
+
"ct_logic_uni_rev_payment.v1.GetPriceListingFeeDurationRequest",
|
|
241
|
+
() => [
|
|
242
|
+
{ no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
243
|
+
{ no: 2, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
244
|
+
],
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPriceListingFeeDurationResponse
|
|
249
|
+
*/
|
|
250
|
+
export const GetPriceListingFeeDurationResponse = proto3.makeMessageType(
|
|
251
|
+
"ct_logic_uni_rev_payment.v1.GetPriceListingFeeDurationResponse",
|
|
252
|
+
() => [
|
|
253
|
+
{ no: 1, name: "listing_fee_duration", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
254
|
+
{ no: 2, name: "default_duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
255
|
+
{ no: 3, name: "default_duration_for_free_ad", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
256
|
+
{ no: 4, name: "message_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
257
|
+
{ no: 5, name: "message_body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
258
|
+
],
|
|
259
|
+
);
|
|
260
|
+
|
package/rabbit_mq.proto
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_payment.v1;
|
|
4
|
+
|
|
5
|
+
// language specs
|
|
6
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
|
|
7
|
+
|
|
8
|
+
message PaymentStatusMessage {
|
|
9
|
+
int64 order_id = 1;
|
|
10
|
+
string status = 2;
|
|
11
|
+
string response_code = 3;
|
|
12
|
+
string transaction_id = 4;
|
|
13
|
+
string bank_id = 5;
|
|
14
|
+
string ipn_id = 6;
|
|
15
|
+
int64 amount = 7;
|
|
16
|
+
string gateway = 8;
|
|
17
|
+
int64 parent_account_id = 9;
|
|
18
|
+
string transaction_info = 10;
|
|
19
|
+
int64 charged_amount = 11; // include service_fee + tax
|
|
20
|
+
repeated PaymentStatusServiceMessage services = 12;
|
|
21
|
+
int64 payment_attempt_id = 13;
|
|
22
|
+
string vendor_order_id = 14;
|
|
23
|
+
int64 tax_amount = 15; //
|
|
24
|
+
int64 tax_rate = 16; // ex: 8% = 800, 8.5% = 850, 8.75% = 875
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message PaymentStatusServiceMessage {
|
|
28
|
+
int64 service_id = 1;
|
|
29
|
+
int64 charged_amount = 2;
|
|
30
|
+
int64 tax_amount = 3;
|
|
31
|
+
int64 tax_rate = 4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message WithdrawDongtotMessage {
|
|
35
|
+
string request_id = 1;
|
|
36
|
+
int64 withdraw_account = 2;
|
|
37
|
+
int64 child_account_id = 3;
|
|
38
|
+
int64 parent_account_id = 4;
|
|
39
|
+
string user = 5;
|
|
40
|
+
string gateway = 6;
|
|
41
|
+
WithdrawDongtotBody body = 7;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message WithdrawDongtotBody {
|
|
45
|
+
string platform = 1;
|
|
46
|
+
int64 order = 2;
|
|
47
|
+
int64 category = 3;
|
|
48
|
+
int64 amount = 4;
|
|
49
|
+
repeated int64 service_ids = 5;
|
|
50
|
+
repeated int64 service_amounts = 6;
|
|
51
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
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/rabbit_mq.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.PaymentStatusMessage
|
|
13
|
+
*/
|
|
14
|
+
export declare class PaymentStatusMessage extends Message<PaymentStatusMessage> {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: int64 order_id = 1;
|
|
17
|
+
*/
|
|
18
|
+
orderId: bigint;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: string status = 2;
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: string response_code = 3;
|
|
27
|
+
*/
|
|
28
|
+
responseCode: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: string transaction_id = 4;
|
|
32
|
+
*/
|
|
33
|
+
transactionId: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string bank_id = 5;
|
|
37
|
+
*/
|
|
38
|
+
bankId: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: string ipn_id = 6;
|
|
42
|
+
*/
|
|
43
|
+
ipnId: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: int64 amount = 7;
|
|
47
|
+
*/
|
|
48
|
+
amount: bigint;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string gateway = 8;
|
|
52
|
+
*/
|
|
53
|
+
gateway: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: int64 parent_account_id = 9;
|
|
57
|
+
*/
|
|
58
|
+
parentAccountId: bigint;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string transaction_info = 10;
|
|
62
|
+
*/
|
|
63
|
+
transactionInfo: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* include service_fee + tax
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: int64 charged_amount = 11;
|
|
69
|
+
*/
|
|
70
|
+
chargedAmount: bigint;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: repeated ct_logic_uni_rev_payment.v1.PaymentStatusServiceMessage services = 12;
|
|
74
|
+
*/
|
|
75
|
+
services: PaymentStatusServiceMessage[];
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: int64 payment_attempt_id = 13;
|
|
79
|
+
*/
|
|
80
|
+
paymentAttemptId: bigint;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: string vendor_order_id = 14;
|
|
84
|
+
*/
|
|
85
|
+
vendorOrderId: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: int64 tax_amount = 15;
|
|
91
|
+
*/
|
|
92
|
+
taxAmount: bigint;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* ex: 8% = 800, 8.5% = 850, 8.75% = 875
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: int64 tax_rate = 16;
|
|
98
|
+
*/
|
|
99
|
+
taxRate: bigint;
|
|
100
|
+
|
|
101
|
+
constructor(data?: PartialMessage<PaymentStatusMessage>);
|
|
102
|
+
|
|
103
|
+
static readonly runtime: typeof proto3;
|
|
104
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.PaymentStatusMessage";
|
|
105
|
+
static readonly fields: FieldList;
|
|
106
|
+
|
|
107
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymentStatusMessage;
|
|
108
|
+
|
|
109
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymentStatusMessage;
|
|
110
|
+
|
|
111
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymentStatusMessage;
|
|
112
|
+
|
|
113
|
+
static equals(a: PaymentStatusMessage | PlainMessage<PaymentStatusMessage> | undefined, b: PaymentStatusMessage | PlainMessage<PaymentStatusMessage> | undefined): boolean;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PaymentStatusServiceMessage
|
|
118
|
+
*/
|
|
119
|
+
export declare class PaymentStatusServiceMessage extends Message<PaymentStatusServiceMessage> {
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: int64 service_id = 1;
|
|
122
|
+
*/
|
|
123
|
+
serviceId: bigint;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: int64 charged_amount = 2;
|
|
127
|
+
*/
|
|
128
|
+
chargedAmount: bigint;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: int64 tax_amount = 3;
|
|
132
|
+
*/
|
|
133
|
+
taxAmount: bigint;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: int64 tax_rate = 4;
|
|
137
|
+
*/
|
|
138
|
+
taxRate: bigint;
|
|
139
|
+
|
|
140
|
+
constructor(data?: PartialMessage<PaymentStatusServiceMessage>);
|
|
141
|
+
|
|
142
|
+
static readonly runtime: typeof proto3;
|
|
143
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.PaymentStatusServiceMessage";
|
|
144
|
+
static readonly fields: FieldList;
|
|
145
|
+
|
|
146
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymentStatusServiceMessage;
|
|
147
|
+
|
|
148
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymentStatusServiceMessage;
|
|
149
|
+
|
|
150
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymentStatusServiceMessage;
|
|
151
|
+
|
|
152
|
+
static equals(a: PaymentStatusServiceMessage | PlainMessage<PaymentStatusServiceMessage> | undefined, b: PaymentStatusServiceMessage | PlainMessage<PaymentStatusServiceMessage> | undefined): boolean;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @generated from message ct_logic_uni_rev_payment.v1.WithdrawDongtotMessage
|
|
157
|
+
*/
|
|
158
|
+
export declare class WithdrawDongtotMessage extends Message<WithdrawDongtotMessage> {
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: string request_id = 1;
|
|
161
|
+
*/
|
|
162
|
+
requestId: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: int64 withdraw_account = 2;
|
|
166
|
+
*/
|
|
167
|
+
withdrawAccount: bigint;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: int64 child_account_id = 3;
|
|
171
|
+
*/
|
|
172
|
+
childAccountId: bigint;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: int64 parent_account_id = 4;
|
|
176
|
+
*/
|
|
177
|
+
parentAccountId: bigint;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string user = 5;
|
|
181
|
+
*/
|
|
182
|
+
user: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: string gateway = 6;
|
|
186
|
+
*/
|
|
187
|
+
gateway: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: ct_logic_uni_rev_payment.v1.WithdrawDongtotBody body = 7;
|
|
191
|
+
*/
|
|
192
|
+
body?: WithdrawDongtotBody;
|
|
193
|
+
|
|
194
|
+
constructor(data?: PartialMessage<WithdrawDongtotMessage>);
|
|
195
|
+
|
|
196
|
+
static readonly runtime: typeof proto3;
|
|
197
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.WithdrawDongtotMessage";
|
|
198
|
+
static readonly fields: FieldList;
|
|
199
|
+
|
|
200
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WithdrawDongtotMessage;
|
|
201
|
+
|
|
202
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WithdrawDongtotMessage;
|
|
203
|
+
|
|
204
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WithdrawDongtotMessage;
|
|
205
|
+
|
|
206
|
+
static equals(a: WithdrawDongtotMessage | PlainMessage<WithdrawDongtotMessage> | undefined, b: WithdrawDongtotMessage | PlainMessage<WithdrawDongtotMessage> | undefined): boolean;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @generated from message ct_logic_uni_rev_payment.v1.WithdrawDongtotBody
|
|
211
|
+
*/
|
|
212
|
+
export declare class WithdrawDongtotBody extends Message<WithdrawDongtotBody> {
|
|
213
|
+
/**
|
|
214
|
+
* @generated from field: string platform = 1;
|
|
215
|
+
*/
|
|
216
|
+
platform: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: int64 order = 2;
|
|
220
|
+
*/
|
|
221
|
+
order: bigint;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: int64 category = 3;
|
|
225
|
+
*/
|
|
226
|
+
category: bigint;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @generated from field: int64 amount = 4;
|
|
230
|
+
*/
|
|
231
|
+
amount: bigint;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: repeated int64 service_ids = 5;
|
|
235
|
+
*/
|
|
236
|
+
serviceIds: bigint[];
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: repeated int64 service_amounts = 6;
|
|
240
|
+
*/
|
|
241
|
+
serviceAmounts: bigint[];
|
|
242
|
+
|
|
243
|
+
constructor(data?: PartialMessage<WithdrawDongtotBody>);
|
|
244
|
+
|
|
245
|
+
static readonly runtime: typeof proto3;
|
|
246
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.WithdrawDongtotBody";
|
|
247
|
+
static readonly fields: FieldList;
|
|
248
|
+
|
|
249
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WithdrawDongtotBody;
|
|
250
|
+
|
|
251
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WithdrawDongtotBody;
|
|
252
|
+
|
|
253
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WithdrawDongtotBody;
|
|
254
|
+
|
|
255
|
+
static equals(a: WithdrawDongtotBody | PlainMessage<WithdrawDongtotBody> | undefined, b: WithdrawDongtotBody | PlainMessage<WithdrawDongtotBody> | undefined): boolean;
|
|
256
|
+
}
|
|
257
|
+
|
package/rabbit_mq_pb.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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/rabbit_mq.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.PaymentStatusMessage
|
|
12
|
+
*/
|
|
13
|
+
export const PaymentStatusMessage = proto3.makeMessageType(
|
|
14
|
+
"ct_logic_uni_rev_payment.v1.PaymentStatusMessage",
|
|
15
|
+
() => [
|
|
16
|
+
{ no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
17
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
18
|
+
{ no: 3, name: "response_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
19
|
+
{ no: 4, name: "transaction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
20
|
+
{ no: 5, name: "bank_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
21
|
+
{ no: 6, name: "ipn_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
22
|
+
{ no: 7, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
23
|
+
{ no: 8, name: "gateway", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
24
|
+
{ no: 9, name: "parent_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
25
|
+
{ no: 10, name: "transaction_info", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
26
|
+
{ no: 11, name: "charged_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
27
|
+
{ no: 12, name: "services", kind: "message", T: PaymentStatusServiceMessage, repeated: true },
|
|
28
|
+
{ no: 13, name: "payment_attempt_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
29
|
+
{ no: 14, name: "vendor_order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
30
|
+
{ no: 15, name: "tax_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
31
|
+
{ no: 16, name: "tax_rate", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
32
|
+
],
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PaymentStatusServiceMessage
|
|
37
|
+
*/
|
|
38
|
+
export const PaymentStatusServiceMessage = proto3.makeMessageType(
|
|
39
|
+
"ct_logic_uni_rev_payment.v1.PaymentStatusServiceMessage",
|
|
40
|
+
() => [
|
|
41
|
+
{ no: 1, name: "service_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
42
|
+
{ no: 2, name: "charged_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
43
|
+
{ no: 3, name: "tax_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
44
|
+
{ no: 4, name: "tax_rate", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
45
|
+
],
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from message ct_logic_uni_rev_payment.v1.WithdrawDongtotMessage
|
|
50
|
+
*/
|
|
51
|
+
export const WithdrawDongtotMessage = proto3.makeMessageType(
|
|
52
|
+
"ct_logic_uni_rev_payment.v1.WithdrawDongtotMessage",
|
|
53
|
+
() => [
|
|
54
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
55
|
+
{ no: 2, name: "withdraw_account", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
56
|
+
{ no: 3, name: "child_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
57
|
+
{ no: 4, name: "parent_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
58
|
+
{ no: 5, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
59
|
+
{ no: 6, name: "gateway", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
|
+
{ no: 7, name: "body", kind: "message", T: WithdrawDongtotBody },
|
|
61
|
+
],
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @generated from message ct_logic_uni_rev_payment.v1.WithdrawDongtotBody
|
|
66
|
+
*/
|
|
67
|
+
export const WithdrawDongtotBody = proto3.makeMessageType(
|
|
68
|
+
"ct_logic_uni_rev_payment.v1.WithdrawDongtotBody",
|
|
69
|
+
() => [
|
|
70
|
+
{ no: 1, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
71
|
+
{ no: 2, name: "order", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
72
|
+
{ no: 3, name: "category", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
73
|
+
{ no: 4, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
74
|
+
{ no: 5, name: "service_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
75
|
+
{ no: 6, name: "service_amounts", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
76
|
+
],
|
|
77
|
+
);
|
|
78
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_payment.v1;
|
|
4
|
+
// language specs
|
|
5
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
message GetDongTotPackageForRefundRequest {
|
|
10
|
+
int64 account_id = 1;
|
|
11
|
+
int64 order_id = 2;
|
|
12
|
+
string payment_type = 3; // payment should be able to extract this by itself. Legacy support due to payment not ready yet.
|
|
13
|
+
int64 refund_amount = 4; // without service fee
|
|
14
|
+
int64 service_fee = 5;
|
|
15
|
+
repeated int64 service_ids = 6;
|
|
16
|
+
repeated int64 service_refund_amounts = 7; // without service fee
|
|
17
|
+
repeated int64 service_fee_amounts = 8;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message GetDongTotPackageForRefundResponse {
|
|
21
|
+
int64 package_id = 1; // deprecated
|
|
22
|
+
repeated DongtotPackageWithTypeAndExpirationTime packages = 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message DongtotPackageWithTypeAndExpirationTime {
|
|
26
|
+
int64 package_id = 1;
|
|
27
|
+
string dt_type = 2;
|
|
28
|
+
int64 priority = 3;
|
|
29
|
+
google.protobuf.Timestamp expiration_time = 4;
|
|
30
|
+
int64 amount = 5;
|
|
31
|
+
repeated DetailedRefundInfo detailed_refund_info = 6;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message DetailedRefundInfo {
|
|
35
|
+
int64 transaction_detail_id = 1;
|
|
36
|
+
int64 refund_amount = 2;
|
|
37
|
+
}
|