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