hongbao-service-api 0.0.7
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.
- checksums.yaml +7 -0
- data/lib/airbnb/service/hongbao/api/hongbao.rb +364 -0
- data/lib/airbnb/service/hongbao/api/hongbao_data_0_forward_declare_types.rb +101 -0
- data/lib/airbnb/service/hongbao/api/hongbao_data_constants.rb +17 -0
- data/lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb +2941 -0
- data/lib/airbnb/service/hongbao/api/hongbao_data_types.rb +368 -0
- data/lib/airbnb/service/hongbao/api/hongbao_registry.rb +255 -0
- data/lib/airbnb/service/hongbao/api/hongbao_service_0_forward_declare_types.rb +20 -0
- data/lib/airbnb/service/hongbao/api/hongbao_service_constants.rb +20 -0
- data/lib/airbnb/service/hongbao/api/hongbao_service_smartclient_modules.rb +30 -0
- data/lib/hongbao_service_api.rb +20 -0
- metadata +125 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.1.1)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'sparsam'
|
|
8
|
+
|
|
9
|
+
module Airbnb
|
|
10
|
+
module Service
|
|
11
|
+
module Hongbao
|
|
12
|
+
module Api
|
|
13
|
+
class HelloRequest < ::Sparsam::Struct
|
|
14
|
+
FIELDS = {
|
|
15
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'message', :default => %q"hello", :optional => true}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
init_thrift_struct(self)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
class HelloResponse < ::Sparsam::Struct
|
|
22
|
+
FIELDS = {
|
|
23
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'message', :default => %q"success", :optional => true}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
init_thrift_struct(self)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class HelloException < ::Sparsam::ApplicationException
|
|
30
|
+
FIELDS = {
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
init_thrift_struct(self)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class UserRequest < ::Sparsam::Struct
|
|
38
|
+
FIELDS = {
|
|
39
|
+
1 => {:type => ::Sparsam::Types::I64, :name => 'userId', :optional => true}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
init_thrift_struct(self)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
class UserResponse < ::Sparsam::Struct
|
|
46
|
+
FIELDS = {
|
|
47
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'message', :default => %q"success", :optional => true}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
init_thrift_struct(self)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
class UserException < ::Sparsam::ApplicationException
|
|
54
|
+
FIELDS = {
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
init_thrift_struct(self)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class HasChinaCouponRequest < ::Sparsam::Struct
|
|
62
|
+
FIELDS = {
|
|
63
|
+
1 => {:type => ::Sparsam::Types::I64, :name => 'userId', :optional => true},
|
|
64
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'campaignName', :optional => true}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
init_thrift_struct(self)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class HasChinaCouponResponse < ::Sparsam::Struct
|
|
71
|
+
FIELDS = {
|
|
72
|
+
1 => {:type => ::Sparsam::Types::BOOL, :name => 'hasChinaCoupon', :default => false, :optional => true}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
init_thrift_struct(self)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class HasChinaCouponException < ::Sparsam::ApplicationException
|
|
79
|
+
FIELDS = {
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
init_thrift_struct(self)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
class HongbaoCouponStateRequest < ::Sparsam::Struct
|
|
87
|
+
FIELDS = {
|
|
88
|
+
1 => {:type => ::Sparsam::Types::I64, :name => 'userId', :optional => true},
|
|
89
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'campaignName', :optional => true}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
init_thrift_struct(self)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
class HongbaoCouponStateResponse < ::Sparsam::Struct
|
|
96
|
+
FIELDS = {
|
|
97
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'state', :default => %q"unavailable", :optional => true}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
init_thrift_struct(self)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class HongbaoCouponStateException < ::Sparsam::ApplicationException
|
|
104
|
+
FIELDS = {
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
init_thrift_struct(self)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
class HongbaoCouponDataRequest < ::Sparsam::Struct
|
|
112
|
+
FIELDS = {
|
|
113
|
+
1 => {:type => ::Sparsam::Types::I64, :name => 'userId', :optional => true},
|
|
114
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'campaignName', :optional => true}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
init_thrift_struct(self)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
class HongbaoCouponDataResponse < ::Sparsam::Struct
|
|
121
|
+
FIELDS = {
|
|
122
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'code', :optional => true},
|
|
123
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'currency', :optional => true},
|
|
124
|
+
3 => {:type => ::Sparsam::Types::STRING, :name => 'expiresAfter', :optional => true},
|
|
125
|
+
4 => {:type => ::Sparsam::Types::STRING, :name => 'formattedLocalizedAmount', :optional => true},
|
|
126
|
+
5 => {:type => ::Sparsam::Types::STRING, :name => 'formattedLocalizedMinTripCost', :optional => true},
|
|
127
|
+
6 => {:type => ::Sparsam::Types::I32, :name => 'maxSavingsUsd', :optional => true},
|
|
128
|
+
7 => {:type => ::Sparsam::Types::I32, :name => 'minTripCost', :optional => true},
|
|
129
|
+
8 => {:type => ::Sparsam::Types::I32, :name => 'savingsAmount', :optional => true},
|
|
130
|
+
9 => {:type => ::Sparsam::Types::I32, :name => 'savingsPercent', :optional => true},
|
|
131
|
+
10 => {:type => ::Sparsam::Types::BOOL, :name => 'isActive', :optional => true},
|
|
132
|
+
11 => {:type => ::Sparsam::Types::I32, :name => 'id', :optional => true}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
init_thrift_struct(self)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
class HongbaoCouponDataException < ::Sparsam::ApplicationException
|
|
139
|
+
FIELDS = {
|
|
140
|
+
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
init_thrift_struct(self)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
class CampaignData < ::Sparsam::Struct
|
|
147
|
+
FIELDS = {
|
|
148
|
+
1 => {:type => ::Sparsam::Types::BOOL, :name => 'campaignIsActive', :optional => true},
|
|
149
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'campaignName', :optional => true},
|
|
150
|
+
3 => {:type => ::Sparsam::Types::STRING, :name => 'campaignTermsAndConditionsUrl', :optional => true},
|
|
151
|
+
4 => {:type => ::Sparsam::Types::I32, :name => 'couponAmount', :optional => true},
|
|
152
|
+
5 => {:type => ::Sparsam::Types::I32, :name => 'couponMaxSavings', :optional => true},
|
|
153
|
+
6 => {:type => ::Sparsam::Types::I32, :name => 'couponMinCost', :optional => true},
|
|
154
|
+
7 => {:type => ::Sparsam::Types::I32, :name => 'couponPercent', :optional => true},
|
|
155
|
+
8 => {:type => ::Sparsam::Types::STRING, :name => 'couponCodePrefix', :optional => true},
|
|
156
|
+
9 => {:type => ::Sparsam::Types::STRING, :name => 'couponExpiresAfter', :optional => true},
|
|
157
|
+
10 => {:type => ::Sparsam::Types::STRING, :name => 'couponMaxStartDate', :optional => true},
|
|
158
|
+
11 => {:type => ::Sparsam::Types::STRING, :name => 'couponNativeCurrency', :optional => true},
|
|
159
|
+
12 => {:type => ::Sparsam::Types::STRING, :name => 'couponSeriesLabel', :optional => true},
|
|
160
|
+
13 => {:type => ::Sparsam::Types::STRING, :name => 'couponSmallScreenClaimRedisKey', :optional => true}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
init_thrift_struct(self)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
class HongbaoActiveCampaignRequest < ::Sparsam::Struct
|
|
167
|
+
FIELDS = {
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
init_thrift_struct(self)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
class HongbaoActiveCampaignResponse < ::Sparsam::Struct
|
|
175
|
+
FIELDS = {
|
|
176
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'campaignName', :optional => true},
|
|
177
|
+
2 => {:type => ::Sparsam::Types::STRUCT, :name => 'campaignData', :class => ::Airbnb::Service::Hongbao::Api::CampaignData, :optional => true}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
init_thrift_struct(self)
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
class HongbaoActiveCampaignException < ::Sparsam::ApplicationException
|
|
184
|
+
FIELDS = {
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
init_thrift_struct(self)
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
class HongbaoCampaignDataRequest < ::Sparsam::Struct
|
|
192
|
+
FIELDS = {
|
|
193
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'campaignName', :optional => true}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
init_thrift_struct(self)
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class HongbaoCampaignDataResponse < ::Sparsam::Struct
|
|
200
|
+
FIELDS = {
|
|
201
|
+
1 => {:type => ::Sparsam::Types::STRUCT, :name => 'campaignData', :class => ::Airbnb::Service::Hongbao::Api::CampaignData, :optional => true}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
init_thrift_struct(self)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
class HongbaoCampaignDataException < ::Sparsam::ApplicationException
|
|
208
|
+
FIELDS = {
|
|
209
|
+
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
init_thrift_struct(self)
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
class HongbaoGetUserChinaCouponsRequest < ::Sparsam::Struct
|
|
216
|
+
FIELDS = {
|
|
217
|
+
1 => {:type => ::Sparsam::Types::I64, :name => 'userId', :optional => true}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
init_thrift_struct(self)
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
class HongbaoGetUserChinaCouponsResponse < ::Sparsam::Struct
|
|
224
|
+
FIELDS = {
|
|
225
|
+
1 => {:type => ::Sparsam::Types::LIST, :name => 'couponCodes', :element => {:type => ::Sparsam::Types::STRING}, :optional => true}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
init_thrift_struct(self)
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
class HongbaoGetUserChinaCouponsException < ::Sparsam::ApplicationException
|
|
232
|
+
FIELDS = {
|
|
233
|
+
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
init_thrift_struct(self)
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
class HongbaoGetCtaLinkRequest < ::Sparsam::Struct
|
|
240
|
+
FIELDS = {
|
|
241
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'userAgent', :optional => true}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
init_thrift_struct(self)
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
class HongbaoGetCtaLinkResponse < ::Sparsam::Struct
|
|
248
|
+
FIELDS = {
|
|
249
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'termsLink', :optional => true},
|
|
250
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'deeplink', :optional => true}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
init_thrift_struct(self)
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
class HongbaoGetCtaLinkException < ::Sparsam::ApplicationException
|
|
257
|
+
FIELDS = {
|
|
258
|
+
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
init_thrift_struct(self)
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
class HongbaoGetCouponMessagesRequest < ::Sparsam::Struct
|
|
265
|
+
FIELDS = {
|
|
266
|
+
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
init_thrift_struct(self)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
class HongbaoGetCouponMessagesResponse < ::Sparsam::Struct
|
|
273
|
+
FIELDS = {
|
|
274
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'state', :default => %q"unavailable", :optional => true},
|
|
275
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'ctaLink', :optional => true}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
init_thrift_struct(self)
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
class HongbaoGetCouponMessagesException < ::Sparsam::ApplicationException
|
|
282
|
+
FIELDS = {
|
|
283
|
+
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
init_thrift_struct(self)
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
class HongbaoCanClaimInAppRequest < ::Sparsam::Struct
|
|
290
|
+
FIELDS = {
|
|
291
|
+
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
init_thrift_struct(self)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
class HongbaoCanClaimInAppResponse < ::Sparsam::Struct
|
|
298
|
+
FIELDS = {
|
|
299
|
+
1 => {:type => ::Sparsam::Types::BOOL, :name => 'canClaim', :default => false, :optional => true}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
init_thrift_struct(self)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
class HongbaoCanClaimInAppException < ::Sparsam::ApplicationException
|
|
306
|
+
FIELDS = {
|
|
307
|
+
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
init_thrift_struct(self)
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
class HongbaoReferralStatusRequest < ::Sparsam::Struct
|
|
314
|
+
FIELDS = {
|
|
315
|
+
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
init_thrift_struct(self)
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
class HongbaoReferralStatusResponse < ::Sparsam::Struct
|
|
322
|
+
FIELDS = {
|
|
323
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'link', :optional => true},
|
|
324
|
+
2 => {:type => ::Sparsam::Types::STRING, :name => 'wechatLink', :optional => true},
|
|
325
|
+
3 => {:type => ::Sparsam::Types::STRING, :name => 'offerMinTrip', :optional => true},
|
|
326
|
+
4 => {:type => ::Sparsam::Types::STRING, :name => 'offerReceiverCredit', :optional => true},
|
|
327
|
+
5 => {:type => ::Sparsam::Types::STRING, :name => 'offerSenderCredit', :optional => true}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
init_thrift_struct(self)
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
class HongbaoReferralStatusException < ::Sparsam::ApplicationException
|
|
334
|
+
FIELDS = {
|
|
335
|
+
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
init_thrift_struct(self)
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
class HongbaoCampaignTextDataRequest < ::Sparsam::Struct
|
|
342
|
+
FIELDS = {
|
|
343
|
+
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
init_thrift_struct(self)
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
class HongbaoCampaignTextDataResponse < ::Sparsam::Struct
|
|
350
|
+
FIELDS = {
|
|
351
|
+
1 => {:type => ::Sparsam::Types::STRING, :name => 'claimButon', :optional => true}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
init_thrift_struct(self)
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
class HongbaoCampaignTextDataException < ::Sparsam::ApplicationException
|
|
358
|
+
FIELDS = {
|
|
359
|
+
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
init_thrift_struct(self)
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
end
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
end
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.3-airbnb11)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
# Generated from service IDL version 'no version'
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
module Airbnb
|
|
10
|
+
module Service
|
|
11
|
+
module Hongbao
|
|
12
|
+
module Api
|
|
13
|
+
class HongbaoRegistry
|
|
14
|
+
if defined?(ServiceFramework::ServiceRegistry)
|
|
15
|
+
include ServiceFramework::ServiceRegistry
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
RESOURCE_ANNOTATIONS = {
|
|
19
|
+
"client_connect_timeout_sec" => "10",
|
|
20
|
+
"client_retries" => "1",
|
|
21
|
+
"client_timeout_sec" => "10",
|
|
22
|
+
"synapse_port" => "6756",
|
|
23
|
+
"synapse_service" => "hongbao.synapse",
|
|
24
|
+
"use_mtls" => "true",
|
|
25
|
+
"use_thrift_payload" => "true",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
ENDPOINTS = {
|
|
29
|
+
hello: {
|
|
30
|
+
return_type: :HelloResponse,
|
|
31
|
+
arguments: [
|
|
32
|
+
{
|
|
33
|
+
key: 1,
|
|
34
|
+
name: "request",
|
|
35
|
+
type: :HelloRequest,
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
exceptions: [
|
|
39
|
+
:HelloException,
|
|
40
|
+
],
|
|
41
|
+
resource_annotations: {
|
|
42
|
+
},
|
|
43
|
+
airbnb_rest_annotations: {
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
get_user: {
|
|
47
|
+
return_type: :UserResponse,
|
|
48
|
+
arguments: [
|
|
49
|
+
{
|
|
50
|
+
key: 1,
|
|
51
|
+
name: "request",
|
|
52
|
+
type: :UserRequest,
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
exceptions: [
|
|
56
|
+
:UserException,
|
|
57
|
+
],
|
|
58
|
+
resource_annotations: {
|
|
59
|
+
},
|
|
60
|
+
airbnb_rest_annotations: {
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
has_china_coupon: {
|
|
64
|
+
return_type: :HasChinaCouponResponse,
|
|
65
|
+
arguments: [
|
|
66
|
+
{
|
|
67
|
+
key: 1,
|
|
68
|
+
name: "request",
|
|
69
|
+
type: :HasChinaCouponRequest,
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
exceptions: [
|
|
73
|
+
:HasChinaCouponException,
|
|
74
|
+
],
|
|
75
|
+
resource_annotations: {
|
|
76
|
+
},
|
|
77
|
+
airbnb_rest_annotations: {
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
fetch_coupon_state: {
|
|
81
|
+
return_type: :HongbaoCouponStateResponse,
|
|
82
|
+
arguments: [
|
|
83
|
+
{
|
|
84
|
+
key: 1,
|
|
85
|
+
name: "request",
|
|
86
|
+
type: :HongbaoCouponStateRequest,
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
exceptions: [
|
|
90
|
+
:HongbaoCouponStateException,
|
|
91
|
+
],
|
|
92
|
+
resource_annotations: {
|
|
93
|
+
},
|
|
94
|
+
airbnb_rest_annotations: {
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
fetch_coupon_data: {
|
|
98
|
+
return_type: :HongbaoCouponDataResponse,
|
|
99
|
+
arguments: [
|
|
100
|
+
{
|
|
101
|
+
key: 1,
|
|
102
|
+
name: "request",
|
|
103
|
+
type: :HongbaoCouponDataRequest,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
exceptions: [
|
|
107
|
+
:HongbaoCouponDataException,
|
|
108
|
+
],
|
|
109
|
+
resource_annotations: {
|
|
110
|
+
},
|
|
111
|
+
airbnb_rest_annotations: {
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
fetch_active_campaign: {
|
|
115
|
+
return_type: :HongbaoActiveCampaignResponse,
|
|
116
|
+
arguments: [
|
|
117
|
+
{
|
|
118
|
+
key: 1,
|
|
119
|
+
name: "request",
|
|
120
|
+
type: :HongbaoActiveCampaignRequest,
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
exceptions: [
|
|
124
|
+
:HongbaoActiveCampaignException,
|
|
125
|
+
],
|
|
126
|
+
resource_annotations: {
|
|
127
|
+
},
|
|
128
|
+
airbnb_rest_annotations: {
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
fetch_campaign_data: {
|
|
132
|
+
return_type: :HongbaoCampaignDataResponse,
|
|
133
|
+
arguments: [
|
|
134
|
+
{
|
|
135
|
+
key: 1,
|
|
136
|
+
name: "request",
|
|
137
|
+
type: :HongbaoCampaignDataRequest,
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
exceptions: [
|
|
141
|
+
:HongbaoCampaignDataException,
|
|
142
|
+
],
|
|
143
|
+
resource_annotations: {
|
|
144
|
+
},
|
|
145
|
+
airbnb_rest_annotations: {
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
get_user_china_coupons: {
|
|
149
|
+
return_type: :HongbaoGetUserChinaCouponsResponse,
|
|
150
|
+
arguments: [
|
|
151
|
+
{
|
|
152
|
+
key: 1,
|
|
153
|
+
name: "request",
|
|
154
|
+
type: :HongbaoGetUserChinaCouponsRequest,
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
exceptions: [
|
|
158
|
+
:HongbaoGetUserChinaCouponsException,
|
|
159
|
+
],
|
|
160
|
+
resource_annotations: {
|
|
161
|
+
},
|
|
162
|
+
airbnb_rest_annotations: {
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
get_cta_link: {
|
|
166
|
+
return_type: :HongbaoGetCtaLinkResponse,
|
|
167
|
+
arguments: [
|
|
168
|
+
{
|
|
169
|
+
key: 1,
|
|
170
|
+
name: "request",
|
|
171
|
+
type: :HongbaoGetCtaLinkRequest,
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
exceptions: [
|
|
175
|
+
:HongbaoGetCtaLinkException,
|
|
176
|
+
],
|
|
177
|
+
resource_annotations: {
|
|
178
|
+
},
|
|
179
|
+
airbnb_rest_annotations: {
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
get_coupon_messages: {
|
|
183
|
+
return_type: :HongbaoGetCouponMessagesResponse,
|
|
184
|
+
arguments: [
|
|
185
|
+
{
|
|
186
|
+
key: 1,
|
|
187
|
+
name: "request",
|
|
188
|
+
type: :HongbaoGetCouponMessagesRequest,
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
exceptions: [
|
|
192
|
+
:HongbaoGetCouponMessagesException,
|
|
193
|
+
],
|
|
194
|
+
resource_annotations: {
|
|
195
|
+
},
|
|
196
|
+
airbnb_rest_annotations: {
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
can_claim_in_app: {
|
|
200
|
+
return_type: :HongbaoCanClaimInAppResponse,
|
|
201
|
+
arguments: [
|
|
202
|
+
{
|
|
203
|
+
key: 1,
|
|
204
|
+
name: "request",
|
|
205
|
+
type: :HongbaoCanClaimInAppRequest,
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
exceptions: [
|
|
209
|
+
:HongbaoCanClaimInAppException,
|
|
210
|
+
],
|
|
211
|
+
resource_annotations: {
|
|
212
|
+
},
|
|
213
|
+
airbnb_rest_annotations: {
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
fetch_referral_status: {
|
|
217
|
+
return_type: :HongbaoReferralStatusResponse,
|
|
218
|
+
arguments: [
|
|
219
|
+
{
|
|
220
|
+
key: 1,
|
|
221
|
+
name: "request",
|
|
222
|
+
type: :HongbaoReferralStatusRequest,
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
exceptions: [
|
|
226
|
+
:HongbaoReferralStatusException,
|
|
227
|
+
],
|
|
228
|
+
resource_annotations: {
|
|
229
|
+
},
|
|
230
|
+
airbnb_rest_annotations: {
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
get_campaign_text_data: {
|
|
234
|
+
return_type: :HongbaoCampaignTextDataResponse,
|
|
235
|
+
arguments: [
|
|
236
|
+
{
|
|
237
|
+
key: 1,
|
|
238
|
+
name: "request",
|
|
239
|
+
type: :HongbaoCampaignTextDataRequest,
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
exceptions: [
|
|
243
|
+
:HongbaoCampaignTextDataException,
|
|
244
|
+
],
|
|
245
|
+
resource_annotations: {
|
|
246
|
+
},
|
|
247
|
+
airbnb_rest_annotations: {
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
}
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.3-airbnb11)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
# Generated from service IDL version 'no version'
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
require 'thrift'
|
|
10
|
+
require 'sparsam'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
module Airbnb
|
|
14
|
+
module Service
|
|
15
|
+
module Hongbao
|
|
16
|
+
module Api
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.3-airbnb11)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
# Generated from service IDL version 'no version'
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
require 'thrift'
|
|
10
|
+
require 'sparsam'
|
|
11
|
+
require 'airbnb/service/hongbao/api/hongbao_service_types'
|
|
12
|
+
|
|
13
|
+
module Airbnb
|
|
14
|
+
module Service
|
|
15
|
+
module Hongbao
|
|
16
|
+
module Api
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.3-airbnb11)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
# Generated from service IDL version 'no version'
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
require 'thrift'
|
|
10
|
+
require 'sparsam'
|
|
11
|
+
require 'airbnb/service/hongbao/api/hongbao_data_types'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
require 'airbnb/service/hongbao/api/hongbao_service_0_forward_declare_types'
|
|
15
|
+
|
|
16
|
+
require 'airbnb/service/hongbao/api/hongbao_service_types'
|
|
17
|
+
|
|
18
|
+
require 'date'
|
|
19
|
+
require 'time'
|
|
20
|
+
require 'set'
|
|
21
|
+
require 'json'
|
|
22
|
+
|
|
23
|
+
module Airbnb
|
|
24
|
+
module Service
|
|
25
|
+
module Hongbao
|
|
26
|
+
module Api
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|