@chotot/ct-logic-uni-rev-payment-v1 1.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ad_service.proto +53 -0
- package/ad_service_pb.d.ts +248 -0
- package/ad_service_pb.js +99 -0
- package/cart.proto +122 -0
- package/cart_pb.d.ts +656 -0
- package/cart_pb.js +237 -0
- package/configuration.proto +147 -0
- package/configuration_pb.d.ts +716 -0
- package/configuration_pb.js +237 -0
- package/crepro_campaign.proto +277 -0
- package/crepro_campaign_pb.d.ts +1266 -0
- package/crepro_campaign_pb.js +436 -0
- package/crepro_code.proto +77 -0
- package/crepro_code_pb.d.ts +355 -0
- package/crepro_code_pb.js +130 -0
- package/crepro_log.proto +32 -0
- package/crepro_log_pb.d.ts +142 -0
- package/crepro_log_pb.js +51 -0
- package/crepro_redemption.proto +76 -0
- package/crepro_redemption_pb.d.ts +352 -0
- package/crepro_redemption_pb.js +119 -0
- package/dongtot.proto +758 -0
- package/dongtot_pb.d.ts +4169 -0
- package/dongtot_pb.js +1357 -0
- package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.d.ts +350 -0
- package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.js +551 -0
- package/dongtot_service.proto +154 -0
- package/dongtot_service_connect.d.ts +316 -0
- package/dongtot_service_connect.js +316 -0
- package/econtract.proto +675 -0
- package/econtract_pb.d.ts +3522 -0
- package/econtract_pb.js +1176 -0
- package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.d.ts +419 -0
- package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.js +673 -0
- package/econtract_service.proto +71 -0
- package/econtract_service_connect.d.ts +381 -0
- package/econtract_service_connect.js +381 -0
- package/fundiin.proto +53 -0
- package/fundiin_pb.d.ts +255 -0
- package/fundiin_pb.js +85 -0
- package/google_billing.proto +65 -0
- package/google_billing_pb.d.ts +372 -0
- package/google_billing_pb.js +146 -0
- package/iap.proto +53 -0
- package/iap_pb.d.ts +281 -0
- package/iap_pb.js +109 -0
- package/momo.proto +92 -0
- package/momo_pb.d.ts +481 -0
- package/momo_pb.js +150 -0
- package/napas.proto +110 -0
- package/napas_pb.d.ts +587 -0
- package/napas_pb.js +192 -0
- package/order.proto +81 -0
- package/order_pb.d.ts +372 -0
- package/order_pb.js +123 -0
- package/package.json +10 -0
- package/package.proto +382 -0
- package/package_pb.d.ts +1907 -0
- package/package_pb.js +621 -0
- package/payment_promotion.proto +170 -0
- package/payment_promotion_pb.d.ts +893 -0
- package/payment_promotion_pb.js +311 -0
- package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.d.ts +112 -0
- package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.js +171 -0
- package/payment_promotion_service.proto +73 -0
- package/payment_promotion_service_connect.d.ts +102 -0
- package/payment_promotion_service_connect.js +102 -0
- package/payoo.proto +55 -0
- package/payoo_pb.d.ts +282 -0
- package/payoo_pb.js +105 -0
- package/pricer.proto +154 -0
- package/pricer_pb.d.ts +823 -0
- package/pricer_pb.js +260 -0
- package/rabbit_mq.proto +51 -0
- package/rabbit_mq_pb.d.ts +257 -0
- package/rabbit_mq_pb.js +78 -0
- package/refund_order.proto +37 -0
- package/refund_order_pb.d.ts +184 -0
- package/refund_order_pb.js +63 -0
- package/scripts/modify_package_json.js +50 -0
- package/service-LogicUniRevPaymentService_connectquery.d.ts +1239 -0
- package/service-LogicUniRevPaymentService_connectquery.js +1968 -0
- package/service.proto +643 -0
- package/service_connect.d.ts +1120 -0
- package/service_connect.js +1120 -0
- package/subscription.proto +24 -0
- package/subscription_pb.d.ts +98 -0
- package/subscription_pb.js +37 -0
- package/template.proto +76 -0
- package/template_pb.d.ts +387 -0
- package/template_pb.js +140 -0
- package/transaction.proto +513 -0
- package/transaction_pb.d.ts +2717 -0
- package/transaction_pb.js +856 -0
- package/virtual_account.proto +265 -0
- package/virtual_account_pb.d.ts +1442 -0
- package/virtual_account_pb.js +478 -0
- package/zalopay.proto +78 -0
- package/zalopay_pb.d.ts +423 -0
- package/zalopay_pb.js +153 -0
|
@@ -0,0 +1,436 @@
|
|
|
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/crepro_campaign.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
|
|
8
|
+
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CreateCreditPromotionCampaignRequest
|
|
12
|
+
*/
|
|
13
|
+
export const CreateCreditPromotionCampaignRequest = proto3.makeMessageType(
|
|
14
|
+
"ct_logic_uni_rev_payment.v1.CreateCreditPromotionCampaignRequest",
|
|
15
|
+
() => [
|
|
16
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
17
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
18
|
+
{ no: 3, name: "department_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
19
|
+
{ no: 4, name: "start_at", kind: "message", T: Timestamp },
|
|
20
|
+
{ no: 5, name: "end_at", kind: "message", T: Timestamp },
|
|
21
|
+
{ no: 6, name: "prefix_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
22
|
+
{ no: 7, name: "custom_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
23
|
+
{ no: 8, name: "total_code", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
24
|
+
{ no: 9, name: "limit_redeem_per_user", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
25
|
+
{ no: 10, name: "meta_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
26
|
+
{ no: 11, name: "credit_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
27
|
+
{ no: 12, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
28
|
+
],
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CreateCreditPromotionCampaignResponse
|
|
33
|
+
*/
|
|
34
|
+
export const CreateCreditPromotionCampaignResponse = proto3.makeMessageType(
|
|
35
|
+
"ct_logic_uni_rev_payment.v1.CreateCreditPromotionCampaignResponse",
|
|
36
|
+
() => [
|
|
37
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
38
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
39
|
+
],
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @generated from message ct_logic_uni_rev_payment.v1.Campaign
|
|
44
|
+
*/
|
|
45
|
+
export const Campaign = proto3.makeMessageType(
|
|
46
|
+
"ct_logic_uni_rev_payment.v1.Campaign",
|
|
47
|
+
() => [
|
|
48
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
49
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
50
|
+
{ no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
51
|
+
{ no: 4, name: "department_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
52
|
+
{ no: 5, name: "start_at", kind: "message", T: Timestamp },
|
|
53
|
+
{ no: 6, name: "end_at", kind: "message", T: Timestamp },
|
|
54
|
+
{ no: 7, name: "prefix_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
55
|
+
{ no: 8, name: "custom_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
56
|
+
{ no: 9, name: "total_code", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
57
|
+
{ no: 10, name: "limit_redeem_per_user", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
58
|
+
{ no: 11, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
59
|
+
{ no: 12, name: "meta_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
|
+
{ no: 13, name: "created_at", kind: "message", T: Timestamp },
|
|
61
|
+
{ no: 14, name: "updated_at", kind: "message", T: Timestamp },
|
|
62
|
+
{ no: 15, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
63
|
+
{ no: 16, name: "credit_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
64
|
+
{ no: 17, name: "total_code_assigned", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
65
|
+
{ no: 18, name: "total_redemption", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
66
|
+
],
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @generated from message ct_logic_uni_rev_payment.v1.FilterCampaign
|
|
71
|
+
*/
|
|
72
|
+
export const FilterCampaign = proto3.makeMessageType(
|
|
73
|
+
"ct_logic_uni_rev_payment.v1.FilterCampaign",
|
|
74
|
+
() => [
|
|
75
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
76
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
77
|
+
{ no: 3, name: "department_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
78
|
+
{ no: 4, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
79
|
+
{ no: 5, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
80
|
+
{ no: 6, name: "start_at", kind: "message", T: Timestamp },
|
|
81
|
+
{ no: 7, name: "end_at", kind: "message", T: Timestamp },
|
|
82
|
+
{ no: 8, name: "prefix_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
83
|
+
{ no: 9, name: "custom_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
84
|
+
],
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetListCreditPromotionCampaignRequest
|
|
89
|
+
*/
|
|
90
|
+
export const GetListCreditPromotionCampaignRequest = proto3.makeMessageType(
|
|
91
|
+
"ct_logic_uni_rev_payment.v1.GetListCreditPromotionCampaignRequest",
|
|
92
|
+
() => [
|
|
93
|
+
{ no: 1, name: "max_page_size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
94
|
+
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
95
|
+
{ no: 3, name: "filter", kind: "message", T: FilterCampaign },
|
|
96
|
+
],
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetListCreditPromotionCampaignResponse
|
|
101
|
+
*/
|
|
102
|
+
export const GetListCreditPromotionCampaignResponse = proto3.makeMessageType(
|
|
103
|
+
"ct_logic_uni_rev_payment.v1.GetListCreditPromotionCampaignResponse",
|
|
104
|
+
() => [
|
|
105
|
+
{ no: 1, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
106
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
107
|
+
{ no: 3, name: "total_records", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
108
|
+
{ no: 4, name: "campaigns", kind: "message", T: Campaign, repeated: true },
|
|
109
|
+
],
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @generated from message ct_logic_uni_rev_payment.v1.UpdateCreditPromotionCampaignRequest
|
|
114
|
+
*/
|
|
115
|
+
export const UpdateCreditPromotionCampaignRequest = proto3.makeMessageType(
|
|
116
|
+
"ct_logic_uni_rev_payment.v1.UpdateCreditPromotionCampaignRequest",
|
|
117
|
+
() => [
|
|
118
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
119
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
120
|
+
{ no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
121
|
+
{ no: 4, name: "department_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
122
|
+
{ no: 5, name: "start_at", kind: "message", T: Timestamp },
|
|
123
|
+
{ no: 6, name: "end_at", kind: "message", T: Timestamp },
|
|
124
|
+
{ no: 7, name: "prefix_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
125
|
+
{ no: 8, name: "custom_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
126
|
+
{ no: 9, name: "total_code", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
127
|
+
{ no: 10, name: "limit_redeem_per_user", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
128
|
+
{ no: 11, name: "meta_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
+
{ no: 12, name: "credit_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
130
|
+
{ no: 13, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
|
+
],
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from message ct_logic_uni_rev_payment.v1.UpdateCreditPromotionCampaignResponse
|
|
136
|
+
*/
|
|
137
|
+
export const UpdateCreditPromotionCampaignResponse = proto3.makeMessageType(
|
|
138
|
+
"ct_logic_uni_rev_payment.v1.UpdateCreditPromotionCampaignResponse",
|
|
139
|
+
() => [
|
|
140
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
141
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
142
|
+
],
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApproveRequest
|
|
147
|
+
*/
|
|
148
|
+
export const MoveCreditPromotionCampaignToWaitForApproveRequest = proto3.makeMessageType(
|
|
149
|
+
"ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApproveRequest",
|
|
150
|
+
() => [
|
|
151
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
152
|
+
{ no: 2, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
153
|
+
],
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApproveResponse
|
|
158
|
+
*/
|
|
159
|
+
export const MoveCreditPromotionCampaignToWaitForApproveResponse = proto3.makeMessageType(
|
|
160
|
+
"ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApproveResponse",
|
|
161
|
+
() => [
|
|
162
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
163
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
164
|
+
],
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ApproveCreditPromotionCampaignRequest
|
|
169
|
+
*/
|
|
170
|
+
export const ApproveCreditPromotionCampaignRequest = proto3.makeMessageType(
|
|
171
|
+
"ct_logic_uni_rev_payment.v1.ApproveCreditPromotionCampaignRequest",
|
|
172
|
+
() => [
|
|
173
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
174
|
+
{ no: 2, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
175
|
+
],
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ApproveCreditPromotionCampaignResponse
|
|
180
|
+
*/
|
|
181
|
+
export const ApproveCreditPromotionCampaignResponse = proto3.makeMessageType(
|
|
182
|
+
"ct_logic_uni_rev_payment.v1.ApproveCreditPromotionCampaignResponse",
|
|
183
|
+
() => [
|
|
184
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
185
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
186
|
+
],
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @generated from message ct_logic_uni_rev_payment.v1.RejectCreditPromotionCampaignRequest
|
|
191
|
+
*/
|
|
192
|
+
export const RejectCreditPromotionCampaignRequest = proto3.makeMessageType(
|
|
193
|
+
"ct_logic_uni_rev_payment.v1.RejectCreditPromotionCampaignRequest",
|
|
194
|
+
() => [
|
|
195
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
196
|
+
{ no: 2, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
197
|
+
],
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @generated from message ct_logic_uni_rev_payment.v1.RejectCreditPromotionCampaignResponse
|
|
202
|
+
*/
|
|
203
|
+
export const RejectCreditPromotionCampaignResponse = proto3.makeMessageType(
|
|
204
|
+
"ct_logic_uni_rev_payment.v1.RejectCreditPromotionCampaignResponse",
|
|
205
|
+
() => [
|
|
206
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
207
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
208
|
+
],
|
|
209
|
+
);
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetCreditPromotionCampaignByIdRequest
|
|
213
|
+
*/
|
|
214
|
+
export const GetCreditPromotionCampaignByIdRequest = proto3.makeMessageType(
|
|
215
|
+
"ct_logic_uni_rev_payment.v1.GetCreditPromotionCampaignByIdRequest",
|
|
216
|
+
() => [
|
|
217
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
218
|
+
],
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetCreditPromotionCampaignByIdResponse
|
|
223
|
+
*/
|
|
224
|
+
export const GetCreditPromotionCampaignByIdResponse = proto3.makeMessageType(
|
|
225
|
+
"ct_logic_uni_rev_payment.v1.GetCreditPromotionCampaignByIdResponse",
|
|
226
|
+
() => [
|
|
227
|
+
{ no: 1, name: "campaign", kind: "message", T: Campaign },
|
|
228
|
+
],
|
|
229
|
+
);
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GenerateCreditPromotionCodeRequest
|
|
233
|
+
*/
|
|
234
|
+
export const GenerateCreditPromotionCodeRequest = proto3.makeMessageType(
|
|
235
|
+
"ct_logic_uni_rev_payment.v1.GenerateCreditPromotionCodeRequest",
|
|
236
|
+
() => [
|
|
237
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
238
|
+
{ no: 2, name: "quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
239
|
+
{ no: 3, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
240
|
+
],
|
|
241
|
+
);
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GenerateCreditPromotionCodeResponse
|
|
245
|
+
*/
|
|
246
|
+
export const GenerateCreditPromotionCodeResponse = proto3.makeMessageType(
|
|
247
|
+
"ct_logic_uni_rev_payment.v1.GenerateCreditPromotionCodeResponse",
|
|
248
|
+
() => [
|
|
249
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
250
|
+
{ no: 2, name: "quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
251
|
+
],
|
|
252
|
+
);
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AssignCreditPromotionCodeRequest
|
|
256
|
+
*/
|
|
257
|
+
export const AssignCreditPromotionCodeRequest = proto3.makeMessageType(
|
|
258
|
+
"ct_logic_uni_rev_payment.v1.AssignCreditPromotionCodeRequest",
|
|
259
|
+
() => [
|
|
260
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
261
|
+
{ no: 2, name: "list_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
262
|
+
{ no: 3, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
263
|
+
],
|
|
264
|
+
);
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AssignCreditPromotionCodeResponse
|
|
268
|
+
*/
|
|
269
|
+
export const AssignCreditPromotionCodeResponse = proto3.makeMessageType(
|
|
270
|
+
"ct_logic_uni_rev_payment.v1.AssignCreditPromotionCodeResponse",
|
|
271
|
+
() => [
|
|
272
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
273
|
+
{ no: 2, name: "quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
274
|
+
],
|
|
275
|
+
);
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AutoRedeemCreditPromotionCodeRequest
|
|
279
|
+
*/
|
|
280
|
+
export const AutoRedeemCreditPromotionCodeRequest = proto3.makeMessageType(
|
|
281
|
+
"ct_logic_uni_rev_payment.v1.AutoRedeemCreditPromotionCodeRequest",
|
|
282
|
+
() => [
|
|
283
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
284
|
+
{ no: 2, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
285
|
+
],
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AutoRedeemCreditPromotionCodeResponse
|
|
290
|
+
*/
|
|
291
|
+
export const AutoRedeemCreditPromotionCodeResponse = proto3.makeMessageType(
|
|
292
|
+
"ct_logic_uni_rev_payment.v1.AutoRedeemCreditPromotionCodeResponse",
|
|
293
|
+
() => [
|
|
294
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
295
|
+
{ no: 2, name: "quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
296
|
+
],
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApprovalRequest
|
|
301
|
+
*/
|
|
302
|
+
export const MoveCreditPromotionCampaignToWaitForApprovalRequest = proto3.makeMessageType(
|
|
303
|
+
"ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApprovalRequest",
|
|
304
|
+
() => [
|
|
305
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
306
|
+
{ no: 2, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
307
|
+
],
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @generated from message ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApprovalResponse
|
|
312
|
+
*/
|
|
313
|
+
export const MoveCreditPromotionCampaignToWaitForApprovalResponse = proto3.makeMessageType(
|
|
314
|
+
"ct_logic_uni_rev_payment.v1.MoveCreditPromotionCampaignToWaitForApprovalResponse",
|
|
315
|
+
() => [
|
|
316
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
317
|
+
],
|
|
318
|
+
);
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetCampaignInfoByRedemptionInfoRequest
|
|
322
|
+
*/
|
|
323
|
+
export const GetCampaignInfoByRedemptionInfoRequest = proto3.makeMessageType(
|
|
324
|
+
"ct_logic_uni_rev_payment.v1.GetCampaignInfoByRedemptionInfoRequest",
|
|
325
|
+
() => [
|
|
326
|
+
{ no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
327
|
+
{ no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
328
|
+
],
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetCampaignInfoByRedemptionInfoResponse
|
|
333
|
+
*/
|
|
334
|
+
export const GetCampaignInfoByRedemptionInfoResponse = proto3.makeMessageType(
|
|
335
|
+
"ct_logic_uni_rev_payment.v1.GetCampaignInfoByRedemptionInfoResponse",
|
|
336
|
+
() => [
|
|
337
|
+
{ no: 1, name: "campaign", kind: "message", T: Campaign },
|
|
338
|
+
],
|
|
339
|
+
);
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @generated from message ct_logic_uni_rev_payment.v1.FilterAssignment
|
|
343
|
+
*/
|
|
344
|
+
export const FilterAssignment = proto3.makeMessageType(
|
|
345
|
+
"ct_logic_uni_rev_payment.v1.FilterAssignment",
|
|
346
|
+
() => [
|
|
347
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
348
|
+
{ no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
349
|
+
{ no: 3, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
350
|
+
{ no: 4, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
351
|
+
],
|
|
352
|
+
);
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetAssignmentByFilterRequest
|
|
356
|
+
*/
|
|
357
|
+
export const GetAssignmentByFilterRequest = proto3.makeMessageType(
|
|
358
|
+
"ct_logic_uni_rev_payment.v1.GetAssignmentByFilterRequest",
|
|
359
|
+
() => [
|
|
360
|
+
{ no: 1, name: "filter", kind: "message", T: FilterAssignment },
|
|
361
|
+
{ no: 2, name: "max_page_size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
362
|
+
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
363
|
+
],
|
|
364
|
+
);
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AssignmentInfo
|
|
368
|
+
*/
|
|
369
|
+
export const AssignmentInfo = proto3.makeMessageType(
|
|
370
|
+
"ct_logic_uni_rev_payment.v1.AssignmentInfo",
|
|
371
|
+
() => [
|
|
372
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
373
|
+
{ no: 2, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
374
|
+
{ no: 3, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
375
|
+
{ no: 4, name: "code_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
376
|
+
{ no: 5, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
377
|
+
{ no: 6, name: "updated_at", kind: "message", T: Timestamp },
|
|
378
|
+
],
|
|
379
|
+
);
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetAssignmentByFilterResponse
|
|
383
|
+
*/
|
|
384
|
+
export const GetAssignmentByFilterResponse = proto3.makeMessageType(
|
|
385
|
+
"ct_logic_uni_rev_payment.v1.GetAssignmentByFilterResponse",
|
|
386
|
+
() => [
|
|
387
|
+
{ no: 1, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
388
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
389
|
+
{ no: 3, name: "total_records", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
390
|
+
{ no: 4, name: "data", kind: "message", T: AssignmentInfo, repeated: true },
|
|
391
|
+
],
|
|
392
|
+
);
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ExportAssignmentByFilterRequest
|
|
396
|
+
*/
|
|
397
|
+
export const ExportAssignmentByFilterRequest = proto3.makeMessageType(
|
|
398
|
+
"ct_logic_uni_rev_payment.v1.ExportAssignmentByFilterRequest",
|
|
399
|
+
() => [
|
|
400
|
+
{ no: 1, name: "filter", kind: "message", T: FilterAssignment },
|
|
401
|
+
{ no: 2, name: "max_page_size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
402
|
+
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
403
|
+
],
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ExportAssignmentByFilterResponse
|
|
408
|
+
*/
|
|
409
|
+
export const ExportAssignmentByFilterResponse = proto3.makeMessageType(
|
|
410
|
+
"ct_logic_uni_rev_payment.v1.ExportAssignmentByFilterResponse",
|
|
411
|
+
() => [
|
|
412
|
+
{ no: 1, name: "data", kind: "message", T: AssignmentInfo, repeated: true },
|
|
413
|
+
{ no: 2, name: "total_records", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
414
|
+
],
|
|
415
|
+
);
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ForceUpdateCampaignStatusRequest
|
|
419
|
+
*/
|
|
420
|
+
export const ForceUpdateCampaignStatusRequest = proto3.makeMessageType(
|
|
421
|
+
"ct_logic_uni_rev_payment.v1.ForceUpdateCampaignStatusRequest",
|
|
422
|
+
() => [
|
|
423
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
424
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
425
|
+
{ no: 3, name: "action_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
426
|
+
],
|
|
427
|
+
);
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ForceUpdateCampaignStatusResponse
|
|
431
|
+
*/
|
|
432
|
+
export const ForceUpdateCampaignStatusResponse = proto3.makeMessageType(
|
|
433
|
+
"ct_logic_uni_rev_payment.v1.ForceUpdateCampaignStatusResponse",
|
|
434
|
+
[],
|
|
435
|
+
);
|
|
436
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
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 third party protos
|
|
8
|
+
import "validate/validate.proto";
|
|
9
|
+
import "google/protobuf/timestamp.proto";
|
|
10
|
+
|
|
11
|
+
message ManualRedeemCreditPromotionCodeRequest {
|
|
12
|
+
string code = 1 [(validate.rules).string = {
|
|
13
|
+
min_len: 1
|
|
14
|
+
}];
|
|
15
|
+
int64 account_id = 2 [(validate.rules).int64 = {
|
|
16
|
+
gt: 0
|
|
17
|
+
}];
|
|
18
|
+
string action_by = 3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message ManualRedeemCreditPromotionCodeResponse {
|
|
22
|
+
string status = 1;
|
|
23
|
+
int64 credit_value = 2;
|
|
24
|
+
int64 redeem_id = 3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message FilterCode {
|
|
28
|
+
int64 campaign_id = 1;
|
|
29
|
+
string value = 2;
|
|
30
|
+
int64 account_id = 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message GetListCreditPromotionCodeRequest {
|
|
34
|
+
int64 max_page_size = 1 [(validate.rules).int64 = {
|
|
35
|
+
lt: 5000,
|
|
36
|
+
gt: 0
|
|
37
|
+
}];
|
|
38
|
+
string page_token = 2;
|
|
39
|
+
FilterCode filter = 3;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message Code {
|
|
43
|
+
int64 id = 1;
|
|
44
|
+
int64 campaign_id = 2;
|
|
45
|
+
string value = 3;
|
|
46
|
+
int64 quantity = 4;
|
|
47
|
+
google.protobuf.Timestamp created_at = 5;
|
|
48
|
+
google.protobuf.Timestamp updated_at = 6;
|
|
49
|
+
string creator = 7;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message GetListCreditPromotionCodeResponse {
|
|
53
|
+
string page_token = 1;
|
|
54
|
+
string next_page_token = 2;
|
|
55
|
+
int64 total_records = 3;
|
|
56
|
+
repeated Code codes = 4;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message CheckIsRedeemCreditPromotionFromDiemtotRequest {
|
|
60
|
+
string redeem_id = 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message CheckIsRedeemCreditPromotionFromDiemtotResponse {
|
|
64
|
+
bool is_redeem_from_dongtot = 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message CheckCodeWithAccountIdRequest {
|
|
68
|
+
int64 account_id = 1;
|
|
69
|
+
string code = 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message CheckCodeWithAccountIdResponse {
|
|
73
|
+
int64 campaign_id = 1;
|
|
74
|
+
int64 free_value = 2;
|
|
75
|
+
string code = 3;
|
|
76
|
+
string apply_for = 4;
|
|
77
|
+
}
|