@chotot/ct-logic-uni-rev-payment-v1 1.133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/ad_service.proto +53 -0
  2. package/ad_service_pb.d.ts +248 -0
  3. package/ad_service_pb.js +99 -0
  4. package/cart.proto +122 -0
  5. package/cart_pb.d.ts +656 -0
  6. package/cart_pb.js +237 -0
  7. package/configuration.proto +147 -0
  8. package/configuration_pb.d.ts +716 -0
  9. package/configuration_pb.js +237 -0
  10. package/crepro_campaign.proto +277 -0
  11. package/crepro_campaign_pb.d.ts +1266 -0
  12. package/crepro_campaign_pb.js +436 -0
  13. package/crepro_code.proto +77 -0
  14. package/crepro_code_pb.d.ts +355 -0
  15. package/crepro_code_pb.js +130 -0
  16. package/crepro_log.proto +32 -0
  17. package/crepro_log_pb.d.ts +142 -0
  18. package/crepro_log_pb.js +51 -0
  19. package/crepro_redemption.proto +76 -0
  20. package/crepro_redemption_pb.d.ts +352 -0
  21. package/crepro_redemption_pb.js +119 -0
  22. package/dongtot.proto +758 -0
  23. package/dongtot_pb.d.ts +4169 -0
  24. package/dongtot_pb.js +1357 -0
  25. package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.d.ts +350 -0
  26. package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.js +551 -0
  27. package/dongtot_service.proto +154 -0
  28. package/dongtot_service_connect.d.ts +316 -0
  29. package/dongtot_service_connect.js +316 -0
  30. package/econtract.proto +675 -0
  31. package/econtract_pb.d.ts +3522 -0
  32. package/econtract_pb.js +1176 -0
  33. package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.d.ts +419 -0
  34. package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.js +673 -0
  35. package/econtract_service.proto +71 -0
  36. package/econtract_service_connect.d.ts +381 -0
  37. package/econtract_service_connect.js +381 -0
  38. package/fundiin.proto +53 -0
  39. package/fundiin_pb.d.ts +255 -0
  40. package/fundiin_pb.js +85 -0
  41. package/google_billing.proto +65 -0
  42. package/google_billing_pb.d.ts +372 -0
  43. package/google_billing_pb.js +146 -0
  44. package/iap.proto +53 -0
  45. package/iap_pb.d.ts +281 -0
  46. package/iap_pb.js +109 -0
  47. package/momo.proto +92 -0
  48. package/momo_pb.d.ts +481 -0
  49. package/momo_pb.js +150 -0
  50. package/napas.proto +110 -0
  51. package/napas_pb.d.ts +587 -0
  52. package/napas_pb.js +192 -0
  53. package/order.proto +81 -0
  54. package/order_pb.d.ts +372 -0
  55. package/order_pb.js +123 -0
  56. package/package.json +10 -0
  57. package/package.proto +382 -0
  58. package/package_pb.d.ts +1907 -0
  59. package/package_pb.js +621 -0
  60. package/payment_promotion.proto +170 -0
  61. package/payment_promotion_pb.d.ts +893 -0
  62. package/payment_promotion_pb.js +311 -0
  63. package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.d.ts +112 -0
  64. package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.js +171 -0
  65. package/payment_promotion_service.proto +73 -0
  66. package/payment_promotion_service_connect.d.ts +102 -0
  67. package/payment_promotion_service_connect.js +102 -0
  68. package/payoo.proto +55 -0
  69. package/payoo_pb.d.ts +282 -0
  70. package/payoo_pb.js +105 -0
  71. package/pricer.proto +154 -0
  72. package/pricer_pb.d.ts +823 -0
  73. package/pricer_pb.js +260 -0
  74. package/rabbit_mq.proto +51 -0
  75. package/rabbit_mq_pb.d.ts +257 -0
  76. package/rabbit_mq_pb.js +78 -0
  77. package/refund_order.proto +37 -0
  78. package/refund_order_pb.d.ts +184 -0
  79. package/refund_order_pb.js +63 -0
  80. package/scripts/modify_package_json.js +50 -0
  81. package/service-LogicUniRevPaymentService_connectquery.d.ts +1239 -0
  82. package/service-LogicUniRevPaymentService_connectquery.js +1968 -0
  83. package/service.proto +643 -0
  84. package/service_connect.d.ts +1120 -0
  85. package/service_connect.js +1120 -0
  86. package/subscription.proto +24 -0
  87. package/subscription_pb.d.ts +98 -0
  88. package/subscription_pb.js +37 -0
  89. package/template.proto +76 -0
  90. package/template_pb.d.ts +387 -0
  91. package/template_pb.js +140 -0
  92. package/transaction.proto +513 -0
  93. package/transaction_pb.d.ts +2717 -0
  94. package/transaction_pb.js +856 -0
  95. package/virtual_account.proto +265 -0
  96. package/virtual_account_pb.d.ts +1442 -0
  97. package/virtual_account_pb.js +478 -0
  98. package/zalopay.proto +78 -0
  99. package/zalopay_pb.d.ts +423 -0
  100. package/zalopay_pb.js +153 -0
