@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
|
@@ -0,0 +1,1005 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package ct_logic_uni_rev_premium.v1;
|
|
3
|
+
|
|
4
|
+
import "google/protobuf/timestamp.proto";
|
|
5
|
+
import "ct-logic-uni-rev-premium/v1/pricing.proto";
|
|
6
|
+
import "ct-logic-uni-rev-premium/v1/sticky_adinfo.proto";
|
|
7
|
+
import "validate/validate.proto";
|
|
8
|
+
|
|
9
|
+
// language specs
|
|
10
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-premium;pb";
|
|
11
|
+
|
|
12
|
+
message GetPremiumServiceInfoByServiceIdRequest {
|
|
13
|
+
repeated int64 service_ids = 1;
|
|
14
|
+
string service_type = 2 [(validate.rules).string.pattern = "^(bump|sticky_ad|cupid|special_display|intensive_bump|listing_tier)$"];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message GetPremiumServiceInfoByServiceIdResponse {
|
|
18
|
+
GetScheduleBumpServiceResponse bump_service_info = 1;
|
|
19
|
+
GetStickyAdsServiceResponse sticky_ads_service_info = 2;
|
|
20
|
+
GetSDAServiceResponse sda_service_info = 3;
|
|
21
|
+
GetCupidServiceResponse cupid_service_info = 4;
|
|
22
|
+
GetScheduleBumpServiceResponse intensive_bump_service_info = 5;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message GetBundleListRequest {
|
|
26
|
+
int64 limit = 1;
|
|
27
|
+
int64 offset = 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message BundleInfo {
|
|
31
|
+
int64 id = 1;
|
|
32
|
+
string created_at = 2;
|
|
33
|
+
string updated_at = 3;
|
|
34
|
+
string condition_id = 4;
|
|
35
|
+
string name = 5;
|
|
36
|
+
string tagging_name = 6;
|
|
37
|
+
string title = 7;
|
|
38
|
+
string image_url = 8;
|
|
39
|
+
string gif_image_url = 9;
|
|
40
|
+
string description = 10;
|
|
41
|
+
string message = 11;
|
|
42
|
+
int64 priority = 12;
|
|
43
|
+
bool enabled = 13;
|
|
44
|
+
string selling_point = 14;
|
|
45
|
+
string latest_update = 15;
|
|
46
|
+
string ad_type = 16;
|
|
47
|
+
repeated int64 service_ids = 17;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message GetBundleListResponse {
|
|
51
|
+
repeated BundleInfo data = 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message GetBundleListBackofficeRequest {
|
|
55
|
+
int64 id = 1;
|
|
56
|
+
string condition_id = 2;
|
|
57
|
+
string name = 3;
|
|
58
|
+
string tagging_name = 4;
|
|
59
|
+
string title = 5;
|
|
60
|
+
string created_by = 6;
|
|
61
|
+
int64 priority = 7;
|
|
62
|
+
bool enabled = 8;
|
|
63
|
+
string message = 9;
|
|
64
|
+
string description = 10;
|
|
65
|
+
string latest_update = 11;
|
|
66
|
+
int64 limit = 12;
|
|
67
|
+
int64 offset = 13;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message GetBundleListBackofficeResponse {
|
|
71
|
+
string status = 1;
|
|
72
|
+
int64 total_records = 2;
|
|
73
|
+
repeated BundleInfo data = 3;
|
|
74
|
+
string page_token = 4;
|
|
75
|
+
string next_page_token = 5;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message BundleCondition {
|
|
79
|
+
repeated int64 category_ids = 1;
|
|
80
|
+
repeated int64 region_ids = 2;
|
|
81
|
+
repeated string user_types = 3;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message FilterBundle {
|
|
85
|
+
int64 id = 1;
|
|
86
|
+
string condition_id = 2;
|
|
87
|
+
string name = 3;
|
|
88
|
+
string tagging_name = 4;
|
|
89
|
+
string title = 5;
|
|
90
|
+
string created_by = 6;
|
|
91
|
+
int64 priority = 7;
|
|
92
|
+
bool enabled = 8;
|
|
93
|
+
string account_id = 9;
|
|
94
|
+
string latest_update = 10;
|
|
95
|
+
string message = 11;
|
|
96
|
+
string description = 12;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message GetBundleByFilterRequest {
|
|
100
|
+
int64 limit = 1;
|
|
101
|
+
int64 offset = 2;
|
|
102
|
+
FilterBundle filter = 3;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message GetBundleByFilterResponse {
|
|
106
|
+
string status = 1;
|
|
107
|
+
int64 total_records = 2;
|
|
108
|
+
repeated BundleInfo data = 3;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message GetBundleByIdRequest {
|
|
112
|
+
int64 id = 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message GetBundleByIdResponse {
|
|
116
|
+
BundleInfo data = 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message GetScheduleBumpServiceResponse {
|
|
120
|
+
int64 status = 1;
|
|
121
|
+
map<int64, ScheduleBumpServiceResponse> data = 2;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message ScheduleBumpServiceResponse {
|
|
125
|
+
repeated ScheduleBumpService data = 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message ScheduleBumpService {
|
|
129
|
+
int64 service_id = 1;
|
|
130
|
+
int64 ad_id = 2;
|
|
131
|
+
string type = 3;
|
|
132
|
+
string schedule_bump_time = 4;
|
|
133
|
+
string expected_bump_time = 5;
|
|
134
|
+
string bump_time = 6;
|
|
135
|
+
string status = 7;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message GetStickyAdsServiceResponse {
|
|
139
|
+
int64 service_id = 1;
|
|
140
|
+
int64 ad_id = 2;
|
|
141
|
+
int64 placement_setting_id = 3;
|
|
142
|
+
string type = 4;
|
|
143
|
+
string status = 5;
|
|
144
|
+
int64 end_time = 6;
|
|
145
|
+
int64 modified_date = 7;
|
|
146
|
+
int64 created_date = 8;
|
|
147
|
+
int64 delivery_time = 9;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message GetCupidServiceResponse {
|
|
151
|
+
int64 service_id = 1;
|
|
152
|
+
int64 ad_id = 2;
|
|
153
|
+
string type = 3;
|
|
154
|
+
string status = 4;
|
|
155
|
+
int64 end_time = 5;
|
|
156
|
+
int64 modified_date = 6;
|
|
157
|
+
int64 created_date = 7;
|
|
158
|
+
int64 delivery_time = 8;
|
|
159
|
+
int64 unit_amount = 9;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message GetSDAServiceResponse {
|
|
163
|
+
string id = 1;
|
|
164
|
+
int64 ad_id = 2;
|
|
165
|
+
int64 account_id = 3;
|
|
166
|
+
int64 service_id = 4;
|
|
167
|
+
int64 order_id = 5;
|
|
168
|
+
int64 duration = 6;
|
|
169
|
+
string status = 7;
|
|
170
|
+
string params = 8;
|
|
171
|
+
google.protobuf.Timestamp delivery_date = 9;
|
|
172
|
+
google.protobuf.Timestamp expired_date = 10;
|
|
173
|
+
google.protobuf.Timestamp create_at = 11;
|
|
174
|
+
google.protobuf.Timestamp update_at = 12;
|
|
175
|
+
google.protobuf.Timestamp delete_at = 13;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
message ServicesAppliedForBundle {
|
|
179
|
+
int64 id = 1;
|
|
180
|
+
string service_type = 2;
|
|
181
|
+
string service_name = 3;
|
|
182
|
+
string service_params = 4;
|
|
183
|
+
string created_at = 5;
|
|
184
|
+
string updated_at = 6;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
message GetServicesAppliedForBundleRequest {
|
|
188
|
+
int64 limit = 1;
|
|
189
|
+
int64 offset = 2;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message GetServicesAppliedForBundleResponse {
|
|
193
|
+
string status = 1;
|
|
194
|
+
repeated ServicesAppliedForBundle data = 2;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
message BundleIdWithServicesDetail {
|
|
198
|
+
int64 bundle_service_id = 1;
|
|
199
|
+
int64 service_id = 2;
|
|
200
|
+
string created_at = 3;
|
|
201
|
+
string updated_at = 4;
|
|
202
|
+
string service_name = 5;
|
|
203
|
+
string service_type = 6;
|
|
204
|
+
string ad_type = 7;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
message GetBundleWithServicesDetailByBundleIdRequest {
|
|
208
|
+
int64 id = 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
message GetBundleWithServicesDetailByBundleIdResponse {
|
|
212
|
+
string status = 1;
|
|
213
|
+
repeated BundleIdWithServicesDetail data = 2;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
message BundleWithSegmentation {
|
|
217
|
+
repeated int64 category_id = 1;
|
|
218
|
+
repeated int64 region_id = 2;
|
|
219
|
+
repeated string user_type = 3;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message BundleService {
|
|
223
|
+
string service_type = 1;
|
|
224
|
+
BundleServiceParam service_params = 2;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
message BundleServiceParam {
|
|
228
|
+
int64 duration = 1 [(validate.rules).int64.gt = 0];
|
|
229
|
+
optional string feature = 2;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
message BundleData {
|
|
233
|
+
string condition_id = 1;
|
|
234
|
+
string name = 2;
|
|
235
|
+
string tagging_name = 3;
|
|
236
|
+
string title = 4;
|
|
237
|
+
string image_url = 5;
|
|
238
|
+
string gif_image_url = 6;
|
|
239
|
+
string description = 7;
|
|
240
|
+
string message = 8;
|
|
241
|
+
string created_by = 9;
|
|
242
|
+
int64 priority = 10;
|
|
243
|
+
bool enabled = 11;
|
|
244
|
+
repeated int64 service_ids = 12; // deprecated soon
|
|
245
|
+
repeated string selling_point = 13;
|
|
246
|
+
repeated string ad_type = 14;
|
|
247
|
+
bool is_deleted = 15;
|
|
248
|
+
string latest_update = 16;
|
|
249
|
+
repeated BundleService services = 17;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message AddNewBundleRequest {
|
|
253
|
+
BundleWithSegmentation bundle_with_segment = 1;
|
|
254
|
+
BundleData bundle_data = 2;
|
|
255
|
+
string updated_by = 3;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message AddNewBundleResponse {
|
|
259
|
+
string status = 1;
|
|
260
|
+
BundleInfo data = 2;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message EditBundleRequest {
|
|
264
|
+
int64 id = 1;
|
|
265
|
+
string created_at = 2;
|
|
266
|
+
string updated_at = 3;
|
|
267
|
+
repeated int64 category_id = 4;
|
|
268
|
+
repeated int64 region_id = 5;
|
|
269
|
+
repeated string user_type = 6;
|
|
270
|
+
string name = 7;
|
|
271
|
+
string tagging_name = 8;
|
|
272
|
+
string title = 9;
|
|
273
|
+
string image_url = 10;
|
|
274
|
+
string gif_image_url = 11;
|
|
275
|
+
string description = 12;
|
|
276
|
+
string message = 13;
|
|
277
|
+
int64 priority = 14;
|
|
278
|
+
bool enabled = 15;
|
|
279
|
+
repeated string selling_point = 16;
|
|
280
|
+
string latest_update = 17;
|
|
281
|
+
repeated string ad_type = 18;
|
|
282
|
+
string condition_id = 19;
|
|
283
|
+
string updated_by = 20;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
message EditBundleResponse {
|
|
287
|
+
string status = 1;
|
|
288
|
+
BundleInfo data = 2;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
message DeleteBundleByIdRequest {
|
|
292
|
+
int64 id = 1;
|
|
293
|
+
string updated_by = 2;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
message DeleteBundleByIdResponse {
|
|
297
|
+
string status = 1;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
message BundleSegment {
|
|
301
|
+
int64 id = 1;
|
|
302
|
+
int64 bundle_id = 2;
|
|
303
|
+
string segment_id = 3;
|
|
304
|
+
string description = 4;
|
|
305
|
+
string status = 5;
|
|
306
|
+
string latest_update = 6;
|
|
307
|
+
string created_at = 7;
|
|
308
|
+
string updated_at = 8;
|
|
309
|
+
string segment_type = 9 [(validate.rules).string = {
|
|
310
|
+
in: [
|
|
311
|
+
"user_group_segment",
|
|
312
|
+
"ucdp_segment"
|
|
313
|
+
]
|
|
314
|
+
}];
|
|
315
|
+
int64 priority = 10;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
message FilterBundleSegment {
|
|
319
|
+
int64 id = 1;
|
|
320
|
+
int64 bundle_id = 2;
|
|
321
|
+
string segment_id = 3;
|
|
322
|
+
string description = 4;
|
|
323
|
+
string status = 5;
|
|
324
|
+
string latest_update = 6;
|
|
325
|
+
string segment_type = 7;
|
|
326
|
+
int64 priority = 8;
|
|
327
|
+
string bundle_name = 9;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
message GetListBundleSegmentByFilterRequest {
|
|
331
|
+
int64 limit = 1;
|
|
332
|
+
int64 offset = 2;
|
|
333
|
+
FilterBundleSegment filter = 3;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
message GetListBundleSegmentByFilterResponse {
|
|
337
|
+
string status = 1;
|
|
338
|
+
int64 total_records = 2;
|
|
339
|
+
repeated BundleSegment data = 3;
|
|
340
|
+
string page_token = 4;
|
|
341
|
+
string next_page_token = 5;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
message AddBundleSegmentRequest {
|
|
345
|
+
repeated BundleSegment bundle_segment = 1;
|
|
346
|
+
string updated_by = 2;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
message AddBundleSegmentResponse {
|
|
350
|
+
string status = 1;
|
|
351
|
+
repeated BundleSegment data = 2;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
message EditBundleSegmentRequest {
|
|
355
|
+
int64 id = 1;
|
|
356
|
+
int64 bundle_id = 2;
|
|
357
|
+
string segment_id = 3;
|
|
358
|
+
string description = 4;
|
|
359
|
+
string latest_update = 5;
|
|
360
|
+
string create_at = 6;
|
|
361
|
+
string update_at = 7;
|
|
362
|
+
string segment_type = 8 [(validate.rules).string = {
|
|
363
|
+
in: [
|
|
364
|
+
"user_group_segment",
|
|
365
|
+
"ucdp_segment"
|
|
366
|
+
]
|
|
367
|
+
}];
|
|
368
|
+
int64 priority = 9;
|
|
369
|
+
string updated_by = 10;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
message EditBundleSegmentResponse {
|
|
373
|
+
string status = 1;
|
|
374
|
+
bool data = 2;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
message BundleSegmentWithPrice {
|
|
378
|
+
int64 bundle_service_id = 1;
|
|
379
|
+
int64 bundle_segment_id = 2;
|
|
380
|
+
int64 bundle_id = 3;
|
|
381
|
+
string condition_id = 4;
|
|
382
|
+
string segment_id = 5;
|
|
383
|
+
int64 category = 6;
|
|
384
|
+
int64 region = 7;
|
|
385
|
+
string profiler = 8;
|
|
386
|
+
int64 service_id = 9;
|
|
387
|
+
string service_name = 10;
|
|
388
|
+
string service_type = 11;
|
|
389
|
+
string service_params = 12;
|
|
390
|
+
int64 vnd = 13;
|
|
391
|
+
int64 credit = 14;
|
|
392
|
+
int64 promotion = 15;
|
|
393
|
+
string ad_type = 16;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
message ExportBundleSegmentWithPriceTemplateRequest {
|
|
397
|
+
int64 bundle_id = 1;
|
|
398
|
+
string segment_id = 2;
|
|
399
|
+
int64 bundle_segment_id = 3;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
message ExportBundleSegmentWithPriceTemplateResponse {
|
|
403
|
+
string status = 1;
|
|
404
|
+
repeated BundleSegmentWithPrice data = 2;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
message ImportBundleSegmentPriceRequest {
|
|
408
|
+
repeated BundleSegmentWithPrice data = 1;
|
|
409
|
+
string updated_by = 2;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
message ImportBundleSegmentPriceResponse {
|
|
413
|
+
string status = 1;
|
|
414
|
+
string data = 2;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
message GetBundleSegmentWithPriceDetailRequest {
|
|
418
|
+
int64 bundle_id = 1;
|
|
419
|
+
string segment_id = 2;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
message GetBundleSegmentWithPriceDetailResponse {
|
|
423
|
+
string status = 1;
|
|
424
|
+
repeated BundleSegmentWithPrice data = 2;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
message UpdateBundleSegmentStatusRequest {
|
|
428
|
+
repeated int64 id = 1;
|
|
429
|
+
string status = 2;
|
|
430
|
+
string latest_update = 3;
|
|
431
|
+
string updated_by = 4;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
message UpdateBundleSegmentStatusResponse {
|
|
435
|
+
string status = 1;
|
|
436
|
+
bool data = 2;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
message GetBundleWithServicesRequest {
|
|
440
|
+
repeated int64 bundle_ids = 1;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
message GetBundleWithServicesResponse {
|
|
444
|
+
repeated BundleWithServices bundles = 1;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message BundleWithServices {
|
|
448
|
+
int64 id = 1;
|
|
449
|
+
string created_at = 2;
|
|
450
|
+
string updated_at = 3;
|
|
451
|
+
string condition_id = 4;
|
|
452
|
+
string name = 5;
|
|
453
|
+
string tagging_name = 6;
|
|
454
|
+
string title = 7;
|
|
455
|
+
string image_url = 8;
|
|
456
|
+
string gif_image_url = 9;
|
|
457
|
+
string description = 10;
|
|
458
|
+
string message = 11;
|
|
459
|
+
int64 priority = 12;
|
|
460
|
+
bool enabled = 13;
|
|
461
|
+
string selling_point = 14;
|
|
462
|
+
string latest_update = 15;
|
|
463
|
+
string ad_type = 16;
|
|
464
|
+
repeated ServiceForBundle services = 17;
|
|
465
|
+
BundleWithSegmentation condition_data = 18;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
message ServiceForBundle {
|
|
469
|
+
int64 id = 1;
|
|
470
|
+
string service_type = 2;
|
|
471
|
+
string service_name = 3;
|
|
472
|
+
ServiceForBundleParam service_params = 4;
|
|
473
|
+
string created_at = 5;
|
|
474
|
+
string updated_at = 6;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
message ServiceForBundleParam {
|
|
478
|
+
string duration = 1;
|
|
479
|
+
string feature = 2;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
message GetBundleAppliedForOrderRequest {
|
|
483
|
+
int64 order_id = 1;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
message GetBundleAppliedForOrderResponse {
|
|
487
|
+
repeated BundleWithServices bundles = 1;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
message GetPageWithStickyAdsSlotRequest {
|
|
491
|
+
string query_string = 1;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
message PageWithStickyAdsSlot {
|
|
495
|
+
int64 page = 1;
|
|
496
|
+
int64 setting_slot = 2;
|
|
497
|
+
int64 sticky_ads_showing = 3;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
message GetPageWithStickyAdsSlotResponse {
|
|
501
|
+
string status = 1;
|
|
502
|
+
repeated PageWithStickyAdsSlot data = 2;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
message PageWithStickyAdsSlotByListAds {
|
|
506
|
+
int64 ad_id = 1;
|
|
507
|
+
string ad_type = 2;
|
|
508
|
+
int64 category_id = 3;
|
|
509
|
+
int64 region_id = 4;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
message GetPageWithStickyAdsSlotByListAdsRequest {
|
|
513
|
+
repeated PageWithStickyAdsSlotByListAds list_ads = 1;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
message PageWithStickyAdsSlotWithAdIdResponse {
|
|
517
|
+
int64 ad_id = 1;
|
|
518
|
+
repeated PageWithStickyAdsSlot page_with_slots = 2;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
message GetPageWithStickyAdsSlotByListAdsResponse {
|
|
522
|
+
string status = 1;
|
|
523
|
+
repeated PageWithStickyAdsSlotWithAdIdResponse data = 2;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
message PlacementSettingForAdStat {
|
|
527
|
+
int64 ad_id = 1;
|
|
528
|
+
string ad_type = 2;
|
|
529
|
+
int64 category_id = 3;
|
|
530
|
+
int64 region_id = 4;
|
|
531
|
+
int64 area_id = 5;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
message GetStickyAdsSlotForAdstatRequest {
|
|
535
|
+
repeated PlacementSettingForAdStat list_ads = 1;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
message GetStickyAdsSlotForAdstatResponse {
|
|
539
|
+
string status = 1;
|
|
540
|
+
repeated PageWithStickyAdsSlotWithAdIdResponse data = 2;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
message StickyAdDelivery {
|
|
544
|
+
int64 account_id = 1;
|
|
545
|
+
int64 order_id = 2;
|
|
546
|
+
int64 service_id = 3;
|
|
547
|
+
StickyAdsServiceInfo service_info = 4;
|
|
548
|
+
StickyAdsServiceParams service_params = 5;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
message StickyAdsServiceInfo {
|
|
552
|
+
string type = 1;
|
|
553
|
+
int64 ad_id = 2;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
message StickyAdsServiceParams {
|
|
557
|
+
string service_params = 1;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
message ExtractBundleServiceRequest {
|
|
561
|
+
int64 ad_id = 1;
|
|
562
|
+
int64 bundle_id = 2;
|
|
563
|
+
int64 area = 3;
|
|
564
|
+
int64 category_id = 4;
|
|
565
|
+
int64 region_id = 5;
|
|
566
|
+
string segment_id = 6;
|
|
567
|
+
bool is_from_private_api = 7;
|
|
568
|
+
string user_type = 8;
|
|
569
|
+
string feature = 9;
|
|
570
|
+
string ad_type = 10;
|
|
571
|
+
bool is_renew = 11;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
message ExtractBundleServiceResponse {
|
|
575
|
+
repeated BundleServiceResponse services = 1;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
message BundleServiceResponse {
|
|
579
|
+
int64 target = 1;
|
|
580
|
+
string type = 2;
|
|
581
|
+
int64 price = 3;
|
|
582
|
+
string params = 4;
|
|
583
|
+
PriceUnit price_unit = 5;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
message CancelPremiumServicesRequest {
|
|
587
|
+
repeated CancelPremiumServiceRequest services = 1 [(validate.rules).repeated.min_items = 1];
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
message CancelPremiumServiceRequest {
|
|
591
|
+
int64 service_id = 1 [(validate.rules).int64.gte = 0];
|
|
592
|
+
string service_type = 2 [(validate.rules).string.min_len = 1];
|
|
593
|
+
optional int64 account_id = 3;
|
|
594
|
+
optional int64 ad_id = 4;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
message CancelPremiumServicesResponse {
|
|
598
|
+
repeated CancelPremiumServiceResponse services = 1;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
message CancelPremiumServiceResponse {
|
|
602
|
+
string status = 1;
|
|
603
|
+
string detail_error = 2;
|
|
604
|
+
int64 service_id = 3;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
message GetPremiumServicesInfoRequest {
|
|
608
|
+
repeated GetPremiumServiceInfoRequest services = 1 [(validate.rules).repeated.min_items = 1];
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
message GetPremiumServiceInfoRequest {
|
|
612
|
+
int64 order_id = 1 [(validate.rules).int64.gte = 0];
|
|
613
|
+
int64 service_id = 2 [(validate.rules).int64.gte = 0];
|
|
614
|
+
string service_type = 3 [(validate.rules).string.min_len = 1];
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
message GetPremiumServicesInfoResponse {
|
|
618
|
+
repeated GetPremiumServiceInfoResponse services = 1;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
message GetPremiumServiceInfoResponse {
|
|
622
|
+
int64 service_id = 1;
|
|
623
|
+
repeated GetPremiumServiceBumpAdInfoResponse bump_ads = 2;
|
|
624
|
+
repeated GetPremiumServiceStickyAdInfoResponse sticky_ads = 3;
|
|
625
|
+
repeated GetPremiumServiceSpecialDisplayAdInfoResponse special_display_ads = 4;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
message GetPremiumServiceBumpAdInfoResponse {
|
|
629
|
+
int64 ad_id = 1;
|
|
630
|
+
string type = 2;
|
|
631
|
+
google.protobuf.Timestamp schedule_bump_time = 3;
|
|
632
|
+
google.protobuf.Timestamp expected_bump_time = 4;
|
|
633
|
+
google.protobuf.Timestamp bump_time = 5;
|
|
634
|
+
string status = 6;
|
|
635
|
+
int64 account_id = 7;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
message GetPremiumServiceStickyAdInfoResponse {
|
|
639
|
+
int64 id = 1;
|
|
640
|
+
int64 account_id = 2;
|
|
641
|
+
int64 service_id = 3;
|
|
642
|
+
int64 ad_id = 4;
|
|
643
|
+
int64 placement_setting_id = 5;
|
|
644
|
+
string type = 6;
|
|
645
|
+
string status = 7;
|
|
646
|
+
google.protobuf.Timestamp delivery_time = 8;
|
|
647
|
+
google.protobuf.Timestamp end_time = 9;
|
|
648
|
+
google.protobuf.Timestamp modified_date = 10;
|
|
649
|
+
google.protobuf.Timestamp created_date = 11;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
message GetPremiumServiceSpecialDisplayAdInfoResponse {}
|
|
653
|
+
|
|
654
|
+
message StickyAdService {
|
|
655
|
+
int64 id = 1;
|
|
656
|
+
int64 account_id = 2;
|
|
657
|
+
int64 service_id = 3;
|
|
658
|
+
int64 ad_id = 4;
|
|
659
|
+
int64 placement_setting_id = 5;
|
|
660
|
+
string type = 6;
|
|
661
|
+
string status = 7;
|
|
662
|
+
google.protobuf.Timestamp delivery_time = 8;
|
|
663
|
+
google.protobuf.Timestamp end_time = 9;
|
|
664
|
+
google.protobuf.Timestamp modified_date = 10;
|
|
665
|
+
google.protobuf.Timestamp created_date = 11;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
message CheckListAdsIsStickyAdsRequest {
|
|
669
|
+
repeated int64 ad_id = 1;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
message AdIdWithStickyAdState {
|
|
673
|
+
int64 ad_id = 1;
|
|
674
|
+
bool is_sticky_ad = 2;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
message CheckListAdsIsStickyAdsResponse {
|
|
678
|
+
repeated AdIdWithStickyAdState data = 1;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
message GetListStickyAdsServiceByFilterRequest {
|
|
682
|
+
StickyAdService filter = 1;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
message GetListStickyAdsServiceByFilterResponse {
|
|
686
|
+
repeated StickyAdService data = 1;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
message UpdateStickyAdInfoRequest {
|
|
690
|
+
StickyAdService data = 1;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
message UpdateStickyAdInfoResponse {}
|
|
694
|
+
|
|
695
|
+
message GetAllAvailableTimeForMultipleDurationRequest {
|
|
696
|
+
int64 ad_id = 1;
|
|
697
|
+
string ad_type = 2;
|
|
698
|
+
int64 category_id = 3;
|
|
699
|
+
int64 region_id = 4;
|
|
700
|
+
int64 hours = 5;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
message DurationAndAvailableTime {
|
|
704
|
+
int64 duration = 1;
|
|
705
|
+
int64 date = 2;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
message GetAllAvailableTimeForMultipleDurationResponse {
|
|
709
|
+
repeated DurationAndAvailableTime data = 1;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
message GetNextAvailableTimeRequest {
|
|
713
|
+
int64 ad_id = 1;
|
|
714
|
+
string ad_type = 2;
|
|
715
|
+
int64 category_id = 3;
|
|
716
|
+
int64 region_id = 4;
|
|
717
|
+
int64 hours = 5;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
message GetNextAvailableTimeResponse {
|
|
721
|
+
int64 next_available_time = 1;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
message GetNextAvailableTimeForPosRequest {
|
|
725
|
+
int64 ad_id = 1;
|
|
726
|
+
string ad_type = 2;
|
|
727
|
+
int64 category_id = 3;
|
|
728
|
+
int64 region_id = 4;
|
|
729
|
+
int64 hours = 5;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
message GetNextAvailableTimeForPosResponse {
|
|
733
|
+
repeated DurationAndAvailableTime data = 1;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
message GetStickyAdDeliveringRequest {
|
|
737
|
+
string query_string = 1;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
message GetStickyAdDeliveringResponse {
|
|
741
|
+
repeated AdInfo sticky_ads = 1;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
message CheckIsStickyAdRequest {
|
|
745
|
+
repeated int64 ad_ids = 1;
|
|
746
|
+
string source = 2;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
message AdIdAndStickyAdState {
|
|
750
|
+
int64 ad_id = 1;
|
|
751
|
+
bool is_sticky_ad = 2;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
message CheckIsStickyAdResponse {
|
|
755
|
+
repeated AdIdAndStickyAdState data = 1;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
message GetStickyAdFeatureRequest {
|
|
759
|
+
repeated int64 ad_ids = 1;
|
|
760
|
+
string source = 2;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
message AdIdAndStickyAdFeature {
|
|
764
|
+
int64 ad_id = 1;
|
|
765
|
+
string stickyad_feature = 2;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
message GetStickyAdFeatureResponse {
|
|
769
|
+
repeated AdIdAndStickyAdFeature data = 1;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
message AdjustFilterForStickyAdRequest {
|
|
774
|
+
repeated int64 category_id = 1;
|
|
775
|
+
int64 region_id = 2;
|
|
776
|
+
repeated string ad_types = 3;
|
|
777
|
+
int64 page = 4;
|
|
778
|
+
repeated string filter_keys = 5;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
message AdjustFilterForStickyAdResponse {
|
|
782
|
+
repeated string filter_keys = 1;
|
|
783
|
+
int64 max_list_stick_ads_size = 2;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
message GetListServiceByBatchServiceIdsRequest {
|
|
787
|
+
repeated int64 service_ids = 1;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
message GetListServiceByBatchServiceIdsResponse {
|
|
791
|
+
repeated StickyAdService data = 1;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
message GetDeliveryTimeForOrderDetailRequest {
|
|
795
|
+
int64 service_id = 1;
|
|
796
|
+
string ad_type = 2;
|
|
797
|
+
int64 category_id = 3;
|
|
798
|
+
int64 region_id = 4;
|
|
799
|
+
int64 hours = 5;
|
|
800
|
+
int64 ad_id = 6;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
message GetDeliveryTimeForOrderDetailResponse {
|
|
804
|
+
int64 delivery_time = 1;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
message ExpireStickyAdServiceRequest {
|
|
808
|
+
int64 account_id = 1;
|
|
809
|
+
int64 service_id = 2;
|
|
810
|
+
int64 ad_id = 3;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
message ExpireStickyAdServiceResponse {}
|
|
814
|
+
|
|
815
|
+
message GetStickyServiceRequest {
|
|
816
|
+
int64 service_id = 1;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
message GetStickyServiceResponse {
|
|
820
|
+
int64 service_id = 1;
|
|
821
|
+
int64 ad_id = 2;
|
|
822
|
+
int64 placement_setting_id = 3;
|
|
823
|
+
string type = 4;
|
|
824
|
+
string status = 5;
|
|
825
|
+
google.protobuf.Timestamp end_time = 6;
|
|
826
|
+
google.protobuf.Timestamp modified_date = 7;
|
|
827
|
+
google.protobuf.Timestamp created_date = 8;
|
|
828
|
+
google.protobuf.Timestamp delivery_time = 9;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
message GetBundleChangeLogsRequest {
|
|
832
|
+
optional int64 bundle_id = 1;
|
|
833
|
+
optional int64 bundle_segment_id = 2;
|
|
834
|
+
optional string action_type = 3;
|
|
835
|
+
optional string updated_by = 4;
|
|
836
|
+
int64 limit = 5;
|
|
837
|
+
int64 offset = 6;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
message GetBundleChangeLogsResponse {
|
|
841
|
+
repeated BundleChangeLog data = 1;
|
|
842
|
+
int64 total = 2;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
message BundleChangeLog {
|
|
846
|
+
int64 id = 1;
|
|
847
|
+
int64 bundle_id = 2;
|
|
848
|
+
int64 bundle_segment_id = 3;
|
|
849
|
+
string action_type = 4;
|
|
850
|
+
string before_state = 5;
|
|
851
|
+
string after_state = 6;
|
|
852
|
+
string updated_by = 7;
|
|
853
|
+
google.protobuf.Timestamp changed_at = 8;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
message BundleWithConditionsAndServices {
|
|
857
|
+
BundleInfo bundle = 1;
|
|
858
|
+
repeated BundleCondition bundle_condition = 2;
|
|
859
|
+
repeated BundleService bundle_services = 3;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
message GetBundlesWithConditionsAndServicesRequest {
|
|
863
|
+
repeated int64 ids = 1;
|
|
864
|
+
int64 offset = 2;
|
|
865
|
+
int64 limit = 3;
|
|
866
|
+
string keyword = 4;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
message GetBundlesWithConditionsAndServicesResponse {
|
|
870
|
+
repeated BundleWithConditionsAndServices bundles = 1;
|
|
871
|
+
int64 total = 2;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
message GetAvailableListingFeeTypesRequest {
|
|
875
|
+
int64 account_id = 1;
|
|
876
|
+
int64 category_id = 2;
|
|
877
|
+
int64 region_id = 3;
|
|
878
|
+
string ad_type = 4;
|
|
879
|
+
string user_type = 5;
|
|
880
|
+
string current_sub_type_selected = 6;
|
|
881
|
+
optional int64 ad_id = 7;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
message GetAvailableListingFeeTypesResponse {
|
|
885
|
+
repeated ListingFeeType listing_fee_types = 1;
|
|
886
|
+
bool is_free_category = 2;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
message ListingFeeType {
|
|
890
|
+
string name = 1;
|
|
891
|
+
string value = 2;
|
|
892
|
+
string icon_url = 3;
|
|
893
|
+
repeated ListingFeeSubType sub_types = 4;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
message ListingFeeSubType {
|
|
897
|
+
string name = 1;
|
|
898
|
+
string value = 2;
|
|
899
|
+
string description = 3;
|
|
900
|
+
bool is_default = 4;
|
|
901
|
+
int64 quantity = 5;
|
|
902
|
+
oneof metadata {
|
|
903
|
+
VoucherListingFeeTypeMetaData voucher = 6;
|
|
904
|
+
SubscriptionListingFeeTypeMetaData subscription = 7;
|
|
905
|
+
};
|
|
906
|
+
string status = 8;
|
|
907
|
+
string expiry_date = 9;
|
|
908
|
+
string ad_quality = 10;
|
|
909
|
+
string apply_for_regions = 11;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
message VoucherListingFeeTypeMetaData {
|
|
913
|
+
string voucher_id = 1;
|
|
914
|
+
int64 duration = 2;
|
|
915
|
+
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
message SubscriptionListingFeeTypeMetaData {
|
|
919
|
+
int64 subscription_id = 1;
|
|
920
|
+
int64 package_unit_delivery_id = 2;
|
|
921
|
+
int64 duration = 3;
|
|
922
|
+
string tier_code = 4;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
message UpdateListingFeeTypeByIdRequest {
|
|
926
|
+
string id = 1;
|
|
927
|
+
int64 ad_id = 2 [(validate.rules).int64.gt = 0];
|
|
928
|
+
int64 action_id = 3 [(validate.rules).int64.gt = 0];
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
message UpdateListingFeeTypeByIdResponse {
|
|
932
|
+
bool is_success = 1;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
message UpdateListingFeeTypeByAdIdRequest {
|
|
936
|
+
int64 ad_id = 1;
|
|
937
|
+
string listing_fee_type = 2 [(validate.rules).string = {
|
|
938
|
+
in: [
|
|
939
|
+
"subscription_quota"
|
|
940
|
+
]
|
|
941
|
+
}];
|
|
942
|
+
oneof params {
|
|
943
|
+
SubscriptionListingFeeTypeMetaData subscription = 7;
|
|
944
|
+
VoucherListingFeeTypeMetaData voucher = 6;
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
message UpdateListingFeeTypeByAdIdResponse {
|
|
949
|
+
bool is_success = 1;
|
|
950
|
+
string listing_fee_claim_id = 2;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
message DeleteListingFeeTypeByIdRequest {
|
|
954
|
+
string id = 1;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
message DeleteListingFeeTypeByIdResponse {}
|
|
958
|
+
|
|
959
|
+
message GetListingFeeTypeByAdIdRequest {
|
|
960
|
+
int64 ad_id = 1 [(validate.rules).int64.gt = 0];
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
message GetListingFeeTypeByAdIdResponse {
|
|
964
|
+
string listing_fee_type = 1;
|
|
965
|
+
optional bool shop_to_chotot = 2;
|
|
966
|
+
string payment_status = 3;
|
|
967
|
+
oneof params {
|
|
968
|
+
VoucherParams voucher = 6;
|
|
969
|
+
SubscriptionParams subscription = 7;
|
|
970
|
+
EntitlementParams entitlement = 8;
|
|
971
|
+
};
|
|
972
|
+
string listing_fee_status = 4 [(validate.rules).string = {
|
|
973
|
+
in: [
|
|
974
|
+
"already_charged",
|
|
975
|
+
"charge_now",
|
|
976
|
+
"free"
|
|
977
|
+
]
|
|
978
|
+
}];
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
message EntitlementParams {
|
|
982
|
+
string name = 1;
|
|
983
|
+
int64 duration_of_free_ad = 2;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
message VoucherParams {
|
|
987
|
+
string name = 1;
|
|
988
|
+
int64 duration_of_free_ad = 2;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
message SubscriptionParams {
|
|
992
|
+
int64 subscription_id = 1;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
message ApplyListingFeeTypeByAdIdRequest {
|
|
996
|
+
int64 ad_id = 1;
|
|
997
|
+
ListingFeeInfo listing_fee_info = 2;
|
|
998
|
+
int64 account_id = 3;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
message ApplyListingFeeTypeByAdIdResponse {
|
|
1002
|
+
bool is_success = 1;
|
|
1003
|
+
string message = 2;
|
|
1004
|
+
string message_detail = 3;
|
|
1005
|
+
}
|