@chotot/ct-logic-uni-rev-premium-v1 1.286.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 (93) hide show
  1. package/ad.proto +89 -0
  2. package/ad_delivery.proto +232 -0
  3. package/ad_delivery_pb.d.ts +1285 -0
  4. package/ad_delivery_pb.js +439 -0
  5. package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.d.ts +138 -0
  6. package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.js +211 -0
  7. package/ad_delivery_service.proto +65 -0
  8. package/ad_delivery_service_connect.d.ts +125 -0
  9. package/ad_delivery_service_connect.js +125 -0
  10. package/ad_optimization.proto +111 -0
  11. package/ad_optimization_pb.d.ts +601 -0
  12. package/ad_optimization_pb.js +214 -0
  13. package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.d.ts +78 -0
  14. package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.js +115 -0
  15. package/ad_optimization_service.proto +21 -0
  16. package/ad_optimization_service_connect.d.ts +71 -0
  17. package/ad_optimization_service_connect.js +71 -0
  18. package/ad_pb.d.ts +461 -0
  19. package/ad_pb.js +172 -0
  20. package/ad_service-LogicUniRevPremiumAdService_connectquery.d.ts +58 -0
  21. package/ad_service-LogicUniRevPremiumAdService_connectquery.js +83 -0
  22. package/ad_service.proto +15 -0
  23. package/ad_service_connect.d.ts +53 -0
  24. package/ad_service_connect.js +53 -0
  25. package/ad_social_platform.proto +108 -0
  26. package/ad_social_platform_pb.d.ts +474 -0
  27. package/ad_social_platform_pb.js +156 -0
  28. package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.d.ts +68 -0
  29. package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.js +99 -0
  30. package/ad_social_platform_service.proto +23 -0
  31. package/ad_social_platform_service_connect.d.ts +62 -0
  32. package/ad_social_platform_service_connect.js +62 -0
  33. package/bump_ad.proto +162 -0
  34. package/bump_ad_pb.d.ts +869 -0
  35. package/bump_ad_pb.js +308 -0
  36. package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.d.ts +123 -0
  37. package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.js +189 -0
  38. package/bump_ad_service.proto +56 -0
  39. package/bump_ad_service_connect.d.ts +112 -0
  40. package/bump_ad_service_connect.js +112 -0
  41. package/free_ps.proto +527 -0
  42. package/free_ps_pb.d.ts +2848 -0
  43. package/free_ps_pb.js +934 -0
  44. package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.d.ts +304 -0
  45. package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.js +483 -0
  46. package/free_ps_service.proto +62 -0
  47. package/free_ps_service_connect.d.ts +276 -0
  48. package/free_ps_service_connect.js +276 -0
  49. package/listing_tier.proto +228 -0
  50. package/listing_tier_pb.d.ts +1032 -0
  51. package/listing_tier_pb.js +365 -0
  52. package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.d.ts +108 -0
  53. package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.js +163 -0
  54. package/listing_tier_service.proto +19 -0
  55. package/listing_tier_service_connect.d.ts +98 -0
  56. package/listing_tier_service_connect.js +98 -0
  57. package/onbehalf.proto +91 -0
  58. package/onbehalf_pb.d.ts +411 -0
  59. package/onbehalf_pb.js +138 -0
  60. package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.d.ts +28 -0
  61. package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.js +35 -0
  62. package/onbehalf_service.proto +11 -0
  63. package/onbehalf_service_connect.d.ts +26 -0
  64. package/onbehalf_service_connect.js +26 -0
  65. package/package.json +10 -0
  66. package/premium_services.proto +1005 -0
  67. package/premium_services_pb.d.ts +5465 -0
  68. package/premium_services_pb.js +1840 -0
  69. package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.d.ts +496 -0
  70. package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.js +787 -0
  71. package/premium_services_service.proto +132 -0
  72. package/premium_services_service_connect.d.ts +448 -0
  73. package/premium_services_service_connect.js +448 -0
  74. package/pricing.proto +722 -0
  75. package/pricing_pb.d.ts +3949 -0
  76. package/pricing_pb.js +1372 -0
  77. package/pricing_service-LogicUniRevPremiumPricingService_connectquery.d.ts +411 -0
  78. package/pricing_service-LogicUniRevPremiumPricingService_connectquery.js +653 -0
  79. package/pricing_service.proto +63 -0
  80. package/pricing_service_connect.d.ts +372 -0
  81. package/pricing_service_connect.js +372 -0
  82. package/scripts/modify_package_json.js +50 -0
  83. package/special_display.proto +56 -0
  84. package/special_display_pb.d.ts +322 -0
  85. package/special_display_pb.js +113 -0
  86. package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.d.ts +58 -0
  87. package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.js +83 -0
  88. package/special_display_service.proto +24 -0
  89. package/special_display_service_connect.d.ts +53 -0
  90. package/special_display_service_connect.js +53 -0
  91. package/sticky_adinfo.proto +312 -0
  92. package/sticky_adinfo_pb.d.ts +1463 -0
  93. package/sticky_adinfo_pb.js +328 -0
