@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,311 @@
|
|
|
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/payment_promotion.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.GetPaymentMethodsRequest
|
|
12
|
+
*/
|
|
13
|
+
export const GetPaymentMethodsRequest = proto3.makeMessageType(
|
|
14
|
+
"ct_logic_uni_rev_payment.v1.GetPaymentMethodsRequest",
|
|
15
|
+
[],
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPaymentMethodsResponse
|
|
20
|
+
*/
|
|
21
|
+
export const GetPaymentMethodsResponse = proto3.makeMessageType(
|
|
22
|
+
"ct_logic_uni_rev_payment.v1.GetPaymentMethodsResponse",
|
|
23
|
+
() => [
|
|
24
|
+
{ no: 1, name: "payment_methods", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
25
|
+
],
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PaymentPromotionCampaignParams
|
|
30
|
+
*/
|
|
31
|
+
export const PaymentPromotionCampaignParams = proto3.makeMessageType(
|
|
32
|
+
"ct_logic_uni_rev_payment.v1.PaymentPromotionCampaignParams",
|
|
33
|
+
() => [
|
|
34
|
+
{ no: 1, name: "payment_methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
35
|
+
{ no: 2, name: "discount_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
36
|
+
{ no: 3, name: "discount_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
37
|
+
{ no: 4, name: "max_promotion_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
38
|
+
{ no: 5, name: "segment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
39
|
+
{ no: 6, name: "announcement_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
40
|
+
{ no: 7, name: "package_icons", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
41
|
+
],
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PaymentPromotionCampaignInfo
|
|
46
|
+
*/
|
|
47
|
+
export const PaymentPromotionCampaignInfo = proto3.makeMessageType(
|
|
48
|
+
"ct_logic_uni_rev_payment.v1.PaymentPromotionCampaignInfo",
|
|
49
|
+
() => [
|
|
50
|
+
{ no: 1, name: "campaign_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
51
|
+
{ no: 2, name: "campaign_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
52
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
53
|
+
{ no: 4, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
54
|
+
{ no: 5, name: "start_time", kind: "message", T: Timestamp },
|
|
55
|
+
{ no: 6, name: "end_time", kind: "message", T: Timestamp },
|
|
56
|
+
{ no: 7, name: "min_order_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
57
|
+
{ no: 8, name: "max_order_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
58
|
+
{ no: 9, name: "limit_per_user", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
59
|
+
{ no: 10, name: "limit_total_budget", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
60
|
+
{ no: 11, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
61
|
+
{ no: 12, name: "priority", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
62
|
+
{ no: 13, name: "campaign_params", kind: "message", T: PaymentPromotionCampaignParams },
|
|
63
|
+
],
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PaymentPromotionCampaign
|
|
68
|
+
*/
|
|
69
|
+
export const PaymentPromotionCampaign = proto3.makeMessageType(
|
|
70
|
+
"ct_logic_uni_rev_payment.v1.PaymentPromotionCampaign",
|
|
71
|
+
() => [
|
|
72
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
73
|
+
{ no: 2, name: "campaign_info", kind: "message", T: PaymentPromotionCampaignInfo },
|
|
74
|
+
],
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignsRequest
|
|
79
|
+
*/
|
|
80
|
+
export const GetPaymentPromotionCampaignsRequest = proto3.makeMessageType(
|
|
81
|
+
"ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignsRequest",
|
|
82
|
+
() => [
|
|
83
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
84
|
+
{ no: 2, name: "order_value", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
85
|
+
{ no: 3, name: "campaign_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
86
|
+
{ no: 4, name: "payment_methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
87
|
+
],
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignsResponse
|
|
92
|
+
*/
|
|
93
|
+
export const GetPaymentPromotionCampaignsResponse = proto3.makeMessageType(
|
|
94
|
+
"ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignsResponse",
|
|
95
|
+
() => [
|
|
96
|
+
{ no: 1, name: "campaigns", kind: "message", T: PaymentPromotionCampaign, repeated: true },
|
|
97
|
+
],
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignByIdRequest
|
|
102
|
+
*/
|
|
103
|
+
export const GetPaymentPromotionCampaignByIdRequest = proto3.makeMessageType(
|
|
104
|
+
"ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignByIdRequest",
|
|
105
|
+
() => [
|
|
106
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
107
|
+
],
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignByIdResponse
|
|
112
|
+
*/
|
|
113
|
+
export const GetPaymentPromotionCampaignByIdResponse = proto3.makeMessageType(
|
|
114
|
+
"ct_logic_uni_rev_payment.v1.GetPaymentPromotionCampaignByIdResponse",
|
|
115
|
+
() => [
|
|
116
|
+
{ no: 1, name: "campaign", kind: "message", T: PaymentPromotionCampaign },
|
|
117
|
+
],
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CreatePaymentPromotionCampaignRequest
|
|
122
|
+
*/
|
|
123
|
+
export const CreatePaymentPromotionCampaignRequest = proto3.makeMessageType(
|
|
124
|
+
"ct_logic_uni_rev_payment.v1.CreatePaymentPromotionCampaignRequest",
|
|
125
|
+
() => [
|
|
126
|
+
{ no: 1, name: "campaign_info", kind: "message", T: PaymentPromotionCampaignInfo },
|
|
127
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
|
+
],
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CreatePaymentPromotionCampaignResponse
|
|
133
|
+
*/
|
|
134
|
+
export const CreatePaymentPromotionCampaignResponse = proto3.makeMessageType(
|
|
135
|
+
"ct_logic_uni_rev_payment.v1.CreatePaymentPromotionCampaignResponse",
|
|
136
|
+
() => [
|
|
137
|
+
{ no: 1, name: "campaign", kind: "message", T: PaymentPromotionCampaign },
|
|
138
|
+
],
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @generated from message ct_logic_uni_rev_payment.v1.UpdatePaymentPromotionCampaignRequest
|
|
143
|
+
*/
|
|
144
|
+
export const UpdatePaymentPromotionCampaignRequest = proto3.makeMessageType(
|
|
145
|
+
"ct_logic_uni_rev_payment.v1.UpdatePaymentPromotionCampaignRequest",
|
|
146
|
+
() => [
|
|
147
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
148
|
+
{ no: 2, name: "campaign_info", kind: "message", T: PaymentPromotionCampaignInfo },
|
|
149
|
+
{ no: 3, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
150
|
+
],
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @generated from message ct_logic_uni_rev_payment.v1.UpdatePaymentPromotionCampaignResponse
|
|
155
|
+
*/
|
|
156
|
+
export const UpdatePaymentPromotionCampaignResponse = proto3.makeMessageType(
|
|
157
|
+
"ct_logic_uni_rev_payment.v1.UpdatePaymentPromotionCampaignResponse",
|
|
158
|
+
() => [
|
|
159
|
+
{ no: 1, name: "campaign", kind: "message", T: PaymentPromotionCampaign },
|
|
160
|
+
],
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ChangePaymentPromotionCampaignStatusRequest
|
|
165
|
+
*/
|
|
166
|
+
export const ChangePaymentPromotionCampaignStatusRequest = proto3.makeMessageType(
|
|
167
|
+
"ct_logic_uni_rev_payment.v1.ChangePaymentPromotionCampaignStatusRequest",
|
|
168
|
+
() => [
|
|
169
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
170
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
171
|
+
{ no: 3, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
172
|
+
],
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ChangePaymentPromotionCampaignStatusResponse
|
|
177
|
+
*/
|
|
178
|
+
export const ChangePaymentPromotionCampaignStatusResponse = proto3.makeMessageType(
|
|
179
|
+
"ct_logic_uni_rev_payment.v1.ChangePaymentPromotionCampaignStatusResponse",
|
|
180
|
+
() => [
|
|
181
|
+
{ no: 1, name: "campaign", kind: "message", T: PaymentPromotionCampaign },
|
|
182
|
+
],
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* REDEEM
|
|
187
|
+
*
|
|
188
|
+
* @generated from message ct_logic_uni_rev_payment.v1.Redeem
|
|
189
|
+
*/
|
|
190
|
+
export const Redeem = proto3.makeMessageType(
|
|
191
|
+
"ct_logic_uni_rev_payment.v1.Redeem",
|
|
192
|
+
() => [
|
|
193
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
194
|
+
{ no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
195
|
+
{ no: 3, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
196
|
+
{ no: 4, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
197
|
+
{ no: 5, name: "order_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
198
|
+
{ no: 6, name: "redeem_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
199
|
+
{ no: 7, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
200
|
+
{ no: 8, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
201
|
+
{ no: 9, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
202
|
+
],
|
|
203
|
+
);
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetRedeemsRequest
|
|
207
|
+
*/
|
|
208
|
+
export const GetRedeemsRequest = proto3.makeMessageType(
|
|
209
|
+
"ct_logic_uni_rev_payment.v1.GetRedeemsRequest",
|
|
210
|
+
() => [
|
|
211
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
212
|
+
{ no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
213
|
+
{ no: 3, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
214
|
+
{ no: 4, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
215
|
+
{ no: 5, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
216
|
+
],
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetRedeemsResponse
|
|
221
|
+
*/
|
|
222
|
+
export const GetRedeemsResponse = proto3.makeMessageType(
|
|
223
|
+
"ct_logic_uni_rev_payment.v1.GetRedeemsResponse",
|
|
224
|
+
() => [
|
|
225
|
+
{ no: 1, name: "redeem", kind: "message", T: Redeem, repeated: true },
|
|
226
|
+
{ no: 2, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
227
|
+
{ no: 3, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
228
|
+
{ no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
229
|
+
],
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ActionLog
|
|
234
|
+
*/
|
|
235
|
+
export const ActionLog = proto3.makeMessageType(
|
|
236
|
+
"ct_logic_uni_rev_payment.v1.ActionLog",
|
|
237
|
+
() => [
|
|
238
|
+
{ no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
|
+
{ no: 2, name: "old_state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
240
|
+
{ no: 3, name: "new_state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
241
|
+
{ no: 4, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
242
|
+
{ no: 5, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
243
|
+
{ no: 6, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
244
|
+
],
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetActionLogsRequest
|
|
249
|
+
*/
|
|
250
|
+
export const GetActionLogsRequest = proto3.makeMessageType(
|
|
251
|
+
"ct_logic_uni_rev_payment.v1.GetActionLogsRequest",
|
|
252
|
+
() => [
|
|
253
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
254
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
255
|
+
{ no: 3, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
256
|
+
{ no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
257
|
+
],
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetActionLogsResponse
|
|
262
|
+
*/
|
|
263
|
+
export const GetActionLogsResponse = proto3.makeMessageType(
|
|
264
|
+
"ct_logic_uni_rev_payment.v1.GetActionLogsResponse",
|
|
265
|
+
() => [
|
|
266
|
+
{ no: 1, name: "action_log", kind: "message", T: ActionLog, repeated: true },
|
|
267
|
+
{ no: 2, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
268
|
+
{ no: 3, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
269
|
+
{ no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
270
|
+
],
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @generated from message ct_logic_uni_rev_payment.v1.RedeemLog
|
|
275
|
+
*/
|
|
276
|
+
export const RedeemLog = proto3.makeMessageType(
|
|
277
|
+
"ct_logic_uni_rev_payment.v1.RedeemLog",
|
|
278
|
+
() => [
|
|
279
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
280
|
+
{ no: 2, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
281
|
+
{ no: 3, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
282
|
+
{ no: 4, name: "old_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
283
|
+
{ no: 5, name: "reference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
284
|
+
{ no: 6, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
285
|
+
],
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetRedeemLogsRequest
|
|
290
|
+
*/
|
|
291
|
+
export const GetRedeemLogsRequest = proto3.makeMessageType(
|
|
292
|
+
"ct_logic_uni_rev_payment.v1.GetRedeemLogsRequest",
|
|
293
|
+
() => [
|
|
294
|
+
{ no: 1, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
295
|
+
{ no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
296
|
+
],
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetRedeemLogsResponse
|
|
301
|
+
*/
|
|
302
|
+
export const GetRedeemLogsResponse = proto3.makeMessageType(
|
|
303
|
+
"ct_logic_uni_rev_payment.v1.GetRedeemLogsResponse",
|
|
304
|
+
() => [
|
|
305
|
+
{ no: 1, name: "redeem_log", kind: "message", T: RedeemLog, repeated: true },
|
|
306
|
+
{ no: 2, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
307
|
+
{ no: 3, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
308
|
+
{ no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
309
|
+
],
|
|
310
|
+
);
|
|
311
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v0.4.4 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file ct-logic-uni-rev-payment/v1/payment_promotion_service.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { ChangePaymentPromotionCampaignStatusRequest, ChangePaymentPromotionCampaignStatusResponse, CreatePaymentPromotionCampaignRequest, CreatePaymentPromotionCampaignResponse, GetActionLogsRequest, GetActionLogsResponse, GetPaymentMethodsRequest, GetPaymentMethodsResponse, GetPaymentPromotionCampaignByIdRequest, GetPaymentPromotionCampaignByIdResponse, GetPaymentPromotionCampaignsRequest, GetPaymentPromotionCampaignsResponse, GetRedeemLogsRequest, GetRedeemLogsResponse, GetRedeemsRequest, GetRedeemsResponse, UpdatePaymentPromotionCampaignRequest, UpdatePaymentPromotionCampaignResponse } from "./payment_promotion_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
import { UnaryHooks } from "@connectrpc/connect-query";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @generated from service ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService
|
|
12
|
+
*/
|
|
13
|
+
export declare const LogicUniRevPaymentPromotionService: {
|
|
14
|
+
readonly typeName: "ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService",
|
|
15
|
+
readonly methods: {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentMethods
|
|
18
|
+
*/
|
|
19
|
+
readonly getPaymentMethods: {
|
|
20
|
+
readonly name: "GetPaymentMethods",
|
|
21
|
+
readonly I: typeof GetPaymentMethodsRequest,
|
|
22
|
+
readonly O: typeof GetPaymentMethodsResponse,
|
|
23
|
+
readonly kind: MethodKind.Unary,
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* CAMPAIGN
|
|
27
|
+
*
|
|
28
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.CreatePaymentPromotionCampaign
|
|
29
|
+
*/
|
|
30
|
+
readonly createPaymentPromotionCampaign: {
|
|
31
|
+
readonly name: "CreatePaymentPromotionCampaign",
|
|
32
|
+
readonly I: typeof CreatePaymentPromotionCampaignRequest,
|
|
33
|
+
readonly O: typeof CreatePaymentPromotionCampaignResponse,
|
|
34
|
+
readonly kind: MethodKind.Unary,
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.UpdatePaymentPromotionCampaign
|
|
38
|
+
*/
|
|
39
|
+
readonly updatePaymentPromotionCampaign: {
|
|
40
|
+
readonly name: "UpdatePaymentPromotionCampaign",
|
|
41
|
+
readonly I: typeof UpdatePaymentPromotionCampaignRequest,
|
|
42
|
+
readonly O: typeof UpdatePaymentPromotionCampaignResponse,
|
|
43
|
+
readonly kind: MethodKind.Unary,
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.ChangePaymentPromotionCampaignStatus
|
|
47
|
+
*/
|
|
48
|
+
readonly changePaymentPromotionCampaignStatus: {
|
|
49
|
+
readonly name: "ChangePaymentPromotionCampaignStatus",
|
|
50
|
+
readonly I: typeof ChangePaymentPromotionCampaignStatusRequest,
|
|
51
|
+
readonly O: typeof ChangePaymentPromotionCampaignStatusResponse,
|
|
52
|
+
readonly kind: MethodKind.Unary,
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentPromotionCampaigns
|
|
56
|
+
*/
|
|
57
|
+
readonly getPaymentPromotionCampaigns: {
|
|
58
|
+
readonly name: "GetPaymentPromotionCampaigns",
|
|
59
|
+
readonly I: typeof GetPaymentPromotionCampaignsRequest,
|
|
60
|
+
readonly O: typeof GetPaymentPromotionCampaignsResponse,
|
|
61
|
+
readonly kind: MethodKind.Unary,
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentPromotionCampaignById
|
|
65
|
+
*/
|
|
66
|
+
readonly getPaymentPromotionCampaignById: {
|
|
67
|
+
readonly name: "GetPaymentPromotionCampaignById",
|
|
68
|
+
readonly I: typeof GetPaymentPromotionCampaignByIdRequest,
|
|
69
|
+
readonly O: typeof GetPaymentPromotionCampaignByIdResponse,
|
|
70
|
+
readonly kind: MethodKind.Unary,
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetRedeems
|
|
74
|
+
*/
|
|
75
|
+
readonly getRedeems: {
|
|
76
|
+
readonly name: "GetRedeems",
|
|
77
|
+
readonly I: typeof GetRedeemsRequest,
|
|
78
|
+
readonly O: typeof GetRedeemsResponse,
|
|
79
|
+
readonly kind: MethodKind.Unary,
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetActionLogs
|
|
83
|
+
*/
|
|
84
|
+
readonly getActionLogs: {
|
|
85
|
+
readonly name: "GetActionLogs",
|
|
86
|
+
readonly I: typeof GetActionLogsRequest,
|
|
87
|
+
readonly O: typeof GetActionLogsResponse,
|
|
88
|
+
readonly kind: MethodKind.Unary,
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* REDEEM LOG
|
|
92
|
+
*
|
|
93
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetRedeemLogs
|
|
94
|
+
*/
|
|
95
|
+
readonly getRedeemLogs: {
|
|
96
|
+
readonly name: "GetRedeemLogs",
|
|
97
|
+
readonly I: typeof GetRedeemLogsRequest,
|
|
98
|
+
readonly O: typeof GetRedeemLogsResponse,
|
|
99
|
+
readonly kind: MethodKind.Unary,
|
|
100
|
+
},
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const getPaymentMethods: UnaryHooks<GetPaymentMethodsRequest, GetPaymentMethodsResponse>;
|
|
105
|
+
export const createPaymentPromotionCampaign: UnaryHooks<CreatePaymentPromotionCampaignRequest, CreatePaymentPromotionCampaignResponse>;
|
|
106
|
+
export const updatePaymentPromotionCampaign: UnaryHooks<UpdatePaymentPromotionCampaignRequest, UpdatePaymentPromotionCampaignResponse>;
|
|
107
|
+
export const changePaymentPromotionCampaignStatus: UnaryHooks<ChangePaymentPromotionCampaignStatusRequest, ChangePaymentPromotionCampaignStatusResponse>;
|
|
108
|
+
export const getPaymentPromotionCampaigns: UnaryHooks<GetPaymentPromotionCampaignsRequest, GetPaymentPromotionCampaignsResponse>;
|
|
109
|
+
export const getPaymentPromotionCampaignById: UnaryHooks<GetPaymentPromotionCampaignByIdRequest, GetPaymentPromotionCampaignByIdResponse>;
|
|
110
|
+
export const getRedeems: UnaryHooks<GetRedeemsRequest, GetRedeemsResponse>;
|
|
111
|
+
export const getActionLogs: UnaryHooks<GetActionLogsRequest, GetActionLogsResponse>;
|
|
112
|
+
export const getRedeemLogs: UnaryHooks<GetRedeemLogsRequest, GetRedeemLogsResponse>;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v0.4.4 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file ct-logic-uni-rev-payment/v1/payment_promotion_service.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { ChangePaymentPromotionCampaignStatusRequest, ChangePaymentPromotionCampaignStatusResponse, CreatePaymentPromotionCampaignRequest, CreatePaymentPromotionCampaignResponse, GetActionLogsRequest, GetActionLogsResponse, GetPaymentMethodsRequest, GetPaymentMethodsResponse, GetPaymentPromotionCampaignByIdRequest, GetPaymentPromotionCampaignByIdResponse, GetPaymentPromotionCampaignsRequest, GetPaymentPromotionCampaignsResponse, GetRedeemLogsRequest, GetRedeemLogsResponse, GetRedeemsRequest, GetRedeemsResponse, UpdatePaymentPromotionCampaignRequest, UpdatePaymentPromotionCampaignResponse } from "./payment_promotion_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
import { createQueryService } from "@connectrpc/connect-query";
|
|
9
|
+
|
|
10
|
+
export const typeName = "ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @generated from service ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService
|
|
14
|
+
*/
|
|
15
|
+
export const LogicUniRevPaymentPromotionService = {
|
|
16
|
+
typeName: "ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService",
|
|
17
|
+
methods: {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentMethods
|
|
20
|
+
*/
|
|
21
|
+
getPaymentMethods: {
|
|
22
|
+
name: "GetPaymentMethods",
|
|
23
|
+
I: GetPaymentMethodsRequest,
|
|
24
|
+
O: GetPaymentMethodsResponse,
|
|
25
|
+
kind: MethodKind.Unary,
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* CAMPAIGN
|
|
29
|
+
*
|
|
30
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.CreatePaymentPromotionCampaign
|
|
31
|
+
*/
|
|
32
|
+
createPaymentPromotionCampaign: {
|
|
33
|
+
name: "CreatePaymentPromotionCampaign",
|
|
34
|
+
I: CreatePaymentPromotionCampaignRequest,
|
|
35
|
+
O: CreatePaymentPromotionCampaignResponse,
|
|
36
|
+
kind: MethodKind.Unary,
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.UpdatePaymentPromotionCampaign
|
|
40
|
+
*/
|
|
41
|
+
updatePaymentPromotionCampaign: {
|
|
42
|
+
name: "UpdatePaymentPromotionCampaign",
|
|
43
|
+
I: UpdatePaymentPromotionCampaignRequest,
|
|
44
|
+
O: UpdatePaymentPromotionCampaignResponse,
|
|
45
|
+
kind: MethodKind.Unary,
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.ChangePaymentPromotionCampaignStatus
|
|
49
|
+
*/
|
|
50
|
+
changePaymentPromotionCampaignStatus: {
|
|
51
|
+
name: "ChangePaymentPromotionCampaignStatus",
|
|
52
|
+
I: ChangePaymentPromotionCampaignStatusRequest,
|
|
53
|
+
O: ChangePaymentPromotionCampaignStatusResponse,
|
|
54
|
+
kind: MethodKind.Unary,
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentPromotionCampaigns
|
|
58
|
+
*/
|
|
59
|
+
getPaymentPromotionCampaigns: {
|
|
60
|
+
name: "GetPaymentPromotionCampaigns",
|
|
61
|
+
I: GetPaymentPromotionCampaignsRequest,
|
|
62
|
+
O: GetPaymentPromotionCampaignsResponse,
|
|
63
|
+
kind: MethodKind.Unary,
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentPromotionCampaignById
|
|
67
|
+
*/
|
|
68
|
+
getPaymentPromotionCampaignById: {
|
|
69
|
+
name: "GetPaymentPromotionCampaignById",
|
|
70
|
+
I: GetPaymentPromotionCampaignByIdRequest,
|
|
71
|
+
O: GetPaymentPromotionCampaignByIdResponse,
|
|
72
|
+
kind: MethodKind.Unary,
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetRedeems
|
|
76
|
+
*/
|
|
77
|
+
getRedeems: {
|
|
78
|
+
name: "GetRedeems",
|
|
79
|
+
I: GetRedeemsRequest,
|
|
80
|
+
O: GetRedeemsResponse,
|
|
81
|
+
kind: MethodKind.Unary,
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetActionLogs
|
|
85
|
+
*/
|
|
86
|
+
getActionLogs: {
|
|
87
|
+
name: "GetActionLogs",
|
|
88
|
+
I: GetActionLogsRequest,
|
|
89
|
+
O: GetActionLogsResponse,
|
|
90
|
+
kind: MethodKind.Unary,
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* REDEEM LOG
|
|
94
|
+
*
|
|
95
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetRedeemLogs
|
|
96
|
+
*/
|
|
97
|
+
getRedeemLogs: {
|
|
98
|
+
name: "GetRedeemLogs",
|
|
99
|
+
I: GetRedeemLogsRequest,
|
|
100
|
+
O: GetRedeemLogsResponse,
|
|
101
|
+
kind: MethodKind.Unary,
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentMethods
|
|
108
|
+
*/
|
|
109
|
+
export const getPaymentMethods = createQueryService({
|
|
110
|
+
service: LogicUniRevPaymentPromotionService,
|
|
111
|
+
}).getPaymentMethods;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* CAMPAIGN
|
|
115
|
+
*
|
|
116
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.CreatePaymentPromotionCampaign
|
|
117
|
+
*/
|
|
118
|
+
export const createPaymentPromotionCampaign = createQueryService({
|
|
119
|
+
service: LogicUniRevPaymentPromotionService,
|
|
120
|
+
}).createPaymentPromotionCampaign;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.UpdatePaymentPromotionCampaign
|
|
124
|
+
*/
|
|
125
|
+
export const updatePaymentPromotionCampaign = createQueryService({
|
|
126
|
+
service: LogicUniRevPaymentPromotionService,
|
|
127
|
+
}).updatePaymentPromotionCampaign;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.ChangePaymentPromotionCampaignStatus
|
|
131
|
+
*/
|
|
132
|
+
export const changePaymentPromotionCampaignStatus = createQueryService({
|
|
133
|
+
service: LogicUniRevPaymentPromotionService,
|
|
134
|
+
}).changePaymentPromotionCampaignStatus;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentPromotionCampaigns
|
|
138
|
+
*/
|
|
139
|
+
export const getPaymentPromotionCampaigns = createQueryService({
|
|
140
|
+
service: LogicUniRevPaymentPromotionService,
|
|
141
|
+
}).getPaymentPromotionCampaigns;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetPaymentPromotionCampaignById
|
|
145
|
+
*/
|
|
146
|
+
export const getPaymentPromotionCampaignById = createQueryService({
|
|
147
|
+
service: LogicUniRevPaymentPromotionService,
|
|
148
|
+
}).getPaymentPromotionCampaignById;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetRedeems
|
|
152
|
+
*/
|
|
153
|
+
export const getRedeems = createQueryService({
|
|
154
|
+
service: LogicUniRevPaymentPromotionService,
|
|
155
|
+
}).getRedeems;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetActionLogs
|
|
159
|
+
*/
|
|
160
|
+
export const getActionLogs = createQueryService({
|
|
161
|
+
service: LogicUniRevPaymentPromotionService,
|
|
162
|
+
}).getActionLogs;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* REDEEM LOG
|
|
166
|
+
*
|
|
167
|
+
* @generated from rpc ct_logic_uni_rev_payment.v1.LogicUniRevPaymentPromotionService.GetRedeemLogs
|
|
168
|
+
*/
|
|
169
|
+
export const getRedeemLogs = createQueryService({
|
|
170
|
+
service: LogicUniRevPaymentPromotionService,
|
|
171
|
+
}).getRedeemLogs;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package ct_logic_uni_rev_payment.v1;
|
|
3
|
+
// language specs
|
|
4
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
|
|
5
|
+
|
|
6
|
+
import "google/api/annotations.proto";
|
|
7
|
+
import "ct-logic-uni-rev-payment/v1/payment_promotion.proto";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
service LogicUniRevPaymentPromotionService {
|
|
11
|
+
rpc GetPaymentMethods(GetPaymentMethodsRequest) returns (GetPaymentMethodsResponse) {
|
|
12
|
+
option (google.api.http) = {
|
|
13
|
+
get: "/api/v1/internal/payment_methods",
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// CAMPAIGN
|
|
18
|
+
rpc CreatePaymentPromotionCampaign(CreatePaymentPromotionCampaignRequest) returns (CreatePaymentPromotionCampaignResponse) {
|
|
19
|
+
option (google.api.http) = {
|
|
20
|
+
post: "/api/v1/internal/campaigns",
|
|
21
|
+
body: "*"
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
rpc UpdatePaymentPromotionCampaign(UpdatePaymentPromotionCampaignRequest) returns (UpdatePaymentPromotionCampaignResponse) {
|
|
26
|
+
option (google.api.http) = {
|
|
27
|
+
put: "/api/v1/internal/campaigns/{id}",
|
|
28
|
+
body: "*"
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
rpc ChangePaymentPromotionCampaignStatus(ChangePaymentPromotionCampaignStatusRequest) returns (ChangePaymentPromotionCampaignStatusResponse) {
|
|
33
|
+
option (google.api.http) = {
|
|
34
|
+
put: "/api/v1/internal/campaigns/{id}/change_status",
|
|
35
|
+
body: "*"
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
rpc GetPaymentPromotionCampaigns(GetPaymentPromotionCampaignsRequest) returns (GetPaymentPromotionCampaignsResponse) {
|
|
40
|
+
option (google.api.http) = {
|
|
41
|
+
get: "/api/v1/internal/campaigns",
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
rpc GetPaymentPromotionCampaignById(GetPaymentPromotionCampaignByIdRequest) returns (GetPaymentPromotionCampaignByIdResponse) {
|
|
46
|
+
option (google.api.http) = {
|
|
47
|
+
get: "/api/v1/internal/campaigns/{id}",
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// REDEEM
|
|
52
|
+
|
|
53
|
+
rpc GetRedeems(GetRedeemsRequest) returns (GetRedeemsResponse) {
|
|
54
|
+
option (google.api.http) = {
|
|
55
|
+
get: "/api/v1/internal/redeems",
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ACTION LOG
|
|
60
|
+
|
|
61
|
+
rpc GetActionLogs(GetActionLogsRequest) returns (GetActionLogsResponse) {
|
|
62
|
+
option (google.api.http) = {
|
|
63
|
+
get: "/api/v1/internal/action_logs",
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// REDEEM LOG
|
|
68
|
+
rpc GetRedeemLogs(GetRedeemLogsRequest) returns (GetRedeemLogsResponse) {
|
|
69
|
+
option (google.api.http) = {
|
|
70
|
+
get: "/api/v1/internal/redeem_logs",
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|