| 412 |
ashish |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 412 |
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
|
| 412 |
ashish |
9 |
|
| 3376 |
rajveer |
10 |
|
| 412 |
ashish |
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 412 |
ashish |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
| 644 |
chandransh |
19 |
class StationType:
|
|
|
20 |
OWN_STATION = 0
|
|
|
21 |
ASSOCIATE_STATION = 1
|
| 472 |
rajveer |
22 |
|
| 644 |
chandransh |
23 |
_VALUES_TO_NAMES = {
|
|
|
24 |
0: "OWN_STATION",
|
|
|
25 |
1: "ASSOCIATE_STATION",
|
|
|
26 |
}
|
| 472 |
rajveer |
27 |
|
| 644 |
chandransh |
28 |
_NAMES_TO_VALUES = {
|
|
|
29 |
"OWN_STATION": 0,
|
|
|
30 |
"ASSOCIATE_STATION": 1,
|
|
|
31 |
}
|
| 472 |
rajveer |
32 |
|
| 3044 |
chandransh |
33 |
class DeliveryType:
|
|
|
34 |
PREPAID = 0
|
|
|
35 |
COD = 1
|
|
|
36 |
|
|
|
37 |
_VALUES_TO_NAMES = {
|
|
|
38 |
0: "PREPAID",
|
|
|
39 |
1: "COD",
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
_NAMES_TO_VALUES = {
|
|
|
43 |
"PREPAID": 0,
|
|
|
44 |
"COD": 1,
|
|
|
45 |
}
|
|
|
46 |
|
| 5527 |
anupam.sin |
47 |
class PickUpType:
|
|
|
48 |
COURIER = 0
|
|
|
49 |
RUNNER = 1
|
|
|
50 |
SELF = 2
|
| 3431 |
rajveer |
51 |
|
| 5527 |
anupam.sin |
52 |
_VALUES_TO_NAMES = {
|
|
|
53 |
0: "COURIER",
|
|
|
54 |
1: "RUNNER",
|
|
|
55 |
2: "SELF",
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
_NAMES_TO_VALUES = {
|
|
|
59 |
"COURIER": 0,
|
|
|
60 |
"RUNNER": 1,
|
|
|
61 |
"SELF": 2,
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
|
| 3044 |
chandransh |
65 |
class ProviderDetails:
|
|
|
66 |
"""
|
|
|
67 |
Attributes:
|
|
|
68 |
- accountNo
|
|
|
69 |
- email
|
| 7792 |
anupam.sin |
70 |
- logisticLocation
|
|
|
71 |
- deliveryType
|
| 3044 |
chandransh |
72 |
"""
|
|
|
73 |
|
|
|
74 |
thrift_spec = (
|
|
|
75 |
None, # 0
|
|
|
76 |
(1, TType.STRING, 'accountNo', None, None, ), # 1
|
|
|
77 |
(2, TType.STRING, 'email', None, None, ), # 2
|
| 7792 |
anupam.sin |
78 |
(3, TType.I64, 'logisticLocation', None, None, ), # 3
|
|
|
79 |
(4, TType.I32, 'deliveryType', None, None, ), # 4
|
| 3044 |
chandransh |
80 |
)
|
|
|
81 |
|
| 7792 |
anupam.sin |
82 |
def __init__(self, accountNo=None, email=None, logisticLocation=None, deliveryType=None,):
|
| 3044 |
chandransh |
83 |
self.accountNo = accountNo
|
|
|
84 |
self.email = email
|
| 7792 |
anupam.sin |
85 |
self.logisticLocation = logisticLocation
|
|
|
86 |
self.deliveryType = deliveryType
|
| 3044 |
chandransh |
87 |
|
|
|
88 |
def read(self, iprot):
|
|
|
89 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
90 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
91 |
return
|
|
|
92 |
iprot.readStructBegin()
|
|
|
93 |
while True:
|
|
|
94 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
95 |
if ftype == TType.STOP:
|
|
|
96 |
break
|
|
|
97 |
if fid == 1:
|
|
|
98 |
if ftype == TType.STRING:
|
|
|
99 |
self.accountNo = iprot.readString();
|
|
|
100 |
else:
|
|
|
101 |
iprot.skip(ftype)
|
|
|
102 |
elif fid == 2:
|
|
|
103 |
if ftype == TType.STRING:
|
|
|
104 |
self.email = iprot.readString();
|
|
|
105 |
else:
|
|
|
106 |
iprot.skip(ftype)
|
| 7792 |
anupam.sin |
107 |
elif fid == 3:
|
|
|
108 |
if ftype == TType.I64:
|
|
|
109 |
self.logisticLocation = iprot.readI64();
|
|
|
110 |
else:
|
|
|
111 |
iprot.skip(ftype)
|
|
|
112 |
elif fid == 4:
|
|
|
113 |
if ftype == TType.I32:
|
|
|
114 |
self.deliveryType = iprot.readI32();
|
|
|
115 |
else:
|
|
|
116 |
iprot.skip(ftype)
|
| 3044 |
chandransh |
117 |
else:
|
|
|
118 |
iprot.skip(ftype)
|
|
|
119 |
iprot.readFieldEnd()
|
|
|
120 |
iprot.readStructEnd()
|
|
|
121 |
|
|
|
122 |
def write(self, oprot):
|
|
|
123 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
124 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
125 |
return
|
|
|
126 |
oprot.writeStructBegin('ProviderDetails')
|
| 3431 |
rajveer |
127 |
if self.accountNo is not None:
|
| 3044 |
chandransh |
128 |
oprot.writeFieldBegin('accountNo', TType.STRING, 1)
|
|
|
129 |
oprot.writeString(self.accountNo)
|
|
|
130 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
131 |
if self.email is not None:
|
| 3044 |
chandransh |
132 |
oprot.writeFieldBegin('email', TType.STRING, 2)
|
|
|
133 |
oprot.writeString(self.email)
|
|
|
134 |
oprot.writeFieldEnd()
|
| 7792 |
anupam.sin |
135 |
if self.logisticLocation is not None:
|
|
|
136 |
oprot.writeFieldBegin('logisticLocation', TType.I64, 3)
|
|
|
137 |
oprot.writeI64(self.logisticLocation)
|
|
|
138 |
oprot.writeFieldEnd()
|
|
|
139 |
if self.deliveryType is not None:
|
|
|
140 |
oprot.writeFieldBegin('deliveryType', TType.I32, 4)
|
|
|
141 |
oprot.writeI32(self.deliveryType)
|
|
|
142 |
oprot.writeFieldEnd()
|
| 3044 |
chandransh |
143 |
oprot.writeFieldStop()
|
|
|
144 |
oprot.writeStructEnd()
|
|
|
145 |
|
| 3431 |
rajveer |
146 |
def validate(self):
|
|
|
147 |
return
|
|
|
148 |
|
|
|
149 |
|
| 3044 |
chandransh |
150 |
def __repr__(self):
|
|
|
151 |
L = ['%s=%r' % (key, value)
|
|
|
152 |
for key, value in self.__dict__.iteritems()]
|
|
|
153 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
154 |
|
|
|
155 |
def __eq__(self, other):
|
|
|
156 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
157 |
|
|
|
158 |
def __ne__(self, other):
|
|
|
159 |
return not (self == other)
|
|
|
160 |
|
| 9840 |
amit.gupta |
161 |
class ItemText:
|
|
|
162 |
"""
|
|
|
163 |
Attributes:
|
|
|
164 |
- itemId
|
|
|
165 |
- displayText
|
|
|
166 |
"""
|
|
|
167 |
|
|
|
168 |
thrift_spec = (
|
|
|
169 |
None, # 0
|
|
|
170 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
171 |
(2, TType.STRING, 'displayText', None, None, ), # 2
|
|
|
172 |
)
|
|
|
173 |
|
|
|
174 |
def __init__(self, itemId=None, displayText=None,):
|
|
|
175 |
self.itemId = itemId
|
|
|
176 |
self.displayText = displayText
|
|
|
177 |
|
|
|
178 |
def read(self, iprot):
|
|
|
179 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
180 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
181 |
return
|
|
|
182 |
iprot.readStructBegin()
|
|
|
183 |
while True:
|
|
|
184 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
185 |
if ftype == TType.STOP:
|
|
|
186 |
break
|
|
|
187 |
if fid == 1:
|
|
|
188 |
if ftype == TType.I64:
|
|
|
189 |
self.itemId = iprot.readI64();
|
|
|
190 |
else:
|
|
|
191 |
iprot.skip(ftype)
|
|
|
192 |
elif fid == 2:
|
|
|
193 |
if ftype == TType.STRING:
|
|
|
194 |
self.displayText = iprot.readString();
|
|
|
195 |
else:
|
|
|
196 |
iprot.skip(ftype)
|
|
|
197 |
else:
|
|
|
198 |
iprot.skip(ftype)
|
|
|
199 |
iprot.readFieldEnd()
|
|
|
200 |
iprot.readStructEnd()
|
|
|
201 |
|
|
|
202 |
def write(self, oprot):
|
|
|
203 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
204 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
205 |
return
|
|
|
206 |
oprot.writeStructBegin('ItemText')
|
|
|
207 |
if self.itemId is not None:
|
|
|
208 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
209 |
oprot.writeI64(self.itemId)
|
|
|
210 |
oprot.writeFieldEnd()
|
|
|
211 |
if self.displayText is not None:
|
|
|
212 |
oprot.writeFieldBegin('displayText', TType.STRING, 2)
|
|
|
213 |
oprot.writeString(self.displayText)
|
|
|
214 |
oprot.writeFieldEnd()
|
|
|
215 |
oprot.writeFieldStop()
|
|
|
216 |
oprot.writeStructEnd()
|
|
|
217 |
|
|
|
218 |
def validate(self):
|
|
|
219 |
return
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
def __repr__(self):
|
|
|
223 |
L = ['%s=%r' % (key, value)
|
|
|
224 |
for key, value in self.__dict__.iteritems()]
|
|
|
225 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
226 |
|
|
|
227 |
def __eq__(self, other):
|
|
|
228 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
229 |
|
|
|
230 |
def __ne__(self, other):
|
|
|
231 |
return not (self == other)
|
|
|
232 |
|
| 412 |
ashish |
233 |
class Provider:
|
|
|
234 |
"""
|
|
|
235 |
Attributes:
|
|
|
236 |
- id
|
|
|
237 |
- name
|
| 3044 |
chandransh |
238 |
- details
|
| 5527 |
anupam.sin |
239 |
- pickup
|
| 13146 |
manish.sha |
240 |
- bundleWeightLimit
|
|
|
241 |
- groupShipmentAllowed
|
|
|
242 |
- maxCodLimit
|
| 412 |
ashish |
243 |
"""
|
|
|
244 |
|
|
|
245 |
thrift_spec = (
|
|
|
246 |
None, # 0
|
|
|
247 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
248 |
(2, TType.STRING, 'name', None, None, ), # 2
|
| 7792 |
anupam.sin |
249 |
(3, TType.LIST, 'details', (TType.STRUCT,(ProviderDetails, ProviderDetails.thrift_spec)), None, ), # 3
|
| 5527 |
anupam.sin |
250 |
(4, TType.I32, 'pickup', None, None, ), # 4
|
| 13146 |
manish.sha |
251 |
(5, TType.DOUBLE, 'bundleWeightLimit', None, None, ), # 5
|
|
|
252 |
(6, TType.BOOL, 'groupShipmentAllowed', None, None, ), # 6
|
|
|
253 |
(7, TType.DOUBLE, 'maxCodLimit', None, None, ), # 7
|
| 412 |
ashish |
254 |
)
|
|
|
255 |
|
| 13146 |
manish.sha |
256 |
def __init__(self, id=None, name=None, details=None, pickup=None, bundleWeightLimit=None, groupShipmentAllowed=None, maxCodLimit=None,):
|
| 412 |
ashish |
257 |
self.id = id
|
|
|
258 |
self.name = name
|
| 3044 |
chandransh |
259 |
self.details = details
|
| 5527 |
anupam.sin |
260 |
self.pickup = pickup
|
| 13146 |
manish.sha |
261 |
self.bundleWeightLimit = bundleWeightLimit
|
|
|
262 |
self.groupShipmentAllowed = groupShipmentAllowed
|
|
|
263 |
self.maxCodLimit = maxCodLimit
|
| 412 |
ashish |
264 |
|
|
|
265 |
def read(self, iprot):
|
|
|
266 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
267 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
268 |
return
|
|
|
269 |
iprot.readStructBegin()
|
|
|
270 |
while True:
|
|
|
271 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
272 |
if ftype == TType.STOP:
|
|
|
273 |
break
|
|
|
274 |
if fid == 1:
|
|
|
275 |
if ftype == TType.I64:
|
|
|
276 |
self.id = iprot.readI64();
|
|
|
277 |
else:
|
|
|
278 |
iprot.skip(ftype)
|
|
|
279 |
elif fid == 2:
|
|
|
280 |
if ftype == TType.STRING:
|
|
|
281 |
self.name = iprot.readString();
|
|
|
282 |
else:
|
|
|
283 |
iprot.skip(ftype)
|
| 669 |
chandransh |
284 |
elif fid == 3:
|
| 7792 |
anupam.sin |
285 |
if ftype == TType.LIST:
|
|
|
286 |
self.details = []
|
|
|
287 |
(_etype3, _size0) = iprot.readListBegin()
|
| 3044 |
chandransh |
288 |
for _i4 in xrange(_size0):
|
| 7792 |
anupam.sin |
289 |
_elem5 = ProviderDetails()
|
|
|
290 |
_elem5.read(iprot)
|
|
|
291 |
self.details.append(_elem5)
|
|
|
292 |
iprot.readListEnd()
|
| 669 |
chandransh |
293 |
else:
|
|
|
294 |
iprot.skip(ftype)
|
| 5527 |
anupam.sin |
295 |
elif fid == 4:
|
|
|
296 |
if ftype == TType.I32:
|
|
|
297 |
self.pickup = iprot.readI32();
|
|
|
298 |
else:
|
|
|
299 |
iprot.skip(ftype)
|
| 13146 |
manish.sha |
300 |
elif fid == 5:
|
|
|
301 |
if ftype == TType.DOUBLE:
|
|
|
302 |
self.bundleWeightLimit = iprot.readDouble();
|
|
|
303 |
else:
|
|
|
304 |
iprot.skip(ftype)
|
|
|
305 |
elif fid == 6:
|
|
|
306 |
if ftype == TType.BOOL:
|
|
|
307 |
self.groupShipmentAllowed = iprot.readBool();
|
|
|
308 |
else:
|
|
|
309 |
iprot.skip(ftype)
|
|
|
310 |
elif fid == 7:
|
|
|
311 |
if ftype == TType.DOUBLE:
|
|
|
312 |
self.maxCodLimit = iprot.readDouble();
|
|
|
313 |
else:
|
|
|
314 |
iprot.skip(ftype)
|
| 412 |
ashish |
315 |
else:
|
|
|
316 |
iprot.skip(ftype)
|
|
|
317 |
iprot.readFieldEnd()
|
|
|
318 |
iprot.readStructEnd()
|
|
|
319 |
|
|
|
320 |
def write(self, oprot):
|
|
|
321 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
322 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
323 |
return
|
|
|
324 |
oprot.writeStructBegin('Provider')
|
| 3431 |
rajveer |
325 |
if self.id is not None:
|
| 412 |
ashish |
326 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
327 |
oprot.writeI64(self.id)
|
|
|
328 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
329 |
if self.name is not None:
|
| 412 |
ashish |
330 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
331 |
oprot.writeString(self.name)
|
|
|
332 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
333 |
if self.details is not None:
|
| 7792 |
anupam.sin |
334 |
oprot.writeFieldBegin('details', TType.LIST, 3)
|
|
|
335 |
oprot.writeListBegin(TType.STRUCT, len(self.details))
|
|
|
336 |
for iter6 in self.details:
|
|
|
337 |
iter6.write(oprot)
|
|
|
338 |
oprot.writeListEnd()
|
| 669 |
chandransh |
339 |
oprot.writeFieldEnd()
|
| 5527 |
anupam.sin |
340 |
if self.pickup is not None:
|
|
|
341 |
oprot.writeFieldBegin('pickup', TType.I32, 4)
|
|
|
342 |
oprot.writeI32(self.pickup)
|
|
|
343 |
oprot.writeFieldEnd()
|
| 13146 |
manish.sha |
344 |
if self.bundleWeightLimit is not None:
|
|
|
345 |
oprot.writeFieldBegin('bundleWeightLimit', TType.DOUBLE, 5)
|
|
|
346 |
oprot.writeDouble(self.bundleWeightLimit)
|
|
|
347 |
oprot.writeFieldEnd()
|
|
|
348 |
if self.groupShipmentAllowed is not None:
|
|
|
349 |
oprot.writeFieldBegin('groupShipmentAllowed', TType.BOOL, 6)
|
|
|
350 |
oprot.writeBool(self.groupShipmentAllowed)
|
|
|
351 |
oprot.writeFieldEnd()
|
|
|
352 |
if self.maxCodLimit is not None:
|
|
|
353 |
oprot.writeFieldBegin('maxCodLimit', TType.DOUBLE, 7)
|
|
|
354 |
oprot.writeDouble(self.maxCodLimit)
|
|
|
355 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
356 |
oprot.writeFieldStop()
|
|
|
357 |
oprot.writeStructEnd()
|
|
|
358 |
|
| 3431 |
rajveer |
359 |
def validate(self):
|
|
|
360 |
return
|
|
|
361 |
|
|
|
362 |
|
| 412 |
ashish |
363 |
def __repr__(self):
|
|
|
364 |
L = ['%s=%r' % (key, value)
|
|
|
365 |
for key, value in self.__dict__.iteritems()]
|
|
|
366 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
367 |
|
|
|
368 |
def __eq__(self, other):
|
|
|
369 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
370 |
|
|
|
371 |
def __ne__(self, other):
|
|
|
372 |
return not (self == other)
|
|
|
373 |
|
| 644 |
chandransh |
374 |
class AwbUpdate:
|
| 412 |
ashish |
375 |
"""
|
|
|
376 |
Attributes:
|
| 644 |
chandransh |
377 |
- awbNumber
|
| 6643 |
rajveer |
378 |
- providerId
|
|
|
379 |
- date
|
|
|
380 |
- status
|
|
|
381 |
- description
|
| 644 |
chandransh |
382 |
- location
|
| 412 |
ashish |
383 |
"""
|
|
|
384 |
|
|
|
385 |
thrift_spec = (
|
|
|
386 |
None, # 0
|
| 644 |
chandransh |
387 |
(1, TType.STRING, 'awbNumber', None, None, ), # 1
|
| 6643 |
rajveer |
388 |
(2, TType.I64, 'providerId', None, None, ), # 2
|
|
|
389 |
(3, TType.I64, 'date', None, None, ), # 3
|
|
|
390 |
(4, TType.STRING, 'status', None, None, ), # 4
|
| 644 |
chandransh |
391 |
(5, TType.STRING, 'description', None, None, ), # 5
|
| 6643 |
rajveer |
392 |
(6, TType.STRING, 'location', None, None, ), # 6
|
| 412 |
ashish |
393 |
)
|
|
|
394 |
|
| 6643 |
rajveer |
395 |
def __init__(self, awbNumber=None, providerId=None, date=None, status=None, description=None, location=None,):
|
| 644 |
chandransh |
396 |
self.awbNumber = awbNumber
|
| 6643 |
rajveer |
397 |
self.providerId = providerId
|
|
|
398 |
self.date = date
|
|
|
399 |
self.status = status
|
|
|
400 |
self.description = description
|
| 644 |
chandransh |
401 |
self.location = location
|
| 412 |
ashish |
402 |
|
|
|
403 |
def read(self, iprot):
|
|
|
404 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
405 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
406 |
return
|
|
|
407 |
iprot.readStructBegin()
|
|
|
408 |
while True:
|
|
|
409 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
410 |
if ftype == TType.STOP:
|
|
|
411 |
break
|
|
|
412 |
if fid == 1:
|
|
|
413 |
if ftype == TType.STRING:
|
| 644 |
chandransh |
414 |
self.awbNumber = iprot.readString();
|
| 412 |
ashish |
415 |
else:
|
|
|
416 |
iprot.skip(ftype)
|
|
|
417 |
elif fid == 2:
|
| 6643 |
rajveer |
418 |
if ftype == TType.I64:
|
|
|
419 |
self.providerId = iprot.readI64();
|
| 412 |
ashish |
420 |
else:
|
|
|
421 |
iprot.skip(ftype)
|
|
|
422 |
elif fid == 3:
|
| 6643 |
rajveer |
423 |
if ftype == TType.I64:
|
|
|
424 |
self.date = iprot.readI64();
|
| 412 |
ashish |
425 |
else:
|
|
|
426 |
iprot.skip(ftype)
|
|
|
427 |
elif fid == 4:
|
| 6643 |
rajveer |
428 |
if ftype == TType.STRING:
|
|
|
429 |
self.status = iprot.readString();
|
| 412 |
ashish |
430 |
else:
|
|
|
431 |
iprot.skip(ftype)
|
|
|
432 |
elif fid == 5:
|
|
|
433 |
if ftype == TType.STRING:
|
| 644 |
chandransh |
434 |
self.description = iprot.readString();
|
| 412 |
ashish |
435 |
else:
|
|
|
436 |
iprot.skip(ftype)
|
| 6643 |
rajveer |
437 |
elif fid == 6:
|
|
|
438 |
if ftype == TType.STRING:
|
|
|
439 |
self.location = iprot.readString();
|
|
|
440 |
else:
|
|
|
441 |
iprot.skip(ftype)
|
| 412 |
ashish |
442 |
else:
|
|
|
443 |
iprot.skip(ftype)
|
|
|
444 |
iprot.readFieldEnd()
|
|
|
445 |
iprot.readStructEnd()
|
|
|
446 |
|
|
|
447 |
def write(self, oprot):
|
|
|
448 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
449 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
450 |
return
|
| 644 |
chandransh |
451 |
oprot.writeStructBegin('AwbUpdate')
|
| 3431 |
rajveer |
452 |
if self.awbNumber is not None:
|
| 644 |
chandransh |
453 |
oprot.writeFieldBegin('awbNumber', TType.STRING, 1)
|
|
|
454 |
oprot.writeString(self.awbNumber)
|
| 412 |
ashish |
455 |
oprot.writeFieldEnd()
|
| 6643 |
rajveer |
456 |
if self.providerId is not None:
|
|
|
457 |
oprot.writeFieldBegin('providerId', TType.I64, 2)
|
|
|
458 |
oprot.writeI64(self.providerId)
|
| 412 |
ashish |
459 |
oprot.writeFieldEnd()
|
| 6643 |
rajveer |
460 |
if self.date is not None:
|
|
|
461 |
oprot.writeFieldBegin('date', TType.I64, 3)
|
|
|
462 |
oprot.writeI64(self.date)
|
| 412 |
ashish |
463 |
oprot.writeFieldEnd()
|
| 6643 |
rajveer |
464 |
if self.status is not None:
|
|
|
465 |
oprot.writeFieldBegin('status', TType.STRING, 4)
|
|
|
466 |
oprot.writeString(self.status)
|
| 412 |
ashish |
467 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
468 |
if self.description is not None:
|
| 644 |
chandransh |
469 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
|
|
470 |
oprot.writeString(self.description)
|
| 412 |
ashish |
471 |
oprot.writeFieldEnd()
|
| 6643 |
rajveer |
472 |
if self.location is not None:
|
|
|
473 |
oprot.writeFieldBegin('location', TType.STRING, 6)
|
|
|
474 |
oprot.writeString(self.location)
|
|
|
475 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
476 |
oprot.writeFieldStop()
|
|
|
477 |
oprot.writeStructEnd()
|
|
|
478 |
|
| 3431 |
rajveer |
479 |
def validate(self):
|
|
|
480 |
return
|
|
|
481 |
|
|
|
482 |
|
| 412 |
ashish |
483 |
def __repr__(self):
|
|
|
484 |
L = ['%s=%r' % (key, value)
|
|
|
485 |
for key, value in self.__dict__.iteritems()]
|
|
|
486 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
487 |
|
|
|
488 |
def __eq__(self, other):
|
|
|
489 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
490 |
|
|
|
491 |
def __ne__(self, other):
|
|
|
492 |
return not (self == other)
|
|
|
493 |
|
| 483 |
rajveer |
494 |
class LogisticsInfo:
|
|
|
495 |
"""
|
|
|
496 |
Attributes:
|
| 644 |
chandransh |
497 |
- warehouseId
|
|
|
498 |
- providerId
|
|
|
499 |
- deliveryTime
|
| 483 |
rajveer |
500 |
- airway_billno
|
| 4009 |
chandransh |
501 |
- shippingTime
|
| 4865 |
rajveer |
502 |
- codAllowed
|
| 5110 |
mandeep.dh |
503 |
- fulfilmentWarehouseId
|
| 6524 |
rajveer |
504 |
- otgAvailable
|
| 6725 |
rajveer |
505 |
- deliveryDelay
|
| 483 |
rajveer |
506 |
"""
|
|
|
507 |
|
|
|
508 |
thrift_spec = (
|
|
|
509 |
None, # 0
|
| 644 |
chandransh |
510 |
(1, TType.I64, 'warehouseId', None, None, ), # 1
|
|
|
511 |
(2, TType.I64, 'providerId', None, None, ), # 2
|
|
|
512 |
(3, TType.I64, 'deliveryTime', None, None, ), # 3
|
|
|
513 |
(4, TType.STRING, 'airway_billno', None, None, ), # 4
|
| 4009 |
chandransh |
514 |
(5, TType.I64, 'shippingTime', None, None, ), # 5
|
| 4865 |
rajveer |
515 |
(6, TType.BOOL, 'codAllowed', None, None, ), # 6
|
| 5110 |
mandeep.dh |
516 |
(7, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 7
|
| 6524 |
rajveer |
517 |
(8, TType.BOOL, 'otgAvailable', None, None, ), # 8
|
| 6725 |
rajveer |
518 |
(9, TType.I64, 'deliveryDelay', None, None, ), # 9
|
| 483 |
rajveer |
519 |
)
|
|
|
520 |
|
| 6725 |
rajveer |
521 |
def __init__(self, warehouseId=None, providerId=None, deliveryTime=None, airway_billno=None, shippingTime=None, codAllowed=None, fulfilmentWarehouseId=None, otgAvailable=None, deliveryDelay=None,):
|
| 644 |
chandransh |
522 |
self.warehouseId = warehouseId
|
|
|
523 |
self.providerId = providerId
|
|
|
524 |
self.deliveryTime = deliveryTime
|
| 483 |
rajveer |
525 |
self.airway_billno = airway_billno
|
| 4009 |
chandransh |
526 |
self.shippingTime = shippingTime
|
| 4865 |
rajveer |
527 |
self.codAllowed = codAllowed
|
| 5110 |
mandeep.dh |
528 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 6524 |
rajveer |
529 |
self.otgAvailable = otgAvailable
|
| 6725 |
rajveer |
530 |
self.deliveryDelay = deliveryDelay
|
| 483 |
rajveer |
531 |
|
|
|
532 |
def read(self, iprot):
|
|
|
533 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
534 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
535 |
return
|
|
|
536 |
iprot.readStructBegin()
|
|
|
537 |
while True:
|
|
|
538 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
539 |
if ftype == TType.STOP:
|
|
|
540 |
break
|
|
|
541 |
if fid == 1:
|
|
|
542 |
if ftype == TType.I64:
|
| 644 |
chandransh |
543 |
self.warehouseId = iprot.readI64();
|
| 483 |
rajveer |
544 |
else:
|
|
|
545 |
iprot.skip(ftype)
|
|
|
546 |
elif fid == 2:
|
|
|
547 |
if ftype == TType.I64:
|
| 644 |
chandransh |
548 |
self.providerId = iprot.readI64();
|
| 483 |
rajveer |
549 |
else:
|
|
|
550 |
iprot.skip(ftype)
|
|
|
551 |
elif fid == 3:
|
| 644 |
chandransh |
552 |
if ftype == TType.I64:
|
|
|
553 |
self.deliveryTime = iprot.readI64();
|
| 483 |
rajveer |
554 |
else:
|
|
|
555 |
iprot.skip(ftype)
|
|
|
556 |
elif fid == 4:
|
| 644 |
chandransh |
557 |
if ftype == TType.STRING:
|
|
|
558 |
self.airway_billno = iprot.readString();
|
| 483 |
rajveer |
559 |
else:
|
|
|
560 |
iprot.skip(ftype)
|
| 4009 |
chandransh |
561 |
elif fid == 5:
|
|
|
562 |
if ftype == TType.I64:
|
|
|
563 |
self.shippingTime = iprot.readI64();
|
|
|
564 |
else:
|
|
|
565 |
iprot.skip(ftype)
|
| 4865 |
rajveer |
566 |
elif fid == 6:
|
|
|
567 |
if ftype == TType.BOOL:
|
|
|
568 |
self.codAllowed = iprot.readBool();
|
|
|
569 |
else:
|
|
|
570 |
iprot.skip(ftype)
|
| 5110 |
mandeep.dh |
571 |
elif fid == 7:
|
|
|
572 |
if ftype == TType.I64:
|
|
|
573 |
self.fulfilmentWarehouseId = iprot.readI64();
|
|
|
574 |
else:
|
|
|
575 |
iprot.skip(ftype)
|
| 6524 |
rajveer |
576 |
elif fid == 8:
|
|
|
577 |
if ftype == TType.BOOL:
|
|
|
578 |
self.otgAvailable = iprot.readBool();
|
|
|
579 |
else:
|
|
|
580 |
iprot.skip(ftype)
|
| 6725 |
rajveer |
581 |
elif fid == 9:
|
|
|
582 |
if ftype == TType.I64:
|
|
|
583 |
self.deliveryDelay = iprot.readI64();
|
|
|
584 |
else:
|
|
|
585 |
iprot.skip(ftype)
|
| 483 |
rajveer |
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
|
|
|
595 |
oprot.writeStructBegin('LogisticsInfo')
|
| 3431 |
rajveer |
596 |
if self.warehouseId is not None:
|
| 644 |
chandransh |
597 |
oprot.writeFieldBegin('warehouseId', TType.I64, 1)
|
|
|
598 |
oprot.writeI64(self.warehouseId)
|
| 483 |
rajveer |
599 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
600 |
if self.providerId is not None:
|
| 644 |
chandransh |
601 |
oprot.writeFieldBegin('providerId', TType.I64, 2)
|
|
|
602 |
oprot.writeI64(self.providerId)
|
| 483 |
rajveer |
603 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
604 |
if self.deliveryTime is not None:
|
| 644 |
chandransh |
605 |
oprot.writeFieldBegin('deliveryTime', TType.I64, 3)
|
|
|
606 |
oprot.writeI64(self.deliveryTime)
|
|
|
607 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
608 |
if self.airway_billno is not None:
|
| 644 |
chandransh |
609 |
oprot.writeFieldBegin('airway_billno', TType.STRING, 4)
|
| 509 |
rajveer |
610 |
oprot.writeString(self.airway_billno)
|
| 483 |
rajveer |
611 |
oprot.writeFieldEnd()
|
| 4009 |
chandransh |
612 |
if self.shippingTime is not None:
|
|
|
613 |
oprot.writeFieldBegin('shippingTime', TType.I64, 5)
|
|
|
614 |
oprot.writeI64(self.shippingTime)
|
|
|
615 |
oprot.writeFieldEnd()
|
| 4865 |
rajveer |
616 |
if self.codAllowed is not None:
|
|
|
617 |
oprot.writeFieldBegin('codAllowed', TType.BOOL, 6)
|
|
|
618 |
oprot.writeBool(self.codAllowed)
|
|
|
619 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
620 |
if self.fulfilmentWarehouseId is not None:
|
|
|
621 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 7)
|
|
|
622 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
|
|
623 |
oprot.writeFieldEnd()
|
| 6524 |
rajveer |
624 |
if self.otgAvailable is not None:
|
|
|
625 |
oprot.writeFieldBegin('otgAvailable', TType.BOOL, 8)
|
|
|
626 |
oprot.writeBool(self.otgAvailable)
|
|
|
627 |
oprot.writeFieldEnd()
|
| 6725 |
rajveer |
628 |
if self.deliveryDelay is not None:
|
|
|
629 |
oprot.writeFieldBegin('deliveryDelay', TType.I64, 9)
|
|
|
630 |
oprot.writeI64(self.deliveryDelay)
|
|
|
631 |
oprot.writeFieldEnd()
|
| 483 |
rajveer |
632 |
oprot.writeFieldStop()
|
|
|
633 |
oprot.writeStructEnd()
|
|
|
634 |
|
| 3431 |
rajveer |
635 |
def validate(self):
|
|
|
636 |
return
|
|
|
637 |
|
|
|
638 |
|
| 483 |
rajveer |
639 |
def __repr__(self):
|
|
|
640 |
L = ['%s=%r' % (key, value)
|
|
|
641 |
for key, value in self.__dict__.iteritems()]
|
|
|
642 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
643 |
|
|
|
644 |
def __eq__(self, other):
|
|
|
645 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
646 |
|
|
|
647 |
def __ne__(self, other):
|
|
|
648 |
return not (self == other)
|
|
|
649 |
|
| 5553 |
rajveer |
650 |
class PickupStore:
|
|
|
651 |
"""
|
|
|
652 |
Attributes:
|
|
|
653 |
- id
|
| 5719 |
rajveer |
654 |
- hotspotId
|
| 5553 |
rajveer |
655 |
- name
|
|
|
656 |
- line1
|
|
|
657 |
- line2
|
|
|
658 |
- city
|
|
|
659 |
- state
|
|
|
660 |
- pin
|
|
|
661 |
- phone
|
| 5863 |
rajveer |
662 |
- email
|
| 5739 |
rajveer |
663 |
- zone
|
| 5815 |
rajveer |
664 |
- bdm
|
|
|
665 |
- bdmEmail
|
| 5553 |
rajveer |
666 |
"""
|
|
|
667 |
|
|
|
668 |
thrift_spec = (
|
|
|
669 |
None, # 0
|
|
|
670 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 5719 |
rajveer |
671 |
(2, TType.STRING, 'hotspotId', None, None, ), # 2
|
|
|
672 |
(3, TType.STRING, 'name', None, None, ), # 3
|
|
|
673 |
(4, TType.STRING, 'line1', None, None, ), # 4
|
|
|
674 |
(5, TType.STRING, 'line2', None, None, ), # 5
|
|
|
675 |
(6, TType.STRING, 'city', None, None, ), # 6
|
|
|
676 |
(7, TType.STRING, 'state', None, None, ), # 7
|
|
|
677 |
(8, TType.STRING, 'pin', None, None, ), # 8
|
|
|
678 |
(9, TType.STRING, 'phone', None, None, ), # 9
|
| 5863 |
rajveer |
679 |
(10, TType.STRING, 'email', None, None, ), # 10
|
|
|
680 |
(11, TType.STRING, 'zone', None, None, ), # 11
|
|
|
681 |
(12, TType.STRING, 'bdm', None, None, ), # 12
|
|
|
682 |
(13, TType.STRING, 'bdmEmail', None, None, ), # 13
|
| 5553 |
rajveer |
683 |
)
|
|
|
684 |
|
| 5863 |
rajveer |
685 |
def __init__(self, id=None, hotspotId=None, name=None, line1=None, line2=None, city=None, state=None, pin=None, phone=None, email=None, zone=None, bdm=None, bdmEmail=None,):
|
| 5553 |
rajveer |
686 |
self.id = id
|
| 5719 |
rajveer |
687 |
self.hotspotId = hotspotId
|
| 5553 |
rajveer |
688 |
self.name = name
|
|
|
689 |
self.line1 = line1
|
|
|
690 |
self.line2 = line2
|
|
|
691 |
self.city = city
|
|
|
692 |
self.state = state
|
|
|
693 |
self.pin = pin
|
|
|
694 |
self.phone = phone
|
| 5863 |
rajveer |
695 |
self.email = email
|
| 5739 |
rajveer |
696 |
self.zone = zone
|
| 5815 |
rajveer |
697 |
self.bdm = bdm
|
|
|
698 |
self.bdmEmail = bdmEmail
|
| 5553 |
rajveer |
699 |
|
|
|
700 |
def read(self, iprot):
|
|
|
701 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
702 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
703 |
return
|
|
|
704 |
iprot.readStructBegin()
|
|
|
705 |
while True:
|
|
|
706 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
707 |
if ftype == TType.STOP:
|
|
|
708 |
break
|
|
|
709 |
if fid == 1:
|
|
|
710 |
if ftype == TType.I64:
|
|
|
711 |
self.id = iprot.readI64();
|
|
|
712 |
else:
|
|
|
713 |
iprot.skip(ftype)
|
|
|
714 |
elif fid == 2:
|
|
|
715 |
if ftype == TType.STRING:
|
| 5719 |
rajveer |
716 |
self.hotspotId = iprot.readString();
|
| 5553 |
rajveer |
717 |
else:
|
|
|
718 |
iprot.skip(ftype)
|
|
|
719 |
elif fid == 3:
|
|
|
720 |
if ftype == TType.STRING:
|
| 5719 |
rajveer |
721 |
self.name = iprot.readString();
|
| 5553 |
rajveer |
722 |
else:
|
|
|
723 |
iprot.skip(ftype)
|
|
|
724 |
elif fid == 4:
|
|
|
725 |
if ftype == TType.STRING:
|
| 5719 |
rajveer |
726 |
self.line1 = iprot.readString();
|
| 5553 |
rajveer |
727 |
else:
|
|
|
728 |
iprot.skip(ftype)
|
|
|
729 |
elif fid == 5:
|
|
|
730 |
if ftype == TType.STRING:
|
| 5719 |
rajveer |
731 |
self.line2 = iprot.readString();
|
| 5553 |
rajveer |
732 |
else:
|
|
|
733 |
iprot.skip(ftype)
|
|
|
734 |
elif fid == 6:
|
|
|
735 |
if ftype == TType.STRING:
|
| 5719 |
rajveer |
736 |
self.city = iprot.readString();
|
| 5553 |
rajveer |
737 |
else:
|
|
|
738 |
iprot.skip(ftype)
|
|
|
739 |
elif fid == 7:
|
|
|
740 |
if ftype == TType.STRING:
|
| 5719 |
rajveer |
741 |
self.state = iprot.readString();
|
| 5553 |
rajveer |
742 |
else:
|
|
|
743 |
iprot.skip(ftype)
|
|
|
744 |
elif fid == 8:
|
|
|
745 |
if ftype == TType.STRING:
|
| 5719 |
rajveer |
746 |
self.pin = iprot.readString();
|
|
|
747 |
else:
|
|
|
748 |
iprot.skip(ftype)
|
|
|
749 |
elif fid == 9:
|
|
|
750 |
if ftype == TType.STRING:
|
| 5553 |
rajveer |
751 |
self.phone = iprot.readString();
|
|
|
752 |
else:
|
|
|
753 |
iprot.skip(ftype)
|
| 5739 |
rajveer |
754 |
elif fid == 10:
|
|
|
755 |
if ftype == TType.STRING:
|
| 5863 |
rajveer |
756 |
self.email = iprot.readString();
|
| 5739 |
rajveer |
757 |
else:
|
|
|
758 |
iprot.skip(ftype)
|
| 5815 |
rajveer |
759 |
elif fid == 11:
|
|
|
760 |
if ftype == TType.STRING:
|
| 5863 |
rajveer |
761 |
self.zone = iprot.readString();
|
| 5815 |
rajveer |
762 |
else:
|
|
|
763 |
iprot.skip(ftype)
|
|
|
764 |
elif fid == 12:
|
|
|
765 |
if ftype == TType.STRING:
|
| 5863 |
rajveer |
766 |
self.bdm = iprot.readString();
|
|
|
767 |
else:
|
|
|
768 |
iprot.skip(ftype)
|
|
|
769 |
elif fid == 13:
|
|
|
770 |
if ftype == TType.STRING:
|
| 5815 |
rajveer |
771 |
self.bdmEmail = iprot.readString();
|
|
|
772 |
else:
|
|
|
773 |
iprot.skip(ftype)
|
| 5553 |
rajveer |
774 |
else:
|
|
|
775 |
iprot.skip(ftype)
|
|
|
776 |
iprot.readFieldEnd()
|
|
|
777 |
iprot.readStructEnd()
|
|
|
778 |
|
|
|
779 |
def write(self, oprot):
|
|
|
780 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
781 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
782 |
return
|
|
|
783 |
oprot.writeStructBegin('PickupStore')
|
|
|
784 |
if self.id is not None:
|
|
|
785 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
786 |
oprot.writeI64(self.id)
|
|
|
787 |
oprot.writeFieldEnd()
|
| 5719 |
rajveer |
788 |
if self.hotspotId is not None:
|
|
|
789 |
oprot.writeFieldBegin('hotspotId', TType.STRING, 2)
|
|
|
790 |
oprot.writeString(self.hotspotId)
|
|
|
791 |
oprot.writeFieldEnd()
|
| 5553 |
rajveer |
792 |
if self.name is not None:
|
| 5719 |
rajveer |
793 |
oprot.writeFieldBegin('name', TType.STRING, 3)
|
| 5553 |
rajveer |
794 |
oprot.writeString(self.name)
|
|
|
795 |
oprot.writeFieldEnd()
|
|
|
796 |
if self.line1 is not None:
|
| 5719 |
rajveer |
797 |
oprot.writeFieldBegin('line1', TType.STRING, 4)
|
| 5553 |
rajveer |
798 |
oprot.writeString(self.line1)
|
|
|
799 |
oprot.writeFieldEnd()
|
|
|
800 |
if self.line2 is not None:
|
| 5719 |
rajveer |
801 |
oprot.writeFieldBegin('line2', TType.STRING, 5)
|
| 5553 |
rajveer |
802 |
oprot.writeString(self.line2)
|
|
|
803 |
oprot.writeFieldEnd()
|
|
|
804 |
if self.city is not None:
|
| 5719 |
rajveer |
805 |
oprot.writeFieldBegin('city', TType.STRING, 6)
|
| 5553 |
rajveer |
806 |
oprot.writeString(self.city)
|
|
|
807 |
oprot.writeFieldEnd()
|
|
|
808 |
if self.state is not None:
|
| 5719 |
rajveer |
809 |
oprot.writeFieldBegin('state', TType.STRING, 7)
|
| 5553 |
rajveer |
810 |
oprot.writeString(self.state)
|
|
|
811 |
oprot.writeFieldEnd()
|
|
|
812 |
if self.pin is not None:
|
| 5719 |
rajveer |
813 |
oprot.writeFieldBegin('pin', TType.STRING, 8)
|
| 5553 |
rajveer |
814 |
oprot.writeString(self.pin)
|
|
|
815 |
oprot.writeFieldEnd()
|
|
|
816 |
if self.phone is not None:
|
| 5719 |
rajveer |
817 |
oprot.writeFieldBegin('phone', TType.STRING, 9)
|
| 5553 |
rajveer |
818 |
oprot.writeString(self.phone)
|
|
|
819 |
oprot.writeFieldEnd()
|
| 5863 |
rajveer |
820 |
if self.email is not None:
|
|
|
821 |
oprot.writeFieldBegin('email', TType.STRING, 10)
|
|
|
822 |
oprot.writeString(self.email)
|
|
|
823 |
oprot.writeFieldEnd()
|
| 5739 |
rajveer |
824 |
if self.zone is not None:
|
| 5863 |
rajveer |
825 |
oprot.writeFieldBegin('zone', TType.STRING, 11)
|
| 5739 |
rajveer |
826 |
oprot.writeString(self.zone)
|
|
|
827 |
oprot.writeFieldEnd()
|
| 5815 |
rajveer |
828 |
if self.bdm is not None:
|
| 5863 |
rajveer |
829 |
oprot.writeFieldBegin('bdm', TType.STRING, 12)
|
| 5815 |
rajveer |
830 |
oprot.writeString(self.bdm)
|
|
|
831 |
oprot.writeFieldEnd()
|
|
|
832 |
if self.bdmEmail is not None:
|
| 5863 |
rajveer |
833 |
oprot.writeFieldBegin('bdmEmail', TType.STRING, 13)
|
| 5815 |
rajveer |
834 |
oprot.writeString(self.bdmEmail)
|
|
|
835 |
oprot.writeFieldEnd()
|
| 5553 |
rajveer |
836 |
oprot.writeFieldStop()
|
|
|
837 |
oprot.writeStructEnd()
|
|
|
838 |
|
|
|
839 |
def validate(self):
|
|
|
840 |
return
|
|
|
841 |
|
|
|
842 |
|
|
|
843 |
def __repr__(self):
|
|
|
844 |
L = ['%s=%r' % (key, value)
|
|
|
845 |
for key, value in self.__dict__.iteritems()]
|
|
|
846 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
847 |
|
|
|
848 |
def __eq__(self, other):
|
|
|
849 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
850 |
|
|
|
851 |
def __ne__(self, other):
|
|
|
852 |
return not (self == other)
|
|
|
853 |
|
| 7787 |
manish.sha |
854 |
class LogisticsLocationInfo:
|
|
|
855 |
"""
|
|
|
856 |
Attributes:
|
|
|
857 |
- providerId
|
|
|
858 |
- pinCode
|
|
|
859 |
- destinationCode
|
|
|
860 |
- expAvailable
|
|
|
861 |
- codAvailable
|
|
|
862 |
- otgAvailable
|
|
|
863 |
- codLimit
|
|
|
864 |
- prepaidLimit
|
|
|
865 |
- warehouseId
|
|
|
866 |
- deliveryTime
|
|
|
867 |
- delivery_delay
|
| 19421 |
manish.sha |
868 |
- zoneCode
|
| 7787 |
manish.sha |
869 |
"""
|
|
|
870 |
|
|
|
871 |
thrift_spec = (
|
|
|
872 |
None, # 0
|
|
|
873 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
874 |
(2, TType.STRING, 'pinCode', None, None, ), # 2
|
|
|
875 |
(3, TType.STRING, 'destinationCode', None, None, ), # 3
|
|
|
876 |
(4, TType.BOOL, 'expAvailable', None, None, ), # 4
|
|
|
877 |
(5, TType.BOOL, 'codAvailable', None, None, ), # 5
|
|
|
878 |
(6, TType.BOOL, 'otgAvailable', None, None, ), # 6
|
|
|
879 |
(7, TType.I64, 'codLimit', None, None, ), # 7
|
|
|
880 |
(8, TType.I64, 'prepaidLimit', None, None, ), # 8
|
|
|
881 |
(9, TType.I64, 'warehouseId', None, None, ), # 9
|
|
|
882 |
(10, TType.I64, 'deliveryTime', None, None, ), # 10
|
|
|
883 |
(11, TType.I64, 'delivery_delay', None, None, ), # 11
|
| 19421 |
manish.sha |
884 |
(12, TType.STRING, 'zoneCode', None, None, ), # 12
|
| 7787 |
manish.sha |
885 |
)
|
|
|
886 |
|
| 19421 |
manish.sha |
887 |
def __init__(self, providerId=None, pinCode=None, destinationCode=None, expAvailable=None, codAvailable=None, otgAvailable=None, codLimit=None, prepaidLimit=None, warehouseId=None, deliveryTime=None, delivery_delay=None, zoneCode=None,):
|
| 7787 |
manish.sha |
888 |
self.providerId = providerId
|
|
|
889 |
self.pinCode = pinCode
|
|
|
890 |
self.destinationCode = destinationCode
|
|
|
891 |
self.expAvailable = expAvailable
|
|
|
892 |
self.codAvailable = codAvailable
|
|
|
893 |
self.otgAvailable = otgAvailable
|
|
|
894 |
self.codLimit = codLimit
|
|
|
895 |
self.prepaidLimit = prepaidLimit
|
|
|
896 |
self.warehouseId = warehouseId
|
|
|
897 |
self.deliveryTime = deliveryTime
|
|
|
898 |
self.delivery_delay = delivery_delay
|
| 19421 |
manish.sha |
899 |
self.zoneCode = zoneCode
|
| 7787 |
manish.sha |
900 |
|
|
|
901 |
def read(self, iprot):
|
|
|
902 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
903 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
904 |
return
|
|
|
905 |
iprot.readStructBegin()
|
|
|
906 |
while True:
|
|
|
907 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
908 |
if ftype == TType.STOP:
|
|
|
909 |
break
|
|
|
910 |
if fid == 1:
|
|
|
911 |
if ftype == TType.I64:
|
|
|
912 |
self.providerId = iprot.readI64();
|
|
|
913 |
else:
|
|
|
914 |
iprot.skip(ftype)
|
|
|
915 |
elif fid == 2:
|
|
|
916 |
if ftype == TType.STRING:
|
|
|
917 |
self.pinCode = iprot.readString();
|
|
|
918 |
else:
|
|
|
919 |
iprot.skip(ftype)
|
|
|
920 |
elif fid == 3:
|
|
|
921 |
if ftype == TType.STRING:
|
|
|
922 |
self.destinationCode = iprot.readString();
|
|
|
923 |
else:
|
|
|
924 |
iprot.skip(ftype)
|
|
|
925 |
elif fid == 4:
|
|
|
926 |
if ftype == TType.BOOL:
|
|
|
927 |
self.expAvailable = iprot.readBool();
|
|
|
928 |
else:
|
|
|
929 |
iprot.skip(ftype)
|
|
|
930 |
elif fid == 5:
|
|
|
931 |
if ftype == TType.BOOL:
|
|
|
932 |
self.codAvailable = iprot.readBool();
|
|
|
933 |
else:
|
|
|
934 |
iprot.skip(ftype)
|
|
|
935 |
elif fid == 6:
|
|
|
936 |
if ftype == TType.BOOL:
|
|
|
937 |
self.otgAvailable = iprot.readBool();
|
|
|
938 |
else:
|
|
|
939 |
iprot.skip(ftype)
|
|
|
940 |
elif fid == 7:
|
|
|
941 |
if ftype == TType.I64:
|
|
|
942 |
self.codLimit = iprot.readI64();
|
|
|
943 |
else:
|
|
|
944 |
iprot.skip(ftype)
|
|
|
945 |
elif fid == 8:
|
|
|
946 |
if ftype == TType.I64:
|
|
|
947 |
self.prepaidLimit = iprot.readI64();
|
|
|
948 |
else:
|
|
|
949 |
iprot.skip(ftype)
|
|
|
950 |
elif fid == 9:
|
|
|
951 |
if ftype == TType.I64:
|
|
|
952 |
self.warehouseId = iprot.readI64();
|
|
|
953 |
else:
|
|
|
954 |
iprot.skip(ftype)
|
|
|
955 |
elif fid == 10:
|
|
|
956 |
if ftype == TType.I64:
|
|
|
957 |
self.deliveryTime = iprot.readI64();
|
|
|
958 |
else:
|
|
|
959 |
iprot.skip(ftype)
|
|
|
960 |
elif fid == 11:
|
|
|
961 |
if ftype == TType.I64:
|
|
|
962 |
self.delivery_delay = iprot.readI64();
|
|
|
963 |
else:
|
|
|
964 |
iprot.skip(ftype)
|
| 19421 |
manish.sha |
965 |
elif fid == 12:
|
|
|
966 |
if ftype == TType.STRING:
|
|
|
967 |
self.zoneCode = iprot.readString();
|
|
|
968 |
else:
|
|
|
969 |
iprot.skip(ftype)
|
| 7787 |
manish.sha |
970 |
else:
|
|
|
971 |
iprot.skip(ftype)
|
|
|
972 |
iprot.readFieldEnd()
|
|
|
973 |
iprot.readStructEnd()
|
|
|
974 |
|
|
|
975 |
def write(self, oprot):
|
|
|
976 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
977 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
978 |
return
|
|
|
979 |
oprot.writeStructBegin('LogisticsLocationInfo')
|
|
|
980 |
if self.providerId is not None:
|
|
|
981 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
982 |
oprot.writeI64(self.providerId)
|
|
|
983 |
oprot.writeFieldEnd()
|
|
|
984 |
if self.pinCode is not None:
|
|
|
985 |
oprot.writeFieldBegin('pinCode', TType.STRING, 2)
|
|
|
986 |
oprot.writeString(self.pinCode)
|
|
|
987 |
oprot.writeFieldEnd()
|
|
|
988 |
if self.destinationCode is not None:
|
|
|
989 |
oprot.writeFieldBegin('destinationCode', TType.STRING, 3)
|
|
|
990 |
oprot.writeString(self.destinationCode)
|
|
|
991 |
oprot.writeFieldEnd()
|
|
|
992 |
if self.expAvailable is not None:
|
|
|
993 |
oprot.writeFieldBegin('expAvailable', TType.BOOL, 4)
|
|
|
994 |
oprot.writeBool(self.expAvailable)
|
|
|
995 |
oprot.writeFieldEnd()
|
|
|
996 |
if self.codAvailable is not None:
|
|
|
997 |
oprot.writeFieldBegin('codAvailable', TType.BOOL, 5)
|
|
|
998 |
oprot.writeBool(self.codAvailable)
|
|
|
999 |
oprot.writeFieldEnd()
|
|
|
1000 |
if self.otgAvailable is not None:
|
|
|
1001 |
oprot.writeFieldBegin('otgAvailable', TType.BOOL, 6)
|
|
|
1002 |
oprot.writeBool(self.otgAvailable)
|
|
|
1003 |
oprot.writeFieldEnd()
|
|
|
1004 |
if self.codLimit is not None:
|
|
|
1005 |
oprot.writeFieldBegin('codLimit', TType.I64, 7)
|
|
|
1006 |
oprot.writeI64(self.codLimit)
|
|
|
1007 |
oprot.writeFieldEnd()
|
|
|
1008 |
if self.prepaidLimit is not None:
|
|
|
1009 |
oprot.writeFieldBegin('prepaidLimit', TType.I64, 8)
|
|
|
1010 |
oprot.writeI64(self.prepaidLimit)
|
|
|
1011 |
oprot.writeFieldEnd()
|
|
|
1012 |
if self.warehouseId is not None:
|
|
|
1013 |
oprot.writeFieldBegin('warehouseId', TType.I64, 9)
|
|
|
1014 |
oprot.writeI64(self.warehouseId)
|
|
|
1015 |
oprot.writeFieldEnd()
|
|
|
1016 |
if self.deliveryTime is not None:
|
|
|
1017 |
oprot.writeFieldBegin('deliveryTime', TType.I64, 10)
|
|
|
1018 |
oprot.writeI64(self.deliveryTime)
|
|
|
1019 |
oprot.writeFieldEnd()
|
|
|
1020 |
if self.delivery_delay is not None:
|
|
|
1021 |
oprot.writeFieldBegin('delivery_delay', TType.I64, 11)
|
|
|
1022 |
oprot.writeI64(self.delivery_delay)
|
|
|
1023 |
oprot.writeFieldEnd()
|
| 19421 |
manish.sha |
1024 |
if self.zoneCode is not None:
|
|
|
1025 |
oprot.writeFieldBegin('zoneCode', TType.STRING, 12)
|
|
|
1026 |
oprot.writeString(self.zoneCode)
|
|
|
1027 |
oprot.writeFieldEnd()
|
| 7787 |
manish.sha |
1028 |
oprot.writeFieldStop()
|
|
|
1029 |
oprot.writeStructEnd()
|
|
|
1030 |
|
|
|
1031 |
def validate(self):
|
|
|
1032 |
return
|
|
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
def __repr__(self):
|
|
|
1036 |
L = ['%s=%r' % (key, value)
|
|
|
1037 |
for key, value in self.__dict__.iteritems()]
|
|
|
1038 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1039 |
|
|
|
1040 |
def __eq__(self, other):
|
|
|
1041 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1042 |
|
|
|
1043 |
def __ne__(self, other):
|
|
|
1044 |
return not (self == other)
|
|
|
1045 |
|
| 19413 |
amit.gupta |
1046 |
class ProviderInfo:
|
|
|
1047 |
"""
|
|
|
1048 |
Attributes:
|
|
|
1049 |
- providerId
|
|
|
1050 |
- isCodAvailable
|
|
|
1051 |
- isOtgAvailable
|
|
|
1052 |
- delayDays
|
|
|
1053 |
"""
|
|
|
1054 |
|
|
|
1055 |
thrift_spec = (
|
|
|
1056 |
None, # 0
|
|
|
1057 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
1058 |
(2, TType.BOOL, 'isCodAvailable', None, None, ), # 2
|
|
|
1059 |
(3, TType.BOOL, 'isOtgAvailable', None, None, ), # 3
|
|
|
1060 |
(4, TType.I64, 'delayDays', None, None, ), # 4
|
|
|
1061 |
)
|
|
|
1062 |
|
|
|
1063 |
def __init__(self, providerId=None, isCodAvailable=None, isOtgAvailable=None, delayDays=None,):
|
|
|
1064 |
self.providerId = providerId
|
|
|
1065 |
self.isCodAvailable = isCodAvailable
|
|
|
1066 |
self.isOtgAvailable = isOtgAvailable
|
|
|
1067 |
self.delayDays = delayDays
|
|
|
1068 |
|
|
|
1069 |
def read(self, iprot):
|
|
|
1070 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1071 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1072 |
return
|
|
|
1073 |
iprot.readStructBegin()
|
|
|
1074 |
while True:
|
|
|
1075 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1076 |
if ftype == TType.STOP:
|
|
|
1077 |
break
|
|
|
1078 |
if fid == 1:
|
|
|
1079 |
if ftype == TType.I64:
|
|
|
1080 |
self.providerId = iprot.readI64();
|
|
|
1081 |
else:
|
|
|
1082 |
iprot.skip(ftype)
|
|
|
1083 |
elif fid == 2:
|
|
|
1084 |
if ftype == TType.BOOL:
|
|
|
1085 |
self.isCodAvailable = iprot.readBool();
|
|
|
1086 |
else:
|
|
|
1087 |
iprot.skip(ftype)
|
|
|
1088 |
elif fid == 3:
|
|
|
1089 |
if ftype == TType.BOOL:
|
|
|
1090 |
self.isOtgAvailable = iprot.readBool();
|
|
|
1091 |
else:
|
|
|
1092 |
iprot.skip(ftype)
|
|
|
1093 |
elif fid == 4:
|
|
|
1094 |
if ftype == TType.I64:
|
|
|
1095 |
self.delayDays = iprot.readI64();
|
|
|
1096 |
else:
|
|
|
1097 |
iprot.skip(ftype)
|
|
|
1098 |
else:
|
|
|
1099 |
iprot.skip(ftype)
|
|
|
1100 |
iprot.readFieldEnd()
|
|
|
1101 |
iprot.readStructEnd()
|
|
|
1102 |
|
|
|
1103 |
def write(self, oprot):
|
|
|
1104 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1105 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1106 |
return
|
|
|
1107 |
oprot.writeStructBegin('ProviderInfo')
|
|
|
1108 |
if self.providerId is not None:
|
|
|
1109 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1110 |
oprot.writeI64(self.providerId)
|
|
|
1111 |
oprot.writeFieldEnd()
|
|
|
1112 |
if self.isCodAvailable is not None:
|
|
|
1113 |
oprot.writeFieldBegin('isCodAvailable', TType.BOOL, 2)
|
|
|
1114 |
oprot.writeBool(self.isCodAvailable)
|
|
|
1115 |
oprot.writeFieldEnd()
|
|
|
1116 |
if self.isOtgAvailable is not None:
|
|
|
1117 |
oprot.writeFieldBegin('isOtgAvailable', TType.BOOL, 3)
|
|
|
1118 |
oprot.writeBool(self.isOtgAvailable)
|
|
|
1119 |
oprot.writeFieldEnd()
|
|
|
1120 |
if self.delayDays is not None:
|
|
|
1121 |
oprot.writeFieldBegin('delayDays', TType.I64, 4)
|
|
|
1122 |
oprot.writeI64(self.delayDays)
|
|
|
1123 |
oprot.writeFieldEnd()
|
|
|
1124 |
oprot.writeFieldStop()
|
|
|
1125 |
oprot.writeStructEnd()
|
|
|
1126 |
|
|
|
1127 |
def validate(self):
|
|
|
1128 |
return
|
|
|
1129 |
|
|
|
1130 |
|
|
|
1131 |
def __repr__(self):
|
|
|
1132 |
L = ['%s=%r' % (key, value)
|
|
|
1133 |
for key, value in self.__dict__.iteritems()]
|
|
|
1134 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1135 |
|
|
|
1136 |
def __eq__(self, other):
|
|
|
1137 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1138 |
|
|
|
1139 |
def __ne__(self, other):
|
|
|
1140 |
return not (self == other)
|
|
|
1141 |
|
|
|
1142 |
class LocationInfo:
|
|
|
1143 |
"""
|
|
|
1144 |
Attributes:
|
|
|
1145 |
- locationId
|
|
|
1146 |
- sameState
|
|
|
1147 |
- isCod
|
|
|
1148 |
- isOtg
|
|
|
1149 |
- minDelay
|
|
|
1150 |
- maxDelay
|
|
|
1151 |
"""
|
|
|
1152 |
|
|
|
1153 |
thrift_spec = (
|
|
|
1154 |
None, # 0
|
|
|
1155 |
(1, TType.I64, 'locationId', None, None, ), # 1
|
|
|
1156 |
(2, TType.BOOL, 'sameState', None, None, ), # 2
|
|
|
1157 |
(3, TType.BOOL, 'isCod', None, None, ), # 3
|
|
|
1158 |
(4, TType.BOOL, 'isOtg', None, None, ), # 4
|
|
|
1159 |
(5, TType.I64, 'minDelay', None, None, ), # 5
|
|
|
1160 |
(6, TType.I64, 'maxDelay', None, None, ), # 6
|
|
|
1161 |
)
|
|
|
1162 |
|
|
|
1163 |
def __init__(self, locationId=None, sameState=None, isCod=None, isOtg=None, minDelay=None, maxDelay=None,):
|
|
|
1164 |
self.locationId = locationId
|
|
|
1165 |
self.sameState = sameState
|
|
|
1166 |
self.isCod = isCod
|
|
|
1167 |
self.isOtg = isOtg
|
|
|
1168 |
self.minDelay = minDelay
|
|
|
1169 |
self.maxDelay = maxDelay
|
|
|
1170 |
|
|
|
1171 |
def read(self, iprot):
|
|
|
1172 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1173 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1174 |
return
|
|
|
1175 |
iprot.readStructBegin()
|
|
|
1176 |
while True:
|
|
|
1177 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1178 |
if ftype == TType.STOP:
|
|
|
1179 |
break
|
|
|
1180 |
if fid == 1:
|
|
|
1181 |
if ftype == TType.I64:
|
|
|
1182 |
self.locationId = iprot.readI64();
|
|
|
1183 |
else:
|
|
|
1184 |
iprot.skip(ftype)
|
|
|
1185 |
elif fid == 2:
|
|
|
1186 |
if ftype == TType.BOOL:
|
|
|
1187 |
self.sameState = iprot.readBool();
|
|
|
1188 |
else:
|
|
|
1189 |
iprot.skip(ftype)
|
|
|
1190 |
elif fid == 3:
|
|
|
1191 |
if ftype == TType.BOOL:
|
|
|
1192 |
self.isCod = iprot.readBool();
|
|
|
1193 |
else:
|
|
|
1194 |
iprot.skip(ftype)
|
|
|
1195 |
elif fid == 4:
|
|
|
1196 |
if ftype == TType.BOOL:
|
|
|
1197 |
self.isOtg = iprot.readBool();
|
|
|
1198 |
else:
|
|
|
1199 |
iprot.skip(ftype)
|
|
|
1200 |
elif fid == 5:
|
|
|
1201 |
if ftype == TType.I64:
|
|
|
1202 |
self.minDelay = iprot.readI64();
|
|
|
1203 |
else:
|
|
|
1204 |
iprot.skip(ftype)
|
|
|
1205 |
elif fid == 6:
|
|
|
1206 |
if ftype == TType.I64:
|
|
|
1207 |
self.maxDelay = iprot.readI64();
|
|
|
1208 |
else:
|
|
|
1209 |
iprot.skip(ftype)
|
|
|
1210 |
else:
|
|
|
1211 |
iprot.skip(ftype)
|
|
|
1212 |
iprot.readFieldEnd()
|
|
|
1213 |
iprot.readStructEnd()
|
|
|
1214 |
|
|
|
1215 |
def write(self, oprot):
|
|
|
1216 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1217 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1218 |
return
|
|
|
1219 |
oprot.writeStructBegin('LocationInfo')
|
|
|
1220 |
if self.locationId is not None:
|
|
|
1221 |
oprot.writeFieldBegin('locationId', TType.I64, 1)
|
|
|
1222 |
oprot.writeI64(self.locationId)
|
|
|
1223 |
oprot.writeFieldEnd()
|
|
|
1224 |
if self.sameState is not None:
|
|
|
1225 |
oprot.writeFieldBegin('sameState', TType.BOOL, 2)
|
|
|
1226 |
oprot.writeBool(self.sameState)
|
|
|
1227 |
oprot.writeFieldEnd()
|
|
|
1228 |
if self.isCod is not None:
|
|
|
1229 |
oprot.writeFieldBegin('isCod', TType.BOOL, 3)
|
|
|
1230 |
oprot.writeBool(self.isCod)
|
|
|
1231 |
oprot.writeFieldEnd()
|
|
|
1232 |
if self.isOtg is not None:
|
|
|
1233 |
oprot.writeFieldBegin('isOtg', TType.BOOL, 4)
|
|
|
1234 |
oprot.writeBool(self.isOtg)
|
|
|
1235 |
oprot.writeFieldEnd()
|
|
|
1236 |
if self.minDelay is not None:
|
|
|
1237 |
oprot.writeFieldBegin('minDelay', TType.I64, 5)
|
|
|
1238 |
oprot.writeI64(self.minDelay)
|
|
|
1239 |
oprot.writeFieldEnd()
|
|
|
1240 |
if self.maxDelay is not None:
|
|
|
1241 |
oprot.writeFieldBegin('maxDelay', TType.I64, 6)
|
|
|
1242 |
oprot.writeI64(self.maxDelay)
|
|
|
1243 |
oprot.writeFieldEnd()
|
|
|
1244 |
oprot.writeFieldStop()
|
|
|
1245 |
oprot.writeStructEnd()
|
|
|
1246 |
|
|
|
1247 |
def validate(self):
|
|
|
1248 |
return
|
|
|
1249 |
|
|
|
1250 |
|
|
|
1251 |
def __repr__(self):
|
|
|
1252 |
L = ['%s=%r' % (key, value)
|
|
|
1253 |
for key, value in self.__dict__.iteritems()]
|
|
|
1254 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1255 |
|
|
|
1256 |
def __eq__(self, other):
|
|
|
1257 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1258 |
|
|
|
1259 |
def __ne__(self, other):
|
|
|
1260 |
return not (self == other)
|
|
|
1261 |
|
| 19427 |
manish.sha |
1262 |
class DeliveryEstimateAndCosting:
|
|
|
1263 |
"""
|
|
|
1264 |
Attributes:
|
|
|
1265 |
- logistics_provider_id
|
|
|
1266 |
- pincode
|
|
|
1267 |
- deliveryTime
|
|
|
1268 |
- delivery_delay
|
|
|
1269 |
- codAllowed
|
|
|
1270 |
- otgAvailable
|
|
|
1271 |
- logisticsCost
|
|
|
1272 |
- codCollectionCharges
|
|
|
1273 |
- shippingTime
|
|
|
1274 |
"""
|
|
|
1275 |
|
|
|
1276 |
thrift_spec = (
|
|
|
1277 |
None, # 0
|
|
|
1278 |
(1, TType.I64, 'logistics_provider_id', None, None, ), # 1
|
|
|
1279 |
(2, TType.STRING, 'pincode', None, None, ), # 2
|
|
|
1280 |
(3, TType.I64, 'deliveryTime', None, None, ), # 3
|
|
|
1281 |
(4, TType.I64, 'delivery_delay', None, None, ), # 4
|
|
|
1282 |
(5, TType.BOOL, 'codAllowed', None, None, ), # 5
|
|
|
1283 |
(6, TType.BOOL, 'otgAvailable', None, None, ), # 6
|
|
|
1284 |
(7, TType.DOUBLE, 'logisticsCost', None, None, ), # 7
|
|
|
1285 |
(8, TType.DOUBLE, 'codCollectionCharges', None, None, ), # 8
|
|
|
1286 |
(9, TType.I64, 'shippingTime', None, None, ), # 9
|
|
|
1287 |
)
|
|
|
1288 |
|
|
|
1289 |
def __init__(self, logistics_provider_id=None, pincode=None, deliveryTime=None, delivery_delay=None, codAllowed=None, otgAvailable=None, logisticsCost=None, codCollectionCharges=None, shippingTime=None,):
|
|
|
1290 |
self.logistics_provider_id = logistics_provider_id
|
|
|
1291 |
self.pincode = pincode
|
|
|
1292 |
self.deliveryTime = deliveryTime
|
|
|
1293 |
self.delivery_delay = delivery_delay
|
|
|
1294 |
self.codAllowed = codAllowed
|
|
|
1295 |
self.otgAvailable = otgAvailable
|
|
|
1296 |
self.logisticsCost = logisticsCost
|
|
|
1297 |
self.codCollectionCharges = codCollectionCharges
|
|
|
1298 |
self.shippingTime = shippingTime
|
|
|
1299 |
|
|
|
1300 |
def read(self, iprot):
|
|
|
1301 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1302 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1303 |
return
|
|
|
1304 |
iprot.readStructBegin()
|
|
|
1305 |
while True:
|
|
|
1306 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1307 |
if ftype == TType.STOP:
|
|
|
1308 |
break
|
|
|
1309 |
if fid == 1:
|
|
|
1310 |
if ftype == TType.I64:
|
|
|
1311 |
self.logistics_provider_id = iprot.readI64();
|
|
|
1312 |
else:
|
|
|
1313 |
iprot.skip(ftype)
|
|
|
1314 |
elif fid == 2:
|
|
|
1315 |
if ftype == TType.STRING:
|
|
|
1316 |
self.pincode = iprot.readString();
|
|
|
1317 |
else:
|
|
|
1318 |
iprot.skip(ftype)
|
|
|
1319 |
elif fid == 3:
|
|
|
1320 |
if ftype == TType.I64:
|
|
|
1321 |
self.deliveryTime = iprot.readI64();
|
|
|
1322 |
else:
|
|
|
1323 |
iprot.skip(ftype)
|
|
|
1324 |
elif fid == 4:
|
|
|
1325 |
if ftype == TType.I64:
|
|
|
1326 |
self.delivery_delay = iprot.readI64();
|
|
|
1327 |
else:
|
|
|
1328 |
iprot.skip(ftype)
|
|
|
1329 |
elif fid == 5:
|
|
|
1330 |
if ftype == TType.BOOL:
|
|
|
1331 |
self.codAllowed = iprot.readBool();
|
|
|
1332 |
else:
|
|
|
1333 |
iprot.skip(ftype)
|
|
|
1334 |
elif fid == 6:
|
|
|
1335 |
if ftype == TType.BOOL:
|
|
|
1336 |
self.otgAvailable = iprot.readBool();
|
|
|
1337 |
else:
|
|
|
1338 |
iprot.skip(ftype)
|
|
|
1339 |
elif fid == 7:
|
|
|
1340 |
if ftype == TType.DOUBLE:
|
|
|
1341 |
self.logisticsCost = iprot.readDouble();
|
|
|
1342 |
else:
|
|
|
1343 |
iprot.skip(ftype)
|
|
|
1344 |
elif fid == 8:
|
|
|
1345 |
if ftype == TType.DOUBLE:
|
|
|
1346 |
self.codCollectionCharges = iprot.readDouble();
|
|
|
1347 |
else:
|
|
|
1348 |
iprot.skip(ftype)
|
|
|
1349 |
elif fid == 9:
|
|
|
1350 |
if ftype == TType.I64:
|
|
|
1351 |
self.shippingTime = iprot.readI64();
|
|
|
1352 |
else:
|
|
|
1353 |
iprot.skip(ftype)
|
|
|
1354 |
else:
|
|
|
1355 |
iprot.skip(ftype)
|
|
|
1356 |
iprot.readFieldEnd()
|
|
|
1357 |
iprot.readStructEnd()
|
|
|
1358 |
|
|
|
1359 |
def write(self, oprot):
|
|
|
1360 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1361 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1362 |
return
|
|
|
1363 |
oprot.writeStructBegin('DeliveryEstimateAndCosting')
|
|
|
1364 |
if self.logistics_provider_id is not None:
|
|
|
1365 |
oprot.writeFieldBegin('logistics_provider_id', TType.I64, 1)
|
|
|
1366 |
oprot.writeI64(self.logistics_provider_id)
|
|
|
1367 |
oprot.writeFieldEnd()
|
|
|
1368 |
if self.pincode is not None:
|
|
|
1369 |
oprot.writeFieldBegin('pincode', TType.STRING, 2)
|
|
|
1370 |
oprot.writeString(self.pincode)
|
|
|
1371 |
oprot.writeFieldEnd()
|
|
|
1372 |
if self.deliveryTime is not None:
|
|
|
1373 |
oprot.writeFieldBegin('deliveryTime', TType.I64, 3)
|
|
|
1374 |
oprot.writeI64(self.deliveryTime)
|
|
|
1375 |
oprot.writeFieldEnd()
|
|
|
1376 |
if self.delivery_delay is not None:
|
|
|
1377 |
oprot.writeFieldBegin('delivery_delay', TType.I64, 4)
|
|
|
1378 |
oprot.writeI64(self.delivery_delay)
|
|
|
1379 |
oprot.writeFieldEnd()
|
|
|
1380 |
if self.codAllowed is not None:
|
|
|
1381 |
oprot.writeFieldBegin('codAllowed', TType.BOOL, 5)
|
|
|
1382 |
oprot.writeBool(self.codAllowed)
|
|
|
1383 |
oprot.writeFieldEnd()
|
|
|
1384 |
if self.otgAvailable is not None:
|
|
|
1385 |
oprot.writeFieldBegin('otgAvailable', TType.BOOL, 6)
|
|
|
1386 |
oprot.writeBool(self.otgAvailable)
|
|
|
1387 |
oprot.writeFieldEnd()
|
|
|
1388 |
if self.logisticsCost is not None:
|
|
|
1389 |
oprot.writeFieldBegin('logisticsCost', TType.DOUBLE, 7)
|
|
|
1390 |
oprot.writeDouble(self.logisticsCost)
|
|
|
1391 |
oprot.writeFieldEnd()
|
|
|
1392 |
if self.codCollectionCharges is not None:
|
|
|
1393 |
oprot.writeFieldBegin('codCollectionCharges', TType.DOUBLE, 8)
|
|
|
1394 |
oprot.writeDouble(self.codCollectionCharges)
|
|
|
1395 |
oprot.writeFieldEnd()
|
|
|
1396 |
if self.shippingTime is not None:
|
|
|
1397 |
oprot.writeFieldBegin('shippingTime', TType.I64, 9)
|
|
|
1398 |
oprot.writeI64(self.shippingTime)
|
|
|
1399 |
oprot.writeFieldEnd()
|
|
|
1400 |
oprot.writeFieldStop()
|
|
|
1401 |
oprot.writeStructEnd()
|
|
|
1402 |
|
|
|
1403 |
def validate(self):
|
|
|
1404 |
return
|
|
|
1405 |
|
|
|
1406 |
|
|
|
1407 |
def __repr__(self):
|
|
|
1408 |
L = ['%s=%r' % (key, value)
|
|
|
1409 |
for key, value in self.__dict__.iteritems()]
|
|
|
1410 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1411 |
|
|
|
1412 |
def __eq__(self, other):
|
|
|
1413 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1414 |
|
|
|
1415 |
def __ne__(self, other):
|
|
|
1416 |
return not (self == other)
|
|
|
1417 |
|
| 20744 |
kshitij.so |
1418 |
class BluedartAttributes:
|
|
|
1419 |
"""
|
|
|
1420 |
Attributes:
|
|
|
1421 |
- logisticsTransactionId
|
|
|
1422 |
- name
|
|
|
1423 |
- value
|
|
|
1424 |
"""
|
|
|
1425 |
|
|
|
1426 |
thrift_spec = (
|
|
|
1427 |
None, # 0
|
|
|
1428 |
(1, TType.STRING, 'logisticsTransactionId', None, None, ), # 1
|
|
|
1429 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
1430 |
(3, TType.STRING, 'value', None, None, ), # 3
|
|
|
1431 |
)
|
|
|
1432 |
|
|
|
1433 |
def __init__(self, logisticsTransactionId=None, name=None, value=None,):
|
|
|
1434 |
self.logisticsTransactionId = logisticsTransactionId
|
|
|
1435 |
self.name = name
|
|
|
1436 |
self.value = value
|
|
|
1437 |
|
|
|
1438 |
def read(self, iprot):
|
|
|
1439 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1440 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1441 |
return
|
|
|
1442 |
iprot.readStructBegin()
|
|
|
1443 |
while True:
|
|
|
1444 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1445 |
if ftype == TType.STOP:
|
|
|
1446 |
break
|
|
|
1447 |
if fid == 1:
|
|
|
1448 |
if ftype == TType.STRING:
|
|
|
1449 |
self.logisticsTransactionId = iprot.readString();
|
|
|
1450 |
else:
|
|
|
1451 |
iprot.skip(ftype)
|
|
|
1452 |
elif fid == 2:
|
|
|
1453 |
if ftype == TType.STRING:
|
|
|
1454 |
self.name = iprot.readString();
|
|
|
1455 |
else:
|
|
|
1456 |
iprot.skip(ftype)
|
|
|
1457 |
elif fid == 3:
|
|
|
1458 |
if ftype == TType.STRING:
|
|
|
1459 |
self.value = iprot.readString();
|
|
|
1460 |
else:
|
|
|
1461 |
iprot.skip(ftype)
|
|
|
1462 |
else:
|
|
|
1463 |
iprot.skip(ftype)
|
|
|
1464 |
iprot.readFieldEnd()
|
|
|
1465 |
iprot.readStructEnd()
|
|
|
1466 |
|
|
|
1467 |
def write(self, oprot):
|
|
|
1468 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1469 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1470 |
return
|
|
|
1471 |
oprot.writeStructBegin('BluedartAttributes')
|
|
|
1472 |
if self.logisticsTransactionId is not None:
|
|
|
1473 |
oprot.writeFieldBegin('logisticsTransactionId', TType.STRING, 1)
|
|
|
1474 |
oprot.writeString(self.logisticsTransactionId)
|
|
|
1475 |
oprot.writeFieldEnd()
|
|
|
1476 |
if self.name is not None:
|
|
|
1477 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
1478 |
oprot.writeString(self.name)
|
|
|
1479 |
oprot.writeFieldEnd()
|
|
|
1480 |
if self.value is not None:
|
|
|
1481 |
oprot.writeFieldBegin('value', TType.STRING, 3)
|
|
|
1482 |
oprot.writeString(self.value)
|
|
|
1483 |
oprot.writeFieldEnd()
|
|
|
1484 |
oprot.writeFieldStop()
|
|
|
1485 |
oprot.writeStructEnd()
|
|
|
1486 |
|
|
|
1487 |
def validate(self):
|
|
|
1488 |
return
|
|
|
1489 |
|
|
|
1490 |
|
|
|
1491 |
def __repr__(self):
|
|
|
1492 |
L = ['%s=%r' % (key, value)
|
|
|
1493 |
for key, value in self.__dict__.iteritems()]
|
|
|
1494 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1495 |
|
|
|
1496 |
def __eq__(self, other):
|
|
|
1497 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1498 |
|
|
|
1499 |
def __ne__(self, other):
|
|
|
1500 |
return not (self == other)
|
|
|
1501 |
|
| 472 |
rajveer |
1502 |
class LogisticsServiceException(Exception):
|
|
|
1503 |
"""
|
|
|
1504 |
Attributes:
|
|
|
1505 |
- id
|
|
|
1506 |
- message
|
|
|
1507 |
"""
|
|
|
1508 |
|
|
|
1509 |
thrift_spec = (
|
|
|
1510 |
None, # 0
|
|
|
1511 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1512 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
1513 |
)
|
|
|
1514 |
|
|
|
1515 |
def __init__(self, id=None, message=None,):
|
|
|
1516 |
self.id = id
|
|
|
1517 |
self.message = message
|
|
|
1518 |
|
|
|
1519 |
def read(self, iprot):
|
|
|
1520 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1521 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1522 |
return
|
|
|
1523 |
iprot.readStructBegin()
|
|
|
1524 |
while True:
|
|
|
1525 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1526 |
if ftype == TType.STOP:
|
|
|
1527 |
break
|
|
|
1528 |
if fid == 1:
|
|
|
1529 |
if ftype == TType.I64:
|
|
|
1530 |
self.id = iprot.readI64();
|
|
|
1531 |
else:
|
|
|
1532 |
iprot.skip(ftype)
|
|
|
1533 |
elif fid == 2:
|
|
|
1534 |
if ftype == TType.STRING:
|
|
|
1535 |
self.message = iprot.readString();
|
|
|
1536 |
else:
|
|
|
1537 |
iprot.skip(ftype)
|
|
|
1538 |
else:
|
|
|
1539 |
iprot.skip(ftype)
|
|
|
1540 |
iprot.readFieldEnd()
|
|
|
1541 |
iprot.readStructEnd()
|
|
|
1542 |
|
|
|
1543 |
def write(self, oprot):
|
|
|
1544 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1545 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1546 |
return
|
|
|
1547 |
oprot.writeStructBegin('LogisticsServiceException')
|
| 3431 |
rajveer |
1548 |
if self.id is not None:
|
| 472 |
rajveer |
1549 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1550 |
oprot.writeI64(self.id)
|
|
|
1551 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1552 |
if self.message is not None:
|
| 472 |
rajveer |
1553 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
1554 |
oprot.writeString(self.message)
|
|
|
1555 |
oprot.writeFieldEnd()
|
|
|
1556 |
oprot.writeFieldStop()
|
|
|
1557 |
oprot.writeStructEnd()
|
|
|
1558 |
|
| 3431 |
rajveer |
1559 |
def validate(self):
|
|
|
1560 |
return
|
|
|
1561 |
|
|
|
1562 |
|
| 472 |
rajveer |
1563 |
def __str__(self):
|
|
|
1564 |
return repr(self)
|
|
|
1565 |
|
|
|
1566 |
def __repr__(self):
|
|
|
1567 |
L = ['%s=%r' % (key, value)
|
|
|
1568 |
for key, value in self.__dict__.iteritems()]
|
|
|
1569 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1570 |
|
|
|
1571 |
def __eq__(self, other):
|
|
|
1572 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1573 |
|
|
|
1574 |
def __ne__(self, other):
|
|
|
1575 |
return not (self == other)
|