package/free_ps.proto ADDED
@@ -0,0 +1,527 @@
1
+ // general
2
+ syntax = "proto3";
3
+ package ct_logic_uni_rev_premium.v1;
4
+
5
+ import "validate/validate.proto";
6
+
7
+ // language specs
8
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-premium;pb";
9
+
10
+ import "google/protobuf/timestamp.proto";
11
+
12
+ message GetPSRedeemManualRequest {
13
+ string redeem_id = 1 [(validate.rules).string.min_len = 1];
14
+ string token = 2 [(validate.rules).string.min_len = 1];
15
+ }
16
+
17
+ message GetPSRedeemManualResponse {
18
+ bool success = 1;
19
+ GetPSRedeemResponseData data = 2;
20
+ }
21
+
22
+ message GetPSRedeemResponseData {
23
+ string content = 1;
24
+ string status = 2;
25
+ google.protobuf.Timestamp expired_at = 3;
26
+ string service_type = 4;
27
+ GetPSRedeemResponseAdInfo ad_info = 5;
28
+ }
29
+
30
+ message GetPSRedeemResponseAdInfo {
31
+ string title = 1;
32
+ string price_string = 2;
33
+ string image_url = 3;
34
+ }
35
+
36
+ message PSRedeemManualRequest {
37
+ string redeem_id = 1 [(validate.rules).string.min_len = 1];
38
+ optional string token = 2;
39
+ optional int64 account_id = 3;
40
+ repeated int64 ad_ids = 4;
41
+ }
42
+
43
+ message PSRedeemManualResponse {
44
+ bool success = 1;
45
+ string message = 2;
46
+ string message_detail = 3;
47
+ }
48
+
49
+ message GetPSCampaignsRequest {
50
+ int64 limit = 1 [(validate.rules).int64.gt = 0];
51
+ int64 offset = 2 [(validate.rules).int64.gte = 0];
52
+ string name = 3;
53
+ string status = 4;
54
+ string type = 5 [(validate.rules).string = {
55
+ min_len: 1,
56
+ in: [
57
+ "ad_base",
58
+ "account_base",
59
+ "listing_fee_account_base",
60
+ "bundle_account_base"
61
+ ],
62
+ }];
63
+ }
64
+
65
+ message GetPSCampaignsResponse {
66
+ int64 total = 1;
67
+ repeated GetPSCampaignResponse campaigns = 2;
68
+ }
69
+
70
+ message GetPSCampaignRequest {
71
+ string id = 1 [(validate.rules).string.min_len = 1];
72
+ }
73
+
74
+ message GetPSCampaignResponse {
75
+ string id = 1;
76
+ string name = 2;
77
+ string legal_code = 3;
78
+ string status = 4;
79
+ string admin_id = 5;
80
+ bool is_sms = 6;
81
+ bool is_announcer = 7;
82
+ google.protobuf.Timestamp start_date = 8;
83
+ google.protobuf.Timestamp end_date = 9;
84
+ google.protobuf.Timestamp created_at = 10;
85
+ bool is_notification = 11;
86
+ PSCampaignMetaData meta_data = 12;
87
+ string voucher_type = 13;
88
+ string voucher_name = 14;
89
+ repeated PremiumService premium_services = 15; // use for free bundle campaign
90
+ }
91
+
92
+ message PremiumService {
93
+ string service_type = 1;
94
+ int64 duration = 2;
95
+ repeated string add_on_features = 3;
96
+ }
97
+
98
+ message CreatePSCampaignRequest {
99
+ string name = 1 [(validate.rules).string.min_len = 1];
100
+ string legal_code = 2 [(validate.rules).string.min_len = 1];
101
+ string status = 3 [(validate.rules).string.min_len = 1];
102
+ string admin_id = 4 [(validate.rules).string.min_len = 1];
103
+ bool is_sms = 5;
104
+ bool is_announcer = 6;
105
+ google.protobuf.Timestamp start_date = 7;
106
+ google.protobuf.Timestamp end_date = 8;
107
+ string type = 9 [(validate.rules).string = {
108
+ min_len: 1,
109
+ in: [
110
+ "ad_base",
111
+ "account_base",
112
+ "listing_fee_account_base",
113
+ "bundle_account_base"
114
+ ],
115
+ }];
116
+ bool is_notification = 10;
117
+ PSCampaignMetaData meta_data = 11;
118
+ string voucher_type = 12;
119
+ string voucher_name = 13;
120
+ repeated PremiumService premium_services = 14; // use for free bundle campaign
121
+ }
122
+
123
+ message CreatePSCampaignResponse{
124
+ string id = 1;
125
+ }
126
+
127
+ message UpdatePSCampaignRequest {
128
+ string id = 1 [(validate.rules).string.min_len = 1];
129
+ string name = 2;
130
+ string legal_code = 3;
131
+ string status = 4;
132
+ string admin_id = 5 [(validate.rules).string.min_len = 1];
133
+ bool is_sms = 6;
134
+ bool is_announcer = 7;
135
+ google.protobuf.Timestamp start_date = 8;
136
+ google.protobuf.Timestamp end_date = 9;
137
+ optional string description = 10;
138
+ optional string condition = 11;
139
+ optional string usage = 12;
140
+ optional bool is_notification = 13;
141
+ optional string voucher_name = 14;
142
+ }
143
+
144
+ message UpdatePSCampaignResponse {}
145
+
146
+ message DeletePSCampaignRequest {
147
+ string id = 1;
148
+ string admin_id = 2 [(validate.rules).string.min_len = 1];
149
+ }
150
+
151
+ message DeletePSCampaignResponse {}
152
+
153
+ message CreatePSRedeemsRequest {
154
+ string campaign_id = 1 [(validate.rules).string.min_len = 1];
155
+ string admin_id = 2 [(validate.rules).string.min_len = 1];
156
+ repeated CreatePSRedeemRequest redeems = 3;
157
+ }
158
+
159
+ message CreatePSRedeemRequest {
160
+ string service_type = 1 [(validate.rules).string.min_len = 1];
161
+ int64 total_free = 2 [(validate.rules).int64.gt = 0];
162
+ optional int64 ad_id = 3;
163
+ optional string ad_type = 4;
164
+ optional int64 category_id = 5;
165
+ optional int64 account_id = 6;
166
+ string campaign_id = 7; // for rmq message
167
+ string admin_id = 8; // for rmq message
168
+ optional int64 duration = 9;
169
+ string phone = 10;
170
+ }
171
+
172
+ message CreatePSRedeemsResponse {}
173
+
174
+ message UpdatePSRedeemRequest {
175
+ string id = 1 [(validate.rules).string.min_len = 1];
176
+ string status = 2 [(validate.rules).string.min_len = 1];
177
+ string admin_id = 3 [(validate.rules).string.min_len = 1];
178
+ }
179
+
180
+ message UpdatePSRedeemResponse {}
181
+
182
+ message GetPSRedeemsRequest {
183
+ int64 limit = 1 [(validate.rules).int64.gt = 0];
184
+ int64 offset = 2 [(validate.rules).int64.gte = 0];
185
+ repeated string status = 3;
186
+ string service_type = 4;
187
+ string campaign_id = 5;
188
+ int64 account_id = 6;
189
+ }
190
+
191
+ message GetPSRedeemsResponse {
192
+ int64 total = 1;
193
+ repeated GetPSRedeemResponse redeems = 2;
194
+ }
195
+
196
+ message GetPSRedeemResponse {
197
+ string id = 1;
198
+ int64 account_id = 2;
199
+ optional int64 ad_id = 3;
200
+ string service_type = 4;
201
+ int64 total_free = 5;
202
+ bool is_sent_sms = 6;
203
+ bool is_sent_announcer = 7;
204
+ int64 order_id = 8;
205
+ string status = 9;
206
+ google.protobuf.Timestamp created_at = 10;
207
+ string announcer_id = 11;
208
+ optional string ad_type = 12;
209
+ optional int64 category_id = 13;
210
+ repeated PSPremiumService premium_services = 14;
211
+ PSRedeemResult result = 15;
212
+ int64 remaining_total_free = 16;
213
+ bool is_sent_notification = 17;
214
+ }
215
+
216
+ message PSRedeemResult {
217
+ repeated int64 order_ids = 1;
218
+ repeated int64 ad_ids = 2;
219
+ }
220
+
221
+ message PSPremiumService {
222
+ string service_type = 1;
223
+ string service_params = 2;
224
+ int64 total_free = 3;
225
+ }
226
+
227
+ message RestorePSRedeemRequest {
228
+ string id = 1 [(validate.rules).string.min_len = 1];
229
+ string admin_id = 2 [(validate.rules).string.min_len = 1];
230
+ }
231
+
232
+ message RestorePSRedeemResponse {}
233
+
234
+ message GetListingFeeRedeemRequest {
235
+ string id = 1 [(validate.rules).string.min_len = 1];
236
+ }
237
+
238
+ message GetListingFeeRedeemResponse {
239
+ string id = 1;
240
+ int64 account_id = 2;
241
+ string phone = 3;
242
+ string service_type = 4;
243
+ bool is_sent_sms = 5;
244
+ string announcer_id = 6;
245
+ bool is_sent_notification = 7;
246
+ string status = 8;
247
+ string campaign_id = 9;
248
+ optional string ad_type = 10;
249
+ optional int64 category_id = 11;
250
+ repeated int64 region_ids = 12;
251
+ int64 remaining_total_free = 13;
252
+ int64 total_free = 14;
253
+ google.protobuf.Timestamp created_at = 15;
254
+ repeated RedeemInfo redeems_successful = 16;
255
+ repeated RedeemInfo redeems_failed = 17;
256
+ int64 duration = 18;
257
+ }
258
+
259
+ message RedeemInfo {
260
+ int64 ad_id = 1;
261
+ int64 order_id = 2;
262
+ }
263
+
264
+ message GetListingFeeRedeemsRequest {
265
+ int64 limit = 1 [(validate.rules).int64.gt = 0];
266
+ int64 offset = 2 [(validate.rules).int64.gte = 0];
267
+ repeated string status = 3;
268
+ string service_type = 4;
269
+ string campaign_id = 5;
270
+ int64 account_id = 6;
271
+ }
272
+
273
+ message GetListingFeeRedeemsResponse {
274
+ int64 total = 1;
275
+ repeated GetListingFeeRedeemResponse redeems = 2;
276
+ }
277
+
278
+ message CreateListingFeeRedeemsRequest {
279
+ string campaign_id = 1 [(validate.rules).string.min_len = 1];
280
+ string created_by = 2 [(validate.rules).string.min_len = 1];
281
+ repeated CreateListingFeeRedeemRequest redeems = 3;
282
+ }
283
+
284
+ message CreateListingFeeRedeemRequest {
285
+ int64 account_id = 1;
286
+ string phone = 2;
287
+ string service_type = 3;
288
+ string campaign_id = 4;
289
+ optional string ad_type = 5;
290
+ optional int64 category_id = 6;
291
+ repeated int64 region_ids = 7;
292
+ int64 total_free = 8 [(validate.rules).int64.gt = 0];
293
+ int64 duration = 9;
294
+ oneof metadata {
295
+ ListingTierMetadata listing_tier_metadata = 10;
296
+ }
297
+ }
298
+
299
+ message ListingTierMetadata {
300
+ optional string tier_code = 1;
301
+ optional int64 subscription_transaction_id = 2;
302
+ }
303
+
304
+ message CreateListingFeeRedeemsResponse {}
305
+
306
+ message PSCampaignMetaData {
307
+ string description = 1;
308
+ string condition = 2;
309
+ string usage = 3;
310
+ string thumbnail_url = 4;
311
+ string icon_url = 5;
312
+ }
313
+
314
+ message GetVouchersByAccountIdRequest {
315
+ int64 account_id = 1;
316
+ int64 limit = 2 [(validate.rules).int64.gt = 0];
317
+ int64 offset = 3 [(validate.rules).int64.gte = 0];
318
+ string service_type = 4;
319
+ optional string platform = 5 [(validate.rules).string = {in: ["android", "ios"]}];
320
+ optional string app_version = 6;
321
+ }
322
+
323
+ message GetVouchersByAccountIdResponse {
324
+ int64 total = 1;
325
+ repeated GetVoucherDetaildByIdResponse vouchers = 2;
326
+ }
327
+
328
+ message GetVoucherDetaildByIdResponse {
329
+ string id = 1;
330
+ string service_type = 2;
331
+ int64 category_id = 3;
332
+ string ad_type = 4;
333
+ repeated int64 region_ids = 5;
334
+ int64 quantity = 6;
335
+ string status = 7;
336
+ google.protobuf.Timestamp start_date = 8;
337
+ google.protobuf.Timestamp end_date = 9;
338
+ bool is_usable = 10;
339
+ VoucherDetailMetadata metadata = 11;
340
+ string voucher_type = 12;
341
+ string voucher_based = 13;
342
+ repeated string service_types = 14;
343
+ optional string credit_promotion_code = 15;
344
+ }
345
+
346
+ message VoucherDetailMetadata {
347
+ string name = 1;
348
+ string thumbnail_url = 2;
349
+ string icon_url = 3;
350
+ string description = 4;
351
+ string condition = 5;
352
+ string usage = 6;
353
+ string service_type_name = 7;
354
+ string category_name = 8;
355
+ string ad_type_name = 9;
356
+ string region_names = 10;
357
+ string status_name = 11;
358
+ ExpiryDate expiry_date = 12;
359
+ repeated string service_type_names = 13;
360
+ string note = 14;
361
+ string tier_code_name = 15;
362
+ }
363
+
364
+ message ExpiryDate {
365
+ string type = 1;
366
+ string expire_at = 2;
367
+ }
368
+
369
+ message GetVouchersCountByServiceTypeRequest {
370
+ int64 account_id = 1;
371
+ optional string platform = 2 [(validate.rules).string = {in: ["android", "ios"]}];
372
+ optional string app_version = 3;
373
+ }
374
+
375
+ message GetVouchersCountByServiceTypeResponse {
376
+ repeated ServiceTypeCount service_type_count = 1;
377
+ }
378
+
379
+ message ServiceTypeCount {
380
+ string service_type = 1;
381
+ string service_type_name = 2;
382
+ int64 count = 3;
383
+ }
384
+
385
+ message GetCategoriesWithListingFeeVouchersRequest {
386
+ int64 account_id = 1;
387
+ int64 category_id = 2;
388
+ string ad_type = 3;
389
+ }
390
+
391
+ message GetCategoriesWithListingFeeVouchersResponse {
392
+ repeated int64 big_category_ids = 1;
393
+ repeated int64 category_ids = 2;
394
+ string message = 3;
395
+ }
396
+
397
+ message UpsertPSRedeemsRequest {
398
+ string campaign_id = 1 [(validate.rules).string.min_len = 1];
399
+ string admin_id = 2 [(validate.rules).string.min_len = 1];
400
+ repeated CreatePSRedeemRequest redeems = 3;
401
+ }
402
+
403
+ message UpsertPSRedeemsResponse {}
404
+
405
+ message GetAdsToRedeemVoucherRequest {
406
+ int64 account_id = 1 [(validate.rules).int64.gt = 0];
407
+ int64 limit = 2 [(validate.rules).int64.gt = 0];
408
+ int64 offset = 3 [(validate.rules).int64.gte = 0];
409
+ string state = 4 [(validate.rules).string.min_len = 1];
410
+ int64 category = 5 [(validate.rules).int64.gt = 0];
411
+ string voucher_id = 6 [(validate.rules).string.min_len = 1];
412
+ }
413
+
414
+ message GetAdsToRedeemVoucherResponse {
415
+ repeated UserAdsAdInfo ads = 1;
416
+ map<string, int64> total_each_state = 2;
417
+ }
418
+
419
+ message UserAdsAdInfo {
420
+ int64 ad_id = 1;
421
+ string title = 2;
422
+ string price_string = 3;
423
+ string image_url = 4;
424
+ string note = 5;
425
+ }
426
+
427
+ message GetBundleRedeemRequest {
428
+ string id = 1 [(validate.rules).string.min_len = 1];
429
+ }
430
+
431
+ message GetBundleRedeemResponse {
432
+ string id = 1;
433
+ int64 account_id = 2;
434
+ bool is_sent_sms = 4;
435
+ string announcer_id = 5;
436
+ bool is_sent_notification = 6;
437
+ string status = 7;
438
+ string campaign_id = 8;
439
+ optional string ad_type = 9;
440
+ optional int64 category_id = 10;
441
+ repeated int64 region_ids = 11;
442
+ int64 remaining_total_free = 12;
443
+ int64 total_free = 13;
444
+ google.protobuf.Timestamp created_at = 14;
445
+ repeated RedeemInfo redeems_successful = 15;
446
+ repeated RedeemInfo redeems_failed = 16;
447
+ repeated PremiumService premium_services = 17;
448
+ }
449
+
450
+ message GetBundleRedeemsRequest {
451
+ int64 limit = 1 [(validate.rules).int64.gt = 0];
452
+ int64 offset = 2 [(validate.rules).int64.gte = 0];
453
+ repeated string status = 3;
454
+ string service_type = 4;
455
+ string campaign_id = 5;
456
+ int64 account_id = 6;
457
+ }
458
+
459
+ message GetBundleRedeemsResponse {
460
+ int64 total = 1;
461
+ repeated GetBundleRedeemResponse redeems = 2;
462
+ }
463
+
464
+ message CreateBundleRedeemsRequest {
465
+ string campaign_id = 1 [(validate.rules).string.min_len = 1];
466
+ string created_by = 2 [(validate.rules).string.min_len = 1];
467
+ repeated CreateBundleRedeemRequest redeems = 3;
468
+ }
469
+
470
+ message CreateBundleRedeemRequest {
471
+ int64 account_id = 1;
472
+ optional string ad_type = 2;
473
+ optional int64 category_id = 3;
474
+ repeated int64 region_ids = 4;
475
+ int64 total_free = 5 [(validate.rules).int64.gt = 0];
476
+ string phone = 6;
477
+ }
478
+
479
+ message CreateBundleRedeemsResponse {}
480
+
481
+ message GetRedeemWithCampaignInfoRequest {
482
+ string redeem_id = 1 [(validate.rules).string.min_len = 1];
483
+ }
484
+
485
+ message GetRedeemWithCampaignInfoResponse {
486
+ GetPSRedeemResponse redeem = 1;
487
+ GetPSCampaignResponse campaign = 2;
488
+ }
489
+
490
+ message GetVoucherByIdRequest {
491
+ string voucher_id = 1 [(validate.rules).string.min_len = 1];
492
+ int64 account_id = 2 [(validate.rules).int64.gt = 0];
493
+ }
494
+
495
+ message GetVoucherByIdResponse {
496
+ GetVoucherDetaildByIdResponse voucher = 1;
497
+ }
498
+
499
+ message GetVoucherCountRequest {
500
+ int64 account_id = 1 [(validate.rules).int64.gt = 0];
501
+ optional string platform = 2 [(validate.rules).string = {in: ["android", "ios"]}];
502
+ optional string app_version = 3;
503
+ }
504
+
505
+ message GetVoucherCountResponse {
506
+ int64 count = 1;
507
+ }
508
+
509
+ message FetchUCDPAndUploadCsvRequest {
510
+ string campaign_id = 1 [(validate.rules).string.min_len = 1];
511
+ string segment_name = 2 [(validate.rules).string.min_len = 1];
512
+ map <string, string> custom_attribute = 3;
513
+ map <string, string> fixed_value = 4;
514
+ }
515
+
516
+ message FetchUCDPAndUploadCsvResponse {
517
+ string object_id = 1;
518
+ }
519
+
520
+ message CreateFreePSRedeemsFromGCSRequest {
521
+ string campaign_id = 1 [(validate.rules).string.min_len = 1];
522
+ string admin_id = 2 [(validate.rules).string.min_len = 1];
523
+ string object_id = 3 [(validate.rules).string.min_len = 1];
524
+ string service_type = 4 [(validate.rules).string.min_len = 1];
525
+ }
526
+
527
+ message CreateFreePSRedeemsFromGCSResponse {}