| 94 |
ashish |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 94 |
ashish |
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
| 3376 |
rajveer |
8 |
import shop2020.thriftpy.generic.ttypes
|
| 94 |
ashish |
9 |
|
| 3376 |
rajveer |
10 |
|
| 94 |
ashish |
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 94 |
ashish |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
| 1596 |
ankur.sing |
19 |
class UserType:
|
|
|
20 |
USER = 0
|
|
|
21 |
ANONYMOUS = 1
|
|
|
22 |
|
|
|
23 |
_VALUES_TO_NAMES = {
|
|
|
24 |
0: "USER",
|
|
|
25 |
1: "ANONYMOUS",
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
_NAMES_TO_VALUES = {
|
|
|
29 |
"USER": 0,
|
|
|
30 |
"ANONYMOUS": 1,
|
|
|
31 |
}
|
|
|
32 |
|
| 6367 |
amit.gupta |
33 |
class PromotionType:
|
|
|
34 |
DISCOUNT_COUPON = 0
|
|
|
35 |
GIFT_VOUCHER = 1
|
|
|
36 |
|
|
|
37 |
_VALUES_TO_NAMES = {
|
|
|
38 |
0: "DISCOUNT_COUPON",
|
|
|
39 |
1: "GIFT_VOUCHER",
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
_NAMES_TO_VALUES = {
|
|
|
43 |
"DISCOUNT_COUPON": 0,
|
|
|
44 |
"GIFT_VOUCHER": 1,
|
|
|
45 |
}
|
|
|
46 |
|
| 122 |
ashish |
47 |
class AddressType:
|
| 94 |
ashish |
48 |
WORK = 0
|
|
|
49 |
HOME = 1
|
|
|
50 |
|
|
|
51 |
_VALUES_TO_NAMES = {
|
|
|
52 |
0: "WORK",
|
|
|
53 |
1: "HOME",
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
_NAMES_TO_VALUES = {
|
|
|
57 |
"WORK": 0,
|
|
|
58 |
"HOME": 1,
|
|
|
59 |
}
|
|
|
60 |
|
| 8707 |
manish.sha |
61 |
class CouponCategory:
|
|
|
62 |
"""
|
|
|
63 |
Added by Manish Sharma
|
|
|
64 |
"""
|
|
|
65 |
CUSTOMER_SATISFACTION = 0
|
|
|
66 |
MARKETING = 1
|
|
|
67 |
REFUND = 2
|
| 11653 |
amit.gupta |
68 |
CATEGORY = 3
|
| 8707 |
manish.sha |
69 |
|
|
|
70 |
_VALUES_TO_NAMES = {
|
|
|
71 |
0: "CUSTOMER_SATISFACTION",
|
|
|
72 |
1: "MARKETING",
|
|
|
73 |
2: "REFUND",
|
| 11653 |
amit.gupta |
74 |
3: "CATEGORY",
|
| 8707 |
manish.sha |
75 |
}
|
|
|
76 |
|
|
|
77 |
_NAMES_TO_VALUES = {
|
|
|
78 |
"CUSTOMER_SATISFACTION": 0,
|
|
|
79 |
"MARKETING": 1,
|
|
|
80 |
"REFUND": 2,
|
| 11653 |
amit.gupta |
81 |
"CATEGORY": 3,
|
| 8707 |
manish.sha |
82 |
}
|
|
|
83 |
|
| 1274 |
varun.gupt |
84 |
class UserCommunicationType:
|
|
|
85 |
"""
|
|
|
86 |
Form types for Contact Us form
|
|
|
87 |
"""
|
|
|
88 |
RETURN_FORM = 1
|
|
|
89 |
ORDER_CANCELLATION = 2
|
|
|
90 |
DELIVERY_PROBLEM = 3
|
|
|
91 |
PAYMENT_STATUS = 4
|
|
|
92 |
ORDER_STATUS = 5
|
|
|
93 |
PRODUCT_REQUEST = 6
|
| 6176 |
amit.gupta |
94 |
RECHARGE_RELATED = 7
|
| 3376 |
rajveer |
95 |
OTHER = 8
|
| 11890 |
kshitij.so |
96 |
Bulk_Order_ENQUIRY = 21
|
| 1274 |
varun.gupt |
97 |
|
|
|
98 |
_VALUES_TO_NAMES = {
|
|
|
99 |
1: "RETURN_FORM",
|
|
|
100 |
2: "ORDER_CANCELLATION",
|
|
|
101 |
3: "DELIVERY_PROBLEM",
|
|
|
102 |
4: "PAYMENT_STATUS",
|
|
|
103 |
5: "ORDER_STATUS",
|
|
|
104 |
6: "PRODUCT_REQUEST",
|
| 6176 |
amit.gupta |
105 |
7: "RECHARGE_RELATED",
|
| 3376 |
rajveer |
106 |
8: "OTHER",
|
| 11890 |
kshitij.so |
107 |
21: "Bulk_Order_ENQUIRY",
|
| 1274 |
varun.gupt |
108 |
}
|
|
|
109 |
|
|
|
110 |
_NAMES_TO_VALUES = {
|
|
|
111 |
"RETURN_FORM": 1,
|
|
|
112 |
"ORDER_CANCELLATION": 2,
|
|
|
113 |
"DELIVERY_PROBLEM": 3,
|
|
|
114 |
"PAYMENT_STATUS": 4,
|
|
|
115 |
"ORDER_STATUS": 5,
|
|
|
116 |
"PRODUCT_REQUEST": 6,
|
| 6176 |
amit.gupta |
117 |
"RECHARGE_RELATED": 7,
|
| 3376 |
rajveer |
118 |
"OTHER": 8,
|
| 11890 |
kshitij.so |
119 |
"Bulk_Order_ENQUIRY": 21,
|
| 1274 |
varun.gupt |
120 |
}
|
|
|
121 |
|
| 3378 |
vikas |
122 |
class TrackLogType:
|
|
|
123 |
"""
|
|
|
124 |
Affiliate track log types for affiliate tracking
|
|
|
125 |
"""
|
|
|
126 |
NEW_REGISTRATION = 1
|
|
|
127 |
PAYMENT_SUCCESS = 2
|
|
|
128 |
|
|
|
129 |
_VALUES_TO_NAMES = {
|
|
|
130 |
1: "NEW_REGISTRATION",
|
|
|
131 |
2: "PAYMENT_SUCCESS",
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
_NAMES_TO_VALUES = {
|
|
|
135 |
"NEW_REGISTRATION": 1,
|
|
|
136 |
"PAYMENT_SUCCESS": 2,
|
|
|
137 |
}
|
|
|
138 |
|
| 559 |
chandransh |
139 |
class Sex:
|
|
|
140 |
MALE = 0
|
|
|
141 |
FEMALE = 1
|
|
|
142 |
WONT_SAY = 2
|
|
|
143 |
|
|
|
144 |
_VALUES_TO_NAMES = {
|
|
|
145 |
0: "MALE",
|
|
|
146 |
1: "FEMALE",
|
|
|
147 |
2: "WONT_SAY",
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
_NAMES_TO_VALUES = {
|
|
|
151 |
"MALE": 0,
|
|
|
152 |
"FEMALE": 1,
|
|
|
153 |
"WONT_SAY": 2,
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
class LineStatus:
|
|
|
157 |
LINE_ACTIVE = 0
|
|
|
158 |
LINE_DELETED = 1
|
|
|
159 |
LINE_EXPIRED = 2
|
|
|
160 |
LINE_COMMITED = 3
|
|
|
161 |
LINE_COMMIT_FAILED = 4
|
|
|
162 |
LINE_AUTO_DELETED = 5
|
|
|
163 |
|
|
|
164 |
_VALUES_TO_NAMES = {
|
|
|
165 |
0: "LINE_ACTIVE",
|
|
|
166 |
1: "LINE_DELETED",
|
|
|
167 |
2: "LINE_EXPIRED",
|
|
|
168 |
3: "LINE_COMMITED",
|
|
|
169 |
4: "LINE_COMMIT_FAILED",
|
|
|
170 |
5: "LINE_AUTO_DELETED",
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
_NAMES_TO_VALUES = {
|
|
|
174 |
"LINE_ACTIVE": 0,
|
|
|
175 |
"LINE_DELETED": 1,
|
|
|
176 |
"LINE_EXPIRED": 2,
|
|
|
177 |
"LINE_COMMITED": 3,
|
|
|
178 |
"LINE_COMMIT_FAILED": 4,
|
|
|
179 |
"LINE_AUTO_DELETED": 5,
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
class CartStatus:
|
|
|
183 |
ACTIVE = 0
|
|
|
184 |
INACTIVE = 1
|
|
|
185 |
EXPIRED = 2
|
|
|
186 |
COMMITTED = 3
|
|
|
187 |
COMMIT_FAILED = 4
|
|
|
188 |
|
|
|
189 |
_VALUES_TO_NAMES = {
|
|
|
190 |
0: "ACTIVE",
|
|
|
191 |
1: "INACTIVE",
|
|
|
192 |
2: "EXPIRED",
|
|
|
193 |
3: "COMMITTED",
|
|
|
194 |
4: "COMMIT_FAILED",
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
_NAMES_TO_VALUES = {
|
|
|
198 |
"ACTIVE": 0,
|
|
|
199 |
"INACTIVE": 1,
|
|
|
200 |
"EXPIRED": 2,
|
|
|
201 |
"COMMITTED": 3,
|
|
|
202 |
"COMMIT_FAILED": 4,
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
class WidgetType:
|
| 772 |
rajveer |
206 |
MY_RESEARCH = 0
|
|
|
207 |
BROWSE_HISTORY = 1
|
| 559 |
chandransh |
208 |
|
|
|
209 |
_VALUES_TO_NAMES = {
|
| 772 |
rajveer |
210 |
0: "MY_RESEARCH",
|
|
|
211 |
1: "BROWSE_HISTORY",
|
| 559 |
chandransh |
212 |
}
|
|
|
213 |
|
|
|
214 |
_NAMES_TO_VALUES = {
|
| 772 |
rajveer |
215 |
"MY_RESEARCH": 0,
|
|
|
216 |
"BROWSE_HISTORY": 1,
|
| 559 |
chandransh |
217 |
}
|
|
|
218 |
|
| 18530 |
manish.sha |
219 |
class CounterVerificationType:
|
|
|
220 |
NOT_VERIFIED = 0
|
|
|
221 |
OFFLINE = 1
|
|
|
222 |
ONLINE = 2
|
|
|
223 |
|
|
|
224 |
_VALUES_TO_NAMES = {
|
|
|
225 |
0: "NOT_VERIFIED",
|
|
|
226 |
1: "OFFLINE",
|
|
|
227 |
2: "ONLINE",
|
|
|
228 |
}
|
|
|
229 |
|
|
|
230 |
_NAMES_TO_VALUES = {
|
|
|
231 |
"NOT_VERIFIED": 0,
|
|
|
232 |
"OFFLINE": 1,
|
|
|
233 |
"ONLINE": 2,
|
|
|
234 |
}
|
|
|
235 |
|
| 5469 |
rajveer |
236 |
class VoucherType:
|
| 5492 |
rajveer |
237 |
SPICEDECK_MOBILE = 1
|
| 3431 |
rajveer |
238 |
|
| 5469 |
rajveer |
239 |
_VALUES_TO_NAMES = {
|
| 5492 |
rajveer |
240 |
1: "SPICEDECK_MOBILE",
|
| 5469 |
rajveer |
241 |
}
|
|
|
242 |
|
|
|
243 |
_NAMES_TO_VALUES = {
|
| 5492 |
rajveer |
244 |
"SPICEDECK_MOBILE": 1,
|
| 5469 |
rajveer |
245 |
}
|
|
|
246 |
|
|
|
247 |
|
| 94 |
ashish |
248 |
class AuthenticationException(Exception):
|
|
|
249 |
"""
|
|
|
250 |
Exceptions
|
| 3431 |
rajveer |
251 |
|
| 94 |
ashish |
252 |
Attributes:
|
|
|
253 |
- message
|
|
|
254 |
- errorCode
|
|
|
255 |
"""
|
|
|
256 |
|
|
|
257 |
thrift_spec = (
|
|
|
258 |
None, # 0
|
|
|
259 |
(1, TType.STRING, 'message', None, None, ), # 1
|
|
|
260 |
(2, TType.I32, 'errorCode', None, None, ), # 2
|
|
|
261 |
)
|
|
|
262 |
|
|
|
263 |
def __init__(self, message=None, errorCode=None,):
|
|
|
264 |
self.message = message
|
|
|
265 |
self.errorCode = errorCode
|
|
|
266 |
|
|
|
267 |
def read(self, iprot):
|
|
|
268 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
269 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
270 |
return
|
|
|
271 |
iprot.readStructBegin()
|
|
|
272 |
while True:
|
|
|
273 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
274 |
if ftype == TType.STOP:
|
|
|
275 |
break
|
|
|
276 |
if fid == 1:
|
|
|
277 |
if ftype == TType.STRING:
|
|
|
278 |
self.message = iprot.readString();
|
|
|
279 |
else:
|
|
|
280 |
iprot.skip(ftype)
|
|
|
281 |
elif fid == 2:
|
|
|
282 |
if ftype == TType.I32:
|
|
|
283 |
self.errorCode = iprot.readI32();
|
|
|
284 |
else:
|
|
|
285 |
iprot.skip(ftype)
|
|
|
286 |
else:
|
|
|
287 |
iprot.skip(ftype)
|
|
|
288 |
iprot.readFieldEnd()
|
|
|
289 |
iprot.readStructEnd()
|
|
|
290 |
|
|
|
291 |
def write(self, oprot):
|
|
|
292 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
293 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
294 |
return
|
|
|
295 |
oprot.writeStructBegin('AuthenticationException')
|
| 3431 |
rajveer |
296 |
if self.message is not None:
|
| 94 |
ashish |
297 |
oprot.writeFieldBegin('message', TType.STRING, 1)
|
|
|
298 |
oprot.writeString(self.message)
|
|
|
299 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
300 |
if self.errorCode is not None:
|
| 94 |
ashish |
301 |
oprot.writeFieldBegin('errorCode', TType.I32, 2)
|
|
|
302 |
oprot.writeI32(self.errorCode)
|
|
|
303 |
oprot.writeFieldEnd()
|
|
|
304 |
oprot.writeFieldStop()
|
|
|
305 |
oprot.writeStructEnd()
|
|
|
306 |
|
| 3431 |
rajveer |
307 |
def validate(self):
|
|
|
308 |
return
|
|
|
309 |
|
|
|
310 |
|
| 94 |
ashish |
311 |
def __str__(self):
|
|
|
312 |
return repr(self)
|
|
|
313 |
|
|
|
314 |
def __repr__(self):
|
|
|
315 |
L = ['%s=%r' % (key, value)
|
|
|
316 |
for key, value in self.__dict__.iteritems()]
|
|
|
317 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
318 |
|
|
|
319 |
def __eq__(self, other):
|
|
|
320 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
321 |
|
|
|
322 |
def __ne__(self, other):
|
|
|
323 |
return not (self == other)
|
|
|
324 |
|
|
|
325 |
class UserContextException(Exception):
|
|
|
326 |
"""
|
|
|
327 |
Attributes:
|
|
|
328 |
- errorCode
|
|
|
329 |
- message
|
|
|
330 |
"""
|
|
|
331 |
|
|
|
332 |
thrift_spec = (
|
|
|
333 |
None, # 0
|
|
|
334 |
(1, TType.I32, 'errorCode', None, None, ), # 1
|
|
|
335 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
336 |
)
|
|
|
337 |
|
|
|
338 |
def __init__(self, errorCode=None, message=None,):
|
|
|
339 |
self.errorCode = errorCode
|
|
|
340 |
self.message = message
|
|
|
341 |
|
|
|
342 |
def read(self, iprot):
|
|
|
343 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
344 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
345 |
return
|
|
|
346 |
iprot.readStructBegin()
|
|
|
347 |
while True:
|
|
|
348 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
349 |
if ftype == TType.STOP:
|
|
|
350 |
break
|
|
|
351 |
if fid == 1:
|
|
|
352 |
if ftype == TType.I32:
|
|
|
353 |
self.errorCode = iprot.readI32();
|
|
|
354 |
else:
|
|
|
355 |
iprot.skip(ftype)
|
|
|
356 |
elif fid == 2:
|
|
|
357 |
if ftype == TType.STRING:
|
|
|
358 |
self.message = iprot.readString();
|
|
|
359 |
else:
|
|
|
360 |
iprot.skip(ftype)
|
|
|
361 |
else:
|
|
|
362 |
iprot.skip(ftype)
|
|
|
363 |
iprot.readFieldEnd()
|
|
|
364 |
iprot.readStructEnd()
|
|
|
365 |
|
|
|
366 |
def write(self, oprot):
|
|
|
367 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
368 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
369 |
return
|
|
|
370 |
oprot.writeStructBegin('UserContextException')
|
| 3431 |
rajveer |
371 |
if self.errorCode is not None:
|
| 94 |
ashish |
372 |
oprot.writeFieldBegin('errorCode', TType.I32, 1)
|
|
|
373 |
oprot.writeI32(self.errorCode)
|
|
|
374 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
375 |
if self.message is not None:
|
| 94 |
ashish |
376 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
377 |
oprot.writeString(self.message)
|
|
|
378 |
oprot.writeFieldEnd()
|
|
|
379 |
oprot.writeFieldStop()
|
|
|
380 |
oprot.writeStructEnd()
|
|
|
381 |
|
| 3431 |
rajveer |
382 |
def validate(self):
|
|
|
383 |
return
|
|
|
384 |
|
|
|
385 |
|
| 94 |
ashish |
386 |
def __str__(self):
|
|
|
387 |
return repr(self)
|
|
|
388 |
|
|
|
389 |
def __repr__(self):
|
|
|
390 |
L = ['%s=%r' % (key, value)
|
|
|
391 |
for key, value in self.__dict__.iteritems()]
|
|
|
392 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
393 |
|
|
|
394 |
def __eq__(self, other):
|
|
|
395 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
396 |
|
|
|
397 |
def __ne__(self, other):
|
|
|
398 |
return not (self == other)
|
|
|
399 |
|
| 559 |
chandransh |
400 |
class ShoppingCartException(Exception):
|
|
|
401 |
"""
|
|
|
402 |
Attributes:
|
|
|
403 |
- id
|
|
|
404 |
- message
|
|
|
405 |
"""
|
|
|
406 |
|
|
|
407 |
thrift_spec = (
|
|
|
408 |
None, # 0
|
|
|
409 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
410 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
411 |
)
|
|
|
412 |
|
|
|
413 |
def __init__(self, id=None, message=None,):
|
|
|
414 |
self.id = id
|
|
|
415 |
self.message = message
|
|
|
416 |
|
|
|
417 |
def read(self, iprot):
|
|
|
418 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
419 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
420 |
return
|
|
|
421 |
iprot.readStructBegin()
|
|
|
422 |
while True:
|
|
|
423 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
424 |
if ftype == TType.STOP:
|
|
|
425 |
break
|
|
|
426 |
if fid == 1:
|
|
|
427 |
if ftype == TType.I64:
|
|
|
428 |
self.id = iprot.readI64();
|
|
|
429 |
else:
|
|
|
430 |
iprot.skip(ftype)
|
|
|
431 |
elif fid == 2:
|
|
|
432 |
if ftype == TType.STRING:
|
|
|
433 |
self.message = iprot.readString();
|
|
|
434 |
else:
|
|
|
435 |
iprot.skip(ftype)
|
|
|
436 |
else:
|
|
|
437 |
iprot.skip(ftype)
|
|
|
438 |
iprot.readFieldEnd()
|
|
|
439 |
iprot.readStructEnd()
|
|
|
440 |
|
|
|
441 |
def write(self, oprot):
|
|
|
442 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
443 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
444 |
return
|
|
|
445 |
oprot.writeStructBegin('ShoppingCartException')
|
| 3431 |
rajveer |
446 |
if self.id is not None:
|
| 559 |
chandransh |
447 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
448 |
oprot.writeI64(self.id)
|
|
|
449 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
450 |
if self.message is not None:
|
| 559 |
chandransh |
451 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
452 |
oprot.writeString(self.message)
|
|
|
453 |
oprot.writeFieldEnd()
|
|
|
454 |
oprot.writeFieldStop()
|
|
|
455 |
oprot.writeStructEnd()
|
|
|
456 |
|
| 3431 |
rajveer |
457 |
def validate(self):
|
|
|
458 |
return
|
|
|
459 |
|
|
|
460 |
|
| 559 |
chandransh |
461 |
def __str__(self):
|
|
|
462 |
return repr(self)
|
|
|
463 |
|
|
|
464 |
def __repr__(self):
|
|
|
465 |
L = ['%s=%r' % (key, value)
|
|
|
466 |
for key, value in self.__dict__.iteritems()]
|
|
|
467 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
468 |
|
|
|
469 |
def __eq__(self, other):
|
|
|
470 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
471 |
|
|
|
472 |
def __ne__(self, other):
|
|
|
473 |
return not (self == other)
|
|
|
474 |
|
| 1274 |
varun.gupt |
475 |
class UserCommunicationException(Exception):
|
|
|
476 |
"""
|
|
|
477 |
Attributes:
|
|
|
478 |
- id
|
|
|
479 |
- message
|
|
|
480 |
"""
|
|
|
481 |
|
|
|
482 |
thrift_spec = (
|
|
|
483 |
None, # 0
|
|
|
484 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
485 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
486 |
)
|
|
|
487 |
|
|
|
488 |
def __init__(self, id=None, message=None,):
|
|
|
489 |
self.id = id
|
|
|
490 |
self.message = message
|
|
|
491 |
|
|
|
492 |
def read(self, iprot):
|
|
|
493 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
494 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
495 |
return
|
|
|
496 |
iprot.readStructBegin()
|
|
|
497 |
while True:
|
|
|
498 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
499 |
if ftype == TType.STOP:
|
|
|
500 |
break
|
|
|
501 |
if fid == 1:
|
|
|
502 |
if ftype == TType.I64:
|
|
|
503 |
self.id = iprot.readI64();
|
|
|
504 |
else:
|
|
|
505 |
iprot.skip(ftype)
|
|
|
506 |
elif fid == 2:
|
|
|
507 |
if ftype == TType.STRING:
|
|
|
508 |
self.message = iprot.readString();
|
|
|
509 |
else:
|
|
|
510 |
iprot.skip(ftype)
|
|
|
511 |
else:
|
|
|
512 |
iprot.skip(ftype)
|
|
|
513 |
iprot.readFieldEnd()
|
|
|
514 |
iprot.readStructEnd()
|
|
|
515 |
|
|
|
516 |
def write(self, oprot):
|
|
|
517 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
518 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
519 |
return
|
|
|
520 |
oprot.writeStructBegin('UserCommunicationException')
|
| 3431 |
rajveer |
521 |
if self.id is not None:
|
| 1274 |
varun.gupt |
522 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
523 |
oprot.writeI64(self.id)
|
|
|
524 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
525 |
if self.message is not None:
|
| 1274 |
varun.gupt |
526 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
527 |
oprot.writeString(self.message)
|
|
|
528 |
oprot.writeFieldEnd()
|
|
|
529 |
oprot.writeFieldStop()
|
|
|
530 |
oprot.writeStructEnd()
|
|
|
531 |
|
| 3431 |
rajveer |
532 |
def validate(self):
|
|
|
533 |
return
|
|
|
534 |
|
|
|
535 |
|
| 1274 |
varun.gupt |
536 |
def __str__(self):
|
|
|
537 |
return repr(self)
|
|
|
538 |
|
|
|
539 |
def __repr__(self):
|
|
|
540 |
L = ['%s=%r' % (key, value)
|
|
|
541 |
for key, value in self.__dict__.iteritems()]
|
|
|
542 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
543 |
|
|
|
544 |
def __eq__(self, other):
|
|
|
545 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
546 |
|
|
|
547 |
def __ne__(self, other):
|
|
|
548 |
return not (self == other)
|
|
|
549 |
|
| 1996 |
vikas |
550 |
class UserAffiliateException(Exception):
|
| 1845 |
vikas |
551 |
"""
|
|
|
552 |
Attributes:
|
|
|
553 |
- id
|
|
|
554 |
- message
|
|
|
555 |
"""
|
|
|
556 |
|
|
|
557 |
thrift_spec = (
|
|
|
558 |
None, # 0
|
|
|
559 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
560 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
561 |
)
|
|
|
562 |
|
|
|
563 |
def __init__(self, id=None, message=None,):
|
|
|
564 |
self.id = id
|
|
|
565 |
self.message = message
|
|
|
566 |
|
|
|
567 |
def read(self, iprot):
|
|
|
568 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
569 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
570 |
return
|
|
|
571 |
iprot.readStructBegin()
|
|
|
572 |
while True:
|
|
|
573 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
574 |
if ftype == TType.STOP:
|
|
|
575 |
break
|
|
|
576 |
if fid == 1:
|
|
|
577 |
if ftype == TType.I64:
|
|
|
578 |
self.id = iprot.readI64();
|
|
|
579 |
else:
|
|
|
580 |
iprot.skip(ftype)
|
|
|
581 |
elif fid == 2:
|
|
|
582 |
if ftype == TType.STRING:
|
|
|
583 |
self.message = iprot.readString();
|
|
|
584 |
else:
|
|
|
585 |
iprot.skip(ftype)
|
|
|
586 |
else:
|
|
|
587 |
iprot.skip(ftype)
|
|
|
588 |
iprot.readFieldEnd()
|
|
|
589 |
iprot.readStructEnd()
|
|
|
590 |
|
|
|
591 |
def write(self, oprot):
|
|
|
592 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
593 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
594 |
return
|
| 1996 |
vikas |
595 |
oprot.writeStructBegin('UserAffiliateException')
|
| 3431 |
rajveer |
596 |
if self.id is not None:
|
| 1845 |
vikas |
597 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
598 |
oprot.writeI64(self.id)
|
|
|
599 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
600 |
if self.message is not None:
|
| 1845 |
vikas |
601 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
602 |
oprot.writeString(self.message)
|
|
|
603 |
oprot.writeFieldEnd()
|
|
|
604 |
oprot.writeFieldStop()
|
|
|
605 |
oprot.writeStructEnd()
|
|
|
606 |
|
| 3431 |
rajveer |
607 |
def validate(self):
|
|
|
608 |
return
|
|
|
609 |
|
|
|
610 |
|
| 1845 |
vikas |
611 |
def __str__(self):
|
|
|
612 |
return repr(self)
|
|
|
613 |
|
|
|
614 |
def __repr__(self):
|
|
|
615 |
L = ['%s=%r' % (key, value)
|
|
|
616 |
for key, value in self.__dict__.iteritems()]
|
|
|
617 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
618 |
|
|
|
619 |
def __eq__(self, other):
|
|
|
620 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
621 |
|
|
|
622 |
def __ne__(self, other):
|
|
|
623 |
return not (self == other)
|
|
|
624 |
|
| 122 |
ashish |
625 |
class Address:
|
| 94 |
ashish |
626 |
"""
|
| 122 |
ashish |
627 |
Address
|
| 3431 |
rajveer |
628 |
|
| 94 |
ashish |
629 |
Attributes:
|
| 559 |
chandransh |
630 |
- id
|
| 94 |
ashish |
631 |
- line1
|
|
|
632 |
- line2
|
|
|
633 |
- landmark
|
|
|
634 |
- city
|
|
|
635 |
- state
|
|
|
636 |
- pin
|
|
|
637 |
- country
|
|
|
638 |
- enabled
|
|
|
639 |
- type
|
|
|
640 |
- addedOn
|
| 414 |
ashish |
641 |
- name
|
|
|
642 |
- phone
|
| 18735 |
manish.sha |
643 |
- taxInvoiceAvailable
|
|
|
644 |
- creditOptionAvailable
|
| 94 |
ashish |
645 |
"""
|
|
|
646 |
|
|
|
647 |
thrift_spec = (
|
|
|
648 |
None, # 0
|
| 559 |
chandransh |
649 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
650 |
(2, TType.STRING, 'line1', None, None, ), # 2
|
|
|
651 |
(3, TType.STRING, 'line2', None, None, ), # 3
|
|
|
652 |
(4, TType.STRING, 'landmark', None, None, ), # 4
|
|
|
653 |
(5, TType.STRING, 'city', None, None, ), # 5
|
|
|
654 |
(6, TType.STRING, 'state', None, None, ), # 6
|
|
|
655 |
(7, TType.STRING, 'pin', None, None, ), # 7
|
|
|
656 |
(8, TType.STRING, 'country', None, None, ), # 8
|
| 94 |
ashish |
657 |
(9, TType.BOOL, 'enabled', None, None, ), # 9
|
|
|
658 |
(10, TType.I32, 'type', None, None, ), # 10
|
|
|
659 |
(11, TType.I64, 'addedOn', None, None, ), # 11
|
| 414 |
ashish |
660 |
(12, TType.STRING, 'name', None, None, ), # 12
|
|
|
661 |
(13, TType.STRING, 'phone', None, None, ), # 13
|
| 18735 |
manish.sha |
662 |
(14, TType.BOOL, 'taxInvoiceAvailable', None, None, ), # 14
|
|
|
663 |
(15, TType.BOOL, 'creditOptionAvailable', None, None, ), # 15
|
| 94 |
ashish |
664 |
)
|
|
|
665 |
|
| 18735 |
manish.sha |
666 |
def __init__(self, id=None, line1=None, line2=None, landmark=None, city=None, state=None, pin=None, country=None, enabled=None, type=None, addedOn=None, name=None, phone=None, taxInvoiceAvailable=None, creditOptionAvailable=None,):
|
| 559 |
chandransh |
667 |
self.id = id
|
| 94 |
ashish |
668 |
self.line1 = line1
|
|
|
669 |
self.line2 = line2
|
|
|
670 |
self.landmark = landmark
|
|
|
671 |
self.city = city
|
|
|
672 |
self.state = state
|
|
|
673 |
self.pin = pin
|
|
|
674 |
self.country = country
|
|
|
675 |
self.enabled = enabled
|
|
|
676 |
self.type = type
|
|
|
677 |
self.addedOn = addedOn
|
| 414 |
ashish |
678 |
self.name = name
|
|
|
679 |
self.phone = phone
|
| 18735 |
manish.sha |
680 |
self.taxInvoiceAvailable = taxInvoiceAvailable
|
|
|
681 |
self.creditOptionAvailable = creditOptionAvailable
|
| 94 |
ashish |
682 |
|
|
|
683 |
def read(self, iprot):
|
|
|
684 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
685 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
686 |
return
|
|
|
687 |
iprot.readStructBegin()
|
|
|
688 |
while True:
|
|
|
689 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
690 |
if ftype == TType.STOP:
|
|
|
691 |
break
|
|
|
692 |
if fid == 1:
|
| 559 |
chandransh |
693 |
if ftype == TType.I64:
|
|
|
694 |
self.id = iprot.readI64();
|
| 94 |
ashish |
695 |
else:
|
|
|
696 |
iprot.skip(ftype)
|
|
|
697 |
elif fid == 2:
|
|
|
698 |
if ftype == TType.STRING:
|
| 559 |
chandransh |
699 |
self.line1 = iprot.readString();
|
| 94 |
ashish |
700 |
else:
|
|
|
701 |
iprot.skip(ftype)
|
|
|
702 |
elif fid == 3:
|
|
|
703 |
if ftype == TType.STRING:
|
| 559 |
chandransh |
704 |
self.line2 = iprot.readString();
|
| 94 |
ashish |
705 |
else:
|
|
|
706 |
iprot.skip(ftype)
|
|
|
707 |
elif fid == 4:
|
|
|
708 |
if ftype == TType.STRING:
|
| 559 |
chandransh |
709 |
self.landmark = iprot.readString();
|
| 94 |
ashish |
710 |
else:
|
|
|
711 |
iprot.skip(ftype)
|
|
|
712 |
elif fid == 5:
|
|
|
713 |
if ftype == TType.STRING:
|
| 559 |
chandransh |
714 |
self.city = iprot.readString();
|
| 94 |
ashish |
715 |
else:
|
|
|
716 |
iprot.skip(ftype)
|
|
|
717 |
elif fid == 6:
|
|
|
718 |
if ftype == TType.STRING:
|
| 559 |
chandransh |
719 |
self.state = iprot.readString();
|
| 94 |
ashish |
720 |
else:
|
|
|
721 |
iprot.skip(ftype)
|
|
|
722 |
elif fid == 7:
|
|
|
723 |
if ftype == TType.STRING:
|
| 559 |
chandransh |
724 |
self.pin = iprot.readString();
|
| 94 |
ashish |
725 |
else:
|
|
|
726 |
iprot.skip(ftype)
|
|
|
727 |
elif fid == 8:
|
| 559 |
chandransh |
728 |
if ftype == TType.STRING:
|
|
|
729 |
self.country = iprot.readString();
|
| 94 |
ashish |
730 |
else:
|
|
|
731 |
iprot.skip(ftype)
|
|
|
732 |
elif fid == 9:
|
|
|
733 |
if ftype == TType.BOOL:
|
|
|
734 |
self.enabled = iprot.readBool();
|
|
|
735 |
else:
|
|
|
736 |
iprot.skip(ftype)
|
|
|
737 |
elif fid == 10:
|
|
|
738 |
if ftype == TType.I32:
|
|
|
739 |
self.type = iprot.readI32();
|
|
|
740 |
else:
|
|
|
741 |
iprot.skip(ftype)
|
|
|
742 |
elif fid == 11:
|
|
|
743 |
if ftype == TType.I64:
|
|
|
744 |
self.addedOn = iprot.readI64();
|
|
|
745 |
else:
|
|
|
746 |
iprot.skip(ftype)
|
| 414 |
ashish |
747 |
elif fid == 12:
|
|
|
748 |
if ftype == TType.STRING:
|
|
|
749 |
self.name = iprot.readString();
|
|
|
750 |
else:
|
|
|
751 |
iprot.skip(ftype)
|
|
|
752 |
elif fid == 13:
|
|
|
753 |
if ftype == TType.STRING:
|
|
|
754 |
self.phone = iprot.readString();
|
|
|
755 |
else:
|
|
|
756 |
iprot.skip(ftype)
|
| 18735 |
manish.sha |
757 |
elif fid == 14:
|
|
|
758 |
if ftype == TType.BOOL:
|
|
|
759 |
self.taxInvoiceAvailable = iprot.readBool();
|
|
|
760 |
else:
|
|
|
761 |
iprot.skip(ftype)
|
|
|
762 |
elif fid == 15:
|
|
|
763 |
if ftype == TType.BOOL:
|
|
|
764 |
self.creditOptionAvailable = iprot.readBool();
|
|
|
765 |
else:
|
|
|
766 |
iprot.skip(ftype)
|
| 94 |
ashish |
767 |
else:
|
|
|
768 |
iprot.skip(ftype)
|
|
|
769 |
iprot.readFieldEnd()
|
|
|
770 |
iprot.readStructEnd()
|
|
|
771 |
|
|
|
772 |
def write(self, oprot):
|
|
|
773 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
774 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
775 |
return
|
| 122 |
ashish |
776 |
oprot.writeStructBegin('Address')
|
| 3431 |
rajveer |
777 |
if self.id is not None:
|
| 559 |
chandransh |
778 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
779 |
oprot.writeI64(self.id)
|
|
|
780 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
781 |
if self.line1 is not None:
|
| 559 |
chandransh |
782 |
oprot.writeFieldBegin('line1', TType.STRING, 2)
|
| 94 |
ashish |
783 |
oprot.writeString(self.line1)
|
|
|
784 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
785 |
if self.line2 is not None:
|
| 559 |
chandransh |
786 |
oprot.writeFieldBegin('line2', TType.STRING, 3)
|
| 94 |
ashish |
787 |
oprot.writeString(self.line2)
|
|
|
788 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
789 |
if self.landmark is not None:
|
| 559 |
chandransh |
790 |
oprot.writeFieldBegin('landmark', TType.STRING, 4)
|
| 94 |
ashish |
791 |
oprot.writeString(self.landmark)
|
|
|
792 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
793 |
if self.city is not None:
|
| 559 |
chandransh |
794 |
oprot.writeFieldBegin('city', TType.STRING, 5)
|
| 94 |
ashish |
795 |
oprot.writeString(self.city)
|
|
|
796 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
797 |
if self.state is not None:
|
| 559 |
chandransh |
798 |
oprot.writeFieldBegin('state', TType.STRING, 6)
|
| 94 |
ashish |
799 |
oprot.writeString(self.state)
|
|
|
800 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
801 |
if self.pin is not None:
|
| 559 |
chandransh |
802 |
oprot.writeFieldBegin('pin', TType.STRING, 7)
|
| 94 |
ashish |
803 |
oprot.writeString(self.pin)
|
|
|
804 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
805 |
if self.country is not None:
|
| 559 |
chandransh |
806 |
oprot.writeFieldBegin('country', TType.STRING, 8)
|
| 94 |
ashish |
807 |
oprot.writeString(self.country)
|
|
|
808 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
809 |
if self.enabled is not None:
|
| 94 |
ashish |
810 |
oprot.writeFieldBegin('enabled', TType.BOOL, 9)
|
|
|
811 |
oprot.writeBool(self.enabled)
|
|
|
812 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
813 |
if self.type is not None:
|
| 94 |
ashish |
814 |
oprot.writeFieldBegin('type', TType.I32, 10)
|
|
|
815 |
oprot.writeI32(self.type)
|
|
|
816 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
817 |
if self.addedOn is not None:
|
| 94 |
ashish |
818 |
oprot.writeFieldBegin('addedOn', TType.I64, 11)
|
|
|
819 |
oprot.writeI64(self.addedOn)
|
|
|
820 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
821 |
if self.name is not None:
|
| 414 |
ashish |
822 |
oprot.writeFieldBegin('name', TType.STRING, 12)
|
|
|
823 |
oprot.writeString(self.name)
|
|
|
824 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
825 |
if self.phone is not None:
|
| 414 |
ashish |
826 |
oprot.writeFieldBegin('phone', TType.STRING, 13)
|
|
|
827 |
oprot.writeString(self.phone)
|
|
|
828 |
oprot.writeFieldEnd()
|
| 18735 |
manish.sha |
829 |
if self.taxInvoiceAvailable is not None:
|
|
|
830 |
oprot.writeFieldBegin('taxInvoiceAvailable', TType.BOOL, 14)
|
|
|
831 |
oprot.writeBool(self.taxInvoiceAvailable)
|
|
|
832 |
oprot.writeFieldEnd()
|
|
|
833 |
if self.creditOptionAvailable is not None:
|
|
|
834 |
oprot.writeFieldBegin('creditOptionAvailable', TType.BOOL, 15)
|
|
|
835 |
oprot.writeBool(self.creditOptionAvailable)
|
|
|
836 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
837 |
oprot.writeFieldStop()
|
|
|
838 |
oprot.writeStructEnd()
|
|
|
839 |
|
| 3431 |
rajveer |
840 |
def validate(self):
|
|
|
841 |
return
|
|
|
842 |
|
|
|
843 |
|
| 94 |
ashish |
844 |
def __repr__(self):
|
|
|
845 |
L = ['%s=%r' % (key, value)
|
|
|
846 |
for key, value in self.__dict__.iteritems()]
|
|
|
847 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
848 |
|
|
|
849 |
def __eq__(self, other):
|
|
|
850 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
851 |
|
|
|
852 |
def __ne__(self, other):
|
|
|
853 |
return not (self == other)
|
|
|
854 |
|
| 559 |
chandransh |
855 |
class User:
|
| 94 |
ashish |
856 |
"""
|
| 559 |
chandransh |
857 |
The user structure holding the basic information that identifies the user.
|
| 122 |
ashish |
858 |
*
|
| 3431 |
rajveer |
859 |
|
| 94 |
ashish |
860 |
Attributes:
|
| 559 |
chandransh |
861 |
- userId
|
|
|
862 |
- email
|
|
|
863 |
- password
|
|
|
864 |
- name
|
|
|
865 |
- dateOfBirth
|
|
|
866 |
- sex
|
| 567 |
rajveer |
867 |
- mobileNumber
|
| 5326 |
rajveer |
868 |
- lastLogin
|
|
|
869 |
- lastLogout
|
|
|
870 |
- activeSince
|
| 559 |
chandransh |
871 |
- addresses
|
|
|
872 |
- defaultAddressId
|
|
|
873 |
- communicationEmail
|
|
|
874 |
- activeCartId
|
|
|
875 |
- jsessionId
|
|
|
876 |
- isAnonymous
|
| 2020 |
vikas |
877 |
- source
|
| 2815 |
vikas |
878 |
- sourceStartTime
|
| 3499 |
mandeep.dh |
879 |
- trustLevel
|
| 7825 |
amar.kumar |
880 |
- isFacebookUser
|
|
|
881 |
- facebookAccessToken
|
|
|
882 |
- facebookId
|
| 8201 |
rajveer |
883 |
- sourceId
|
| 559 |
chandransh |
884 |
"""
|
|
|
885 |
|
|
|
886 |
thrift_spec = (
|
|
|
887 |
None, # 0
|
|
|
888 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
889 |
(2, TType.STRING, 'email', None, None, ), # 2
|
|
|
890 |
(3, TType.STRING, 'password', None, None, ), # 3
|
|
|
891 |
(4, TType.STRING, 'name', None, None, ), # 4
|
| 567 |
rajveer |
892 |
(5, TType.STRING, 'dateOfBirth', None, None, ), # 5
|
| 559 |
chandransh |
893 |
(6, TType.I32, 'sex', None, None, ), # 6
|
| 567 |
rajveer |
894 |
(7, TType.STRING, 'mobileNumber', None, None, ), # 7
|
| 5326 |
rajveer |
895 |
(8, TType.I64, 'lastLogin', None, None, ), # 8
|
|
|
896 |
(9, TType.I64, 'lastLogout', None, None, ), # 9
|
|
|
897 |
(10, TType.I64, 'activeSince', None, None, ), # 10
|
|
|
898 |
(11, TType.LIST, 'addresses', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 11
|
|
|
899 |
(12, TType.I64, 'defaultAddressId', None, None, ), # 12
|
|
|
900 |
(13, TType.STRING, 'communicationEmail', None, None, ), # 13
|
|
|
901 |
(14, TType.I64, 'activeCartId', None, None, ), # 14
|
|
|
902 |
(15, TType.STRING, 'jsessionId', None, None, ), # 15
|
|
|
903 |
(16, TType.BOOL, 'isAnonymous', None, None, ), # 16
|
|
|
904 |
(17, TType.STRING, 'source', None, None, ), # 17
|
|
|
905 |
(18, TType.I64, 'sourceStartTime', None, None, ), # 18
|
|
|
906 |
(19, TType.DOUBLE, 'trustLevel', None, None, ), # 19
|
| 7825 |
amar.kumar |
907 |
(20, TType.BOOL, 'isFacebookUser', None, None, ), # 20
|
|
|
908 |
(21, TType.STRING, 'facebookAccessToken', None, None, ), # 21
|
|
|
909 |
(22, TType.STRING, 'facebookId', None, None, ), # 22
|
| 8201 |
rajveer |
910 |
(23, TType.I64, 'sourceId', None, None, ), # 23
|
| 559 |
chandransh |
911 |
)
|
|
|
912 |
|
| 8201 |
rajveer |
913 |
def __init__(self, userId=None, email=None, password=None, name=None, dateOfBirth=None, sex=None, mobileNumber=None, lastLogin=None, lastLogout=None, activeSince=None, addresses=None, defaultAddressId=None, communicationEmail=None, activeCartId=None, jsessionId=None, isAnonymous=None, source=None, sourceStartTime=None, trustLevel=None, isFacebookUser=None, facebookAccessToken=None, facebookId=None, sourceId=None,):
|
| 559 |
chandransh |
914 |
self.userId = userId
|
|
|
915 |
self.email = email
|
|
|
916 |
self.password = password
|
|
|
917 |
self.name = name
|
|
|
918 |
self.dateOfBirth = dateOfBirth
|
|
|
919 |
self.sex = sex
|
| 567 |
rajveer |
920 |
self.mobileNumber = mobileNumber
|
| 5326 |
rajveer |
921 |
self.lastLogin = lastLogin
|
|
|
922 |
self.lastLogout = lastLogout
|
|
|
923 |
self.activeSince = activeSince
|
| 559 |
chandransh |
924 |
self.addresses = addresses
|
|
|
925 |
self.defaultAddressId = defaultAddressId
|
|
|
926 |
self.communicationEmail = communicationEmail
|
|
|
927 |
self.activeCartId = activeCartId
|
|
|
928 |
self.jsessionId = jsessionId
|
|
|
929 |
self.isAnonymous = isAnonymous
|
| 2020 |
vikas |
930 |
self.source = source
|
| 2815 |
vikas |
931 |
self.sourceStartTime = sourceStartTime
|
| 3499 |
mandeep.dh |
932 |
self.trustLevel = trustLevel
|
| 7825 |
amar.kumar |
933 |
self.isFacebookUser = isFacebookUser
|
|
|
934 |
self.facebookAccessToken = facebookAccessToken
|
|
|
935 |
self.facebookId = facebookId
|
| 8201 |
rajveer |
936 |
self.sourceId = sourceId
|
| 559 |
chandransh |
937 |
|
|
|
938 |
def read(self, iprot):
|
|
|
939 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
940 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
941 |
return
|
|
|
942 |
iprot.readStructBegin()
|
|
|
943 |
while True:
|
|
|
944 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
945 |
if ftype == TType.STOP:
|
|
|
946 |
break
|
|
|
947 |
if fid == 1:
|
|
|
948 |
if ftype == TType.I64:
|
|
|
949 |
self.userId = iprot.readI64();
|
|
|
950 |
else:
|
|
|
951 |
iprot.skip(ftype)
|
|
|
952 |
elif fid == 2:
|
|
|
953 |
if ftype == TType.STRING:
|
|
|
954 |
self.email = iprot.readString();
|
|
|
955 |
else:
|
|
|
956 |
iprot.skip(ftype)
|
|
|
957 |
elif fid == 3:
|
|
|
958 |
if ftype == TType.STRING:
|
|
|
959 |
self.password = iprot.readString();
|
|
|
960 |
else:
|
|
|
961 |
iprot.skip(ftype)
|
|
|
962 |
elif fid == 4:
|
|
|
963 |
if ftype == TType.STRING:
|
|
|
964 |
self.name = iprot.readString();
|
|
|
965 |
else:
|
|
|
966 |
iprot.skip(ftype)
|
|
|
967 |
elif fid == 5:
|
| 567 |
rajveer |
968 |
if ftype == TType.STRING:
|
|
|
969 |
self.dateOfBirth = iprot.readString();
|
| 559 |
chandransh |
970 |
else:
|
|
|
971 |
iprot.skip(ftype)
|
|
|
972 |
elif fid == 6:
|
|
|
973 |
if ftype == TType.I32:
|
|
|
974 |
self.sex = iprot.readI32();
|
|
|
975 |
else:
|
|
|
976 |
iprot.skip(ftype)
|
|
|
977 |
elif fid == 7:
|
| 567 |
rajveer |
978 |
if ftype == TType.STRING:
|
|
|
979 |
self.mobileNumber = iprot.readString();
|
| 559 |
chandransh |
980 |
else:
|
|
|
981 |
iprot.skip(ftype)
|
|
|
982 |
elif fid == 8:
|
| 5326 |
rajveer |
983 |
if ftype == TType.I64:
|
|
|
984 |
self.lastLogin = iprot.readI64();
|
| 559 |
chandransh |
985 |
else:
|
|
|
986 |
iprot.skip(ftype)
|
|
|
987 |
elif fid == 9:
|
| 5326 |
rajveer |
988 |
if ftype == TType.I64:
|
|
|
989 |
self.lastLogout = iprot.readI64();
|
|
|
990 |
else:
|
|
|
991 |
iprot.skip(ftype)
|
|
|
992 |
elif fid == 10:
|
|
|
993 |
if ftype == TType.I64:
|
|
|
994 |
self.activeSince = iprot.readI64();
|
|
|
995 |
else:
|
|
|
996 |
iprot.skip(ftype)
|
|
|
997 |
elif fid == 11:
|
| 559 |
chandransh |
998 |
if ftype == TType.LIST:
|
|
|
999 |
self.addresses = []
|
| 5326 |
rajveer |
1000 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
1001 |
for _i4 in xrange(_size0):
|
|
|
1002 |
_elem5 = Address()
|
|
|
1003 |
_elem5.read(iprot)
|
|
|
1004 |
self.addresses.append(_elem5)
|
| 559 |
chandransh |
1005 |
iprot.readListEnd()
|
|
|
1006 |
else:
|
|
|
1007 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1008 |
elif fid == 12:
|
| 559 |
chandransh |
1009 |
if ftype == TType.I64:
|
|
|
1010 |
self.defaultAddressId = iprot.readI64();
|
|
|
1011 |
else:
|
|
|
1012 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1013 |
elif fid == 13:
|
| 559 |
chandransh |
1014 |
if ftype == TType.STRING:
|
|
|
1015 |
self.communicationEmail = iprot.readString();
|
|
|
1016 |
else:
|
|
|
1017 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1018 |
elif fid == 14:
|
| 559 |
chandransh |
1019 |
if ftype == TType.I64:
|
|
|
1020 |
self.activeCartId = iprot.readI64();
|
|
|
1021 |
else:
|
|
|
1022 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1023 |
elif fid == 15:
|
| 559 |
chandransh |
1024 |
if ftype == TType.STRING:
|
|
|
1025 |
self.jsessionId = iprot.readString();
|
|
|
1026 |
else:
|
|
|
1027 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1028 |
elif fid == 16:
|
| 559 |
chandransh |
1029 |
if ftype == TType.BOOL:
|
|
|
1030 |
self.isAnonymous = iprot.readBool();
|
|
|
1031 |
else:
|
|
|
1032 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1033 |
elif fid == 17:
|
| 2020 |
vikas |
1034 |
if ftype == TType.STRING:
|
|
|
1035 |
self.source = iprot.readString();
|
|
|
1036 |
else:
|
|
|
1037 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1038 |
elif fid == 18:
|
| 2815 |
vikas |
1039 |
if ftype == TType.I64:
|
|
|
1040 |
self.sourceStartTime = iprot.readI64();
|
|
|
1041 |
else:
|
|
|
1042 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
1043 |
elif fid == 19:
|
| 3499 |
mandeep.dh |
1044 |
if ftype == TType.DOUBLE:
|
|
|
1045 |
self.trustLevel = iprot.readDouble();
|
|
|
1046 |
else:
|
|
|
1047 |
iprot.skip(ftype)
|
| 7825 |
amar.kumar |
1048 |
elif fid == 20:
|
|
|
1049 |
if ftype == TType.BOOL:
|
|
|
1050 |
self.isFacebookUser = iprot.readBool();
|
|
|
1051 |
else:
|
|
|
1052 |
iprot.skip(ftype)
|
|
|
1053 |
elif fid == 21:
|
|
|
1054 |
if ftype == TType.STRING:
|
|
|
1055 |
self.facebookAccessToken = iprot.readString();
|
|
|
1056 |
else:
|
|
|
1057 |
iprot.skip(ftype)
|
|
|
1058 |
elif fid == 22:
|
|
|
1059 |
if ftype == TType.STRING:
|
|
|
1060 |
self.facebookId = iprot.readString();
|
|
|
1061 |
else:
|
|
|
1062 |
iprot.skip(ftype)
|
| 8201 |
rajveer |
1063 |
elif fid == 23:
|
|
|
1064 |
if ftype == TType.I64:
|
|
|
1065 |
self.sourceId = iprot.readI64();
|
|
|
1066 |
else:
|
|
|
1067 |
iprot.skip(ftype)
|
| 559 |
chandransh |
1068 |
else:
|
|
|
1069 |
iprot.skip(ftype)
|
|
|
1070 |
iprot.readFieldEnd()
|
|
|
1071 |
iprot.readStructEnd()
|
|
|
1072 |
|
|
|
1073 |
def write(self, oprot):
|
|
|
1074 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1075 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1076 |
return
|
|
|
1077 |
oprot.writeStructBegin('User')
|
| 3431 |
rajveer |
1078 |
if self.userId is not None:
|
| 559 |
chandransh |
1079 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1080 |
oprot.writeI64(self.userId)
|
|
|
1081 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1082 |
if self.email is not None:
|
| 559 |
chandransh |
1083 |
oprot.writeFieldBegin('email', TType.STRING, 2)
|
|
|
1084 |
oprot.writeString(self.email)
|
|
|
1085 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1086 |
if self.password is not None:
|
| 559 |
chandransh |
1087 |
oprot.writeFieldBegin('password', TType.STRING, 3)
|
|
|
1088 |
oprot.writeString(self.password)
|
|
|
1089 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1090 |
if self.name is not None:
|
| 559 |
chandransh |
1091 |
oprot.writeFieldBegin('name', TType.STRING, 4)
|
|
|
1092 |
oprot.writeString(self.name)
|
|
|
1093 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1094 |
if self.dateOfBirth is not None:
|
| 567 |
rajveer |
1095 |
oprot.writeFieldBegin('dateOfBirth', TType.STRING, 5)
|
|
|
1096 |
oprot.writeString(self.dateOfBirth)
|
| 559 |
chandransh |
1097 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1098 |
if self.sex is not None:
|
| 559 |
chandransh |
1099 |
oprot.writeFieldBegin('sex', TType.I32, 6)
|
|
|
1100 |
oprot.writeI32(self.sex)
|
|
|
1101 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1102 |
if self.mobileNumber is not None:
|
| 567 |
rajveer |
1103 |
oprot.writeFieldBegin('mobileNumber', TType.STRING, 7)
|
|
|
1104 |
oprot.writeString(self.mobileNumber)
|
| 559 |
chandransh |
1105 |
oprot.writeFieldEnd()
|
| 5326 |
rajveer |
1106 |
if self.lastLogin is not None:
|
|
|
1107 |
oprot.writeFieldBegin('lastLogin', TType.I64, 8)
|
|
|
1108 |
oprot.writeI64(self.lastLogin)
|
| 559 |
chandransh |
1109 |
oprot.writeFieldEnd()
|
| 5326 |
rajveer |
1110 |
if self.lastLogout is not None:
|
|
|
1111 |
oprot.writeFieldBegin('lastLogout', TType.I64, 9)
|
|
|
1112 |
oprot.writeI64(self.lastLogout)
|
|
|
1113 |
oprot.writeFieldEnd()
|
|
|
1114 |
if self.activeSince is not None:
|
|
|
1115 |
oprot.writeFieldBegin('activeSince', TType.I64, 10)
|
|
|
1116 |
oprot.writeI64(self.activeSince)
|
|
|
1117 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1118 |
if self.addresses is not None:
|
| 5326 |
rajveer |
1119 |
oprot.writeFieldBegin('addresses', TType.LIST, 11)
|
| 559 |
chandransh |
1120 |
oprot.writeListBegin(TType.STRUCT, len(self.addresses))
|
| 5326 |
rajveer |
1121 |
for iter6 in self.addresses:
|
|
|
1122 |
iter6.write(oprot)
|
| 559 |
chandransh |
1123 |
oprot.writeListEnd()
|
|
|
1124 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1125 |
if self.defaultAddressId is not None:
|
| 5326 |
rajveer |
1126 |
oprot.writeFieldBegin('defaultAddressId', TType.I64, 12)
|
| 559 |
chandransh |
1127 |
oprot.writeI64(self.defaultAddressId)
|
|
|
1128 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1129 |
if self.communicationEmail is not None:
|
| 5326 |
rajveer |
1130 |
oprot.writeFieldBegin('communicationEmail', TType.STRING, 13)
|
| 559 |
chandransh |
1131 |
oprot.writeString(self.communicationEmail)
|
|
|
1132 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1133 |
if self.activeCartId is not None:
|
| 5326 |
rajveer |
1134 |
oprot.writeFieldBegin('activeCartId', TType.I64, 14)
|
| 559 |
chandransh |
1135 |
oprot.writeI64(self.activeCartId)
|
|
|
1136 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1137 |
if self.jsessionId is not None:
|
| 5326 |
rajveer |
1138 |
oprot.writeFieldBegin('jsessionId', TType.STRING, 15)
|
| 559 |
chandransh |
1139 |
oprot.writeString(self.jsessionId)
|
|
|
1140 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1141 |
if self.isAnonymous is not None:
|
| 5326 |
rajveer |
1142 |
oprot.writeFieldBegin('isAnonymous', TType.BOOL, 16)
|
| 559 |
chandransh |
1143 |
oprot.writeBool(self.isAnonymous)
|
|
|
1144 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1145 |
if self.source is not None:
|
| 5326 |
rajveer |
1146 |
oprot.writeFieldBegin('source', TType.STRING, 17)
|
| 2020 |
vikas |
1147 |
oprot.writeString(self.source)
|
|
|
1148 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1149 |
if self.sourceStartTime is not None:
|
| 5326 |
rajveer |
1150 |
oprot.writeFieldBegin('sourceStartTime', TType.I64, 18)
|
| 2815 |
vikas |
1151 |
oprot.writeI64(self.sourceStartTime)
|
|
|
1152 |
oprot.writeFieldEnd()
|
| 3499 |
mandeep.dh |
1153 |
if self.trustLevel is not None:
|
| 5326 |
rajveer |
1154 |
oprot.writeFieldBegin('trustLevel', TType.DOUBLE, 19)
|
| 3499 |
mandeep.dh |
1155 |
oprot.writeDouble(self.trustLevel)
|
|
|
1156 |
oprot.writeFieldEnd()
|
| 7825 |
amar.kumar |
1157 |
if self.isFacebookUser is not None:
|
|
|
1158 |
oprot.writeFieldBegin('isFacebookUser', TType.BOOL, 20)
|
|
|
1159 |
oprot.writeBool(self.isFacebookUser)
|
|
|
1160 |
oprot.writeFieldEnd()
|
|
|
1161 |
if self.facebookAccessToken is not None:
|
|
|
1162 |
oprot.writeFieldBegin('facebookAccessToken', TType.STRING, 21)
|
|
|
1163 |
oprot.writeString(self.facebookAccessToken)
|
|
|
1164 |
oprot.writeFieldEnd()
|
|
|
1165 |
if self.facebookId is not None:
|
|
|
1166 |
oprot.writeFieldBegin('facebookId', TType.STRING, 22)
|
|
|
1167 |
oprot.writeString(self.facebookId)
|
|
|
1168 |
oprot.writeFieldEnd()
|
| 8201 |
rajveer |
1169 |
if self.sourceId is not None:
|
|
|
1170 |
oprot.writeFieldBegin('sourceId', TType.I64, 23)
|
|
|
1171 |
oprot.writeI64(self.sourceId)
|
|
|
1172 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
1173 |
oprot.writeFieldStop()
|
|
|
1174 |
oprot.writeStructEnd()
|
|
|
1175 |
|
| 3431 |
rajveer |
1176 |
def validate(self):
|
|
|
1177 |
return
|
|
|
1178 |
|
|
|
1179 |
|
| 559 |
chandransh |
1180 |
def __repr__(self):
|
|
|
1181 |
L = ['%s=%r' % (key, value)
|
|
|
1182 |
for key, value in self.__dict__.iteritems()]
|
|
|
1183 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1184 |
|
|
|
1185 |
def __eq__(self, other):
|
|
|
1186 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1187 |
|
|
|
1188 |
def __ne__(self, other):
|
|
|
1189 |
return not (self == other)
|
|
|
1190 |
|
| 1274 |
varun.gupt |
1191 |
class UserCommunication:
|
|
|
1192 |
"""
|
|
|
1193 |
Attributes:
|
|
|
1194 |
- id
|
|
|
1195 |
- userId
|
|
|
1196 |
- communicationType
|
|
|
1197 |
- orderId
|
|
|
1198 |
- airwaybillNo
|
|
|
1199 |
- replyTo
|
|
|
1200 |
- productName
|
|
|
1201 |
- subject
|
|
|
1202 |
- message
|
| 1303 |
varun.gupt |
1203 |
- communication_timestamp
|
| 1274 |
varun.gupt |
1204 |
"""
|
|
|
1205 |
|
|
|
1206 |
thrift_spec = (
|
|
|
1207 |
None, # 0
|
|
|
1208 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1209 |
(2, TType.I64, 'userId', None, None, ), # 2
|
|
|
1210 |
(3, TType.I32, 'communicationType', None, None, ), # 3
|
|
|
1211 |
(4, TType.I64, 'orderId', None, None, ), # 4
|
|
|
1212 |
(5, TType.STRING, 'airwaybillNo', None, None, ), # 5
|
|
|
1213 |
(6, TType.STRING, 'replyTo', None, None, ), # 6
|
|
|
1214 |
(7, TType.STRING, 'productName', None, None, ), # 7
|
|
|
1215 |
(8, TType.STRING, 'subject', None, None, ), # 8
|
|
|
1216 |
(9, TType.STRING, 'message', None, None, ), # 9
|
| 1303 |
varun.gupt |
1217 |
(10, TType.I64, 'communication_timestamp', None, None, ), # 10
|
| 1274 |
varun.gupt |
1218 |
)
|
|
|
1219 |
|
| 1303 |
varun.gupt |
1220 |
def __init__(self, id=None, userId=None, communicationType=None, orderId=None, airwaybillNo=None, replyTo=None, productName=None, subject=None, message=None, communication_timestamp=None,):
|
| 1274 |
varun.gupt |
1221 |
self.id = id
|
|
|
1222 |
self.userId = userId
|
|
|
1223 |
self.communicationType = communicationType
|
|
|
1224 |
self.orderId = orderId
|
|
|
1225 |
self.airwaybillNo = airwaybillNo
|
|
|
1226 |
self.replyTo = replyTo
|
|
|
1227 |
self.productName = productName
|
|
|
1228 |
self.subject = subject
|
|
|
1229 |
self.message = message
|
| 1303 |
varun.gupt |
1230 |
self.communication_timestamp = communication_timestamp
|
| 1274 |
varun.gupt |
1231 |
|
|
|
1232 |
def read(self, iprot):
|
|
|
1233 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1234 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1235 |
return
|
|
|
1236 |
iprot.readStructBegin()
|
|
|
1237 |
while True:
|
|
|
1238 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1239 |
if ftype == TType.STOP:
|
|
|
1240 |
break
|
|
|
1241 |
if fid == 1:
|
|
|
1242 |
if ftype == TType.I64:
|
|
|
1243 |
self.id = iprot.readI64();
|
|
|
1244 |
else:
|
|
|
1245 |
iprot.skip(ftype)
|
|
|
1246 |
elif fid == 2:
|
|
|
1247 |
if ftype == TType.I64:
|
|
|
1248 |
self.userId = iprot.readI64();
|
|
|
1249 |
else:
|
|
|
1250 |
iprot.skip(ftype)
|
|
|
1251 |
elif fid == 3:
|
|
|
1252 |
if ftype == TType.I32:
|
|
|
1253 |
self.communicationType = iprot.readI32();
|
|
|
1254 |
else:
|
|
|
1255 |
iprot.skip(ftype)
|
|
|
1256 |
elif fid == 4:
|
|
|
1257 |
if ftype == TType.I64:
|
|
|
1258 |
self.orderId = iprot.readI64();
|
|
|
1259 |
else:
|
|
|
1260 |
iprot.skip(ftype)
|
|
|
1261 |
elif fid == 5:
|
|
|
1262 |
if ftype == TType.STRING:
|
|
|
1263 |
self.airwaybillNo = iprot.readString();
|
|
|
1264 |
else:
|
|
|
1265 |
iprot.skip(ftype)
|
|
|
1266 |
elif fid == 6:
|
|
|
1267 |
if ftype == TType.STRING:
|
|
|
1268 |
self.replyTo = iprot.readString();
|
|
|
1269 |
else:
|
|
|
1270 |
iprot.skip(ftype)
|
|
|
1271 |
elif fid == 7:
|
|
|
1272 |
if ftype == TType.STRING:
|
|
|
1273 |
self.productName = iprot.readString();
|
|
|
1274 |
else:
|
|
|
1275 |
iprot.skip(ftype)
|
|
|
1276 |
elif fid == 8:
|
|
|
1277 |
if ftype == TType.STRING:
|
|
|
1278 |
self.subject = iprot.readString();
|
|
|
1279 |
else:
|
|
|
1280 |
iprot.skip(ftype)
|
|
|
1281 |
elif fid == 9:
|
|
|
1282 |
if ftype == TType.STRING:
|
|
|
1283 |
self.message = iprot.readString();
|
|
|
1284 |
else:
|
|
|
1285 |
iprot.skip(ftype)
|
|
|
1286 |
elif fid == 10:
|
|
|
1287 |
if ftype == TType.I64:
|
| 1303 |
varun.gupt |
1288 |
self.communication_timestamp = iprot.readI64();
|
| 1274 |
varun.gupt |
1289 |
else:
|
|
|
1290 |
iprot.skip(ftype)
|
|
|
1291 |
else:
|
|
|
1292 |
iprot.skip(ftype)
|
|
|
1293 |
iprot.readFieldEnd()
|
|
|
1294 |
iprot.readStructEnd()
|
|
|
1295 |
|
|
|
1296 |
def write(self, oprot):
|
|
|
1297 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1298 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1299 |
return
|
|
|
1300 |
oprot.writeStructBegin('UserCommunication')
|
| 3431 |
rajveer |
1301 |
if self.id is not None:
|
| 1274 |
varun.gupt |
1302 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1303 |
oprot.writeI64(self.id)
|
|
|
1304 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1305 |
if self.userId is not None:
|
| 1274 |
varun.gupt |
1306 |
oprot.writeFieldBegin('userId', TType.I64, 2)
|
|
|
1307 |
oprot.writeI64(self.userId)
|
|
|
1308 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1309 |
if self.communicationType is not None:
|
| 1274 |
varun.gupt |
1310 |
oprot.writeFieldBegin('communicationType', TType.I32, 3)
|
|
|
1311 |
oprot.writeI32(self.communicationType)
|
|
|
1312 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1313 |
if self.orderId is not None:
|
| 1274 |
varun.gupt |
1314 |
oprot.writeFieldBegin('orderId', TType.I64, 4)
|
|
|
1315 |
oprot.writeI64(self.orderId)
|
|
|
1316 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1317 |
if self.airwaybillNo is not None:
|
| 1274 |
varun.gupt |
1318 |
oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
|
|
|
1319 |
oprot.writeString(self.airwaybillNo)
|
|
|
1320 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1321 |
if self.replyTo is not None:
|
| 1274 |
varun.gupt |
1322 |
oprot.writeFieldBegin('replyTo', TType.STRING, 6)
|
|
|
1323 |
oprot.writeString(self.replyTo)
|
|
|
1324 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1325 |
if self.productName is not None:
|
| 1274 |
varun.gupt |
1326 |
oprot.writeFieldBegin('productName', TType.STRING, 7)
|
|
|
1327 |
oprot.writeString(self.productName)
|
|
|
1328 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1329 |
if self.subject is not None:
|
| 1274 |
varun.gupt |
1330 |
oprot.writeFieldBegin('subject', TType.STRING, 8)
|
|
|
1331 |
oprot.writeString(self.subject)
|
|
|
1332 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1333 |
if self.message is not None:
|
| 1274 |
varun.gupt |
1334 |
oprot.writeFieldBegin('message', TType.STRING, 9)
|
|
|
1335 |
oprot.writeString(self.message)
|
|
|
1336 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1337 |
if self.communication_timestamp is not None:
|
| 1303 |
varun.gupt |
1338 |
oprot.writeFieldBegin('communication_timestamp', TType.I64, 10)
|
|
|
1339 |
oprot.writeI64(self.communication_timestamp)
|
| 1274 |
varun.gupt |
1340 |
oprot.writeFieldEnd()
|
|
|
1341 |
oprot.writeFieldStop()
|
|
|
1342 |
oprot.writeStructEnd()
|
|
|
1343 |
|
| 3431 |
rajveer |
1344 |
def validate(self):
|
|
|
1345 |
return
|
|
|
1346 |
|
|
|
1347 |
|
| 1274 |
varun.gupt |
1348 |
def __repr__(self):
|
|
|
1349 |
L = ['%s=%r' % (key, value)
|
|
|
1350 |
for key, value in self.__dict__.iteritems()]
|
|
|
1351 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1352 |
|
|
|
1353 |
def __eq__(self, other):
|
|
|
1354 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1355 |
|
|
|
1356 |
def __ne__(self, other):
|
|
|
1357 |
return not (self == other)
|
|
|
1358 |
|
| 1845 |
vikas |
1359 |
class MasterAffiliate:
|
|
|
1360 |
"""
|
|
|
1361 |
Attributes:
|
|
|
1362 |
- id
|
|
|
1363 |
- name
|
| 1859 |
vikas |
1364 |
- addedOn
|
| 1845 |
vikas |
1365 |
"""
|
|
|
1366 |
|
|
|
1367 |
thrift_spec = (
|
|
|
1368 |
None, # 0
|
|
|
1369 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1370 |
(2, TType.STRING, 'name', None, None, ), # 2
|
| 1859 |
vikas |
1371 |
(3, TType.I64, 'addedOn', None, None, ), # 3
|
| 1845 |
vikas |
1372 |
)
|
|
|
1373 |
|
| 1859 |
vikas |
1374 |
def __init__(self, id=None, name=None, addedOn=None,):
|
| 1845 |
vikas |
1375 |
self.id = id
|
|
|
1376 |
self.name = name
|
| 1859 |
vikas |
1377 |
self.addedOn = addedOn
|
| 1845 |
vikas |
1378 |
|
|
|
1379 |
def read(self, iprot):
|
|
|
1380 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1381 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1382 |
return
|
|
|
1383 |
iprot.readStructBegin()
|
|
|
1384 |
while True:
|
|
|
1385 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1386 |
if ftype == TType.STOP:
|
|
|
1387 |
break
|
|
|
1388 |
if fid == 1:
|
|
|
1389 |
if ftype == TType.I64:
|
|
|
1390 |
self.id = iprot.readI64();
|
|
|
1391 |
else:
|
|
|
1392 |
iprot.skip(ftype)
|
|
|
1393 |
elif fid == 2:
|
|
|
1394 |
if ftype == TType.STRING:
|
|
|
1395 |
self.name = iprot.readString();
|
|
|
1396 |
else:
|
|
|
1397 |
iprot.skip(ftype)
|
| 1859 |
vikas |
1398 |
elif fid == 3:
|
|
|
1399 |
if ftype == TType.I64:
|
|
|
1400 |
self.addedOn = iprot.readI64();
|
|
|
1401 |
else:
|
|
|
1402 |
iprot.skip(ftype)
|
| 1845 |
vikas |
1403 |
else:
|
|
|
1404 |
iprot.skip(ftype)
|
|
|
1405 |
iprot.readFieldEnd()
|
|
|
1406 |
iprot.readStructEnd()
|
|
|
1407 |
|
|
|
1408 |
def write(self, oprot):
|
|
|
1409 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1410 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1411 |
return
|
|
|
1412 |
oprot.writeStructBegin('MasterAffiliate')
|
| 3431 |
rajveer |
1413 |
if self.id is not None:
|
| 1845 |
vikas |
1414 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1415 |
oprot.writeI64(self.id)
|
|
|
1416 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1417 |
if self.name is not None:
|
| 1845 |
vikas |
1418 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
1419 |
oprot.writeString(self.name)
|
|
|
1420 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1421 |
if self.addedOn is not None:
|
| 1859 |
vikas |
1422 |
oprot.writeFieldBegin('addedOn', TType.I64, 3)
|
|
|
1423 |
oprot.writeI64(self.addedOn)
|
|
|
1424 |
oprot.writeFieldEnd()
|
| 1845 |
vikas |
1425 |
oprot.writeFieldStop()
|
|
|
1426 |
oprot.writeStructEnd()
|
|
|
1427 |
|
| 3431 |
rajveer |
1428 |
def validate(self):
|
|
|
1429 |
return
|
|
|
1430 |
|
|
|
1431 |
|
| 1845 |
vikas |
1432 |
def __repr__(self):
|
|
|
1433 |
L = ['%s=%r' % (key, value)
|
|
|
1434 |
for key, value in self.__dict__.iteritems()]
|
|
|
1435 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1436 |
|
|
|
1437 |
def __eq__(self, other):
|
|
|
1438 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1439 |
|
|
|
1440 |
def __ne__(self, other):
|
|
|
1441 |
return not (self == other)
|
|
|
1442 |
|
|
|
1443 |
class Affiliate:
|
|
|
1444 |
"""
|
|
|
1445 |
Attributes:
|
|
|
1446 |
- id
|
|
|
1447 |
- name
|
|
|
1448 |
- url
|
|
|
1449 |
- masterAffiliateId
|
| 1859 |
vikas |
1450 |
- addedOn
|
| 1845 |
vikas |
1451 |
"""
|
|
|
1452 |
|
|
|
1453 |
thrift_spec = (
|
|
|
1454 |
None, # 0
|
|
|
1455 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1456 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
1457 |
(3, TType.STRING, 'url', None, None, ), # 3
|
|
|
1458 |
(4, TType.I64, 'masterAffiliateId', None, None, ), # 4
|
| 1859 |
vikas |
1459 |
(5, TType.I64, 'addedOn', None, None, ), # 5
|
| 1845 |
vikas |
1460 |
)
|
|
|
1461 |
|
| 1859 |
vikas |
1462 |
def __init__(self, id=None, name=None, url=None, masterAffiliateId=None, addedOn=None,):
|
| 1845 |
vikas |
1463 |
self.id = id
|
|
|
1464 |
self.name = name
|
|
|
1465 |
self.url = url
|
|
|
1466 |
self.masterAffiliateId = masterAffiliateId
|
| 1859 |
vikas |
1467 |
self.addedOn = addedOn
|
| 1845 |
vikas |
1468 |
|
|
|
1469 |
def read(self, iprot):
|
|
|
1470 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1471 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1472 |
return
|
|
|
1473 |
iprot.readStructBegin()
|
|
|
1474 |
while True:
|
|
|
1475 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1476 |
if ftype == TType.STOP:
|
|
|
1477 |
break
|
|
|
1478 |
if fid == 1:
|
|
|
1479 |
if ftype == TType.I64:
|
|
|
1480 |
self.id = iprot.readI64();
|
|
|
1481 |
else:
|
|
|
1482 |
iprot.skip(ftype)
|
|
|
1483 |
elif fid == 2:
|
|
|
1484 |
if ftype == TType.STRING:
|
|
|
1485 |
self.name = iprot.readString();
|
|
|
1486 |
else:
|
|
|
1487 |
iprot.skip(ftype)
|
|
|
1488 |
elif fid == 3:
|
|
|
1489 |
if ftype == TType.STRING:
|
|
|
1490 |
self.url = iprot.readString();
|
|
|
1491 |
else:
|
|
|
1492 |
iprot.skip(ftype)
|
|
|
1493 |
elif fid == 4:
|
|
|
1494 |
if ftype == TType.I64:
|
|
|
1495 |
self.masterAffiliateId = iprot.readI64();
|
|
|
1496 |
else:
|
|
|
1497 |
iprot.skip(ftype)
|
| 1859 |
vikas |
1498 |
elif fid == 5:
|
|
|
1499 |
if ftype == TType.I64:
|
|
|
1500 |
self.addedOn = iprot.readI64();
|
|
|
1501 |
else:
|
|
|
1502 |
iprot.skip(ftype)
|
| 1845 |
vikas |
1503 |
else:
|
|
|
1504 |
iprot.skip(ftype)
|
|
|
1505 |
iprot.readFieldEnd()
|
|
|
1506 |
iprot.readStructEnd()
|
|
|
1507 |
|
|
|
1508 |
def write(self, oprot):
|
|
|
1509 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1510 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1511 |
return
|
|
|
1512 |
oprot.writeStructBegin('Affiliate')
|
| 3431 |
rajveer |
1513 |
if self.id is not None:
|
| 1845 |
vikas |
1514 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1515 |
oprot.writeI64(self.id)
|
|
|
1516 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1517 |
if self.name is not None:
|
| 1845 |
vikas |
1518 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
1519 |
oprot.writeString(self.name)
|
|
|
1520 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1521 |
if self.url is not None:
|
| 1845 |
vikas |
1522 |
oprot.writeFieldBegin('url', TType.STRING, 3)
|
|
|
1523 |
oprot.writeString(self.url)
|
|
|
1524 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1525 |
if self.masterAffiliateId is not None:
|
| 1845 |
vikas |
1526 |
oprot.writeFieldBegin('masterAffiliateId', TType.I64, 4)
|
|
|
1527 |
oprot.writeI64(self.masterAffiliateId)
|
|
|
1528 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1529 |
if self.addedOn is not None:
|
| 1859 |
vikas |
1530 |
oprot.writeFieldBegin('addedOn', TType.I64, 5)
|
|
|
1531 |
oprot.writeI64(self.addedOn)
|
|
|
1532 |
oprot.writeFieldEnd()
|
| 1845 |
vikas |
1533 |
oprot.writeFieldStop()
|
|
|
1534 |
oprot.writeStructEnd()
|
|
|
1535 |
|
| 3431 |
rajveer |
1536 |
def validate(self):
|
|
|
1537 |
return
|
|
|
1538 |
|
|
|
1539 |
|
| 1845 |
vikas |
1540 |
def __repr__(self):
|
|
|
1541 |
L = ['%s=%r' % (key, value)
|
|
|
1542 |
for key, value in self.__dict__.iteritems()]
|
|
|
1543 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1544 |
|
|
|
1545 |
def __eq__(self, other):
|
|
|
1546 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1547 |
|
|
|
1548 |
def __ne__(self, other):
|
|
|
1549 |
return not (self == other)
|
|
|
1550 |
|
|
|
1551 |
class Tracker:
|
|
|
1552 |
"""
|
|
|
1553 |
Attributes:
|
|
|
1554 |
- id
|
|
|
1555 |
- affiliateId
|
|
|
1556 |
"""
|
|
|
1557 |
|
|
|
1558 |
thrift_spec = (
|
|
|
1559 |
None, # 0
|
|
|
1560 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1561 |
(2, TType.I64, 'affiliateId', None, None, ), # 2
|
|
|
1562 |
)
|
|
|
1563 |
|
| 1996 |
vikas |
1564 |
def __init__(self, id=None, affiliateId=None,):
|
| 1845 |
vikas |
1565 |
self.id = id
|
|
|
1566 |
self.affiliateId = affiliateId
|
|
|
1567 |
|
|
|
1568 |
def read(self, iprot):
|
|
|
1569 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1570 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1571 |
return
|
|
|
1572 |
iprot.readStructBegin()
|
|
|
1573 |
while True:
|
|
|
1574 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1575 |
if ftype == TType.STOP:
|
|
|
1576 |
break
|
|
|
1577 |
if fid == 1:
|
|
|
1578 |
if ftype == TType.I64:
|
|
|
1579 |
self.id = iprot.readI64();
|
|
|
1580 |
else:
|
|
|
1581 |
iprot.skip(ftype)
|
|
|
1582 |
elif fid == 2:
|
|
|
1583 |
if ftype == TType.I64:
|
|
|
1584 |
self.affiliateId = iprot.readI64();
|
|
|
1585 |
else:
|
|
|
1586 |
iprot.skip(ftype)
|
|
|
1587 |
else:
|
|
|
1588 |
iprot.skip(ftype)
|
|
|
1589 |
iprot.readFieldEnd()
|
|
|
1590 |
iprot.readStructEnd()
|
|
|
1591 |
|
|
|
1592 |
def write(self, oprot):
|
|
|
1593 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1594 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1595 |
return
|
|
|
1596 |
oprot.writeStructBegin('Tracker')
|
| 3431 |
rajveer |
1597 |
if self.id is not None:
|
| 1845 |
vikas |
1598 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1599 |
oprot.writeI64(self.id)
|
|
|
1600 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1601 |
if self.affiliateId is not None:
|
| 1845 |
vikas |
1602 |
oprot.writeFieldBegin('affiliateId', TType.I64, 2)
|
|
|
1603 |
oprot.writeI64(self.affiliateId)
|
|
|
1604 |
oprot.writeFieldEnd()
|
|
|
1605 |
oprot.writeFieldStop()
|
|
|
1606 |
oprot.writeStructEnd()
|
|
|
1607 |
|
| 3431 |
rajveer |
1608 |
def validate(self):
|
|
|
1609 |
return
|
|
|
1610 |
|
|
|
1611 |
|
| 1845 |
vikas |
1612 |
def __repr__(self):
|
|
|
1613 |
L = ['%s=%r' % (key, value)
|
|
|
1614 |
for key, value in self.__dict__.iteritems()]
|
|
|
1615 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1616 |
|
|
|
1617 |
def __eq__(self, other):
|
|
|
1618 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1619 |
|
|
|
1620 |
def __ne__(self, other):
|
|
|
1621 |
return not (self == other)
|
|
|
1622 |
|
|
|
1623 |
class TrackLog:
|
|
|
1624 |
"""
|
|
|
1625 |
Attributes:
|
|
|
1626 |
- id
|
| 1859 |
vikas |
1627 |
- addedOn
|
| 1996 |
vikas |
1628 |
- affiliateId
|
| 1845 |
vikas |
1629 |
- userId
|
| 3378 |
vikas |
1630 |
- eventType
|
| 1845 |
vikas |
1631 |
- url
|
|
|
1632 |
- data
|
|
|
1633 |
"""
|
|
|
1634 |
|
|
|
1635 |
thrift_spec = (
|
|
|
1636 |
None, # 0
|
|
|
1637 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 1859 |
vikas |
1638 |
(2, TType.I64, 'addedOn', None, None, ), # 2
|
| 1996 |
vikas |
1639 |
(3, TType.I64, 'affiliateId', None, None, ), # 3
|
| 1859 |
vikas |
1640 |
(4, TType.I64, 'userId', None, None, ), # 4
|
| 3378 |
vikas |
1641 |
(5, TType.I32, 'eventType', None, None, ), # 5
|
| 1859 |
vikas |
1642 |
(6, TType.STRING, 'url', None, None, ), # 6
|
|
|
1643 |
(7, TType.STRING, 'data', None, None, ), # 7
|
| 1845 |
vikas |
1644 |
)
|
|
|
1645 |
|
| 3378 |
vikas |
1646 |
def __init__(self, id=None, addedOn=None, affiliateId=None, userId=None, eventType=None, url=None, data=None,):
|
| 1845 |
vikas |
1647 |
self.id = id
|
| 1859 |
vikas |
1648 |
self.addedOn = addedOn
|
| 1996 |
vikas |
1649 |
self.affiliateId = affiliateId
|
| 1845 |
vikas |
1650 |
self.userId = userId
|
| 3378 |
vikas |
1651 |
self.eventType = eventType
|
| 1845 |
vikas |
1652 |
self.url = url
|
|
|
1653 |
self.data = data
|
|
|
1654 |
|
|
|
1655 |
def read(self, iprot):
|
|
|
1656 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1657 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1658 |
return
|
|
|
1659 |
iprot.readStructBegin()
|
|
|
1660 |
while True:
|
|
|
1661 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1662 |
if ftype == TType.STOP:
|
|
|
1663 |
break
|
|
|
1664 |
if fid == 1:
|
|
|
1665 |
if ftype == TType.I64:
|
|
|
1666 |
self.id = iprot.readI64();
|
|
|
1667 |
else:
|
|
|
1668 |
iprot.skip(ftype)
|
|
|
1669 |
elif fid == 2:
|
|
|
1670 |
if ftype == TType.I64:
|
| 1859 |
vikas |
1671 |
self.addedOn = iprot.readI64();
|
| 1845 |
vikas |
1672 |
else:
|
|
|
1673 |
iprot.skip(ftype)
|
|
|
1674 |
elif fid == 3:
|
|
|
1675 |
if ftype == TType.I64:
|
| 1996 |
vikas |
1676 |
self.affiliateId = iprot.readI64();
|
| 1859 |
vikas |
1677 |
else:
|
|
|
1678 |
iprot.skip(ftype)
|
|
|
1679 |
elif fid == 4:
|
|
|
1680 |
if ftype == TType.I64:
|
| 1845 |
vikas |
1681 |
self.userId = iprot.readI64();
|
|
|
1682 |
else:
|
|
|
1683 |
iprot.skip(ftype)
|
| 1859 |
vikas |
1684 |
elif fid == 5:
|
| 3378 |
vikas |
1685 |
if ftype == TType.I32:
|
|
|
1686 |
self.eventType = iprot.readI32();
|
| 1845 |
vikas |
1687 |
else:
|
|
|
1688 |
iprot.skip(ftype)
|
| 1859 |
vikas |
1689 |
elif fid == 6:
|
| 1845 |
vikas |
1690 |
if ftype == TType.STRING:
|
|
|
1691 |
self.url = iprot.readString();
|
|
|
1692 |
else:
|
|
|
1693 |
iprot.skip(ftype)
|
| 1859 |
vikas |
1694 |
elif fid == 7:
|
| 1845 |
vikas |
1695 |
if ftype == TType.STRING:
|
|
|
1696 |
self.data = iprot.readString();
|
|
|
1697 |
else:
|
|
|
1698 |
iprot.skip(ftype)
|
|
|
1699 |
else:
|
|
|
1700 |
iprot.skip(ftype)
|
|
|
1701 |
iprot.readFieldEnd()
|
|
|
1702 |
iprot.readStructEnd()
|
|
|
1703 |
|
|
|
1704 |
def write(self, oprot):
|
|
|
1705 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1706 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1707 |
return
|
|
|
1708 |
oprot.writeStructBegin('TrackLog')
|
| 3431 |
rajveer |
1709 |
if self.id is not None:
|
| 1845 |
vikas |
1710 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1711 |
oprot.writeI64(self.id)
|
|
|
1712 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1713 |
if self.addedOn is not None:
|
| 1859 |
vikas |
1714 |
oprot.writeFieldBegin('addedOn', TType.I64, 2)
|
|
|
1715 |
oprot.writeI64(self.addedOn)
|
|
|
1716 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1717 |
if self.affiliateId is not None:
|
| 1996 |
vikas |
1718 |
oprot.writeFieldBegin('affiliateId', TType.I64, 3)
|
|
|
1719 |
oprot.writeI64(self.affiliateId)
|
| 1845 |
vikas |
1720 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1721 |
if self.userId is not None:
|
| 1859 |
vikas |
1722 |
oprot.writeFieldBegin('userId', TType.I64, 4)
|
| 1845 |
vikas |
1723 |
oprot.writeI64(self.userId)
|
|
|
1724 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1725 |
if self.eventType is not None:
|
| 3378 |
vikas |
1726 |
oprot.writeFieldBegin('eventType', TType.I32, 5)
|
|
|
1727 |
oprot.writeI32(self.eventType)
|
| 1845 |
vikas |
1728 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1729 |
if self.url is not None:
|
| 1859 |
vikas |
1730 |
oprot.writeFieldBegin('url', TType.STRING, 6)
|
| 1845 |
vikas |
1731 |
oprot.writeString(self.url)
|
|
|
1732 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1733 |
if self.data is not None:
|
| 1859 |
vikas |
1734 |
oprot.writeFieldBegin('data', TType.STRING, 7)
|
| 1845 |
vikas |
1735 |
oprot.writeString(self.data)
|
|
|
1736 |
oprot.writeFieldEnd()
|
|
|
1737 |
oprot.writeFieldStop()
|
|
|
1738 |
oprot.writeStructEnd()
|
|
|
1739 |
|
| 3431 |
rajveer |
1740 |
def validate(self):
|
|
|
1741 |
return
|
|
|
1742 |
|
|
|
1743 |
|
| 1845 |
vikas |
1744 |
def __repr__(self):
|
|
|
1745 |
L = ['%s=%r' % (key, value)
|
|
|
1746 |
for key, value in self.__dict__.iteritems()]
|
|
|
1747 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1748 |
|
|
|
1749 |
def __eq__(self, other):
|
|
|
1750 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1751 |
|
|
|
1752 |
def __ne__(self, other):
|
|
|
1753 |
return not (self == other)
|
|
|
1754 |
|
| 17782 |
amit.gupta |
1755 |
class ItemQuantity:
|
|
|
1756 |
"""
|
|
|
1757 |
Attributes:
|
|
|
1758 |
- itemId
|
|
|
1759 |
- qty
|
|
|
1760 |
"""
|
|
|
1761 |
|
|
|
1762 |
thrift_spec = (
|
|
|
1763 |
None, # 0
|
|
|
1764 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
1765 |
(2, TType.I64, 'qty', None, None, ), # 2
|
|
|
1766 |
)
|
|
|
1767 |
|
|
|
1768 |
def __init__(self, itemId=None, qty=None,):
|
|
|
1769 |
self.itemId = itemId
|
|
|
1770 |
self.qty = qty
|
|
|
1771 |
|
|
|
1772 |
def read(self, iprot):
|
|
|
1773 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1774 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1775 |
return
|
|
|
1776 |
iprot.readStructBegin()
|
|
|
1777 |
while True:
|
|
|
1778 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1779 |
if ftype == TType.STOP:
|
|
|
1780 |
break
|
|
|
1781 |
if fid == 1:
|
|
|
1782 |
if ftype == TType.I64:
|
|
|
1783 |
self.itemId = iprot.readI64();
|
|
|
1784 |
else:
|
|
|
1785 |
iprot.skip(ftype)
|
|
|
1786 |
elif fid == 2:
|
|
|
1787 |
if ftype == TType.I64:
|
|
|
1788 |
self.qty = iprot.readI64();
|
|
|
1789 |
else:
|
|
|
1790 |
iprot.skip(ftype)
|
|
|
1791 |
else:
|
|
|
1792 |
iprot.skip(ftype)
|
|
|
1793 |
iprot.readFieldEnd()
|
|
|
1794 |
iprot.readStructEnd()
|
|
|
1795 |
|
|
|
1796 |
def write(self, oprot):
|
|
|
1797 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1798 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1799 |
return
|
|
|
1800 |
oprot.writeStructBegin('ItemQuantity')
|
|
|
1801 |
if self.itemId is not None:
|
|
|
1802 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
1803 |
oprot.writeI64(self.itemId)
|
|
|
1804 |
oprot.writeFieldEnd()
|
|
|
1805 |
if self.qty is not None:
|
|
|
1806 |
oprot.writeFieldBegin('qty', TType.I64, 2)
|
|
|
1807 |
oprot.writeI64(self.qty)
|
|
|
1808 |
oprot.writeFieldEnd()
|
|
|
1809 |
oprot.writeFieldStop()
|
|
|
1810 |
oprot.writeStructEnd()
|
|
|
1811 |
|
|
|
1812 |
def validate(self):
|
|
|
1813 |
return
|
|
|
1814 |
|
|
|
1815 |
|
|
|
1816 |
def __repr__(self):
|
|
|
1817 |
L = ['%s=%r' % (key, value)
|
|
|
1818 |
for key, value in self.__dict__.iteritems()]
|
|
|
1819 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1820 |
|
|
|
1821 |
def __eq__(self, other):
|
|
|
1822 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1823 |
|
|
|
1824 |
def __ne__(self, other):
|
|
|
1825 |
return not (self == other)
|
|
|
1826 |
|
| 22452 |
amit.gupta |
1827 |
class ItemPriceQuantity:
|
|
|
1828 |
"""
|
|
|
1829 |
Attributes:
|
|
|
1830 |
- itemId
|
|
|
1831 |
- price
|
|
|
1832 |
- qty
|
|
|
1833 |
"""
|
|
|
1834 |
|
|
|
1835 |
thrift_spec = (
|
|
|
1836 |
None, # 0
|
|
|
1837 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
1838 |
(2, TType.DOUBLE, 'price', None, None, ), # 2
|
|
|
1839 |
(3, TType.I64, 'qty', None, None, ), # 3
|
|
|
1840 |
)
|
|
|
1841 |
|
|
|
1842 |
def __init__(self, itemId=None, price=None, qty=None,):
|
|
|
1843 |
self.itemId = itemId
|
|
|
1844 |
self.price = price
|
|
|
1845 |
self.qty = qty
|
|
|
1846 |
|
|
|
1847 |
def read(self, iprot):
|
|
|
1848 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1849 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1850 |
return
|
|
|
1851 |
iprot.readStructBegin()
|
|
|
1852 |
while True:
|
|
|
1853 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1854 |
if ftype == TType.STOP:
|
|
|
1855 |
break
|
|
|
1856 |
if fid == 1:
|
|
|
1857 |
if ftype == TType.I64:
|
|
|
1858 |
self.itemId = iprot.readI64();
|
|
|
1859 |
else:
|
|
|
1860 |
iprot.skip(ftype)
|
|
|
1861 |
elif fid == 2:
|
|
|
1862 |
if ftype == TType.DOUBLE:
|
|
|
1863 |
self.price = iprot.readDouble();
|
|
|
1864 |
else:
|
|
|
1865 |
iprot.skip(ftype)
|
|
|
1866 |
elif fid == 3:
|
|
|
1867 |
if ftype == TType.I64:
|
|
|
1868 |
self.qty = iprot.readI64();
|
|
|
1869 |
else:
|
|
|
1870 |
iprot.skip(ftype)
|
|
|
1871 |
else:
|
|
|
1872 |
iprot.skip(ftype)
|
|
|
1873 |
iprot.readFieldEnd()
|
|
|
1874 |
iprot.readStructEnd()
|
|
|
1875 |
|
|
|
1876 |
def write(self, oprot):
|
|
|
1877 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1878 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1879 |
return
|
|
|
1880 |
oprot.writeStructBegin('ItemPriceQuantity')
|
|
|
1881 |
if self.itemId is not None:
|
|
|
1882 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
1883 |
oprot.writeI64(self.itemId)
|
|
|
1884 |
oprot.writeFieldEnd()
|
|
|
1885 |
if self.price is not None:
|
|
|
1886 |
oprot.writeFieldBegin('price', TType.DOUBLE, 2)
|
|
|
1887 |
oprot.writeDouble(self.price)
|
|
|
1888 |
oprot.writeFieldEnd()
|
|
|
1889 |
if self.qty is not None:
|
|
|
1890 |
oprot.writeFieldBegin('qty', TType.I64, 3)
|
|
|
1891 |
oprot.writeI64(self.qty)
|
|
|
1892 |
oprot.writeFieldEnd()
|
|
|
1893 |
oprot.writeFieldStop()
|
|
|
1894 |
oprot.writeStructEnd()
|
|
|
1895 |
|
|
|
1896 |
def validate(self):
|
|
|
1897 |
return
|
|
|
1898 |
|
|
|
1899 |
|
|
|
1900 |
def __repr__(self):
|
|
|
1901 |
L = ['%s=%r' % (key, value)
|
|
|
1902 |
for key, value in self.__dict__.iteritems()]
|
|
|
1903 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1904 |
|
|
|
1905 |
def __eq__(self, other):
|
|
|
1906 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1907 |
|
|
|
1908 |
def __ne__(self, other):
|
|
|
1909 |
return not (self == other)
|
|
|
1910 |
|
| 3554 |
varun.gupt |
1911 |
class Discount:
|
|
|
1912 |
"""
|
|
|
1913 |
Attributes:
|
|
|
1914 |
- cart_id
|
|
|
1915 |
- item_id
|
|
|
1916 |
- discount
|
|
|
1917 |
- quantity
|
|
|
1918 |
"""
|
|
|
1919 |
|
|
|
1920 |
thrift_spec = (
|
|
|
1921 |
None, # 0
|
|
|
1922 |
(1, TType.I64, 'cart_id', None, None, ), # 1
|
|
|
1923 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
|
|
1924 |
(3, TType.DOUBLE, 'discount', None, None, ), # 3
|
|
|
1925 |
(4, TType.DOUBLE, 'quantity', None, None, ), # 4
|
|
|
1926 |
)
|
|
|
1927 |
|
|
|
1928 |
def __init__(self, cart_id=None, item_id=None, discount=None, quantity=None,):
|
|
|
1929 |
self.cart_id = cart_id
|
|
|
1930 |
self.item_id = item_id
|
|
|
1931 |
self.discount = discount
|
|
|
1932 |
self.quantity = quantity
|
|
|
1933 |
|
|
|
1934 |
def read(self, iprot):
|
|
|
1935 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1936 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1937 |
return
|
|
|
1938 |
iprot.readStructBegin()
|
|
|
1939 |
while True:
|
|
|
1940 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1941 |
if ftype == TType.STOP:
|
|
|
1942 |
break
|
|
|
1943 |
if fid == 1:
|
|
|
1944 |
if ftype == TType.I64:
|
|
|
1945 |
self.cart_id = iprot.readI64();
|
|
|
1946 |
else:
|
|
|
1947 |
iprot.skip(ftype)
|
|
|
1948 |
elif fid == 2:
|
|
|
1949 |
if ftype == TType.I64:
|
|
|
1950 |
self.item_id = iprot.readI64();
|
|
|
1951 |
else:
|
|
|
1952 |
iprot.skip(ftype)
|
|
|
1953 |
elif fid == 3:
|
|
|
1954 |
if ftype == TType.DOUBLE:
|
|
|
1955 |
self.discount = iprot.readDouble();
|
|
|
1956 |
else:
|
|
|
1957 |
iprot.skip(ftype)
|
|
|
1958 |
elif fid == 4:
|
|
|
1959 |
if ftype == TType.DOUBLE:
|
|
|
1960 |
self.quantity = iprot.readDouble();
|
|
|
1961 |
else:
|
|
|
1962 |
iprot.skip(ftype)
|
|
|
1963 |
else:
|
|
|
1964 |
iprot.skip(ftype)
|
|
|
1965 |
iprot.readFieldEnd()
|
|
|
1966 |
iprot.readStructEnd()
|
|
|
1967 |
|
|
|
1968 |
def write(self, oprot):
|
|
|
1969 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1970 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1971 |
return
|
|
|
1972 |
oprot.writeStructBegin('Discount')
|
|
|
1973 |
if self.cart_id is not None:
|
|
|
1974 |
oprot.writeFieldBegin('cart_id', TType.I64, 1)
|
|
|
1975 |
oprot.writeI64(self.cart_id)
|
|
|
1976 |
oprot.writeFieldEnd()
|
|
|
1977 |
if self.item_id is not None:
|
|
|
1978 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
1979 |
oprot.writeI64(self.item_id)
|
|
|
1980 |
oprot.writeFieldEnd()
|
|
|
1981 |
if self.discount is not None:
|
|
|
1982 |
oprot.writeFieldBegin('discount', TType.DOUBLE, 3)
|
|
|
1983 |
oprot.writeDouble(self.discount)
|
|
|
1984 |
oprot.writeFieldEnd()
|
|
|
1985 |
if self.quantity is not None:
|
|
|
1986 |
oprot.writeFieldBegin('quantity', TType.DOUBLE, 4)
|
|
|
1987 |
oprot.writeDouble(self.quantity)
|
|
|
1988 |
oprot.writeFieldEnd()
|
|
|
1989 |
oprot.writeFieldStop()
|
|
|
1990 |
oprot.writeStructEnd()
|
|
|
1991 |
|
|
|
1992 |
def validate(self):
|
|
|
1993 |
return
|
|
|
1994 |
|
|
|
1995 |
|
|
|
1996 |
def __repr__(self):
|
|
|
1997 |
L = ['%s=%r' % (key, value)
|
|
|
1998 |
for key, value in self.__dict__.iteritems()]
|
|
|
1999 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2000 |
|
|
|
2001 |
def __eq__(self, other):
|
|
|
2002 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2003 |
|
|
|
2004 |
def __ne__(self, other):
|
|
|
2005 |
return not (self == other)
|
|
|
2006 |
|
| 559 |
chandransh |
2007 |
class Line:
|
|
|
2008 |
"""
|
|
|
2009 |
Attributes:
|
| 647 |
chandransh |
2010 |
- cartId
|
| 559 |
chandransh |
2011 |
- itemId
|
|
|
2012 |
- quantity
|
|
|
2013 |
- createdOn
|
|
|
2014 |
- updatedOn
|
|
|
2015 |
- lineStatus
|
| 612 |
chandransh |
2016 |
- estimate
|
| 1976 |
varun.gupt |
2017 |
- actualPrice
|
|
|
2018 |
- discountedPrice
|
| 3554 |
varun.gupt |
2019 |
- discounts
|
| 6903 |
anupam.sin |
2020 |
- insurer
|
|
|
2021 |
- insuranceAmount
|
| 9299 |
kshitij.so |
2022 |
- dataProtectionInsurer
|
|
|
2023 |
- dataProtectionAmount
|
| 11653 |
amit.gupta |
2024 |
- dealText
|
|
|
2025 |
- freebieId
|
| 94 |
ashish |
2026 |
"""
|
|
|
2027 |
|
|
|
2028 |
thrift_spec = (
|
|
|
2029 |
None, # 0
|
| 647 |
chandransh |
2030 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
| 559 |
chandransh |
2031 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
2032 |
(3, TType.DOUBLE, 'quantity', None, None, ), # 3
|
|
|
2033 |
(4, TType.I64, 'createdOn', None, None, ), # 4
|
|
|
2034 |
(5, TType.I64, 'updatedOn', None, None, ), # 5
|
|
|
2035 |
(6, TType.I32, 'lineStatus', None, None, ), # 6
|
| 612 |
chandransh |
2036 |
(7, TType.I32, 'estimate', None, None, ), # 7
|
| 1976 |
varun.gupt |
2037 |
(8, TType.DOUBLE, 'actualPrice', None, None, ), # 8
|
|
|
2038 |
(9, TType.DOUBLE, 'discountedPrice', None, None, ), # 9
|
| 3554 |
varun.gupt |
2039 |
(10, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 10
|
| 6903 |
anupam.sin |
2040 |
(11, TType.I64, 'insurer', None, None, ), # 11
|
|
|
2041 |
(12, TType.DOUBLE, 'insuranceAmount', None, None, ), # 12
|
| 9299 |
kshitij.so |
2042 |
(13, TType.I64, 'dataProtectionInsurer', None, None, ), # 13
|
|
|
2043 |
(14, TType.DOUBLE, 'dataProtectionAmount', None, None, ), # 14
|
| 11653 |
amit.gupta |
2044 |
(15, TType.STRING, 'dealText', None, None, ), # 15
|
| 11741 |
amit.gupta |
2045 |
(16, TType.I64, 'freebieId', None, None, ), # 16
|
| 94 |
ashish |
2046 |
)
|
|
|
2047 |
|
| 11653 |
amit.gupta |
2048 |
def __init__(self, cartId=None, itemId=None, quantity=None, createdOn=None, updatedOn=None, lineStatus=None, estimate=None, actualPrice=None, discountedPrice=None, discounts=None, insurer=None, insuranceAmount=None, dataProtectionInsurer=None, dataProtectionAmount=None, dealText=None, freebieId=None,):
|
| 647 |
chandransh |
2049 |
self.cartId = cartId
|
| 559 |
chandransh |
2050 |
self.itemId = itemId
|
|
|
2051 |
self.quantity = quantity
|
|
|
2052 |
self.createdOn = createdOn
|
|
|
2053 |
self.updatedOn = updatedOn
|
|
|
2054 |
self.lineStatus = lineStatus
|
| 612 |
chandransh |
2055 |
self.estimate = estimate
|
| 1976 |
varun.gupt |
2056 |
self.actualPrice = actualPrice
|
|
|
2057 |
self.discountedPrice = discountedPrice
|
| 3554 |
varun.gupt |
2058 |
self.discounts = discounts
|
| 6903 |
anupam.sin |
2059 |
self.insurer = insurer
|
|
|
2060 |
self.insuranceAmount = insuranceAmount
|
| 9299 |
kshitij.so |
2061 |
self.dataProtectionInsurer = dataProtectionInsurer
|
|
|
2062 |
self.dataProtectionAmount = dataProtectionAmount
|
| 11653 |
amit.gupta |
2063 |
self.dealText = dealText
|
|
|
2064 |
self.freebieId = freebieId
|
| 94 |
ashish |
2065 |
|
|
|
2066 |
def read(self, iprot):
|
|
|
2067 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2068 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2069 |
return
|
|
|
2070 |
iprot.readStructBegin()
|
|
|
2071 |
while True:
|
|
|
2072 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2073 |
if ftype == TType.STOP:
|
|
|
2074 |
break
|
|
|
2075 |
if fid == 1:
|
| 559 |
chandransh |
2076 |
if ftype == TType.I64:
|
| 647 |
chandransh |
2077 |
self.cartId = iprot.readI64();
|
| 94 |
ashish |
2078 |
else:
|
|
|
2079 |
iprot.skip(ftype)
|
|
|
2080 |
elif fid == 2:
|
| 559 |
chandransh |
2081 |
if ftype == TType.I64:
|
|
|
2082 |
self.itemId = iprot.readI64();
|
| 94 |
ashish |
2083 |
else:
|
|
|
2084 |
iprot.skip(ftype)
|
|
|
2085 |
elif fid == 3:
|
| 559 |
chandransh |
2086 |
if ftype == TType.DOUBLE:
|
|
|
2087 |
self.quantity = iprot.readDouble();
|
| 94 |
ashish |
2088 |
else:
|
|
|
2089 |
iprot.skip(ftype)
|
|
|
2090 |
elif fid == 4:
|
|
|
2091 |
if ftype == TType.I64:
|
| 559 |
chandransh |
2092 |
self.createdOn = iprot.readI64();
|
|
|
2093 |
else:
|
|
|
2094 |
iprot.skip(ftype)
|
|
|
2095 |
elif fid == 5:
|
|
|
2096 |
if ftype == TType.I64:
|
|
|
2097 |
self.updatedOn = iprot.readI64();
|
|
|
2098 |
else:
|
|
|
2099 |
iprot.skip(ftype)
|
|
|
2100 |
elif fid == 6:
|
|
|
2101 |
if ftype == TType.I32:
|
|
|
2102 |
self.lineStatus = iprot.readI32();
|
|
|
2103 |
else:
|
|
|
2104 |
iprot.skip(ftype)
|
| 612 |
chandransh |
2105 |
elif fid == 7:
|
|
|
2106 |
if ftype == TType.I32:
|
|
|
2107 |
self.estimate = iprot.readI32();
|
|
|
2108 |
else:
|
|
|
2109 |
iprot.skip(ftype)
|
| 1976 |
varun.gupt |
2110 |
elif fid == 8:
|
|
|
2111 |
if ftype == TType.DOUBLE:
|
|
|
2112 |
self.actualPrice = iprot.readDouble();
|
|
|
2113 |
else:
|
|
|
2114 |
iprot.skip(ftype)
|
|
|
2115 |
elif fid == 9:
|
|
|
2116 |
if ftype == TType.DOUBLE:
|
|
|
2117 |
self.discountedPrice = iprot.readDouble();
|
|
|
2118 |
else:
|
|
|
2119 |
iprot.skip(ftype)
|
| 3554 |
varun.gupt |
2120 |
elif fid == 10:
|
|
|
2121 |
if ftype == TType.LIST:
|
|
|
2122 |
self.discounts = []
|
| 5326 |
rajveer |
2123 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
2124 |
for _i11 in xrange(_size7):
|
|
|
2125 |
_elem12 = Discount()
|
|
|
2126 |
_elem12.read(iprot)
|
|
|
2127 |
self.discounts.append(_elem12)
|
| 3554 |
varun.gupt |
2128 |
iprot.readListEnd()
|
|
|
2129 |
else:
|
|
|
2130 |
iprot.skip(ftype)
|
| 6903 |
anupam.sin |
2131 |
elif fid == 11:
|
|
|
2132 |
if ftype == TType.I64:
|
|
|
2133 |
self.insurer = iprot.readI64();
|
|
|
2134 |
else:
|
|
|
2135 |
iprot.skip(ftype)
|
|
|
2136 |
elif fid == 12:
|
|
|
2137 |
if ftype == TType.DOUBLE:
|
|
|
2138 |
self.insuranceAmount = iprot.readDouble();
|
|
|
2139 |
else:
|
|
|
2140 |
iprot.skip(ftype)
|
| 9299 |
kshitij.so |
2141 |
elif fid == 13:
|
|
|
2142 |
if ftype == TType.I64:
|
|
|
2143 |
self.dataProtectionInsurer = iprot.readI64();
|
|
|
2144 |
else:
|
|
|
2145 |
iprot.skip(ftype)
|
|
|
2146 |
elif fid == 14:
|
|
|
2147 |
if ftype == TType.DOUBLE:
|
|
|
2148 |
self.dataProtectionAmount = iprot.readDouble();
|
|
|
2149 |
else:
|
|
|
2150 |
iprot.skip(ftype)
|
| 11653 |
amit.gupta |
2151 |
elif fid == 15:
|
|
|
2152 |
if ftype == TType.STRING:
|
|
|
2153 |
self.dealText = iprot.readString();
|
|
|
2154 |
else:
|
|
|
2155 |
iprot.skip(ftype)
|
|
|
2156 |
elif fid == 16:
|
| 11741 |
amit.gupta |
2157 |
if ftype == TType.I64:
|
|
|
2158 |
self.freebieId = iprot.readI64();
|
| 11653 |
amit.gupta |
2159 |
else:
|
|
|
2160 |
iprot.skip(ftype)
|
| 559 |
chandransh |
2161 |
else:
|
|
|
2162 |
iprot.skip(ftype)
|
|
|
2163 |
iprot.readFieldEnd()
|
|
|
2164 |
iprot.readStructEnd()
|
|
|
2165 |
|
|
|
2166 |
def write(self, oprot):
|
|
|
2167 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2168 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2169 |
return
|
|
|
2170 |
oprot.writeStructBegin('Line')
|
| 3431 |
rajveer |
2171 |
if self.cartId is not None:
|
| 647 |
chandransh |
2172 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
2173 |
oprot.writeI64(self.cartId)
|
| 559 |
chandransh |
2174 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2175 |
if self.itemId is not None:
|
| 559 |
chandransh |
2176 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
2177 |
oprot.writeI64(self.itemId)
|
|
|
2178 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2179 |
if self.quantity is not None:
|
| 559 |
chandransh |
2180 |
oprot.writeFieldBegin('quantity', TType.DOUBLE, 3)
|
|
|
2181 |
oprot.writeDouble(self.quantity)
|
|
|
2182 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2183 |
if self.createdOn is not None:
|
| 559 |
chandransh |
2184 |
oprot.writeFieldBegin('createdOn', TType.I64, 4)
|
|
|
2185 |
oprot.writeI64(self.createdOn)
|
|
|
2186 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2187 |
if self.updatedOn is not None:
|
| 559 |
chandransh |
2188 |
oprot.writeFieldBegin('updatedOn', TType.I64, 5)
|
|
|
2189 |
oprot.writeI64(self.updatedOn)
|
|
|
2190 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2191 |
if self.lineStatus is not None:
|
| 559 |
chandransh |
2192 |
oprot.writeFieldBegin('lineStatus', TType.I32, 6)
|
|
|
2193 |
oprot.writeI32(self.lineStatus)
|
|
|
2194 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2195 |
if self.estimate is not None:
|
| 612 |
chandransh |
2196 |
oprot.writeFieldBegin('estimate', TType.I32, 7)
|
|
|
2197 |
oprot.writeI32(self.estimate)
|
|
|
2198 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2199 |
if self.actualPrice is not None:
|
| 1976 |
varun.gupt |
2200 |
oprot.writeFieldBegin('actualPrice', TType.DOUBLE, 8)
|
|
|
2201 |
oprot.writeDouble(self.actualPrice)
|
|
|
2202 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2203 |
if self.discountedPrice is not None:
|
| 1976 |
varun.gupt |
2204 |
oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 9)
|
|
|
2205 |
oprot.writeDouble(self.discountedPrice)
|
|
|
2206 |
oprot.writeFieldEnd()
|
| 3554 |
varun.gupt |
2207 |
if self.discounts is not None:
|
|
|
2208 |
oprot.writeFieldBegin('discounts', TType.LIST, 10)
|
|
|
2209 |
oprot.writeListBegin(TType.STRUCT, len(self.discounts))
|
| 5326 |
rajveer |
2210 |
for iter13 in self.discounts:
|
|
|
2211 |
iter13.write(oprot)
|
| 3554 |
varun.gupt |
2212 |
oprot.writeListEnd()
|
|
|
2213 |
oprot.writeFieldEnd()
|
| 6903 |
anupam.sin |
2214 |
if self.insurer is not None:
|
|
|
2215 |
oprot.writeFieldBegin('insurer', TType.I64, 11)
|
|
|
2216 |
oprot.writeI64(self.insurer)
|
|
|
2217 |
oprot.writeFieldEnd()
|
|
|
2218 |
if self.insuranceAmount is not None:
|
|
|
2219 |
oprot.writeFieldBegin('insuranceAmount', TType.DOUBLE, 12)
|
|
|
2220 |
oprot.writeDouble(self.insuranceAmount)
|
|
|
2221 |
oprot.writeFieldEnd()
|
| 9299 |
kshitij.so |
2222 |
if self.dataProtectionInsurer is not None:
|
|
|
2223 |
oprot.writeFieldBegin('dataProtectionInsurer', TType.I64, 13)
|
|
|
2224 |
oprot.writeI64(self.dataProtectionInsurer)
|
|
|
2225 |
oprot.writeFieldEnd()
|
|
|
2226 |
if self.dataProtectionAmount is not None:
|
|
|
2227 |
oprot.writeFieldBegin('dataProtectionAmount', TType.DOUBLE, 14)
|
|
|
2228 |
oprot.writeDouble(self.dataProtectionAmount)
|
|
|
2229 |
oprot.writeFieldEnd()
|
| 11653 |
amit.gupta |
2230 |
if self.dealText is not None:
|
|
|
2231 |
oprot.writeFieldBegin('dealText', TType.STRING, 15)
|
|
|
2232 |
oprot.writeString(self.dealText)
|
|
|
2233 |
oprot.writeFieldEnd()
|
|
|
2234 |
if self.freebieId is not None:
|
| 11741 |
amit.gupta |
2235 |
oprot.writeFieldBegin('freebieId', TType.I64, 16)
|
|
|
2236 |
oprot.writeI64(self.freebieId)
|
| 11653 |
amit.gupta |
2237 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
2238 |
oprot.writeFieldStop()
|
|
|
2239 |
oprot.writeStructEnd()
|
|
|
2240 |
|
| 3431 |
rajveer |
2241 |
def validate(self):
|
|
|
2242 |
return
|
|
|
2243 |
|
|
|
2244 |
|
| 559 |
chandransh |
2245 |
def __repr__(self):
|
|
|
2246 |
L = ['%s=%r' % (key, value)
|
|
|
2247 |
for key, value in self.__dict__.iteritems()]
|
|
|
2248 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2249 |
|
|
|
2250 |
def __eq__(self, other):
|
|
|
2251 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2252 |
|
|
|
2253 |
def __ne__(self, other):
|
|
|
2254 |
return not (self == other)
|
|
|
2255 |
|
|
|
2256 |
class Cart:
|
|
|
2257 |
"""
|
|
|
2258 |
Attributes:
|
|
|
2259 |
- id
|
|
|
2260 |
- lines
|
|
|
2261 |
- status
|
|
|
2262 |
- createdOn
|
|
|
2263 |
- updatedOn
|
| 690 |
chandransh |
2264 |
- checkedOutOn
|
| 559 |
chandransh |
2265 |
- addressId
|
| 1976 |
varun.gupt |
2266 |
- totalPrice
|
|
|
2267 |
- discountedPrice
|
|
|
2268 |
- couponCode
|
| 5553 |
rajveer |
2269 |
- pickupStoreId
|
| 6736 |
amit.gupta |
2270 |
- message
|
| 20873 |
kshitij.so |
2271 |
- wallet_amount
|
| 559 |
chandransh |
2272 |
"""
|
|
|
2273 |
|
|
|
2274 |
thrift_spec = (
|
|
|
2275 |
None, # 0
|
|
|
2276 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2277 |
(2, TType.LIST, 'lines', (TType.STRUCT,(Line, Line.thrift_spec)), None, ), # 2
|
|
|
2278 |
(3, TType.I32, 'status', None, None, ), # 3
|
|
|
2279 |
(4, TType.I64, 'createdOn', None, None, ), # 4
|
|
|
2280 |
(5, TType.I64, 'updatedOn', None, None, ), # 5
|
| 690 |
chandransh |
2281 |
(6, TType.I64, 'checkedOutOn', None, None, ), # 6
|
| 5326 |
rajveer |
2282 |
(7, TType.I64, 'addressId', None, None, ), # 7
|
|
|
2283 |
(8, TType.DOUBLE, 'totalPrice', None, None, ), # 8
|
|
|
2284 |
(9, TType.DOUBLE, 'discountedPrice', None, None, ), # 9
|
|
|
2285 |
(10, TType.STRING, 'couponCode', None, None, ), # 10
|
| 5553 |
rajveer |
2286 |
(11, TType.I64, 'pickupStoreId', None, None, ), # 11
|
| 6736 |
amit.gupta |
2287 |
(12, TType.STRING, 'message', None, None, ), # 12
|
| 20873 |
kshitij.so |
2288 |
(13, TType.DOUBLE, 'wallet_amount', None, None, ), # 13
|
| 559 |
chandransh |
2289 |
)
|
|
|
2290 |
|
| 20873 |
kshitij.so |
2291 |
def __init__(self, id=None, lines=None, status=None, createdOn=None, updatedOn=None, checkedOutOn=None, addressId=None, totalPrice=None, discountedPrice=None, couponCode=None, pickupStoreId=None, message=None, wallet_amount=None,):
|
| 559 |
chandransh |
2292 |
self.id = id
|
|
|
2293 |
self.lines = lines
|
|
|
2294 |
self.status = status
|
|
|
2295 |
self.createdOn = createdOn
|
|
|
2296 |
self.updatedOn = updatedOn
|
| 690 |
chandransh |
2297 |
self.checkedOutOn = checkedOutOn
|
| 559 |
chandransh |
2298 |
self.addressId = addressId
|
| 1976 |
varun.gupt |
2299 |
self.totalPrice = totalPrice
|
|
|
2300 |
self.discountedPrice = discountedPrice
|
|
|
2301 |
self.couponCode = couponCode
|
| 5553 |
rajveer |
2302 |
self.pickupStoreId = pickupStoreId
|
| 6736 |
amit.gupta |
2303 |
self.message = message
|
| 20873 |
kshitij.so |
2304 |
self.wallet_amount = wallet_amount
|
| 559 |
chandransh |
2305 |
|
|
|
2306 |
def read(self, iprot):
|
|
|
2307 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2308 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2309 |
return
|
|
|
2310 |
iprot.readStructBegin()
|
|
|
2311 |
while True:
|
|
|
2312 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2313 |
if ftype == TType.STOP:
|
|
|
2314 |
break
|
|
|
2315 |
if fid == 1:
|
|
|
2316 |
if ftype == TType.I64:
|
| 94 |
ashish |
2317 |
self.id = iprot.readI64();
|
|
|
2318 |
else:
|
|
|
2319 |
iprot.skip(ftype)
|
| 559 |
chandransh |
2320 |
elif fid == 2:
|
|
|
2321 |
if ftype == TType.LIST:
|
|
|
2322 |
self.lines = []
|
| 5326 |
rajveer |
2323 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
2324 |
for _i18 in xrange(_size14):
|
|
|
2325 |
_elem19 = Line()
|
|
|
2326 |
_elem19.read(iprot)
|
|
|
2327 |
self.lines.append(_elem19)
|
| 559 |
chandransh |
2328 |
iprot.readListEnd()
|
|
|
2329 |
else:
|
|
|
2330 |
iprot.skip(ftype)
|
|
|
2331 |
elif fid == 3:
|
|
|
2332 |
if ftype == TType.I32:
|
|
|
2333 |
self.status = iprot.readI32();
|
|
|
2334 |
else:
|
|
|
2335 |
iprot.skip(ftype)
|
|
|
2336 |
elif fid == 4:
|
|
|
2337 |
if ftype == TType.I64:
|
|
|
2338 |
self.createdOn = iprot.readI64();
|
|
|
2339 |
else:
|
|
|
2340 |
iprot.skip(ftype)
|
| 122 |
ashish |
2341 |
elif fid == 5:
|
|
|
2342 |
if ftype == TType.I64:
|
| 559 |
chandransh |
2343 |
self.updatedOn = iprot.readI64();
|
| 122 |
ashish |
2344 |
else:
|
|
|
2345 |
iprot.skip(ftype)
|
| 559 |
chandransh |
2346 |
elif fid == 6:
|
|
|
2347 |
if ftype == TType.I64:
|
| 690 |
chandransh |
2348 |
self.checkedOutOn = iprot.readI64();
|
| 559 |
chandransh |
2349 |
else:
|
|
|
2350 |
iprot.skip(ftype)
|
|
|
2351 |
elif fid == 7:
|
|
|
2352 |
if ftype == TType.I64:
|
| 5326 |
rajveer |
2353 |
self.addressId = iprot.readI64();
|
| 559 |
chandransh |
2354 |
else:
|
|
|
2355 |
iprot.skip(ftype)
|
|
|
2356 |
elif fid == 8:
|
| 1976 |
varun.gupt |
2357 |
if ftype == TType.DOUBLE:
|
|
|
2358 |
self.totalPrice = iprot.readDouble();
|
|
|
2359 |
else:
|
|
|
2360 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
2361 |
elif fid == 9:
|
| 1976 |
varun.gupt |
2362 |
if ftype == TType.DOUBLE:
|
|
|
2363 |
self.discountedPrice = iprot.readDouble();
|
|
|
2364 |
else:
|
|
|
2365 |
iprot.skip(ftype)
|
| 5326 |
rajveer |
2366 |
elif fid == 10:
|
| 1976 |
varun.gupt |
2367 |
if ftype == TType.STRING:
|
|
|
2368 |
self.couponCode = iprot.readString();
|
|
|
2369 |
else:
|
|
|
2370 |
iprot.skip(ftype)
|
| 5553 |
rajveer |
2371 |
elif fid == 11:
|
|
|
2372 |
if ftype == TType.I64:
|
|
|
2373 |
self.pickupStoreId = iprot.readI64();
|
|
|
2374 |
else:
|
|
|
2375 |
iprot.skip(ftype)
|
| 6736 |
amit.gupta |
2376 |
elif fid == 12:
|
|
|
2377 |
if ftype == TType.STRING:
|
|
|
2378 |
self.message = iprot.readString();
|
|
|
2379 |
else:
|
|
|
2380 |
iprot.skip(ftype)
|
| 20873 |
kshitij.so |
2381 |
elif fid == 13:
|
|
|
2382 |
if ftype == TType.DOUBLE:
|
|
|
2383 |
self.wallet_amount = iprot.readDouble();
|
|
|
2384 |
else:
|
|
|
2385 |
iprot.skip(ftype)
|
| 94 |
ashish |
2386 |
else:
|
|
|
2387 |
iprot.skip(ftype)
|
|
|
2388 |
iprot.readFieldEnd()
|
|
|
2389 |
iprot.readStructEnd()
|
|
|
2390 |
|
|
|
2391 |
def write(self, oprot):
|
|
|
2392 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2393 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2394 |
return
|
| 559 |
chandransh |
2395 |
oprot.writeStructBegin('Cart')
|
| 3431 |
rajveer |
2396 |
if self.id is not None:
|
| 559 |
chandransh |
2397 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2398 |
oprot.writeI64(self.id)
|
| 94 |
ashish |
2399 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2400 |
if self.lines is not None:
|
| 559 |
chandransh |
2401 |
oprot.writeFieldBegin('lines', TType.LIST, 2)
|
|
|
2402 |
oprot.writeListBegin(TType.STRUCT, len(self.lines))
|
| 5326 |
rajveer |
2403 |
for iter20 in self.lines:
|
|
|
2404 |
iter20.write(oprot)
|
| 559 |
chandransh |
2405 |
oprot.writeListEnd()
|
| 94 |
ashish |
2406 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2407 |
if self.status is not None:
|
| 559 |
chandransh |
2408 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
2409 |
oprot.writeI32(self.status)
|
| 94 |
ashish |
2410 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2411 |
if self.createdOn is not None:
|
| 559 |
chandransh |
2412 |
oprot.writeFieldBegin('createdOn', TType.I64, 4)
|
|
|
2413 |
oprot.writeI64(self.createdOn)
|
|
|
2414 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2415 |
if self.updatedOn is not None:
|
| 559 |
chandransh |
2416 |
oprot.writeFieldBegin('updatedOn', TType.I64, 5)
|
|
|
2417 |
oprot.writeI64(self.updatedOn)
|
|
|
2418 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2419 |
if self.checkedOutOn is not None:
|
| 690 |
chandransh |
2420 |
oprot.writeFieldBegin('checkedOutOn', TType.I64, 6)
|
|
|
2421 |
oprot.writeI64(self.checkedOutOn)
|
| 559 |
chandransh |
2422 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2423 |
if self.addressId is not None:
|
| 5326 |
rajveer |
2424 |
oprot.writeFieldBegin('addressId', TType.I64, 7)
|
| 559 |
chandransh |
2425 |
oprot.writeI64(self.addressId)
|
|
|
2426 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2427 |
if self.totalPrice is not None:
|
| 5326 |
rajveer |
2428 |
oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 8)
|
| 1976 |
varun.gupt |
2429 |
oprot.writeDouble(self.totalPrice)
|
|
|
2430 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2431 |
if self.discountedPrice is not None:
|
| 5326 |
rajveer |
2432 |
oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 9)
|
| 1976 |
varun.gupt |
2433 |
oprot.writeDouble(self.discountedPrice)
|
|
|
2434 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2435 |
if self.couponCode is not None:
|
| 5326 |
rajveer |
2436 |
oprot.writeFieldBegin('couponCode', TType.STRING, 10)
|
| 1976 |
varun.gupt |
2437 |
oprot.writeString(self.couponCode)
|
|
|
2438 |
oprot.writeFieldEnd()
|
| 5553 |
rajveer |
2439 |
if self.pickupStoreId is not None:
|
|
|
2440 |
oprot.writeFieldBegin('pickupStoreId', TType.I64, 11)
|
|
|
2441 |
oprot.writeI64(self.pickupStoreId)
|
|
|
2442 |
oprot.writeFieldEnd()
|
| 6736 |
amit.gupta |
2443 |
if self.message is not None:
|
|
|
2444 |
oprot.writeFieldBegin('message', TType.STRING, 12)
|
|
|
2445 |
oprot.writeString(self.message)
|
|
|
2446 |
oprot.writeFieldEnd()
|
| 20873 |
kshitij.so |
2447 |
if self.wallet_amount is not None:
|
|
|
2448 |
oprot.writeFieldBegin('wallet_amount', TType.DOUBLE, 13)
|
|
|
2449 |
oprot.writeDouble(self.wallet_amount)
|
|
|
2450 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
2451 |
oprot.writeFieldStop()
|
|
|
2452 |
oprot.writeStructEnd()
|
|
|
2453 |
|
| 3431 |
rajveer |
2454 |
def validate(self):
|
|
|
2455 |
return
|
|
|
2456 |
|
|
|
2457 |
|
| 559 |
chandransh |
2458 |
def __repr__(self):
|
|
|
2459 |
L = ['%s=%r' % (key, value)
|
|
|
2460 |
for key, value in self.__dict__.iteritems()]
|
|
|
2461 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2462 |
|
|
|
2463 |
def __eq__(self, other):
|
|
|
2464 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2465 |
|
|
|
2466 |
def __ne__(self, other):
|
|
|
2467 |
return not (self == other)
|
|
|
2468 |
|
| 11592 |
amit.gupta |
2469 |
class CartPlus:
|
|
|
2470 |
"""
|
|
|
2471 |
Attributes:
|
|
|
2472 |
- cart
|
|
|
2473 |
- pinCode
|
|
|
2474 |
- needInsuranceInfo
|
|
|
2475 |
- validateCartMessages
|
|
|
2476 |
"""
|
|
|
2477 |
|
|
|
2478 |
thrift_spec = (
|
|
|
2479 |
None, # 0
|
|
|
2480 |
(1, TType.STRUCT, 'cart', (Cart, Cart.thrift_spec), None, ), # 1
|
|
|
2481 |
(2, TType.STRING, 'pinCode', None, None, ), # 2
|
|
|
2482 |
(3, TType.BOOL, 'needInsuranceInfo', None, None, ), # 3
|
|
|
2483 |
(4, TType.LIST, 'validateCartMessages', (TType.STRING,None), None, ), # 4
|
|
|
2484 |
)
|
|
|
2485 |
|
|
|
2486 |
def __init__(self, cart=None, pinCode=None, needInsuranceInfo=None, validateCartMessages=None,):
|
|
|
2487 |
self.cart = cart
|
|
|
2488 |
self.pinCode = pinCode
|
|
|
2489 |
self.needInsuranceInfo = needInsuranceInfo
|
|
|
2490 |
self.validateCartMessages = validateCartMessages
|
|
|
2491 |
|
|
|
2492 |
def read(self, iprot):
|
|
|
2493 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2494 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2495 |
return
|
|
|
2496 |
iprot.readStructBegin()
|
|
|
2497 |
while True:
|
|
|
2498 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2499 |
if ftype == TType.STOP:
|
|
|
2500 |
break
|
|
|
2501 |
if fid == 1:
|
|
|
2502 |
if ftype == TType.STRUCT:
|
|
|
2503 |
self.cart = Cart()
|
|
|
2504 |
self.cart.read(iprot)
|
|
|
2505 |
else:
|
|
|
2506 |
iprot.skip(ftype)
|
|
|
2507 |
elif fid == 2:
|
|
|
2508 |
if ftype == TType.STRING:
|
|
|
2509 |
self.pinCode = iprot.readString();
|
|
|
2510 |
else:
|
|
|
2511 |
iprot.skip(ftype)
|
|
|
2512 |
elif fid == 3:
|
|
|
2513 |
if ftype == TType.BOOL:
|
|
|
2514 |
self.needInsuranceInfo = iprot.readBool();
|
|
|
2515 |
else:
|
|
|
2516 |
iprot.skip(ftype)
|
|
|
2517 |
elif fid == 4:
|
|
|
2518 |
if ftype == TType.LIST:
|
|
|
2519 |
self.validateCartMessages = []
|
|
|
2520 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
2521 |
for _i25 in xrange(_size21):
|
|
|
2522 |
_elem26 = iprot.readString();
|
|
|
2523 |
self.validateCartMessages.append(_elem26)
|
|
|
2524 |
iprot.readListEnd()
|
|
|
2525 |
else:
|
|
|
2526 |
iprot.skip(ftype)
|
|
|
2527 |
else:
|
|
|
2528 |
iprot.skip(ftype)
|
|
|
2529 |
iprot.readFieldEnd()
|
|
|
2530 |
iprot.readStructEnd()
|
|
|
2531 |
|
|
|
2532 |
def write(self, oprot):
|
|
|
2533 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2534 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2535 |
return
|
|
|
2536 |
oprot.writeStructBegin('CartPlus')
|
|
|
2537 |
if self.cart is not None:
|
|
|
2538 |
oprot.writeFieldBegin('cart', TType.STRUCT, 1)
|
|
|
2539 |
self.cart.write(oprot)
|
|
|
2540 |
oprot.writeFieldEnd()
|
|
|
2541 |
if self.pinCode is not None:
|
|
|
2542 |
oprot.writeFieldBegin('pinCode', TType.STRING, 2)
|
|
|
2543 |
oprot.writeString(self.pinCode)
|
|
|
2544 |
oprot.writeFieldEnd()
|
|
|
2545 |
if self.needInsuranceInfo is not None:
|
|
|
2546 |
oprot.writeFieldBegin('needInsuranceInfo', TType.BOOL, 3)
|
|
|
2547 |
oprot.writeBool(self.needInsuranceInfo)
|
|
|
2548 |
oprot.writeFieldEnd()
|
|
|
2549 |
if self.validateCartMessages is not None:
|
|
|
2550 |
oprot.writeFieldBegin('validateCartMessages', TType.LIST, 4)
|
|
|
2551 |
oprot.writeListBegin(TType.STRING, len(self.validateCartMessages))
|
|
|
2552 |
for iter27 in self.validateCartMessages:
|
|
|
2553 |
oprot.writeString(iter27)
|
|
|
2554 |
oprot.writeListEnd()
|
|
|
2555 |
oprot.writeFieldEnd()
|
|
|
2556 |
oprot.writeFieldStop()
|
|
|
2557 |
oprot.writeStructEnd()
|
|
|
2558 |
|
|
|
2559 |
def validate(self):
|
|
|
2560 |
return
|
|
|
2561 |
|
|
|
2562 |
|
|
|
2563 |
def __repr__(self):
|
|
|
2564 |
L = ['%s=%r' % (key, value)
|
|
|
2565 |
for key, value in self.__dict__.iteritems()]
|
|
|
2566 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2567 |
|
|
|
2568 |
def __eq__(self, other):
|
|
|
2569 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2570 |
|
|
|
2571 |
def __ne__(self, other):
|
|
|
2572 |
return not (self == other)
|
|
|
2573 |
|
| 2981 |
rajveer |
2574 |
class UserWidgetItem:
|
| 559 |
chandransh |
2575 |
"""
|
|
|
2576 |
Attributes:
|
| 2981 |
rajveer |
2577 |
- userId
|
|
|
2578 |
- widgetId
|
|
|
2579 |
- itemId
|
|
|
2580 |
- addedOn
|
| 559 |
chandransh |
2581 |
"""
|
|
|
2582 |
|
|
|
2583 |
thrift_spec = (
|
|
|
2584 |
None, # 0
|
| 2981 |
rajveer |
2585 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
2586 |
(2, TType.I64, 'widgetId', None, None, ), # 2
|
|
|
2587 |
(3, TType.I64, 'itemId', None, None, ), # 3
|
|
|
2588 |
(4, TType.I64, 'addedOn', None, None, ), # 4
|
| 559 |
chandransh |
2589 |
)
|
|
|
2590 |
|
| 2981 |
rajveer |
2591 |
def __init__(self, userId=None, widgetId=None, itemId=None, addedOn=None,):
|
|
|
2592 |
self.userId = userId
|
|
|
2593 |
self.widgetId = widgetId
|
|
|
2594 |
self.itemId = itemId
|
|
|
2595 |
self.addedOn = addedOn
|
| 559 |
chandransh |
2596 |
|
|
|
2597 |
def read(self, iprot):
|
|
|
2598 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2599 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2600 |
return
|
|
|
2601 |
iprot.readStructBegin()
|
|
|
2602 |
while True:
|
|
|
2603 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2604 |
if ftype == TType.STOP:
|
|
|
2605 |
break
|
|
|
2606 |
if fid == 1:
|
|
|
2607 |
if ftype == TType.I64:
|
| 2981 |
rajveer |
2608 |
self.userId = iprot.readI64();
|
| 559 |
chandransh |
2609 |
else:
|
|
|
2610 |
iprot.skip(ftype)
|
|
|
2611 |
elif fid == 2:
|
|
|
2612 |
if ftype == TType.I64:
|
| 2981 |
rajveer |
2613 |
self.widgetId = iprot.readI64();
|
| 559 |
chandransh |
2614 |
else:
|
|
|
2615 |
iprot.skip(ftype)
|
|
|
2616 |
elif fid == 3:
|
| 2981 |
rajveer |
2617 |
if ftype == TType.I64:
|
|
|
2618 |
self.itemId = iprot.readI64();
|
| 559 |
chandransh |
2619 |
else:
|
|
|
2620 |
iprot.skip(ftype)
|
| 772 |
rajveer |
2621 |
elif fid == 4:
|
| 559 |
chandransh |
2622 |
if ftype == TType.I64:
|
| 2981 |
rajveer |
2623 |
self.addedOn = iprot.readI64();
|
| 559 |
chandransh |
2624 |
else:
|
|
|
2625 |
iprot.skip(ftype)
|
|
|
2626 |
else:
|
|
|
2627 |
iprot.skip(ftype)
|
|
|
2628 |
iprot.readFieldEnd()
|
|
|
2629 |
iprot.readStructEnd()
|
|
|
2630 |
|
|
|
2631 |
def write(self, oprot):
|
|
|
2632 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2633 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2634 |
return
|
| 2981 |
rajveer |
2635 |
oprot.writeStructBegin('UserWidgetItem')
|
| 3431 |
rajveer |
2636 |
if self.userId is not None:
|
| 2981 |
rajveer |
2637 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
2638 |
oprot.writeI64(self.userId)
|
| 94 |
ashish |
2639 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2640 |
if self.widgetId is not None:
|
| 2981 |
rajveer |
2641 |
oprot.writeFieldBegin('widgetId', TType.I64, 2)
|
|
|
2642 |
oprot.writeI64(self.widgetId)
|
| 122 |
ashish |
2643 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2644 |
if self.itemId is not None:
|
| 2981 |
rajveer |
2645 |
oprot.writeFieldBegin('itemId', TType.I64, 3)
|
|
|
2646 |
oprot.writeI64(self.itemId)
|
| 559 |
chandransh |
2647 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2648 |
if self.addedOn is not None:
|
| 2981 |
rajveer |
2649 |
oprot.writeFieldBegin('addedOn', TType.I64, 4)
|
|
|
2650 |
oprot.writeI64(self.addedOn)
|
| 559 |
chandransh |
2651 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
2652 |
oprot.writeFieldStop()
|
|
|
2653 |
oprot.writeStructEnd()
|
|
|
2654 |
|
| 3431 |
rajveer |
2655 |
def validate(self):
|
|
|
2656 |
return
|
|
|
2657 |
|
|
|
2658 |
|
| 94 |
ashish |
2659 |
def __repr__(self):
|
|
|
2660 |
L = ['%s=%r' % (key, value)
|
|
|
2661 |
for key, value in self.__dict__.iteritems()]
|
|
|
2662 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2663 |
|
|
|
2664 |
def __eq__(self, other):
|
|
|
2665 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2666 |
|
|
|
2667 |
def __ne__(self, other):
|
|
|
2668 |
return not (self == other)
|
|
|
2669 |
|
| 559 |
chandransh |
2670 |
class WidgetException(Exception):
|
|
|
2671 |
"""
|
|
|
2672 |
Attributes:
|
|
|
2673 |
- id
|
|
|
2674 |
- message
|
|
|
2675 |
"""
|
|
|
2676 |
|
|
|
2677 |
thrift_spec = (
|
|
|
2678 |
None, # 0
|
|
|
2679 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2680 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
2681 |
)
|
|
|
2682 |
|
|
|
2683 |
def __init__(self, id=None, message=None,):
|
|
|
2684 |
self.id = id
|
|
|
2685 |
self.message = message
|
|
|
2686 |
|
|
|
2687 |
def read(self, iprot):
|
|
|
2688 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2689 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2690 |
return
|
|
|
2691 |
iprot.readStructBegin()
|
|
|
2692 |
while True:
|
|
|
2693 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2694 |
if ftype == TType.STOP:
|
|
|
2695 |
break
|
|
|
2696 |
if fid == 1:
|
|
|
2697 |
if ftype == TType.I64:
|
|
|
2698 |
self.id = iprot.readI64();
|
|
|
2699 |
else:
|
|
|
2700 |
iprot.skip(ftype)
|
|
|
2701 |
elif fid == 2:
|
|
|
2702 |
if ftype == TType.STRING:
|
|
|
2703 |
self.message = iprot.readString();
|
|
|
2704 |
else:
|
|
|
2705 |
iprot.skip(ftype)
|
|
|
2706 |
else:
|
|
|
2707 |
iprot.skip(ftype)
|
|
|
2708 |
iprot.readFieldEnd()
|
|
|
2709 |
iprot.readStructEnd()
|
|
|
2710 |
|
|
|
2711 |
def write(self, oprot):
|
|
|
2712 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2713 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2714 |
return
|
|
|
2715 |
oprot.writeStructBegin('WidgetException')
|
| 3431 |
rajveer |
2716 |
if self.id is not None:
|
| 559 |
chandransh |
2717 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2718 |
oprot.writeI64(self.id)
|
|
|
2719 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2720 |
if self.message is not None:
|
| 559 |
chandransh |
2721 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
2722 |
oprot.writeString(self.message)
|
|
|
2723 |
oprot.writeFieldEnd()
|
|
|
2724 |
oprot.writeFieldStop()
|
|
|
2725 |
oprot.writeStructEnd()
|
|
|
2726 |
|
| 3431 |
rajveer |
2727 |
def validate(self):
|
|
|
2728 |
return
|
|
|
2729 |
|
|
|
2730 |
|
| 559 |
chandransh |
2731 |
def __str__(self):
|
|
|
2732 |
return repr(self)
|
|
|
2733 |
|
|
|
2734 |
def __repr__(self):
|
|
|
2735 |
L = ['%s=%r' % (key, value)
|
|
|
2736 |
for key, value in self.__dict__.iteritems()]
|
|
|
2737 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2738 |
|
|
|
2739 |
def __eq__(self, other):
|
|
|
2740 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2741 |
|
|
|
2742 |
def __ne__(self, other):
|
|
|
2743 |
return not (self == other)
|
|
|
2744 |
|
| 1976 |
varun.gupt |
2745 |
class PromotionException(Exception):
|
|
|
2746 |
"""
|
|
|
2747 |
Exceptions for Promotion Service
|
| 3431 |
rajveer |
2748 |
|
| 1976 |
varun.gupt |
2749 |
Attributes:
|
|
|
2750 |
- id
|
|
|
2751 |
- message
|
|
|
2752 |
"""
|
|
|
2753 |
|
|
|
2754 |
thrift_spec = (
|
|
|
2755 |
None, # 0
|
|
|
2756 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2757 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
2758 |
)
|
|
|
2759 |
|
|
|
2760 |
def __init__(self, id=None, message=None,):
|
|
|
2761 |
self.id = id
|
|
|
2762 |
self.message = message
|
|
|
2763 |
|
|
|
2764 |
def read(self, iprot):
|
|
|
2765 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2766 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2767 |
return
|
|
|
2768 |
iprot.readStructBegin()
|
|
|
2769 |
while True:
|
|
|
2770 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2771 |
if ftype == TType.STOP:
|
|
|
2772 |
break
|
|
|
2773 |
if fid == 1:
|
|
|
2774 |
if ftype == TType.I64:
|
|
|
2775 |
self.id = iprot.readI64();
|
|
|
2776 |
else:
|
|
|
2777 |
iprot.skip(ftype)
|
|
|
2778 |
elif fid == 2:
|
|
|
2779 |
if ftype == TType.STRING:
|
|
|
2780 |
self.message = iprot.readString();
|
|
|
2781 |
else:
|
|
|
2782 |
iprot.skip(ftype)
|
|
|
2783 |
else:
|
|
|
2784 |
iprot.skip(ftype)
|
|
|
2785 |
iprot.readFieldEnd()
|
|
|
2786 |
iprot.readStructEnd()
|
|
|
2787 |
|
|
|
2788 |
def write(self, oprot):
|
|
|
2789 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2790 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2791 |
return
|
|
|
2792 |
oprot.writeStructBegin('PromotionException')
|
| 3431 |
rajveer |
2793 |
if self.id is not None:
|
| 1976 |
varun.gupt |
2794 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2795 |
oprot.writeI64(self.id)
|
|
|
2796 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2797 |
if self.message is not None:
|
| 1976 |
varun.gupt |
2798 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
2799 |
oprot.writeString(self.message)
|
|
|
2800 |
oprot.writeFieldEnd()
|
|
|
2801 |
oprot.writeFieldStop()
|
|
|
2802 |
oprot.writeStructEnd()
|
|
|
2803 |
|
| 3431 |
rajveer |
2804 |
def validate(self):
|
|
|
2805 |
return
|
|
|
2806 |
|
|
|
2807 |
|
| 1976 |
varun.gupt |
2808 |
def __str__(self):
|
|
|
2809 |
return repr(self)
|
|
|
2810 |
|
|
|
2811 |
def __repr__(self):
|
|
|
2812 |
L = ['%s=%r' % (key, value)
|
|
|
2813 |
for key, value in self.__dict__.iteritems()]
|
|
|
2814 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2815 |
|
|
|
2816 |
def __eq__(self, other):
|
|
|
2817 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2818 |
|
|
|
2819 |
def __ne__(self, other):
|
|
|
2820 |
return not (self == other)
|
|
|
2821 |
|
|
|
2822 |
class Promotion:
|
|
|
2823 |
"""
|
|
|
2824 |
Types for Promotion Service
|
| 3431 |
rajveer |
2825 |
|
| 1976 |
varun.gupt |
2826 |
Attributes:
|
|
|
2827 |
- id
|
|
|
2828 |
- name
|
|
|
2829 |
- ruleExecutionSrc
|
|
|
2830 |
- startOn
|
|
|
2831 |
- endOn
|
|
|
2832 |
- createdOn
|
|
|
2833 |
"""
|
|
|
2834 |
|
|
|
2835 |
thrift_spec = (
|
|
|
2836 |
None, # 0
|
|
|
2837 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2838 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
2839 |
(3, TType.STRING, 'ruleExecutionSrc', None, None, ), # 3
|
|
|
2840 |
(4, TType.I64, 'startOn', None, None, ), # 4
|
|
|
2841 |
(5, TType.I64, 'endOn', None, None, ), # 5
|
|
|
2842 |
(6, TType.I64, 'createdOn', None, None, ), # 6
|
|
|
2843 |
)
|
|
|
2844 |
|
|
|
2845 |
def __init__(self, id=None, name=None, ruleExecutionSrc=None, startOn=None, endOn=None, createdOn=None,):
|
|
|
2846 |
self.id = id
|
|
|
2847 |
self.name = name
|
|
|
2848 |
self.ruleExecutionSrc = ruleExecutionSrc
|
|
|
2849 |
self.startOn = startOn
|
|
|
2850 |
self.endOn = endOn
|
|
|
2851 |
self.createdOn = createdOn
|
|
|
2852 |
|
|
|
2853 |
def read(self, iprot):
|
|
|
2854 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2855 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2856 |
return
|
|
|
2857 |
iprot.readStructBegin()
|
|
|
2858 |
while True:
|
|
|
2859 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2860 |
if ftype == TType.STOP:
|
|
|
2861 |
break
|
|
|
2862 |
if fid == 1:
|
|
|
2863 |
if ftype == TType.I64:
|
|
|
2864 |
self.id = iprot.readI64();
|
|
|
2865 |
else:
|
|
|
2866 |
iprot.skip(ftype)
|
|
|
2867 |
elif fid == 2:
|
|
|
2868 |
if ftype == TType.STRING:
|
|
|
2869 |
self.name = iprot.readString();
|
|
|
2870 |
else:
|
|
|
2871 |
iprot.skip(ftype)
|
|
|
2872 |
elif fid == 3:
|
|
|
2873 |
if ftype == TType.STRING:
|
|
|
2874 |
self.ruleExecutionSrc = iprot.readString();
|
|
|
2875 |
else:
|
|
|
2876 |
iprot.skip(ftype)
|
|
|
2877 |
elif fid == 4:
|
|
|
2878 |
if ftype == TType.I64:
|
|
|
2879 |
self.startOn = iprot.readI64();
|
|
|
2880 |
else:
|
|
|
2881 |
iprot.skip(ftype)
|
|
|
2882 |
elif fid == 5:
|
|
|
2883 |
if ftype == TType.I64:
|
|
|
2884 |
self.endOn = iprot.readI64();
|
|
|
2885 |
else:
|
|
|
2886 |
iprot.skip(ftype)
|
|
|
2887 |
elif fid == 6:
|
|
|
2888 |
if ftype == TType.I64:
|
|
|
2889 |
self.createdOn = iprot.readI64();
|
|
|
2890 |
else:
|
|
|
2891 |
iprot.skip(ftype)
|
|
|
2892 |
else:
|
|
|
2893 |
iprot.skip(ftype)
|
|
|
2894 |
iprot.readFieldEnd()
|
|
|
2895 |
iprot.readStructEnd()
|
|
|
2896 |
|
|
|
2897 |
def write(self, oprot):
|
|
|
2898 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2899 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2900 |
return
|
|
|
2901 |
oprot.writeStructBegin('Promotion')
|
| 3431 |
rajveer |
2902 |
if self.id is not None:
|
| 1976 |
varun.gupt |
2903 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2904 |
oprot.writeI64(self.id)
|
|
|
2905 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2906 |
if self.name is not None:
|
| 1976 |
varun.gupt |
2907 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
2908 |
oprot.writeString(self.name)
|
|
|
2909 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2910 |
if self.ruleExecutionSrc is not None:
|
| 1976 |
varun.gupt |
2911 |
oprot.writeFieldBegin('ruleExecutionSrc', TType.STRING, 3)
|
|
|
2912 |
oprot.writeString(self.ruleExecutionSrc)
|
|
|
2913 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2914 |
if self.startOn is not None:
|
| 1976 |
varun.gupt |
2915 |
oprot.writeFieldBegin('startOn', TType.I64, 4)
|
|
|
2916 |
oprot.writeI64(self.startOn)
|
|
|
2917 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2918 |
if self.endOn is not None:
|
| 1976 |
varun.gupt |
2919 |
oprot.writeFieldBegin('endOn', TType.I64, 5)
|
|
|
2920 |
oprot.writeI64(self.endOn)
|
|
|
2921 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2922 |
if self.createdOn is not None:
|
| 1976 |
varun.gupt |
2923 |
oprot.writeFieldBegin('createdOn', TType.I64, 6)
|
|
|
2924 |
oprot.writeI64(self.createdOn)
|
|
|
2925 |
oprot.writeFieldEnd()
|
|
|
2926 |
oprot.writeFieldStop()
|
|
|
2927 |
oprot.writeStructEnd()
|
|
|
2928 |
|
| 3431 |
rajveer |
2929 |
def validate(self):
|
|
|
2930 |
return
|
|
|
2931 |
|
|
|
2932 |
|
| 1976 |
varun.gupt |
2933 |
def __repr__(self):
|
|
|
2934 |
L = ['%s=%r' % (key, value)
|
|
|
2935 |
for key, value in self.__dict__.iteritems()]
|
|
|
2936 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2937 |
|
|
|
2938 |
def __eq__(self, other):
|
|
|
2939 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2940 |
|
|
|
2941 |
def __ne__(self, other):
|
|
|
2942 |
return not (self == other)
|
|
|
2943 |
|
| 12696 |
amit.gupta |
2944 |
class Counter:
|
|
|
2945 |
"""
|
|
|
2946 |
Attributes:
|
|
|
2947 |
- id
|
|
|
2948 |
- code
|
|
|
2949 |
- name
|
|
|
2950 |
- ownerName
|
|
|
2951 |
- email
|
|
|
2952 |
- mobile
|
|
|
2953 |
- alternateMobile
|
|
|
2954 |
- striker
|
|
|
2955 |
- tin
|
|
|
2956 |
- spCounterSize
|
|
|
2957 |
- fpCounterSize
|
|
|
2958 |
- dob
|
|
|
2959 |
- addedOn
|
|
|
2960 |
- address
|
| 18530 |
manish.sha |
2961 |
- documentVerified
|
|
|
2962 |
- verificationType
|
|
|
2963 |
- verifiedOn
|
| 21963 |
amit.gupta |
2964 |
- gstin
|
| 12696 |
amit.gupta |
2965 |
"""
|
|
|
2966 |
|
|
|
2967 |
thrift_spec = (
|
|
|
2968 |
None, # 0
|
|
|
2969 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2970 |
(2, TType.STRING, 'code', None, None, ), # 2
|
|
|
2971 |
(3, TType.STRING, 'name', None, None, ), # 3
|
|
|
2972 |
(4, TType.STRING, 'ownerName', None, None, ), # 4
|
|
|
2973 |
(5, TType.STRING, 'email', None, None, ), # 5
|
|
|
2974 |
(6, TType.STRING, 'mobile', None, None, ), # 6
|
|
|
2975 |
(7, TType.STRING, 'alternateMobile', None, None, ), # 7
|
|
|
2976 |
(8, TType.BOOL, 'striker', None, None, ), # 8
|
|
|
2977 |
(9, TType.STRING, 'tin', None, None, ), # 9
|
|
|
2978 |
(10, TType.I64, 'spCounterSize', None, None, ), # 10
|
|
|
2979 |
(11, TType.I64, 'fpCounterSize', None, None, ), # 11
|
| 12722 |
amit.gupta |
2980 |
(12, TType.STRING, 'dob', None, None, ), # 12
|
| 12696 |
amit.gupta |
2981 |
(13, TType.I64, 'addedOn', None, None, ), # 13
|
|
|
2982 |
(14, TType.I64, 'address', None, None, ), # 14
|
| 18530 |
manish.sha |
2983 |
(15, TType.BOOL, 'documentVerified', None, None, ), # 15
|
|
|
2984 |
(16, TType.I32, 'verificationType', None, None, ), # 16
|
|
|
2985 |
(17, TType.I64, 'verifiedOn', None, None, ), # 17
|
| 21963 |
amit.gupta |
2986 |
(18, TType.STRING, 'gstin', None, None, ), # 18
|
| 12696 |
amit.gupta |
2987 |
)
|
|
|
2988 |
|
| 21963 |
amit.gupta |
2989 |
def __init__(self, id=None, code=None, name=None, ownerName=None, email=None, mobile=None, alternateMobile=None, striker=None, tin=None, spCounterSize=None, fpCounterSize=None, dob=None, addedOn=None, address=None, documentVerified=None, verificationType=None, verifiedOn=None, gstin=None,):
|
| 12696 |
amit.gupta |
2990 |
self.id = id
|
|
|
2991 |
self.code = code
|
|
|
2992 |
self.name = name
|
|
|
2993 |
self.ownerName = ownerName
|
|
|
2994 |
self.email = email
|
|
|
2995 |
self.mobile = mobile
|
|
|
2996 |
self.alternateMobile = alternateMobile
|
|
|
2997 |
self.striker = striker
|
|
|
2998 |
self.tin = tin
|
|
|
2999 |
self.spCounterSize = spCounterSize
|
|
|
3000 |
self.fpCounterSize = fpCounterSize
|
|
|
3001 |
self.dob = dob
|
|
|
3002 |
self.addedOn = addedOn
|
|
|
3003 |
self.address = address
|
| 18530 |
manish.sha |
3004 |
self.documentVerified = documentVerified
|
|
|
3005 |
self.verificationType = verificationType
|
|
|
3006 |
self.verifiedOn = verifiedOn
|
| 21963 |
amit.gupta |
3007 |
self.gstin = gstin
|
| 12696 |
amit.gupta |
3008 |
|
|
|
3009 |
def read(self, iprot):
|
|
|
3010 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3011 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3012 |
return
|
|
|
3013 |
iprot.readStructBegin()
|
|
|
3014 |
while True:
|
|
|
3015 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3016 |
if ftype == TType.STOP:
|
|
|
3017 |
break
|
|
|
3018 |
if fid == 1:
|
|
|
3019 |
if ftype == TType.I64:
|
|
|
3020 |
self.id = iprot.readI64();
|
|
|
3021 |
else:
|
|
|
3022 |
iprot.skip(ftype)
|
|
|
3023 |
elif fid == 2:
|
|
|
3024 |
if ftype == TType.STRING:
|
|
|
3025 |
self.code = iprot.readString();
|
|
|
3026 |
else:
|
|
|
3027 |
iprot.skip(ftype)
|
|
|
3028 |
elif fid == 3:
|
|
|
3029 |
if ftype == TType.STRING:
|
|
|
3030 |
self.name = iprot.readString();
|
|
|
3031 |
else:
|
|
|
3032 |
iprot.skip(ftype)
|
|
|
3033 |
elif fid == 4:
|
|
|
3034 |
if ftype == TType.STRING:
|
|
|
3035 |
self.ownerName = iprot.readString();
|
|
|
3036 |
else:
|
|
|
3037 |
iprot.skip(ftype)
|
|
|
3038 |
elif fid == 5:
|
|
|
3039 |
if ftype == TType.STRING:
|
|
|
3040 |
self.email = iprot.readString();
|
|
|
3041 |
else:
|
|
|
3042 |
iprot.skip(ftype)
|
|
|
3043 |
elif fid == 6:
|
|
|
3044 |
if ftype == TType.STRING:
|
|
|
3045 |
self.mobile = iprot.readString();
|
|
|
3046 |
else:
|
|
|
3047 |
iprot.skip(ftype)
|
|
|
3048 |
elif fid == 7:
|
|
|
3049 |
if ftype == TType.STRING:
|
|
|
3050 |
self.alternateMobile = iprot.readString();
|
|
|
3051 |
else:
|
|
|
3052 |
iprot.skip(ftype)
|
|
|
3053 |
elif fid == 8:
|
|
|
3054 |
if ftype == TType.BOOL:
|
|
|
3055 |
self.striker = iprot.readBool();
|
|
|
3056 |
else:
|
|
|
3057 |
iprot.skip(ftype)
|
|
|
3058 |
elif fid == 9:
|
|
|
3059 |
if ftype == TType.STRING:
|
|
|
3060 |
self.tin = iprot.readString();
|
|
|
3061 |
else:
|
|
|
3062 |
iprot.skip(ftype)
|
|
|
3063 |
elif fid == 10:
|
|
|
3064 |
if ftype == TType.I64:
|
|
|
3065 |
self.spCounterSize = iprot.readI64();
|
|
|
3066 |
else:
|
|
|
3067 |
iprot.skip(ftype)
|
|
|
3068 |
elif fid == 11:
|
|
|
3069 |
if ftype == TType.I64:
|
|
|
3070 |
self.fpCounterSize = iprot.readI64();
|
|
|
3071 |
else:
|
|
|
3072 |
iprot.skip(ftype)
|
|
|
3073 |
elif fid == 12:
|
| 12722 |
amit.gupta |
3074 |
if ftype == TType.STRING:
|
|
|
3075 |
self.dob = iprot.readString();
|
| 12696 |
amit.gupta |
3076 |
else:
|
|
|
3077 |
iprot.skip(ftype)
|
|
|
3078 |
elif fid == 13:
|
|
|
3079 |
if ftype == TType.I64:
|
|
|
3080 |
self.addedOn = iprot.readI64();
|
|
|
3081 |
else:
|
|
|
3082 |
iprot.skip(ftype)
|
|
|
3083 |
elif fid == 14:
|
|
|
3084 |
if ftype == TType.I64:
|
|
|
3085 |
self.address = iprot.readI64();
|
|
|
3086 |
else:
|
|
|
3087 |
iprot.skip(ftype)
|
| 18530 |
manish.sha |
3088 |
elif fid == 15:
|
|
|
3089 |
if ftype == TType.BOOL:
|
|
|
3090 |
self.documentVerified = iprot.readBool();
|
|
|
3091 |
else:
|
|
|
3092 |
iprot.skip(ftype)
|
|
|
3093 |
elif fid == 16:
|
|
|
3094 |
if ftype == TType.I32:
|
|
|
3095 |
self.verificationType = iprot.readI32();
|
|
|
3096 |
else:
|
|
|
3097 |
iprot.skip(ftype)
|
|
|
3098 |
elif fid == 17:
|
|
|
3099 |
if ftype == TType.I64:
|
|
|
3100 |
self.verifiedOn = iprot.readI64();
|
|
|
3101 |
else:
|
|
|
3102 |
iprot.skip(ftype)
|
| 21908 |
amit.gupta |
3103 |
elif fid == 18:
|
|
|
3104 |
if ftype == TType.STRING:
|
| 21963 |
amit.gupta |
3105 |
self.gstin = iprot.readString();
|
| 21908 |
amit.gupta |
3106 |
else:
|
|
|
3107 |
iprot.skip(ftype)
|
| 12696 |
amit.gupta |
3108 |
else:
|
|
|
3109 |
iprot.skip(ftype)
|
|
|
3110 |
iprot.readFieldEnd()
|
|
|
3111 |
iprot.readStructEnd()
|
|
|
3112 |
|
|
|
3113 |
def write(self, oprot):
|
|
|
3114 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3115 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3116 |
return
|
|
|
3117 |
oprot.writeStructBegin('Counter')
|
|
|
3118 |
if self.id is not None:
|
|
|
3119 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3120 |
oprot.writeI64(self.id)
|
|
|
3121 |
oprot.writeFieldEnd()
|
|
|
3122 |
if self.code is not None:
|
|
|
3123 |
oprot.writeFieldBegin('code', TType.STRING, 2)
|
|
|
3124 |
oprot.writeString(self.code)
|
|
|
3125 |
oprot.writeFieldEnd()
|
|
|
3126 |
if self.name is not None:
|
|
|
3127 |
oprot.writeFieldBegin('name', TType.STRING, 3)
|
|
|
3128 |
oprot.writeString(self.name)
|
|
|
3129 |
oprot.writeFieldEnd()
|
|
|
3130 |
if self.ownerName is not None:
|
|
|
3131 |
oprot.writeFieldBegin('ownerName', TType.STRING, 4)
|
|
|
3132 |
oprot.writeString(self.ownerName)
|
|
|
3133 |
oprot.writeFieldEnd()
|
|
|
3134 |
if self.email is not None:
|
|
|
3135 |
oprot.writeFieldBegin('email', TType.STRING, 5)
|
|
|
3136 |
oprot.writeString(self.email)
|
|
|
3137 |
oprot.writeFieldEnd()
|
|
|
3138 |
if self.mobile is not None:
|
|
|
3139 |
oprot.writeFieldBegin('mobile', TType.STRING, 6)
|
|
|
3140 |
oprot.writeString(self.mobile)
|
|
|
3141 |
oprot.writeFieldEnd()
|
|
|
3142 |
if self.alternateMobile is not None:
|
|
|
3143 |
oprot.writeFieldBegin('alternateMobile', TType.STRING, 7)
|
|
|
3144 |
oprot.writeString(self.alternateMobile)
|
|
|
3145 |
oprot.writeFieldEnd()
|
|
|
3146 |
if self.striker is not None:
|
|
|
3147 |
oprot.writeFieldBegin('striker', TType.BOOL, 8)
|
|
|
3148 |
oprot.writeBool(self.striker)
|
|
|
3149 |
oprot.writeFieldEnd()
|
|
|
3150 |
if self.tin is not None:
|
|
|
3151 |
oprot.writeFieldBegin('tin', TType.STRING, 9)
|
|
|
3152 |
oprot.writeString(self.tin)
|
|
|
3153 |
oprot.writeFieldEnd()
|
|
|
3154 |
if self.spCounterSize is not None:
|
|
|
3155 |
oprot.writeFieldBegin('spCounterSize', TType.I64, 10)
|
|
|
3156 |
oprot.writeI64(self.spCounterSize)
|
|
|
3157 |
oprot.writeFieldEnd()
|
|
|
3158 |
if self.fpCounterSize is not None:
|
|
|
3159 |
oprot.writeFieldBegin('fpCounterSize', TType.I64, 11)
|
|
|
3160 |
oprot.writeI64(self.fpCounterSize)
|
|
|
3161 |
oprot.writeFieldEnd()
|
|
|
3162 |
if self.dob is not None:
|
| 12722 |
amit.gupta |
3163 |
oprot.writeFieldBegin('dob', TType.STRING, 12)
|
|
|
3164 |
oprot.writeString(self.dob)
|
| 12696 |
amit.gupta |
3165 |
oprot.writeFieldEnd()
|
|
|
3166 |
if self.addedOn is not None:
|
|
|
3167 |
oprot.writeFieldBegin('addedOn', TType.I64, 13)
|
|
|
3168 |
oprot.writeI64(self.addedOn)
|
|
|
3169 |
oprot.writeFieldEnd()
|
|
|
3170 |
if self.address is not None:
|
|
|
3171 |
oprot.writeFieldBegin('address', TType.I64, 14)
|
|
|
3172 |
oprot.writeI64(self.address)
|
|
|
3173 |
oprot.writeFieldEnd()
|
| 18530 |
manish.sha |
3174 |
if self.documentVerified is not None:
|
|
|
3175 |
oprot.writeFieldBegin('documentVerified', TType.BOOL, 15)
|
|
|
3176 |
oprot.writeBool(self.documentVerified)
|
|
|
3177 |
oprot.writeFieldEnd()
|
|
|
3178 |
if self.verificationType is not None:
|
|
|
3179 |
oprot.writeFieldBegin('verificationType', TType.I32, 16)
|
|
|
3180 |
oprot.writeI32(self.verificationType)
|
|
|
3181 |
oprot.writeFieldEnd()
|
|
|
3182 |
if self.verifiedOn is not None:
|
|
|
3183 |
oprot.writeFieldBegin('verifiedOn', TType.I64, 17)
|
|
|
3184 |
oprot.writeI64(self.verifiedOn)
|
|
|
3185 |
oprot.writeFieldEnd()
|
| 21963 |
amit.gupta |
3186 |
if self.gstin is not None:
|
|
|
3187 |
oprot.writeFieldBegin('gstin', TType.STRING, 18)
|
|
|
3188 |
oprot.writeString(self.gstin)
|
| 21908 |
amit.gupta |
3189 |
oprot.writeFieldEnd()
|
| 12696 |
amit.gupta |
3190 |
oprot.writeFieldStop()
|
|
|
3191 |
oprot.writeStructEnd()
|
|
|
3192 |
|
|
|
3193 |
def validate(self):
|
|
|
3194 |
return
|
|
|
3195 |
|
|
|
3196 |
|
|
|
3197 |
def __repr__(self):
|
|
|
3198 |
L = ['%s=%r' % (key, value)
|
|
|
3199 |
for key, value in self.__dict__.iteritems()]
|
|
|
3200 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3201 |
|
|
|
3202 |
def __eq__(self, other):
|
|
|
3203 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3204 |
|
|
|
3205 |
def __ne__(self, other):
|
|
|
3206 |
return not (self == other)
|
|
|
3207 |
|
| 18530 |
manish.sha |
3208 |
class CounterOnlineInfo:
|
|
|
3209 |
"""
|
|
|
3210 |
Attributes:
|
|
|
3211 |
- counterId
|
|
|
3212 |
- tinNumber
|
|
|
3213 |
- cstNumber
|
|
|
3214 |
- dealerName
|
|
|
3215 |
- dealerAddress
|
|
|
3216 |
- state
|
|
|
3217 |
- pan
|
|
|
3218 |
- registrationDate
|
|
|
3219 |
- registrationStatus
|
|
|
3220 |
- validatedTill
|
| 18644 |
manish.sha |
3221 |
- created
|
| 18530 |
manish.sha |
3222 |
"""
|
|
|
3223 |
|
|
|
3224 |
thrift_spec = (
|
|
|
3225 |
None, # 0
|
|
|
3226 |
(1, TType.I64, 'counterId', None, None, ), # 1
|
|
|
3227 |
(2, TType.STRING, 'tinNumber', None, None, ), # 2
|
|
|
3228 |
(3, TType.STRING, 'cstNumber', None, None, ), # 3
|
|
|
3229 |
(4, TType.STRING, 'dealerName', None, None, ), # 4
|
|
|
3230 |
(5, TType.STRING, 'dealerAddress', None, None, ), # 5
|
|
|
3231 |
(6, TType.STRING, 'state', None, None, ), # 6
|
|
|
3232 |
(7, TType.STRING, 'pan', None, None, ), # 7
|
|
|
3233 |
(8, TType.I64, 'registrationDate', None, None, ), # 8
|
|
|
3234 |
(9, TType.BOOL, 'registrationStatus', None, None, ), # 9
|
|
|
3235 |
(10, TType.I64, 'validatedTill', None, None, ), # 10
|
| 18644 |
manish.sha |
3236 |
(11, TType.I64, 'created', None, None, ), # 11
|
| 18530 |
manish.sha |
3237 |
)
|
|
|
3238 |
|
| 18644 |
manish.sha |
3239 |
def __init__(self, counterId=None, tinNumber=None, cstNumber=None, dealerName=None, dealerAddress=None, state=None, pan=None, registrationDate=None, registrationStatus=None, validatedTill=None, created=None,):
|
| 18530 |
manish.sha |
3240 |
self.counterId = counterId
|
|
|
3241 |
self.tinNumber = tinNumber
|
|
|
3242 |
self.cstNumber = cstNumber
|
|
|
3243 |
self.dealerName = dealerName
|
|
|
3244 |
self.dealerAddress = dealerAddress
|
|
|
3245 |
self.state = state
|
|
|
3246 |
self.pan = pan
|
|
|
3247 |
self.registrationDate = registrationDate
|
|
|
3248 |
self.registrationStatus = registrationStatus
|
|
|
3249 |
self.validatedTill = validatedTill
|
| 18644 |
manish.sha |
3250 |
self.created = created
|
| 18530 |
manish.sha |
3251 |
|
|
|
3252 |
def read(self, iprot):
|
|
|
3253 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3254 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3255 |
return
|
|
|
3256 |
iprot.readStructBegin()
|
|
|
3257 |
while True:
|
|
|
3258 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3259 |
if ftype == TType.STOP:
|
|
|
3260 |
break
|
|
|
3261 |
if fid == 1:
|
|
|
3262 |
if ftype == TType.I64:
|
|
|
3263 |
self.counterId = iprot.readI64();
|
|
|
3264 |
else:
|
|
|
3265 |
iprot.skip(ftype)
|
|
|
3266 |
elif fid == 2:
|
|
|
3267 |
if ftype == TType.STRING:
|
|
|
3268 |
self.tinNumber = iprot.readString();
|
|
|
3269 |
else:
|
|
|
3270 |
iprot.skip(ftype)
|
|
|
3271 |
elif fid == 3:
|
|
|
3272 |
if ftype == TType.STRING:
|
|
|
3273 |
self.cstNumber = iprot.readString();
|
|
|
3274 |
else:
|
|
|
3275 |
iprot.skip(ftype)
|
|
|
3276 |
elif fid == 4:
|
|
|
3277 |
if ftype == TType.STRING:
|
|
|
3278 |
self.dealerName = iprot.readString();
|
|
|
3279 |
else:
|
|
|
3280 |
iprot.skip(ftype)
|
|
|
3281 |
elif fid == 5:
|
|
|
3282 |
if ftype == TType.STRING:
|
|
|
3283 |
self.dealerAddress = iprot.readString();
|
|
|
3284 |
else:
|
|
|
3285 |
iprot.skip(ftype)
|
|
|
3286 |
elif fid == 6:
|
|
|
3287 |
if ftype == TType.STRING:
|
|
|
3288 |
self.state = iprot.readString();
|
|
|
3289 |
else:
|
|
|
3290 |
iprot.skip(ftype)
|
|
|
3291 |
elif fid == 7:
|
|
|
3292 |
if ftype == TType.STRING:
|
|
|
3293 |
self.pan = iprot.readString();
|
|
|
3294 |
else:
|
|
|
3295 |
iprot.skip(ftype)
|
|
|
3296 |
elif fid == 8:
|
|
|
3297 |
if ftype == TType.I64:
|
|
|
3298 |
self.registrationDate = iprot.readI64();
|
|
|
3299 |
else:
|
|
|
3300 |
iprot.skip(ftype)
|
|
|
3301 |
elif fid == 9:
|
|
|
3302 |
if ftype == TType.BOOL:
|
|
|
3303 |
self.registrationStatus = iprot.readBool();
|
|
|
3304 |
else:
|
|
|
3305 |
iprot.skip(ftype)
|
|
|
3306 |
elif fid == 10:
|
|
|
3307 |
if ftype == TType.I64:
|
|
|
3308 |
self.validatedTill = iprot.readI64();
|
|
|
3309 |
else:
|
|
|
3310 |
iprot.skip(ftype)
|
| 18644 |
manish.sha |
3311 |
elif fid == 11:
|
|
|
3312 |
if ftype == TType.I64:
|
|
|
3313 |
self.created = iprot.readI64();
|
|
|
3314 |
else:
|
|
|
3315 |
iprot.skip(ftype)
|
| 18530 |
manish.sha |
3316 |
else:
|
|
|
3317 |
iprot.skip(ftype)
|
|
|
3318 |
iprot.readFieldEnd()
|
|
|
3319 |
iprot.readStructEnd()
|
|
|
3320 |
|
|
|
3321 |
def write(self, oprot):
|
|
|
3322 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3323 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3324 |
return
|
|
|
3325 |
oprot.writeStructBegin('CounterOnlineInfo')
|
|
|
3326 |
if self.counterId is not None:
|
|
|
3327 |
oprot.writeFieldBegin('counterId', TType.I64, 1)
|
|
|
3328 |
oprot.writeI64(self.counterId)
|
|
|
3329 |
oprot.writeFieldEnd()
|
|
|
3330 |
if self.tinNumber is not None:
|
|
|
3331 |
oprot.writeFieldBegin('tinNumber', TType.STRING, 2)
|
|
|
3332 |
oprot.writeString(self.tinNumber)
|
|
|
3333 |
oprot.writeFieldEnd()
|
|
|
3334 |
if self.cstNumber is not None:
|
|
|
3335 |
oprot.writeFieldBegin('cstNumber', TType.STRING, 3)
|
|
|
3336 |
oprot.writeString(self.cstNumber)
|
|
|
3337 |
oprot.writeFieldEnd()
|
|
|
3338 |
if self.dealerName is not None:
|
|
|
3339 |
oprot.writeFieldBegin('dealerName', TType.STRING, 4)
|
|
|
3340 |
oprot.writeString(self.dealerName)
|
|
|
3341 |
oprot.writeFieldEnd()
|
|
|
3342 |
if self.dealerAddress is not None:
|
|
|
3343 |
oprot.writeFieldBegin('dealerAddress', TType.STRING, 5)
|
|
|
3344 |
oprot.writeString(self.dealerAddress)
|
|
|
3345 |
oprot.writeFieldEnd()
|
|
|
3346 |
if self.state is not None:
|
|
|
3347 |
oprot.writeFieldBegin('state', TType.STRING, 6)
|
|
|
3348 |
oprot.writeString(self.state)
|
|
|
3349 |
oprot.writeFieldEnd()
|
|
|
3350 |
if self.pan is not None:
|
|
|
3351 |
oprot.writeFieldBegin('pan', TType.STRING, 7)
|
|
|
3352 |
oprot.writeString(self.pan)
|
|
|
3353 |
oprot.writeFieldEnd()
|
|
|
3354 |
if self.registrationDate is not None:
|
|
|
3355 |
oprot.writeFieldBegin('registrationDate', TType.I64, 8)
|
|
|
3356 |
oprot.writeI64(self.registrationDate)
|
|
|
3357 |
oprot.writeFieldEnd()
|
|
|
3358 |
if self.registrationStatus is not None:
|
|
|
3359 |
oprot.writeFieldBegin('registrationStatus', TType.BOOL, 9)
|
|
|
3360 |
oprot.writeBool(self.registrationStatus)
|
|
|
3361 |
oprot.writeFieldEnd()
|
|
|
3362 |
if self.validatedTill is not None:
|
|
|
3363 |
oprot.writeFieldBegin('validatedTill', TType.I64, 10)
|
|
|
3364 |
oprot.writeI64(self.validatedTill)
|
|
|
3365 |
oprot.writeFieldEnd()
|
| 18644 |
manish.sha |
3366 |
if self.created is not None:
|
|
|
3367 |
oprot.writeFieldBegin('created', TType.I64, 11)
|
|
|
3368 |
oprot.writeI64(self.created)
|
|
|
3369 |
oprot.writeFieldEnd()
|
| 18530 |
manish.sha |
3370 |
oprot.writeFieldStop()
|
|
|
3371 |
oprot.writeStructEnd()
|
|
|
3372 |
|
|
|
3373 |
def validate(self):
|
|
|
3374 |
return
|
|
|
3375 |
|
|
|
3376 |
|
|
|
3377 |
def __repr__(self):
|
|
|
3378 |
L = ['%s=%r' % (key, value)
|
|
|
3379 |
for key, value in self.__dict__.iteritems()]
|
|
|
3380 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3381 |
|
|
|
3382 |
def __eq__(self, other):
|
|
|
3383 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3384 |
|
|
|
3385 |
def __ne__(self, other):
|
|
|
3386 |
return not (self == other)
|
|
|
3387 |
|
| 1976 |
varun.gupt |
3388 |
class Coupon:
|
|
|
3389 |
"""
|
|
|
3390 |
Attributes:
|
|
|
3391 |
- couponCode
|
| 3385 |
varun.gupt |
3392 |
- promotion
|
| 1976 |
varun.gupt |
3393 |
- arguments
|
| 8707 |
manish.sha |
3394 |
- coupon_category
|
| 1976 |
varun.gupt |
3395 |
"""
|
|
|
3396 |
|
|
|
3397 |
thrift_spec = (
|
|
|
3398 |
None, # 0
|
|
|
3399 |
(1, TType.STRING, 'couponCode', None, None, ), # 1
|
| 3385 |
varun.gupt |
3400 |
(2, TType.STRUCT, 'promotion', (Promotion, Promotion.thrift_spec), None, ), # 2
|
| 1976 |
varun.gupt |
3401 |
(3, TType.STRING, 'arguments', None, None, ), # 3
|
| 8707 |
manish.sha |
3402 |
(4, TType.I32, 'coupon_category', None, None, ), # 4
|
| 1976 |
varun.gupt |
3403 |
)
|
|
|
3404 |
|
| 8707 |
manish.sha |
3405 |
def __init__(self, couponCode=None, promotion=None, arguments=None, coupon_category=None,):
|
| 1976 |
varun.gupt |
3406 |
self.couponCode = couponCode
|
| 3385 |
varun.gupt |
3407 |
self.promotion = promotion
|
| 1976 |
varun.gupt |
3408 |
self.arguments = arguments
|
| 8707 |
manish.sha |
3409 |
self.coupon_category = coupon_category
|
| 1976 |
varun.gupt |
3410 |
|
|
|
3411 |
def read(self, iprot):
|
|
|
3412 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3413 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3414 |
return
|
|
|
3415 |
iprot.readStructBegin()
|
|
|
3416 |
while True:
|
|
|
3417 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3418 |
if ftype == TType.STOP:
|
|
|
3419 |
break
|
|
|
3420 |
if fid == 1:
|
|
|
3421 |
if ftype == TType.STRING:
|
|
|
3422 |
self.couponCode = iprot.readString();
|
|
|
3423 |
else:
|
|
|
3424 |
iprot.skip(ftype)
|
|
|
3425 |
elif fid == 2:
|
| 3385 |
varun.gupt |
3426 |
if ftype == TType.STRUCT:
|
|
|
3427 |
self.promotion = Promotion()
|
|
|
3428 |
self.promotion.read(iprot)
|
| 1976 |
varun.gupt |
3429 |
else:
|
|
|
3430 |
iprot.skip(ftype)
|
|
|
3431 |
elif fid == 3:
|
|
|
3432 |
if ftype == TType.STRING:
|
|
|
3433 |
self.arguments = iprot.readString();
|
|
|
3434 |
else:
|
|
|
3435 |
iprot.skip(ftype)
|
| 8707 |
manish.sha |
3436 |
elif fid == 4:
|
|
|
3437 |
if ftype == TType.I32:
|
|
|
3438 |
self.coupon_category = iprot.readI32();
|
|
|
3439 |
else:
|
|
|
3440 |
iprot.skip(ftype)
|
| 1976 |
varun.gupt |
3441 |
else:
|
|
|
3442 |
iprot.skip(ftype)
|
|
|
3443 |
iprot.readFieldEnd()
|
|
|
3444 |
iprot.readStructEnd()
|
|
|
3445 |
|
|
|
3446 |
def write(self, oprot):
|
|
|
3447 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3448 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3449 |
return
|
|
|
3450 |
oprot.writeStructBegin('Coupon')
|
| 3431 |
rajveer |
3451 |
if self.couponCode is not None:
|
| 1976 |
varun.gupt |
3452 |
oprot.writeFieldBegin('couponCode', TType.STRING, 1)
|
|
|
3453 |
oprot.writeString(self.couponCode)
|
|
|
3454 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3455 |
if self.promotion is not None:
|
| 3385 |
varun.gupt |
3456 |
oprot.writeFieldBegin('promotion', TType.STRUCT, 2)
|
|
|
3457 |
self.promotion.write(oprot)
|
| 1976 |
varun.gupt |
3458 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3459 |
if self.arguments is not None:
|
| 1976 |
varun.gupt |
3460 |
oprot.writeFieldBegin('arguments', TType.STRING, 3)
|
|
|
3461 |
oprot.writeString(self.arguments)
|
|
|
3462 |
oprot.writeFieldEnd()
|
| 8707 |
manish.sha |
3463 |
if self.coupon_category is not None:
|
|
|
3464 |
oprot.writeFieldBegin('coupon_category', TType.I32, 4)
|
|
|
3465 |
oprot.writeI32(self.coupon_category)
|
|
|
3466 |
oprot.writeFieldEnd()
|
| 1976 |
varun.gupt |
3467 |
oprot.writeFieldStop()
|
|
|
3468 |
oprot.writeStructEnd()
|
|
|
3469 |
|
| 3431 |
rajveer |
3470 |
def validate(self):
|
|
|
3471 |
return
|
|
|
3472 |
|
|
|
3473 |
|
| 1976 |
varun.gupt |
3474 |
def __repr__(self):
|
|
|
3475 |
L = ['%s=%r' % (key, value)
|
|
|
3476 |
for key, value in self.__dict__.iteritems()]
|
|
|
3477 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3478 |
|
|
|
3479 |
def __eq__(self, other):
|
|
|
3480 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3481 |
|
|
|
3482 |
def __ne__(self, other):
|
|
|
3483 |
return not (self == other)
|
|
|
3484 |
|
|
|
3485 |
class PromotionTracking:
|
|
|
3486 |
"""
|
|
|
3487 |
Attributes:
|
|
|
3488 |
- couponCode
|
|
|
3489 |
- transactionId
|
|
|
3490 |
- userId
|
|
|
3491 |
- appliedOn
|
|
|
3492 |
"""
|
|
|
3493 |
|
|
|
3494 |
thrift_spec = (
|
|
|
3495 |
None, # 0
|
|
|
3496 |
(1, TType.STRING, 'couponCode', None, None, ), # 1
|
|
|
3497 |
(2, TType.I64, 'transactionId', None, None, ), # 2
|
|
|
3498 |
(3, TType.I64, 'userId', None, None, ), # 3
|
|
|
3499 |
(4, TType.BOOL, 'appliedOn', None, None, ), # 4
|
|
|
3500 |
)
|
|
|
3501 |
|
|
|
3502 |
def __init__(self, couponCode=None, transactionId=None, userId=None, appliedOn=None,):
|
|
|
3503 |
self.couponCode = couponCode
|
|
|
3504 |
self.transactionId = transactionId
|
|
|
3505 |
self.userId = userId
|
|
|
3506 |
self.appliedOn = appliedOn
|
|
|
3507 |
|
|
|
3508 |
def read(self, iprot):
|
|
|
3509 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3510 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3511 |
return
|
|
|
3512 |
iprot.readStructBegin()
|
|
|
3513 |
while True:
|
|
|
3514 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3515 |
if ftype == TType.STOP:
|
|
|
3516 |
break
|
|
|
3517 |
if fid == 1:
|
|
|
3518 |
if ftype == TType.STRING:
|
|
|
3519 |
self.couponCode = iprot.readString();
|
|
|
3520 |
else:
|
|
|
3521 |
iprot.skip(ftype)
|
|
|
3522 |
elif fid == 2:
|
|
|
3523 |
if ftype == TType.I64:
|
|
|
3524 |
self.transactionId = iprot.readI64();
|
|
|
3525 |
else:
|
|
|
3526 |
iprot.skip(ftype)
|
|
|
3527 |
elif fid == 3:
|
|
|
3528 |
if ftype == TType.I64:
|
|
|
3529 |
self.userId = iprot.readI64();
|
|
|
3530 |
else:
|
|
|
3531 |
iprot.skip(ftype)
|
|
|
3532 |
elif fid == 4:
|
|
|
3533 |
if ftype == TType.BOOL:
|
|
|
3534 |
self.appliedOn = iprot.readBool();
|
|
|
3535 |
else:
|
|
|
3536 |
iprot.skip(ftype)
|
|
|
3537 |
else:
|
|
|
3538 |
iprot.skip(ftype)
|
|
|
3539 |
iprot.readFieldEnd()
|
|
|
3540 |
iprot.readStructEnd()
|
|
|
3541 |
|
|
|
3542 |
def write(self, oprot):
|
|
|
3543 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3544 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3545 |
return
|
|
|
3546 |
oprot.writeStructBegin('PromotionTracking')
|
| 3431 |
rajveer |
3547 |
if self.couponCode is not None:
|
| 1976 |
varun.gupt |
3548 |
oprot.writeFieldBegin('couponCode', TType.STRING, 1)
|
|
|
3549 |
oprot.writeString(self.couponCode)
|
|
|
3550 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3551 |
if self.transactionId is not None:
|
| 1976 |
varun.gupt |
3552 |
oprot.writeFieldBegin('transactionId', TType.I64, 2)
|
|
|
3553 |
oprot.writeI64(self.transactionId)
|
|
|
3554 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3555 |
if self.userId is not None:
|
| 1976 |
varun.gupt |
3556 |
oprot.writeFieldBegin('userId', TType.I64, 3)
|
|
|
3557 |
oprot.writeI64(self.userId)
|
|
|
3558 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3559 |
if self.appliedOn is not None:
|
| 1976 |
varun.gupt |
3560 |
oprot.writeFieldBegin('appliedOn', TType.BOOL, 4)
|
|
|
3561 |
oprot.writeBool(self.appliedOn)
|
|
|
3562 |
oprot.writeFieldEnd()
|
|
|
3563 |
oprot.writeFieldStop()
|
|
|
3564 |
oprot.writeStructEnd()
|
|
|
3565 |
|
| 3431 |
rajveer |
3566 |
def validate(self):
|
|
|
3567 |
return
|
|
|
3568 |
|
|
|
3569 |
|
| 1976 |
varun.gupt |
3570 |
def __repr__(self):
|
|
|
3571 |
L = ['%s=%r' % (key, value)
|
|
|
3572 |
for key, value in self.__dict__.iteritems()]
|
|
|
3573 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3574 |
|
|
|
3575 |
def __eq__(self, other):
|
|
|
3576 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3577 |
|
|
|
3578 |
def __ne__(self, other):
|
|
|
3579 |
return not (self == other)
|
| 4189 |
varun.gupt |
3580 |
|
|
|
3581 |
class ItemCouponDiscount:
|
|
|
3582 |
"""
|
|
|
3583 |
Attributes:
|
|
|
3584 |
- itemId
|
|
|
3585 |
- couponCode
|
|
|
3586 |
- discount
|
|
|
3587 |
"""
|
|
|
3588 |
|
|
|
3589 |
thrift_spec = (
|
|
|
3590 |
None, # 0
|
|
|
3591 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
3592 |
(2, TType.STRING, 'couponCode', None, None, ), # 2
|
|
|
3593 |
(3, TType.DOUBLE, 'discount', None, None, ), # 3
|
|
|
3594 |
)
|
|
|
3595 |
|
|
|
3596 |
def __init__(self, itemId=None, couponCode=None, discount=None,):
|
|
|
3597 |
self.itemId = itemId
|
|
|
3598 |
self.couponCode = couponCode
|
|
|
3599 |
self.discount = discount
|
|
|
3600 |
|
|
|
3601 |
def read(self, iprot):
|
|
|
3602 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3603 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3604 |
return
|
|
|
3605 |
iprot.readStructBegin()
|
|
|
3606 |
while True:
|
|
|
3607 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3608 |
if ftype == TType.STOP:
|
|
|
3609 |
break
|
|
|
3610 |
if fid == 1:
|
|
|
3611 |
if ftype == TType.I64:
|
|
|
3612 |
self.itemId = iprot.readI64();
|
|
|
3613 |
else:
|
|
|
3614 |
iprot.skip(ftype)
|
|
|
3615 |
elif fid == 2:
|
|
|
3616 |
if ftype == TType.STRING:
|
|
|
3617 |
self.couponCode = iprot.readString();
|
|
|
3618 |
else:
|
|
|
3619 |
iprot.skip(ftype)
|
|
|
3620 |
elif fid == 3:
|
|
|
3621 |
if ftype == TType.DOUBLE:
|
|
|
3622 |
self.discount = iprot.readDouble();
|
|
|
3623 |
else:
|
|
|
3624 |
iprot.skip(ftype)
|
|
|
3625 |
else:
|
|
|
3626 |
iprot.skip(ftype)
|
|
|
3627 |
iprot.readFieldEnd()
|
|
|
3628 |
iprot.readStructEnd()
|
|
|
3629 |
|
|
|
3630 |
def write(self, oprot):
|
|
|
3631 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3632 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3633 |
return
|
|
|
3634 |
oprot.writeStructBegin('ItemCouponDiscount')
|
|
|
3635 |
if self.itemId is not None:
|
|
|
3636 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
3637 |
oprot.writeI64(self.itemId)
|
|
|
3638 |
oprot.writeFieldEnd()
|
|
|
3639 |
if self.couponCode is not None:
|
|
|
3640 |
oprot.writeFieldBegin('couponCode', TType.STRING, 2)
|
|
|
3641 |
oprot.writeString(self.couponCode)
|
|
|
3642 |
oprot.writeFieldEnd()
|
|
|
3643 |
if self.discount is not None:
|
|
|
3644 |
oprot.writeFieldBegin('discount', TType.DOUBLE, 3)
|
|
|
3645 |
oprot.writeDouble(self.discount)
|
|
|
3646 |
oprot.writeFieldEnd()
|
|
|
3647 |
oprot.writeFieldStop()
|
|
|
3648 |
oprot.writeStructEnd()
|
|
|
3649 |
|
|
|
3650 |
def validate(self):
|
|
|
3651 |
return
|
|
|
3652 |
|
|
|
3653 |
|
|
|
3654 |
def __repr__(self):
|
|
|
3655 |
L = ['%s=%r' % (key, value)
|
|
|
3656 |
for key, value in self.__dict__.iteritems()]
|
|
|
3657 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3658 |
|
|
|
3659 |
def __eq__(self, other):
|
|
|
3660 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3661 |
|
|
|
3662 |
def __ne__(self, other):
|
|
|
3663 |
return not (self == other)
|
| 5469 |
rajveer |
3664 |
|
|
|
3665 |
class Voucher:
|
|
|
3666 |
"""
|
|
|
3667 |
Attributes:
|
|
|
3668 |
- id
|
|
|
3669 |
- voucherCode
|
|
|
3670 |
- voucherType
|
|
|
3671 |
- issuedOn
|
|
|
3672 |
- amount
|
|
|
3673 |
- expiredOn
|
|
|
3674 |
- userEmail
|
|
|
3675 |
"""
|
|
|
3676 |
|
|
|
3677 |
thrift_spec = (
|
|
|
3678 |
None, # 0
|
|
|
3679 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
3680 |
(2, TType.STRING, 'voucherCode', None, None, ), # 2
|
|
|
3681 |
(3, TType.I32, 'voucherType', None, None, ), # 3
|
|
|
3682 |
(4, TType.I64, 'issuedOn', None, None, ), # 4
|
|
|
3683 |
(5, TType.DOUBLE, 'amount', None, None, ), # 5
|
|
|
3684 |
(6, TType.I64, 'expiredOn', None, None, ), # 6
|
|
|
3685 |
(7, TType.STRING, 'userEmail', None, None, ), # 7
|
|
|
3686 |
)
|
|
|
3687 |
|
|
|
3688 |
def __init__(self, id=None, voucherCode=None, voucherType=None, issuedOn=None, amount=None, expiredOn=None, userEmail=None,):
|
|
|
3689 |
self.id = id
|
|
|
3690 |
self.voucherCode = voucherCode
|
|
|
3691 |
self.voucherType = voucherType
|
|
|
3692 |
self.issuedOn = issuedOn
|
|
|
3693 |
self.amount = amount
|
|
|
3694 |
self.expiredOn = expiredOn
|
|
|
3695 |
self.userEmail = userEmail
|
|
|
3696 |
|
|
|
3697 |
def read(self, iprot):
|
|
|
3698 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3699 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3700 |
return
|
|
|
3701 |
iprot.readStructBegin()
|
|
|
3702 |
while True:
|
|
|
3703 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3704 |
if ftype == TType.STOP:
|
|
|
3705 |
break
|
|
|
3706 |
if fid == 1:
|
|
|
3707 |
if ftype == TType.I64:
|
|
|
3708 |
self.id = iprot.readI64();
|
|
|
3709 |
else:
|
|
|
3710 |
iprot.skip(ftype)
|
|
|
3711 |
elif fid == 2:
|
|
|
3712 |
if ftype == TType.STRING:
|
|
|
3713 |
self.voucherCode = iprot.readString();
|
|
|
3714 |
else:
|
|
|
3715 |
iprot.skip(ftype)
|
|
|
3716 |
elif fid == 3:
|
|
|
3717 |
if ftype == TType.I32:
|
|
|
3718 |
self.voucherType = iprot.readI32();
|
|
|
3719 |
else:
|
|
|
3720 |
iprot.skip(ftype)
|
|
|
3721 |
elif fid == 4:
|
|
|
3722 |
if ftype == TType.I64:
|
|
|
3723 |
self.issuedOn = iprot.readI64();
|
|
|
3724 |
else:
|
|
|
3725 |
iprot.skip(ftype)
|
|
|
3726 |
elif fid == 5:
|
|
|
3727 |
if ftype == TType.DOUBLE:
|
|
|
3728 |
self.amount = iprot.readDouble();
|
|
|
3729 |
else:
|
|
|
3730 |
iprot.skip(ftype)
|
|
|
3731 |
elif fid == 6:
|
|
|
3732 |
if ftype == TType.I64:
|
|
|
3733 |
self.expiredOn = iprot.readI64();
|
|
|
3734 |
else:
|
|
|
3735 |
iprot.skip(ftype)
|
|
|
3736 |
elif fid == 7:
|
|
|
3737 |
if ftype == TType.STRING:
|
|
|
3738 |
self.userEmail = iprot.readString();
|
|
|
3739 |
else:
|
|
|
3740 |
iprot.skip(ftype)
|
|
|
3741 |
else:
|
|
|
3742 |
iprot.skip(ftype)
|
|
|
3743 |
iprot.readFieldEnd()
|
|
|
3744 |
iprot.readStructEnd()
|
|
|
3745 |
|
|
|
3746 |
def write(self, oprot):
|
|
|
3747 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3748 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3749 |
return
|
|
|
3750 |
oprot.writeStructBegin('Voucher')
|
|
|
3751 |
if self.id is not None:
|
|
|
3752 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3753 |
oprot.writeI64(self.id)
|
|
|
3754 |
oprot.writeFieldEnd()
|
|
|
3755 |
if self.voucherCode is not None:
|
|
|
3756 |
oprot.writeFieldBegin('voucherCode', TType.STRING, 2)
|
|
|
3757 |
oprot.writeString(self.voucherCode)
|
|
|
3758 |
oprot.writeFieldEnd()
|
|
|
3759 |
if self.voucherType is not None:
|
|
|
3760 |
oprot.writeFieldBegin('voucherType', TType.I32, 3)
|
|
|
3761 |
oprot.writeI32(self.voucherType)
|
|
|
3762 |
oprot.writeFieldEnd()
|
|
|
3763 |
if self.issuedOn is not None:
|
|
|
3764 |
oprot.writeFieldBegin('issuedOn', TType.I64, 4)
|
|
|
3765 |
oprot.writeI64(self.issuedOn)
|
|
|
3766 |
oprot.writeFieldEnd()
|
|
|
3767 |
if self.amount is not None:
|
|
|
3768 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 5)
|
|
|
3769 |
oprot.writeDouble(self.amount)
|
|
|
3770 |
oprot.writeFieldEnd()
|
|
|
3771 |
if self.expiredOn is not None:
|
|
|
3772 |
oprot.writeFieldBegin('expiredOn', TType.I64, 6)
|
|
|
3773 |
oprot.writeI64(self.expiredOn)
|
|
|
3774 |
oprot.writeFieldEnd()
|
|
|
3775 |
if self.userEmail is not None:
|
|
|
3776 |
oprot.writeFieldBegin('userEmail', TType.STRING, 7)
|
|
|
3777 |
oprot.writeString(self.userEmail)
|
|
|
3778 |
oprot.writeFieldEnd()
|
|
|
3779 |
oprot.writeFieldStop()
|
|
|
3780 |
oprot.writeStructEnd()
|
|
|
3781 |
|
|
|
3782 |
def validate(self):
|
|
|
3783 |
return
|
|
|
3784 |
|
|
|
3785 |
|
|
|
3786 |
def __repr__(self):
|
|
|
3787 |
L = ['%s=%r' % (key, value)
|
|
|
3788 |
for key, value in self.__dict__.iteritems()]
|
|
|
3789 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3790 |
|
|
|
3791 |
def __eq__(self, other):
|
|
|
3792 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3793 |
|
|
|
3794 |
def __ne__(self, other):
|
|
|
3795 |
return not (self == other)
|
| 11890 |
kshitij.so |
3796 |
|
|
|
3797 |
class PrivateDealUser:
|
|
|
3798 |
"""
|
|
|
3799 |
Attributes:
|
|
|
3800 |
- userId
|
|
|
3801 |
- addedOn
|
|
|
3802 |
- isActive
|
| 12696 |
amit.gupta |
3803 |
- counterId
|
|
|
3804 |
- tin
|
| 13146 |
manish.sha |
3805 |
- bulkShipmentAmountLimit
|
| 18590 |
manish.sha |
3806 |
- creditorAssigned
|
| 18735 |
manish.sha |
3807 |
- tinVerified
|
| 22715 |
amit.gupta |
3808 |
- isFofo
|
| 11890 |
kshitij.so |
3809 |
"""
|
|
|
3810 |
|
|
|
3811 |
thrift_spec = (
|
|
|
3812 |
None, # 0
|
|
|
3813 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
3814 |
(2, TType.I64, 'addedOn', None, None, ), # 2
|
|
|
3815 |
(3, TType.BOOL, 'isActive', None, None, ), # 3
|
| 12696 |
amit.gupta |
3816 |
(4, TType.I64, 'counterId', None, None, ), # 4
|
|
|
3817 |
(5, TType.STRING, 'tin', None, None, ), # 5
|
| 13146 |
manish.sha |
3818 |
(6, TType.DOUBLE, 'bulkShipmentAmountLimit', None, None, ), # 6
|
| 18590 |
manish.sha |
3819 |
(7, TType.BOOL, 'creditorAssigned', None, None, ), # 7
|
| 18735 |
manish.sha |
3820 |
(8, TType.BOOL, 'tinVerified', None, None, ), # 8
|
| 22715 |
amit.gupta |
3821 |
(9, TType.I64, 'isFofo', None, None, ), # 9
|
| 11890 |
kshitij.so |
3822 |
)
|
|
|
3823 |
|
| 22715 |
amit.gupta |
3824 |
def __init__(self, userId=None, addedOn=None, isActive=None, counterId=None, tin=None, bulkShipmentAmountLimit=None, creditorAssigned=None, tinVerified=None, isFofo=None,):
|
| 11890 |
kshitij.so |
3825 |
self.userId = userId
|
|
|
3826 |
self.addedOn = addedOn
|
|
|
3827 |
self.isActive = isActive
|
| 12696 |
amit.gupta |
3828 |
self.counterId = counterId
|
|
|
3829 |
self.tin = tin
|
| 13146 |
manish.sha |
3830 |
self.bulkShipmentAmountLimit = bulkShipmentAmountLimit
|
| 18590 |
manish.sha |
3831 |
self.creditorAssigned = creditorAssigned
|
| 18735 |
manish.sha |
3832 |
self.tinVerified = tinVerified
|
| 22715 |
amit.gupta |
3833 |
self.isFofo = isFofo
|
| 11890 |
kshitij.so |
3834 |
|
|
|
3835 |
def read(self, iprot):
|
|
|
3836 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3837 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3838 |
return
|
|
|
3839 |
iprot.readStructBegin()
|
|
|
3840 |
while True:
|
|
|
3841 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3842 |
if ftype == TType.STOP:
|
|
|
3843 |
break
|
|
|
3844 |
if fid == 1:
|
|
|
3845 |
if ftype == TType.I64:
|
|
|
3846 |
self.userId = iprot.readI64();
|
|
|
3847 |
else:
|
|
|
3848 |
iprot.skip(ftype)
|
|
|
3849 |
elif fid == 2:
|
|
|
3850 |
if ftype == TType.I64:
|
|
|
3851 |
self.addedOn = iprot.readI64();
|
|
|
3852 |
else:
|
|
|
3853 |
iprot.skip(ftype)
|
|
|
3854 |
elif fid == 3:
|
|
|
3855 |
if ftype == TType.BOOL:
|
|
|
3856 |
self.isActive = iprot.readBool();
|
|
|
3857 |
else:
|
|
|
3858 |
iprot.skip(ftype)
|
| 12696 |
amit.gupta |
3859 |
elif fid == 4:
|
|
|
3860 |
if ftype == TType.I64:
|
|
|
3861 |
self.counterId = iprot.readI64();
|
|
|
3862 |
else:
|
|
|
3863 |
iprot.skip(ftype)
|
|
|
3864 |
elif fid == 5:
|
|
|
3865 |
if ftype == TType.STRING:
|
|
|
3866 |
self.tin = iprot.readString();
|
|
|
3867 |
else:
|
|
|
3868 |
iprot.skip(ftype)
|
| 13146 |
manish.sha |
3869 |
elif fid == 6:
|
|
|
3870 |
if ftype == TType.DOUBLE:
|
|
|
3871 |
self.bulkShipmentAmountLimit = iprot.readDouble();
|
|
|
3872 |
else:
|
|
|
3873 |
iprot.skip(ftype)
|
| 18590 |
manish.sha |
3874 |
elif fid == 7:
|
|
|
3875 |
if ftype == TType.BOOL:
|
|
|
3876 |
self.creditorAssigned = iprot.readBool();
|
|
|
3877 |
else:
|
|
|
3878 |
iprot.skip(ftype)
|
| 18735 |
manish.sha |
3879 |
elif fid == 8:
|
|
|
3880 |
if ftype == TType.BOOL:
|
|
|
3881 |
self.tinVerified = iprot.readBool();
|
|
|
3882 |
else:
|
|
|
3883 |
iprot.skip(ftype)
|
| 22715 |
amit.gupta |
3884 |
elif fid == 9:
|
|
|
3885 |
if ftype == TType.I64:
|
|
|
3886 |
self.isFofo = iprot.readI64();
|
|
|
3887 |
else:
|
|
|
3888 |
iprot.skip(ftype)
|
| 11890 |
kshitij.so |
3889 |
else:
|
|
|
3890 |
iprot.skip(ftype)
|
|
|
3891 |
iprot.readFieldEnd()
|
|
|
3892 |
iprot.readStructEnd()
|
|
|
3893 |
|
|
|
3894 |
def write(self, oprot):
|
|
|
3895 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3896 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3897 |
return
|
|
|
3898 |
oprot.writeStructBegin('PrivateDealUser')
|
|
|
3899 |
if self.userId is not None:
|
|
|
3900 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
3901 |
oprot.writeI64(self.userId)
|
|
|
3902 |
oprot.writeFieldEnd()
|
|
|
3903 |
if self.addedOn is not None:
|
|
|
3904 |
oprot.writeFieldBegin('addedOn', TType.I64, 2)
|
|
|
3905 |
oprot.writeI64(self.addedOn)
|
|
|
3906 |
oprot.writeFieldEnd()
|
|
|
3907 |
if self.isActive is not None:
|
|
|
3908 |
oprot.writeFieldBegin('isActive', TType.BOOL, 3)
|
|
|
3909 |
oprot.writeBool(self.isActive)
|
|
|
3910 |
oprot.writeFieldEnd()
|
| 12696 |
amit.gupta |
3911 |
if self.counterId is not None:
|
|
|
3912 |
oprot.writeFieldBegin('counterId', TType.I64, 4)
|
|
|
3913 |
oprot.writeI64(self.counterId)
|
|
|
3914 |
oprot.writeFieldEnd()
|
|
|
3915 |
if self.tin is not None:
|
|
|
3916 |
oprot.writeFieldBegin('tin', TType.STRING, 5)
|
|
|
3917 |
oprot.writeString(self.tin)
|
|
|
3918 |
oprot.writeFieldEnd()
|
| 13146 |
manish.sha |
3919 |
if self.bulkShipmentAmountLimit is not None:
|
|
|
3920 |
oprot.writeFieldBegin('bulkShipmentAmountLimit', TType.DOUBLE, 6)
|
|
|
3921 |
oprot.writeDouble(self.bulkShipmentAmountLimit)
|
|
|
3922 |
oprot.writeFieldEnd()
|
| 18590 |
manish.sha |
3923 |
if self.creditorAssigned is not None:
|
|
|
3924 |
oprot.writeFieldBegin('creditorAssigned', TType.BOOL, 7)
|
|
|
3925 |
oprot.writeBool(self.creditorAssigned)
|
|
|
3926 |
oprot.writeFieldEnd()
|
| 18735 |
manish.sha |
3927 |
if self.tinVerified is not None:
|
|
|
3928 |
oprot.writeFieldBegin('tinVerified', TType.BOOL, 8)
|
|
|
3929 |
oprot.writeBool(self.tinVerified)
|
|
|
3930 |
oprot.writeFieldEnd()
|
| 22715 |
amit.gupta |
3931 |
if self.isFofo is not None:
|
|
|
3932 |
oprot.writeFieldBegin('isFofo', TType.I64, 9)
|
|
|
3933 |
oprot.writeI64(self.isFofo)
|
|
|
3934 |
oprot.writeFieldEnd()
|
| 11890 |
kshitij.so |
3935 |
oprot.writeFieldStop()
|
|
|
3936 |
oprot.writeStructEnd()
|
|
|
3937 |
|
|
|
3938 |
def validate(self):
|
|
|
3939 |
return
|
|
|
3940 |
|
|
|
3941 |
|
|
|
3942 |
def __repr__(self):
|
|
|
3943 |
L = ['%s=%r' % (key, value)
|
|
|
3944 |
for key, value in self.__dict__.iteritems()]
|
|
|
3945 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3946 |
|
|
|
3947 |
def __eq__(self, other):
|
|
|
3948 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3949 |
|
|
|
3950 |
def __ne__(self, other):
|
|
|
3951 |
return not (self == other)
|
| 15251 |
manish.sha |
3952 |
|
|
|
3953 |
class AccessTokenizer:
|
|
|
3954 |
"""
|
|
|
3955 |
Attributes:
|
|
|
3956 |
- id
|
|
|
3957 |
- userId
|
|
|
3958 |
- source
|
|
|
3959 |
- tokenString
|
|
|
3960 |
- expiredTime
|
|
|
3961 |
- expired
|
|
|
3962 |
"""
|
|
|
3963 |
|
|
|
3964 |
thrift_spec = (
|
|
|
3965 |
None, # 0
|
|
|
3966 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
3967 |
(2, TType.I64, 'userId', None, None, ), # 2
|
|
|
3968 |
(3, TType.STRING, 'source', None, None, ), # 3
|
|
|
3969 |
(4, TType.STRING, 'tokenString', None, None, ), # 4
|
|
|
3970 |
(5, TType.I64, 'expiredTime', None, None, ), # 5
|
|
|
3971 |
(6, TType.BOOL, 'expired', None, None, ), # 6
|
|
|
3972 |
)
|
|
|
3973 |
|
|
|
3974 |
def __init__(self, id=None, userId=None, source=None, tokenString=None, expiredTime=None, expired=None,):
|
|
|
3975 |
self.id = id
|
|
|
3976 |
self.userId = userId
|
|
|
3977 |
self.source = source
|
|
|
3978 |
self.tokenString = tokenString
|
|
|
3979 |
self.expiredTime = expiredTime
|
|
|
3980 |
self.expired = expired
|
|
|
3981 |
|
|
|
3982 |
def read(self, iprot):
|
|
|
3983 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3984 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3985 |
return
|
|
|
3986 |
iprot.readStructBegin()
|
|
|
3987 |
while True:
|
|
|
3988 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3989 |
if ftype == TType.STOP:
|
|
|
3990 |
break
|
|
|
3991 |
if fid == 1:
|
|
|
3992 |
if ftype == TType.I64:
|
|
|
3993 |
self.id = iprot.readI64();
|
|
|
3994 |
else:
|
|
|
3995 |
iprot.skip(ftype)
|
|
|
3996 |
elif fid == 2:
|
|
|
3997 |
if ftype == TType.I64:
|
|
|
3998 |
self.userId = iprot.readI64();
|
|
|
3999 |
else:
|
|
|
4000 |
iprot.skip(ftype)
|
|
|
4001 |
elif fid == 3:
|
|
|
4002 |
if ftype == TType.STRING:
|
|
|
4003 |
self.source = iprot.readString();
|
|
|
4004 |
else:
|
|
|
4005 |
iprot.skip(ftype)
|
|
|
4006 |
elif fid == 4:
|
|
|
4007 |
if ftype == TType.STRING:
|
|
|
4008 |
self.tokenString = iprot.readString();
|
|
|
4009 |
else:
|
|
|
4010 |
iprot.skip(ftype)
|
|
|
4011 |
elif fid == 5:
|
|
|
4012 |
if ftype == TType.I64:
|
|
|
4013 |
self.expiredTime = iprot.readI64();
|
|
|
4014 |
else:
|
|
|
4015 |
iprot.skip(ftype)
|
|
|
4016 |
elif fid == 6:
|
|
|
4017 |
if ftype == TType.BOOL:
|
|
|
4018 |
self.expired = iprot.readBool();
|
|
|
4019 |
else:
|
|
|
4020 |
iprot.skip(ftype)
|
|
|
4021 |
else:
|
|
|
4022 |
iprot.skip(ftype)
|
|
|
4023 |
iprot.readFieldEnd()
|
|
|
4024 |
iprot.readStructEnd()
|
|
|
4025 |
|
|
|
4026 |
def write(self, oprot):
|
|
|
4027 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4028 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4029 |
return
|
|
|
4030 |
oprot.writeStructBegin('AccessTokenizer')
|
|
|
4031 |
if self.id is not None:
|
|
|
4032 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
4033 |
oprot.writeI64(self.id)
|
|
|
4034 |
oprot.writeFieldEnd()
|
|
|
4035 |
if self.userId is not None:
|
|
|
4036 |
oprot.writeFieldBegin('userId', TType.I64, 2)
|
|
|
4037 |
oprot.writeI64(self.userId)
|
|
|
4038 |
oprot.writeFieldEnd()
|
|
|
4039 |
if self.source is not None:
|
|
|
4040 |
oprot.writeFieldBegin('source', TType.STRING, 3)
|
|
|
4041 |
oprot.writeString(self.source)
|
|
|
4042 |
oprot.writeFieldEnd()
|
|
|
4043 |
if self.tokenString is not None:
|
|
|
4044 |
oprot.writeFieldBegin('tokenString', TType.STRING, 4)
|
|
|
4045 |
oprot.writeString(self.tokenString)
|
|
|
4046 |
oprot.writeFieldEnd()
|
|
|
4047 |
if self.expiredTime is not None:
|
|
|
4048 |
oprot.writeFieldBegin('expiredTime', TType.I64, 5)
|
|
|
4049 |
oprot.writeI64(self.expiredTime)
|
|
|
4050 |
oprot.writeFieldEnd()
|
|
|
4051 |
if self.expired is not None:
|
|
|
4052 |
oprot.writeFieldBegin('expired', TType.BOOL, 6)
|
|
|
4053 |
oprot.writeBool(self.expired)
|
|
|
4054 |
oprot.writeFieldEnd()
|
|
|
4055 |
oprot.writeFieldStop()
|
|
|
4056 |
oprot.writeStructEnd()
|
|
|
4057 |
|
|
|
4058 |
def validate(self):
|
|
|
4059 |
return
|
|
|
4060 |
|
|
|
4061 |
|
|
|
4062 |
def __repr__(self):
|
|
|
4063 |
L = ['%s=%r' % (key, value)
|
|
|
4064 |
for key, value in self.__dict__.iteritems()]
|
|
|
4065 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4066 |
|
|
|
4067 |
def __eq__(self, other):
|
|
|
4068 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4069 |
|
|
|
4070 |
def __ne__(self, other):
|
|
|
4071 |
return not (self == other)
|