@@ -0,0 +1,237 @@
1
+ // general
2
+
3
+ // @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
4
+ // @generated from file ct-logic-uni-rev-payment/v1/configuration.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import { proto3 } from "@bufbuild/protobuf";
9
+ import { InvoiceInfo } from "./econtract_pb.js";
10
+
11
+ /**
12
+ * @generated from message ct_logic_uni_rev_payment.v1.ForceUpdateInfoRequest
13
+ */
14
+ export const ForceUpdateInfoRequest = proto3.makeMessageType(
15
+ "ct_logic_uni_rev_payment.v1.ForceUpdateInfoRequest",
16
+ () => [
17
+ { no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
18
+ { no: 2, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
19
+ { no: 3, name: "app_platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
20
+ { no: 4, name: "screen_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
21
+ ],
22
+ );
23
+
24
+ /**
25
+ * @generated from message ct_logic_uni_rev_payment.v1.ForceUpdateInfoResponse
26
+ */
27
+ export const ForceUpdateInfoResponse = proto3.makeMessageType(
28
+ "ct_logic_uni_rev_payment.v1.ForceUpdateInfoResponse",
29
+ () => [
30
+ { no: 1, name: "is_forced_update", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
31
+ { no: 2, name: "force_update_mode", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
32
+ { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33
+ { no: 4, name: "button_text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
34
+ { no: 5, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
35
+ { no: 6, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
36
+ ],
37
+ );
38
+
39
+ /**
40
+ * @generated from message ct_logic_uni_rev_payment.v1.PaymentGatewayInfoRequest
41
+ */
42
+ export const PaymentGatewayInfoRequest = proto3.makeMessageType(
43
+ "ct_logic_uni_rev_payment.v1.PaymentGatewayInfoRequest",
44
+ () => [
45
+ { no: 1, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ { no: 2, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
47
+ { no: 3, name: "payment_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
48
+ { no: 4, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
49
+ { no: 5, name: "page_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
50
+ { no: 6, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
51
+ ],
52
+ );
53
+
54
+ /**
55
+ * @generated from message ct_logic_uni_rev_payment.v1.PaymentGatewayInfo
56
+ */
57
+ export const PaymentGatewayInfo = proto3.makeMessageType(
58
+ "ct_logic_uni_rev_payment.v1.PaymentGatewayInfo",
59
+ () => [
60
+ { no: 1, name: "payment_gateway_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
61
+ { no: 2, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
62
+ { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
63
+ { no: 4, name: "payment_method_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
+ { no: 5, name: "payment_method_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
65
+ { no: 6, name: "payment_method_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
+ { no: 7, name: "payment_method_icon", kind: "scalar", T: 9 /* ScalarType.STRING */ },
67
+ { no: 8, name: "charged_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
68
+ { no: 9, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
69
+ { no: 10, name: "support_invoice", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
70
+ { no: 11, name: "total_dongtot_balance", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
71
+ { no: 12, name: "before_tax_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
72
+ { no: 13, name: "tax_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
73
+ { no: 14, name: "service_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
74
+ { no: 15, name: "tax_service_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
75
+ ],
76
+ );
77
+
78
+ /**
79
+ * @generated from message ct_logic_uni_rev_payment.v1.PaymentGatewayInfoResponse
80
+ */
81
+ export const PaymentGatewayInfoResponse = proto3.makeMessageType(
82
+ "ct_logic_uni_rev_payment.v1.PaymentGatewayInfoResponse",
83
+ () => [
84
+ { no: 1, name: "payment_gateway_info", kind: "message", T: PaymentGatewayInfo, repeated: true },
85
+ ],
86
+ );
87
+
88
+ /**
89
+ * @generated from message ct_logic_uni_rev_payment.v1.PaymentGatewayCheckoutInfoRequest
90
+ */
91
+ export const PaymentGatewayCheckoutInfoRequest = proto3.makeMessageType(
92
+ "ct_logic_uni_rev_payment.v1.PaymentGatewayCheckoutInfoRequest",
93
+ () => [
94
+ { no: 1, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
95
+ { no: 2, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
96
+ { no: 3, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
97
+ { no: 4, name: "order_params", kind: "message", T: OrderParams },
98
+ { no: 5, name: "page_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
99
+ ],
100
+ );
101
+
102
+ /**
103
+ * @generated from message ct_logic_uni_rev_payment.v1.OrderParams
104
+ */
105
+ export const OrderParams = proto3.makeMessageType(
106
+ "ct_logic_uni_rev_payment.v1.OrderParams",
107
+ () => [
108
+ { no: 1, name: "cart", kind: "message", T: CartParams, opt: true },
109
+ { no: 2, name: "shop", kind: "message", T: ShopParams, opt: true },
110
+ { no: 3, name: "subscription", kind: "message", T: SubscriptionParams, opt: true },
111
+ { no: 4, name: "paas", kind: "message", T: PaasParams, opt: true },
112
+ { no: 5, name: "topup", kind: "message", T: TopupParams, opt: true },
113
+ ],
114
+ );
115
+
116
+ /**
117
+ * @generated from message ct_logic_uni_rev_payment.v1.CartParams
118
+ */
119
+ export const CartParams = proto3.makeMessageType(
120
+ "ct_logic_uni_rev_payment.v1.CartParams",
121
+ () => [
122
+ { no: 1, name: "cart_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
123
+ ],
124
+ );
125
+
126
+ /**
127
+ * @generated from message ct_logic_uni_rev_payment.v1.ShopParams
128
+ */
129
+ export const ShopParams = proto3.makeMessageType(
130
+ "ct_logic_uni_rev_payment.v1.ShopParams",
131
+ () => [
132
+ { no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
133
+ { no: 2, name: "action_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
134
+ { no: 3, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
135
+ ],
136
+ );
137
+
138
+ /**
139
+ * @generated from message ct_logic_uni_rev_payment.v1.SubscriptionParams
140
+ */
141
+ export const SubscriptionParams = proto3.makeMessageType(
142
+ "ct_logic_uni_rev_payment.v1.SubscriptionParams",
143
+ () => [
144
+ { no: 1, name: "subscription_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
145
+ { no: 2, name: "quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
146
+ { no: 3, name: "previous_subscription_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
147
+ { no: 4, name: "recurring_subscribe_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
148
+ { no: 5, name: "subscription_payment_source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
149
+ ],
150
+ );
151
+
152
+ /**
153
+ * @generated from message ct_logic_uni_rev_payment.v1.PaasParams
154
+ */
155
+ export const PaasParams = proto3.makeMessageType(
156
+ "ct_logic_uni_rev_payment.v1.PaasParams",
157
+ () => [
158
+ { no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
159
+ { no: 2, name: "payment_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
160
+ ],
161
+ );
162
+
163
+ /**
164
+ * @generated from message ct_logic_uni_rev_payment.v1.TopupParams
165
+ */
166
+ export const TopupParams = proto3.makeMessageType(
167
+ "ct_logic_uni_rev_payment.v1.TopupParams",
168
+ () => [
169
+ { no: 1, name: "package_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
170
+ ],
171
+ );
172
+
173
+ /**
174
+ * @generated from message ct_logic_uni_rev_payment.v1.PaymentGatewayCheckoutInfoResponse
175
+ */
176
+ export const PaymentGatewayCheckoutInfoResponse = proto3.makeMessageType(
177
+ "ct_logic_uni_rev_payment.v1.PaymentGatewayCheckoutInfoResponse",
178
+ () => [
179
+ { no: 1, name: "payment_gateway_info", kind: "message", T: PaymentGatewayInfo, repeated: true },
180
+ { no: 2, name: "selected_payment_method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
181
+ { no: 3, name: "highlighted_message", kind: "message", T: HighlightedMessage },
182
+ { no: 4, name: "warning_popup", kind: "message", T: WarningPopup, opt: true },
183
+ { no: 5, name: "note", kind: "scalar", T: 9 /* ScalarType.STRING */ },
184
+ { no: 6, name: "pricing_description", kind: "message", T: PricingDescription },
185
+ { no: 7, name: "invoice_info", kind: "message", T: InvoiceInfo, opt: true },
186
+ ],
187
+ );
188
+
189
+ /**
190
+ * @generated from message ct_logic_uni_rev_payment.v1.PricingDescription
191
+ */
192
+ export const PricingDescription = proto3.makeMessageType(
193
+ "ct_logic_uni_rev_payment.v1.PricingDescription",
194
+ () => [
195
+ { no: 1, name: "charged_amount_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
196
+ { no: 2, name: "before_tax_amount_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
197
+ { no: 3, name: "tax_amount_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
198
+ { no: 4, name: "service_fee_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
199
+ { no: 5, name: "tax_service_fee_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
200
+ ],
201
+ );
202
+
203
+ /**
204
+ * @generated from message ct_logic_uni_rev_payment.v1.HighlightedMessage
205
+ */
206
+ export const HighlightedMessage = proto3.makeMessageType(
207
+ "ct_logic_uni_rev_payment.v1.HighlightedMessage",
208
+ () => [
209
+ { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
210
+ { no: 2, name: "content", kind: "message", T: HighlightedMessageContent },
211
+ ],
212
+ );
213
+
214
+ /**
215
+ * @generated from message ct_logic_uni_rev_payment.v1.HighlightedMessageContent
216
+ */
217
+ export const HighlightedMessageContent = proto3.makeMessageType(
218
+ "ct_logic_uni_rev_payment.v1.HighlightedMessageContent",
219
+ () => [
220
+ { no: 1, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
221
+ { no: 2, name: "icon_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
222
+ { no: 3, name: "link_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
223
+ ],
224
+ );
225
+
226
+ /**
227
+ * @generated from message ct_logic_uni_rev_payment.v1.WarningPopup
228
+ */
229
+ export const WarningPopup = proto3.makeMessageType(
230
+ "ct_logic_uni_rev_payment.v1.WarningPopup",
231
+ () => [
232
+ { no: 1, name: "warning_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
233
+ { no: 2, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
234
+ { no: 3, name: "return_page", kind: "scalar", T: 9 /* ScalarType.STRING */ },
235
+ ],
236
+ );
237
+
@@ -0,0 +1,277 @@
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 CreateCreditPromotionCampaignRequest {
12
+ string name = 1 [(validate.rules).string = {
13
+ min_len: 1,
14
+ max_len: 256
15
+ }];
16
+ string type = 2 [(validate.rules).string = {
17
+ in: ["public", "private", "internal"]
18
+ }];
19
+ int64 department_id = 3 [(validate.rules).int64 = {
20
+ gt: 0
21
+ }];
22
+ google.protobuf.Timestamp start_at = 4 [(validate.rules).timestamp = {
23
+ required: true
24
+ }];
25
+ google.protobuf.Timestamp end_at = 5 [(validate.rules).timestamp = {
26
+ required: true,
27
+ gt_now: true
28
+ }];
29
+ string prefix_code = 6 [(validate.rules).string = {
30
+ min_len: 1,
31
+ max_len: 10
32
+ }];
33
+ string custom_code = 7;
34
+ int64 total_code = 8 [(validate.rules).int64 = {
35
+ gt: 0
36
+ }];
37
+ int64 limit_redeem_per_user = 9 [(validate.rules).int64 = {
38
+ gt: 0
39
+ }];
40
+ string meta_data = 10;
41
+ int64 credit_value = 11 [(validate.rules).int64 = {
42
+ gt: 0
43
+ }];
44
+ string creator = 12;
45
+ }
46
+
47
+ message CreateCreditPromotionCampaignResponse {
48
+ int64 campaign_id = 1;
49
+ string status = 2;
50
+ }
51
+
52
+ message Campaign {
53
+ int64 id = 1;
54
+ string name = 2;
55
+ string type = 3;
56
+ int64 department_id = 4;
57
+ google.protobuf.Timestamp start_at = 5;
58
+ google.protobuf.Timestamp end_at = 6;
59
+ string prefix_code = 7;
60
+ string custom_code = 8;
61
+ int64 total_code = 9;
62
+ int64 limit_redeem_per_user = 10;
63
+ string status = 11;
64
+ string meta_data = 12;
65
+ google.protobuf.Timestamp created_at = 13;
66
+ google.protobuf.Timestamp updated_at = 14;
67
+ string creator = 15;
68
+ int64 credit_value = 16;
69
+ optional int64 total_code_assigned = 17;
70
+ optional int64 total_redemption = 18;
71
+ }
72
+
73
+ message FilterCampaign {
74
+ int64 campaign_id = 1;
75
+ string type = 2;
76
+ int64 department_id = 3;
77
+ string status = 4;
78
+ string creator = 5;
79
+ google.protobuf.Timestamp start_at = 6;
80
+ google.protobuf.Timestamp end_at = 7;
81
+ string prefix_code = 8;
82
+ string custom_code = 9;
83
+ }
84
+
85
+ message GetListCreditPromotionCampaignRequest {
86
+ int64 max_page_size = 1 [(validate.rules).int64 = {
87
+ gt: 0,
88
+ lt: 5000
89
+ }];
90
+ string page_token = 2;
91
+ FilterCampaign filter = 3;
92
+ }
93
+
94
+ message GetListCreditPromotionCampaignResponse {
95
+ string page_token = 1;
96
+ string next_page_token = 2;
97
+ int64 total_records = 3;
98
+ repeated Campaign campaigns = 4;
99
+ }
100
+
101
+ message UpdateCreditPromotionCampaignRequest {
102
+ int64 campaign_id = 1 [(validate.rules).int64 = {
103
+ gt: 0
104
+ }];
105
+ string name = 2;
106
+ string type = 3;
107
+ int64 department_id = 4;
108
+ google.protobuf.Timestamp start_at = 5;
109
+ google.protobuf.Timestamp end_at = 6;
110
+ string prefix_code = 7;
111
+ string custom_code = 8;
112
+ int64 total_code = 9;
113
+ int64 limit_redeem_per_user = 10;
114
+ string meta_data = 11;
115
+ int64 credit_value = 12;
116
+ string action_by = 13;
117
+ }
118
+
119
+ message UpdateCreditPromotionCampaignResponse {
120
+ int64 campaign_id = 1;
121
+ string status = 2;
122
+ }
123
+
124
+ message MoveCreditPromotionCampaignToWaitForApproveRequest {
125
+ int64 campaign_id = 1 [(validate.rules).int64 = {
126
+ gt: 0
127
+ }];
128
+ string action_by = 2;
129
+ }
130
+
131
+ message MoveCreditPromotionCampaignToWaitForApproveResponse {
132
+ int64 campaign_id = 1;
133
+ string status = 2;
134
+ }
135
+
136
+ message ApproveCreditPromotionCampaignRequest {
137
+ int64 campaign_id = 1 [(validate.rules).int64 = {
138
+ gt: 0
139
+ }];
140
+ string action_by = 2;
141
+ }
142
+
143
+ message ApproveCreditPromotionCampaignResponse {
144
+ int64 campaign_id = 1;
145
+ string status = 2;
146
+ }
147
+
148
+ message RejectCreditPromotionCampaignRequest {
149
+ int64 campaign_id = 1 [(validate.rules).int64 = {
150
+ gt: 0
151
+ }];
152
+ string action_by = 2;
153
+ }
154
+
155
+ message RejectCreditPromotionCampaignResponse {
156
+ int64 campaign_id = 1;
157
+ string status = 2;
158
+ }
159
+
160
+ message GetCreditPromotionCampaignByIdRequest {
161
+ int64 campaign_id = 1 [(validate.rules).int64 = {
162
+ gt: 0
163
+ }];
164
+ }
165
+
166
+ message GetCreditPromotionCampaignByIdResponse {
167
+ Campaign campaign = 1;
168
+ }
169
+
170
+ message GenerateCreditPromotionCodeRequest {
171
+ int64 campaign_id = 1 [(validate.rules).int64 = {
172
+ gt: 0
173
+ }];
174
+ int64 quantity = 2 [(validate.rules).int64 = {
175
+ gt: 0,
176
+ lt: 1000
177
+ }];
178
+ string action_by = 3;
179
+ }
180
+
181
+ message GenerateCreditPromotionCodeResponse {
182
+ string status = 1;
183
+ int64 quantity = 2;
184
+ }
185
+
186
+ message AssignCreditPromotionCodeRequest {
187
+ int64 campaign_id = 1 [(validate.rules).int64 = {
188
+ gt: 0
189
+ }];
190
+ repeated int64 list_account_id = 2 [(validate.rules).repeated = {
191
+ max_items: 1000
192
+ }];
193
+ string action_by = 3;
194
+ }
195
+
196
+ message AssignCreditPromotionCodeResponse {
197
+ string status = 1;
198
+ int64 quantity = 2;
199
+ }
200
+
201
+ message AutoRedeemCreditPromotionCodeRequest {
202
+ int64 campaign_id = 1 [(validate.rules).int64 = {
203
+ gt: 0
204
+ }];
205
+ string action_by = 2;
206
+ }
207
+
208
+ message AutoRedeemCreditPromotionCodeResponse {
209
+ string status = 1;
210
+ int64 quantity = 2;
211
+ }
212
+
213
+ message MoveCreditPromotionCampaignToWaitForApprovalRequest {
214
+ int64 campaign_id = 1;
215
+ string action_by = 2;
216
+ }
217
+
218
+ message MoveCreditPromotionCampaignToWaitForApprovalResponse {
219
+ string status = 1;
220
+ }
221
+
222
+ message GetCampaignInfoByRedemptionInfoRequest {
223
+ int64 order_id = 1;
224
+ int64 account_id = 2;
225
+ }
226
+
227
+ message GetCampaignInfoByRedemptionInfoResponse {
228
+ Campaign campaign = 1;
229
+ }
230
+
231
+ message FilterAssignment {
232
+ int64 campaign_id = 1;
233
+ int64 account_id = 2;
234
+ string code = 3;
235
+ string creator = 4;
236
+
237
+ }
238
+
239
+ message GetAssignmentByFilterRequest {
240
+ FilterAssignment filter = 1;
241
+ int64 max_page_size = 2;
242
+ string page_token = 3;
243
+ }
244
+
245
+ message AssignmentInfo {
246
+ int64 id = 1;
247
+ int64 campaign_id = 2;
248
+ int64 account_id = 3;
249
+ string code_value = 4;
250
+ string creator = 5;
251
+ google.protobuf.Timestamp updated_at = 6;
252
+ }
253
+ message GetAssignmentByFilterResponse {
254
+ string page_token = 1;
255
+ string next_page_token = 2;
256
+ int64 total_records = 3;
257
+ repeated AssignmentInfo data = 4;
258
+ }
259
+
260
+ message ExportAssignmentByFilterRequest {
261
+ FilterAssignment filter = 1;
262
+ int64 max_page_size = 2;
263
+ string page_token = 3;
264
+ }
265
+
266
+ message ExportAssignmentByFilterResponse {
267
+ repeated AssignmentInfo data = 1;
268
+ int64 total_records = 2;
269
+ }
270
+
271
+ message ForceUpdateCampaignStatusRequest {
272
+ int64 id = 1;
273
+ string status = 2 [(validate.rules).string = {
274
+ in: ["paused", "approved"]}];
275
+ string action_by = 3;
276
+ }
277
+ message ForceUpdateCampaignStatusResponse {}