@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.
- package/ad.proto +89 -0
- package/ad_delivery.proto +232 -0
- package/ad_delivery_pb.d.ts +1285 -0
- package/ad_delivery_pb.js +439 -0
- package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.d.ts +138 -0
- package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.js +211 -0
- package/ad_delivery_service.proto +65 -0
- package/ad_delivery_service_connect.d.ts +125 -0
- package/ad_delivery_service_connect.js +125 -0
- package/ad_optimization.proto +111 -0
- package/ad_optimization_pb.d.ts +601 -0
- package/ad_optimization_pb.js +214 -0
- package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.d.ts +78 -0
- package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.js +115 -0
- package/ad_optimization_service.proto +21 -0
- package/ad_optimization_service_connect.d.ts +71 -0
- package/ad_optimization_service_connect.js +71 -0
- package/ad_pb.d.ts +461 -0
- package/ad_pb.js +172 -0
- package/ad_service-LogicUniRevPremiumAdService_connectquery.d.ts +58 -0
- package/ad_service-LogicUniRevPremiumAdService_connectquery.js +83 -0
- package/ad_service.proto +15 -0
- package/ad_service_connect.d.ts +53 -0
- package/ad_service_connect.js +53 -0
- package/ad_social_platform.proto +108 -0
- package/ad_social_platform_pb.d.ts +474 -0
- package/ad_social_platform_pb.js +156 -0
- package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.d.ts +68 -0
- package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.js +99 -0
- package/ad_social_platform_service.proto +23 -0
- package/ad_social_platform_service_connect.d.ts +62 -0
- package/ad_social_platform_service_connect.js +62 -0
- package/bump_ad.proto +162 -0
- package/bump_ad_pb.d.ts +869 -0
- package/bump_ad_pb.js +308 -0
- package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.d.ts +123 -0
- package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.js +189 -0
- package/bump_ad_service.proto +56 -0
- package/bump_ad_service_connect.d.ts +112 -0
- package/bump_ad_service_connect.js +112 -0
- package/free_ps.proto +527 -0
- package/free_ps_pb.d.ts +2848 -0
- package/free_ps_pb.js +934 -0
- package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.d.ts +304 -0
- package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.js +483 -0
- package/free_ps_service.proto +62 -0
- package/free_ps_service_connect.d.ts +276 -0
- package/free_ps_service_connect.js +276 -0
- package/listing_tier.proto +228 -0
- package/listing_tier_pb.d.ts +1032 -0
- package/listing_tier_pb.js +365 -0
- package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.d.ts +108 -0
- package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.js +163 -0
- package/listing_tier_service.proto +19 -0
- package/listing_tier_service_connect.d.ts +98 -0
- package/listing_tier_service_connect.js +98 -0
- package/onbehalf.proto +91 -0
- package/onbehalf_pb.d.ts +411 -0
- package/onbehalf_pb.js +138 -0
- package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.d.ts +28 -0
- package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.js +35 -0
- package/onbehalf_service.proto +11 -0
- package/onbehalf_service_connect.d.ts +26 -0
- package/onbehalf_service_connect.js +26 -0
- package/package.json +10 -0
- package/premium_services.proto +1005 -0
- package/premium_services_pb.d.ts +5465 -0
- package/premium_services_pb.js +1840 -0
- package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.d.ts +496 -0
- package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.js +787 -0
- package/premium_services_service.proto +132 -0
- package/premium_services_service_connect.d.ts +448 -0
- package/premium_services_service_connect.js +448 -0
- package/pricing.proto +722 -0
- package/pricing_pb.d.ts +3949 -0
- package/pricing_pb.js +1372 -0
- package/pricing_service-LogicUniRevPremiumPricingService_connectquery.d.ts +411 -0
- package/pricing_service-LogicUniRevPremiumPricingService_connectquery.js +653 -0
- package/pricing_service.proto +63 -0
- package/pricing_service_connect.d.ts +372 -0
- package/pricing_service_connect.js +372 -0
- package/scripts/modify_package_json.js +50 -0
- package/special_display.proto +56 -0
- package/special_display_pb.d.ts +322 -0
- package/special_display_pb.js +113 -0
- package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.d.ts +58 -0
- package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.js +83 -0
- package/special_display_service.proto +24 -0
- package/special_display_service_connect.d.ts +53 -0
- package/special_display_service_connect.js +53 -0
- package/sticky_adinfo.proto +312 -0
- package/sticky_adinfo_pb.d.ts +1463 -0
- package/sticky_adinfo_pb.js +328 -0
package/pricing.proto
ADDED
|
@@ -0,0 +1,722 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_premium.v1;
|
|
4
|
+
|
|
5
|
+
import "validate/validate.proto";
|
|
6
|
+
import "google/protobuf/timestamp.proto";
|
|
7
|
+
|
|
8
|
+
// language specs
|
|
9
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-premium;pb";
|
|
10
|
+
|
|
11
|
+
message ValidatePricingRequest {
|
|
12
|
+
repeated ValidatePricingItem prices = 1 [(validate.rules).repeated = {
|
|
13
|
+
min_items: 1
|
|
14
|
+
}];
|
|
15
|
+
int64 account_id = 2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message ValidatePricingItem {
|
|
19
|
+
int64 price = 1 [(validate.rules).int64.gt = 0];
|
|
20
|
+
string service_type = 2 [(validate.rules).string.min_len = 1];
|
|
21
|
+
int64 ad_id = 3 [(validate.rules).int64.gt = 0];
|
|
22
|
+
int64 duration = 4;
|
|
23
|
+
repeated BlockTime block_times = 5;
|
|
24
|
+
string service_params = 6;
|
|
25
|
+
int64 service_id = 7;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message BlockTime {
|
|
29
|
+
int64 start = 1;
|
|
30
|
+
int64 end = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message ValidatePricingResponse {
|
|
34
|
+
bool is_valid = 1;
|
|
35
|
+
repeated InvalidatePricingResponseItem invalid_prices = 2;
|
|
36
|
+
repeated ValidPricingResponseItem valid_prices = 3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
message InvalidatePricingResponseItem {
|
|
41
|
+
int64 price = 1 [(validate.rules).int64.gt = 0];
|
|
42
|
+
string service_type = 2 [(validate.rules).string.min_len = 1];
|
|
43
|
+
// used to describe why the price is invalid
|
|
44
|
+
// can be due to Invalid Ad Status
|
|
45
|
+
string reason = 3;
|
|
46
|
+
int64 service_id = 4;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message ValidPricingResponseItem {
|
|
50
|
+
PriceUnit price = 1;
|
|
51
|
+
string service_type = 3 [(validate.rules).string.min_len = 1];
|
|
52
|
+
int64 service_id = 4;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message PriceUnit {
|
|
56
|
+
int64 credit = 1;
|
|
57
|
+
int64 promotion = 2;
|
|
58
|
+
int64 vnd = 3;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message GetSpecialDisplayPriceRequest {
|
|
62
|
+
int64 account_id = 1;
|
|
63
|
+
int64 region_id = 2;
|
|
64
|
+
int64 category_id = 3;
|
|
65
|
+
int64 duration = 4;
|
|
66
|
+
string ad_type = 5;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message GetSpecialDisplayPriceResponse {
|
|
70
|
+
string ad_type = 1;
|
|
71
|
+
int64 campaign_id = 2;
|
|
72
|
+
int64 duration = 3;
|
|
73
|
+
int64 region_id = 4;
|
|
74
|
+
int64 special_display = 5;
|
|
75
|
+
PriceUnit price = 6;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message DetailPriceBundle {
|
|
79
|
+
string service_name = 1;
|
|
80
|
+
string service_type = 2;
|
|
81
|
+
string service_params = 3;
|
|
82
|
+
int64 bundle_segment_id = 4;
|
|
83
|
+
PriceUnit price = 5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message BundlePrice {
|
|
87
|
+
int64 id = 1;
|
|
88
|
+
string name = 2;
|
|
89
|
+
string tagging_name = 3;
|
|
90
|
+
string title = 4;
|
|
91
|
+
string image_url = 5;
|
|
92
|
+
string gif_image_url = 6;
|
|
93
|
+
string description = 7;
|
|
94
|
+
string message = 8;
|
|
95
|
+
bool enabled = 9;
|
|
96
|
+
bool is_bundle_listing = 10;
|
|
97
|
+
int64 bundle_premium_services_only_duration = 11;
|
|
98
|
+
PriceUnit price = 12;
|
|
99
|
+
int64 bundle_segment_id = 13;
|
|
100
|
+
string segment_id = 14;
|
|
101
|
+
repeated DetailPriceBundle detail_prices = 15;
|
|
102
|
+
string bundle_id = 16;
|
|
103
|
+
string condition_id = 17;
|
|
104
|
+
int64 bundle_listing_fee_duration = 18;
|
|
105
|
+
string selling_point = 19;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message InsertAdPrice {
|
|
109
|
+
string action_type = 1;
|
|
110
|
+
int64 duration = 2;
|
|
111
|
+
string ad_type = 3;
|
|
112
|
+
int64 category_id = 4;
|
|
113
|
+
int64 region_id = 5;
|
|
114
|
+
string message_promotion = 6;
|
|
115
|
+
bool is_default_duration = 7;
|
|
116
|
+
PriceUnit price = 8;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message ShopToChototPrice {
|
|
120
|
+
string action_type = 1;
|
|
121
|
+
int64 duration = 2;
|
|
122
|
+
string ad_type = 3;
|
|
123
|
+
int64 category_id = 4;
|
|
124
|
+
int64 region_id = 5;
|
|
125
|
+
string message_promotion = 6;
|
|
126
|
+
bool is_default_duration = 7;
|
|
127
|
+
PriceUnit price = 8;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message StickyAdPrice {
|
|
131
|
+
int64 category_id = 1;
|
|
132
|
+
string duration = 2;
|
|
133
|
+
int64 region_id = 3;
|
|
134
|
+
string message_promotion = 4;
|
|
135
|
+
string discount_label = 5;
|
|
136
|
+
bool is_disabled = 6;
|
|
137
|
+
PriceUnit price = 7;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message BumpPrice {
|
|
141
|
+
string bump_type = 1;
|
|
142
|
+
string discount_label = 2;
|
|
143
|
+
string duration = 3;
|
|
144
|
+
string message_promotion = 4;
|
|
145
|
+
bool is_disabled = 5;
|
|
146
|
+
PriceUnit price = 6;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message TimerBumpPrice {
|
|
150
|
+
string message_promotion = 1;
|
|
151
|
+
bool is_disabled = 2;
|
|
152
|
+
PriceUnit price = 3;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message CupidPrice {
|
|
156
|
+
int64 category_id = 1;
|
|
157
|
+
int64 region_id = 2;
|
|
158
|
+
int64 duration = 3;
|
|
159
|
+
string message_promotion = 4;
|
|
160
|
+
bool is_disabled = 5;
|
|
161
|
+
PriceUnit price = 6;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message SpecialDisplayPrice {
|
|
165
|
+
int64 category_id = 1;
|
|
166
|
+
int64 duration = 2;
|
|
167
|
+
int64 region_id = 3;
|
|
168
|
+
string ad_type = 4;
|
|
169
|
+
string message_promotion = 5;
|
|
170
|
+
PriceUnit price = 6;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message GetPremiumFeaturePriceData {
|
|
174
|
+
int64 ad_id = 1;
|
|
175
|
+
int64 region_id = 2;
|
|
176
|
+
int64 category_id = 3;
|
|
177
|
+
string ad_type = 4;
|
|
178
|
+
int64 duration = 5;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message GetPremiumFeaturePriceRequest {
|
|
182
|
+
int64 account_id = 1;
|
|
183
|
+
repeated GetPremiumFeaturePriceData data = 2;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
message PremiumFeaturePrice {
|
|
187
|
+
repeated BundlePrice bundles = 1;
|
|
188
|
+
repeated InsertAdPrice insert_ads = 2;
|
|
189
|
+
repeated StickyAdPrice sticky_ads = 3;
|
|
190
|
+
repeated BumpPrice bump = 4;
|
|
191
|
+
TimerBumpPrice timer_bump = 5;
|
|
192
|
+
repeated CupidPrice cupid = 6;
|
|
193
|
+
repeated IntensiveBumpPrice intensive_bump = 7;
|
|
194
|
+
repeated SpecialDisplayPrice special_display = 8;
|
|
195
|
+
repeated ShopToChototPrice shop_to_chotot = 9;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
message GetPremiumFeaturePriceResponse {
|
|
199
|
+
map<int64, PremiumFeaturePrice> data = 1;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
message GetIntensiveBumpPriceRequest {
|
|
203
|
+
int64 region_id = 1;
|
|
204
|
+
int64 category_id = 2;
|
|
205
|
+
int64 limit = 3;
|
|
206
|
+
int64 offset = 4;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message GetIntensiveBumpPriceResponse {
|
|
210
|
+
repeated IntensiveBumpPrice list = 1;
|
|
211
|
+
int64 total = 2;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
message IntensiveBumpPrice {
|
|
215
|
+
int64 campaign_id = 1;
|
|
216
|
+
int64 category_id = 2;
|
|
217
|
+
int64 duration = 3;
|
|
218
|
+
int64 intensive_bump = 4;
|
|
219
|
+
int64 region_id = 5;
|
|
220
|
+
PriceUnit price = 6;
|
|
221
|
+
string message_promotion = 7;
|
|
222
|
+
bool is_disabled = 8;
|
|
223
|
+
string discount_label = 9;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
message GetShopPriceRequest {
|
|
227
|
+
int64 account_id = 1;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message ShopPrice {
|
|
231
|
+
string action_type = 1;
|
|
232
|
+
string campaign_id = 2;
|
|
233
|
+
int64 category_id = 3;
|
|
234
|
+
int64 duration = 4;
|
|
235
|
+
int64 package_id = 5;
|
|
236
|
+
PriceUnit price = 6;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
message GetShopPriceResponse {
|
|
240
|
+
repeated ShopPrice data = 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message GetShopPriceDetailRequest {
|
|
244
|
+
int64 account_id = 1;
|
|
245
|
+
int64 duration = 2;
|
|
246
|
+
string action_type = 3;
|
|
247
|
+
int64 category_id = 4;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
message GetShopPriceDetailResponse {
|
|
251
|
+
ShopPrice data = 1;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
message GetPriceListingFeeDurationRequest {
|
|
255
|
+
int64 account_id = 1;
|
|
256
|
+
int64 ad_id = 2;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
message GetPriceListingFeeDurationResponse {
|
|
260
|
+
repeated int64 listing_fee_duration = 1;
|
|
261
|
+
int64 default_duration = 2;
|
|
262
|
+
int64 default_duration_for_free_ad = 3;
|
|
263
|
+
string message_title = 4;
|
|
264
|
+
string message_body = 5;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
message GetAdExtensionPricesRequest {
|
|
268
|
+
int64 ad_id = 1 [(validate.rules).int64.gt = 0];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
message GetAdExtensionPricesResponse {
|
|
272
|
+
repeated AdExtensionPrice prices = 1;
|
|
273
|
+
google.protobuf.Timestamp expected_expired_time_sec = 2;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
message AdExtensionPrice {
|
|
277
|
+
int64 duration = 1;
|
|
278
|
+
int64 category_id = 2;
|
|
279
|
+
int64 region_id = 3;
|
|
280
|
+
PriceUnit price = 4;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// ************ CORE PRICING ************
|
|
284
|
+
|
|
285
|
+
message Attribute {
|
|
286
|
+
string variant = 1;
|
|
287
|
+
repeated string value = 2;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
message Price {
|
|
291
|
+
int64 vnd = 1;
|
|
292
|
+
int64 credit = 2;
|
|
293
|
+
int64 original = 3;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
message Campaign {
|
|
297
|
+
int64 id = 1;
|
|
298
|
+
string message = 2;
|
|
299
|
+
string segment_id = 3;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
message PriceItem {
|
|
303
|
+
string service_type = 1;
|
|
304
|
+
repeated Attribute attributes = 2;
|
|
305
|
+
Campaign campaign = 3;
|
|
306
|
+
Price price = 4;
|
|
307
|
+
int64 id = 5;
|
|
308
|
+
string name = 6;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
message PriceWithHistory {
|
|
312
|
+
int64 vnd = 1;
|
|
313
|
+
int64 pre_vnd = 2;
|
|
314
|
+
int64 credit = 3;
|
|
315
|
+
int64 pre_credit = 4;
|
|
316
|
+
int64 original = 5;
|
|
317
|
+
int64 pre_original = 6;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
message PriceItemWithHistory {
|
|
321
|
+
int64 id = 1;
|
|
322
|
+
string service_type = 2;
|
|
323
|
+
repeated Attribute attributes = 3;
|
|
324
|
+
Campaign campaign = 4;
|
|
325
|
+
PriceWithHistory price = 5;
|
|
326
|
+
string status = 6;
|
|
327
|
+
string name = 7;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
message GetServicePriceDetailRequest {
|
|
331
|
+
string service_type = 1;
|
|
332
|
+
repeated Attribute attributes = 2;
|
|
333
|
+
repeated string list_segment_id = 3;
|
|
334
|
+
int64 account_id = 4;
|
|
335
|
+
string pricing_redemption_id = 5;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
message GetServicePriceDetailResponse {
|
|
339
|
+
PriceItem data = 2;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
message GetListingFeePriceRequest {
|
|
343
|
+
int64 account_id = 1;
|
|
344
|
+
string action_type = 2;
|
|
345
|
+
string user_type = 3;
|
|
346
|
+
int64 region_id = 4;
|
|
347
|
+
bool company_ad = 5;
|
|
348
|
+
string ad_type = 6;
|
|
349
|
+
int64 category_id = 7;
|
|
350
|
+
bool is_unpaid = 8;
|
|
351
|
+
bool is_renew = 9;
|
|
352
|
+
bool ignore_subscription_benefit = 10;
|
|
353
|
+
int64 duration = 11;
|
|
354
|
+
ListingFeeInfo listing_fee_info = 12;
|
|
355
|
+
optional string current_ad_state = 13; // for edit ad case
|
|
356
|
+
optional bool shop_to_chotot = 14;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
message ListingFeeInfo {
|
|
360
|
+
string type = 1 [(validate.rules).string = {
|
|
361
|
+
in: [
|
|
362
|
+
"",
|
|
363
|
+
"free_listing_fee_voucher",
|
|
364
|
+
"free_listing_fee_entitlement",
|
|
365
|
+
"subscription_quota",
|
|
366
|
+
"paid_listing_fee_entitlement",
|
|
367
|
+
"all"
|
|
368
|
+
]
|
|
369
|
+
}];
|
|
370
|
+
ListingFeeInfoMetadata metadata = 2;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
message ListingFeeInfoMetadata {
|
|
374
|
+
string voucher_id = 1;
|
|
375
|
+
int64 subscription_id = 2;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
message GetListingFeePriceResponse {
|
|
379
|
+
PriceUnit price = 1;
|
|
380
|
+
string listing_fee_claim_id = 2;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
message GetListPriceByListServiceTypeRequest {
|
|
384
|
+
repeated string service_type = 1;
|
|
385
|
+
repeated Attribute attributes = 2;
|
|
386
|
+
int64 account_id = 3;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
message GetListPriceByListServiceTypeResponse {
|
|
390
|
+
repeated PriceItem data = 1;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
message Targeting {
|
|
394
|
+
int64 ad_id = 1;
|
|
395
|
+
int64 category_id = 2;
|
|
396
|
+
int64 region_id = 3;
|
|
397
|
+
string ad_type = 4;
|
|
398
|
+
int64 duration = 5;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
message GetPremiumServicePriceByListTargetingRequest {
|
|
402
|
+
int64 account_id = 1;
|
|
403
|
+
bool should_include_all_price_bundle = 2;
|
|
404
|
+
int64 duration = 3;
|
|
405
|
+
string platform = 4;
|
|
406
|
+
string app_version = 5;
|
|
407
|
+
repeated Targeting targetings = 6;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
message GetPremiumServicePriceByListTargetingResponse {
|
|
411
|
+
map<int64, PremiumFeaturePrice> data = 1;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
message ListFeeConditionItem {
|
|
415
|
+
int64 category_id = 1;
|
|
416
|
+
int64 region_id = 2;
|
|
417
|
+
string ad_type = 3;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
message GetListingFeeConditionRequest {}
|
|
421
|
+
|
|
422
|
+
message GetListingFeeConditionResponse {
|
|
423
|
+
repeated ListFeeConditionItem normal = 1;
|
|
424
|
+
repeated ListFeeConditionItem shop = 2;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
message GetPriceByIdRequest {
|
|
428
|
+
int64 price_id = 1;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
message GetPriceByIdResponse {
|
|
432
|
+
PriceItemWithHistory data = 1;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
message GetListPriceBackOfficeRequest {
|
|
436
|
+
int64 max_page_size = 1;
|
|
437
|
+
string page_token = 2;
|
|
438
|
+
string service_type = 3;
|
|
439
|
+
repeated Attribute attributes = 4;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
message GetListPriceBackOfficeResponse {
|
|
443
|
+
string page_token = 1;
|
|
444
|
+
string next_page_token = 2;
|
|
445
|
+
int64 total_records = 3;
|
|
446
|
+
repeated PriceItemWithHistory data = 4;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
message EditPriceRequest {
|
|
450
|
+
int64 price_id = 1;
|
|
451
|
+
Price price = 2;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
message EditPriceResponse {
|
|
455
|
+
string status = 1;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
message ApprovePriceRequest {
|
|
459
|
+
int64 price_id = 1;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
message ApprovePriceResponse {
|
|
463
|
+
string status = 1;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
message RejectPriceRequest {
|
|
467
|
+
int64 price_id = 1;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
message RejectPriceResponse {
|
|
471
|
+
string status = 1;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
message PublishPriceRequest {
|
|
475
|
+
int64 price_id = 1;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
message PublishPriceResponse {
|
|
479
|
+
string status = 1;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
message ApproveAllPriceByServiceRequest {
|
|
483
|
+
string service_type = 1;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
message ApproveAllPriceByServiceResponse {
|
|
487
|
+
string status = 1;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
message RejectAllPriceByServiceRequest {
|
|
491
|
+
string service_type = 1;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
message RejectAllPriceByServiceResponse {
|
|
495
|
+
string status = 1;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
message PublishAllPriceByServiceRequest {
|
|
499
|
+
string service_type = 1;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
message PublishAllPriceByServiceResponse {
|
|
503
|
+
string status = 1;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
message ImportPriceRequest {
|
|
507
|
+
int64 campaign_id = 1;
|
|
508
|
+
repeated PriceItem items = 2;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
message ImportPriceResponse {
|
|
512
|
+
repeated PriceItem succeed_items = 1;
|
|
513
|
+
repeated PriceItem failed_items = 2;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
message CampaignMetaData {
|
|
517
|
+
string message = 1;
|
|
518
|
+
int64 limit_value = 2;
|
|
519
|
+
string custom_crontab = 3;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
message CreatePricingCampaignRequest {
|
|
523
|
+
string name = 1;
|
|
524
|
+
string description = 2;
|
|
525
|
+
string segment_id = 3;
|
|
526
|
+
google.protobuf.Timestamp start_time = 4;
|
|
527
|
+
google.protobuf.Timestamp end_time = 5;
|
|
528
|
+
string status = 6;
|
|
529
|
+
string created_by = 7;
|
|
530
|
+
string updated_by = 8;
|
|
531
|
+
int64 priority = 9;
|
|
532
|
+
CampaignMetaData meta_data = 10;
|
|
533
|
+
string type = 11;
|
|
534
|
+
string legal_code = 12;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
message CreatePricingCampaignResponse {
|
|
538
|
+
string status = 1;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
message UpdatePricingCampaignPayload {
|
|
542
|
+
string name = 1;
|
|
543
|
+
string description = 2;
|
|
544
|
+
string segment_id = 3;
|
|
545
|
+
google.protobuf.Timestamp start_time = 4;
|
|
546
|
+
google.protobuf.Timestamp end_time = 5;
|
|
547
|
+
string status = 6;
|
|
548
|
+
string updated_by = 7;
|
|
549
|
+
int64 priority = 8;
|
|
550
|
+
CampaignMetaData meta_data = 9;
|
|
551
|
+
string type = 10;
|
|
552
|
+
string legal_code = 11;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
message UpdatePricingCampaignRequest {
|
|
556
|
+
int64 campaign_id = 1;
|
|
557
|
+
UpdatePricingCampaignPayload payload = 2;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
message UpdatePricingCampaignResponse {
|
|
561
|
+
string status = 1;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
message DeletePricingCampaignRequest {
|
|
565
|
+
int64 id = 1;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
message DeletePricingCampaignResponse {
|
|
569
|
+
string status = 1;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
message PricingCampaign {
|
|
573
|
+
int64 id = 1;
|
|
574
|
+
string name = 2;
|
|
575
|
+
string description = 3;
|
|
576
|
+
string segment_id = 4;
|
|
577
|
+
google.protobuf.Timestamp start_time = 5;
|
|
578
|
+
google.protobuf.Timestamp end_time = 6;
|
|
579
|
+
string status = 7;
|
|
580
|
+
string created_by = 8;
|
|
581
|
+
string updated_by = 9;
|
|
582
|
+
int64 priority = 10;
|
|
583
|
+
google.protobuf.Timestamp created_at = 11;
|
|
584
|
+
google.protobuf.Timestamp updated_at = 12;
|
|
585
|
+
CampaignMetaData meta_data = 13;
|
|
586
|
+
string type = 14;
|
|
587
|
+
string legal_code = 15;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
message GetListPricingCampaignFilter {
|
|
591
|
+
string id = 1;
|
|
592
|
+
string name = 2;
|
|
593
|
+
string segment_id = 3;
|
|
594
|
+
google.protobuf.Timestamp start_time = 4;
|
|
595
|
+
google.protobuf.Timestamp end_time = 5;
|
|
596
|
+
string status = 6;
|
|
597
|
+
string created_by = 7;
|
|
598
|
+
string updated_by = 8;
|
|
599
|
+
int64 priority = 9;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
message GetListPricingCampaignRequest {
|
|
603
|
+
int64 max_page_size = 1;
|
|
604
|
+
string page_token = 2;
|
|
605
|
+
GetListPricingCampaignFilter filter = 3;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
message GetListPricingCampaignResponse {
|
|
609
|
+
string page_token = 1;
|
|
610
|
+
string next_page_token = 2;
|
|
611
|
+
int64 total_records = 3;
|
|
612
|
+
repeated PricingCampaign data = 4;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
message GetPricingCampaignByIdRequest {
|
|
616
|
+
int64 id = 1;
|
|
617
|
+
bool should_get_prices = 2;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
message GetPricingCampaignByIdResponse {
|
|
621
|
+
PricingCampaign campaign = 1;
|
|
622
|
+
repeated PriceItemWithHistory prices = 2;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
message ApproveAllPriceByCampaignRequest {
|
|
626
|
+
int64 campaign_id = 1;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
message ApproveAllPriceByCampaignResponse {
|
|
630
|
+
string status = 1;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
message RejectAllPriceByCampaignRequest {
|
|
634
|
+
int64 campaign_id = 1;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
message RejectAllPriceByCampaignResponse {
|
|
638
|
+
string status = 1;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
message PublishAllPriceByCampaignRequest {
|
|
642
|
+
int64 campaign_id = 1;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
message PublishAllPriceByCampaignResponse {
|
|
646
|
+
string status = 1;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
message EditPriceItemCampaignRequest {
|
|
650
|
+
int64 price_id = 1;
|
|
651
|
+
int64 campaign_id = 2;
|
|
652
|
+
Price price = 3;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
message EditPriceItemCampaignResponse {
|
|
656
|
+
string status = 1;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
message DeletePriceItemCampaignRequest {
|
|
660
|
+
int64 price_id = 1;
|
|
661
|
+
int64 campaign_id = 2;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
message DeletePriceItemCampaignResponse {
|
|
665
|
+
string status = 1;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
message ApprovePriceItemCampaignRequest {
|
|
669
|
+
int64 price_id = 1;
|
|
670
|
+
int64 campaign_id = 2;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
message ApprovePriceItemCampaignResponse {
|
|
674
|
+
string status = 1;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
message RejectPriceItemCampaignRequest {
|
|
678
|
+
int64 price_id = 1;
|
|
679
|
+
int64 campaign_id = 2;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
message RejectPriceItemCampaignResponse {
|
|
683
|
+
string status = 1;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
message CheckIsPaidAdRequest {
|
|
687
|
+
int64 category_id = 1;
|
|
688
|
+
int64 region_id = 2;
|
|
689
|
+
string ad_type = 3;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
message CheckIsPaidAdResponse {
|
|
693
|
+
bool is_paid_ad = 1;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
message GetAllListingFeePriceRequest {
|
|
697
|
+
int64 account_id = 1;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
message GetAllListingFeePriceResponse {
|
|
701
|
+
repeated PriceItem data = 1;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
message PaidProductOrderService {
|
|
705
|
+
int64 ad_id = 1;
|
|
706
|
+
string service_type = 2;
|
|
707
|
+
string service_params = 3;
|
|
708
|
+
int64 price = 4;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
message ReleasePricingPromotionRedemptionRequest {
|
|
712
|
+
repeated int64 pricing_redemption_id = 1;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
message ReleasePricingPromotionRedemptionInfo {
|
|
716
|
+
int64 pricing_redemption_id = 1;
|
|
717
|
+
string status = 2;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
message ReleasePricingPromotionRedemptionResponse {
|
|
721
|
+
repeated ReleasePricingPromotionRedemptionInfo data = 1;
|
|
722
|
+
}
|