| 412 |
ashish |
1 |
#
|
|
|
2 |
# Autogenerated by Thrift
|
|
|
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
|
|
8 |
from ttypes import *
|
|
|
9 |
from thrift.Thrift import TProcessor
|
|
|
10 |
from thrift.transport import TTransport
|
|
|
11 |
from thrift.protocol import TBinaryProtocol
|
|
|
12 |
try:
|
|
|
13 |
from thrift.protocol import fastbinary
|
|
|
14 |
except:
|
|
|
15 |
fastbinary = None
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
class Iface:
|
| 669 |
chandransh |
19 |
def getProvider(self, providerId):
|
|
|
20 |
"""
|
|
|
21 |
Returns a provider for a given provider ID. Throws an exception if none found.
|
|
|
22 |
|
|
|
23 |
Parameters:
|
|
|
24 |
- providerId
|
|
|
25 |
"""
|
|
|
26 |
pass
|
|
|
27 |
|
| 675 |
chandransh |
28 |
def getAllProviders(self, ):
|
|
|
29 |
"""
|
|
|
30 |
Returns a list containing all the providers.
|
|
|
31 |
"""
|
|
|
32 |
pass
|
|
|
33 |
|
| 647 |
chandransh |
34 |
def getLogisticsEstimation(self, itemId, destination_pin):
|
| 483 |
rajveer |
35 |
"""
|
| 647 |
chandransh |
36 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
37 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
38 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
|
|
39 |
|
| 483 |
rajveer |
40 |
Parameters:
|
| 647 |
chandransh |
41 |
- itemId
|
|
|
42 |
- destination_pin
|
| 483 |
rajveer |
43 |
"""
|
|
|
44 |
pass
|
|
|
45 |
|
| 647 |
chandransh |
46 |
def getLogisticsInfo(self, destination_pincode, item_id):
|
| 472 |
rajveer |
47 |
"""
|
| 647 |
chandransh |
48 |
Same as above excpet that an airway bill number is also allocated and returned.
|
|
|
49 |
|
| 472 |
rajveer |
50 |
Parameters:
|
| 647 |
chandransh |
51 |
- destination_pincode
|
|
|
52 |
- item_id
|
| 472 |
rajveer |
53 |
"""
|
|
|
54 |
pass
|
|
|
55 |
|
| 647 |
chandransh |
56 |
def getEmptyAWB(self, providerId):
|
| 412 |
ashish |
57 |
"""
|
| 647 |
chandransh |
58 |
Returns an unused AWB number for the given provider.
|
|
|
59 |
|
| 412 |
ashish |
60 |
Parameters:
|
| 647 |
chandransh |
61 |
- providerId
|
| 412 |
ashish |
62 |
"""
|
|
|
63 |
pass
|
|
|
64 |
|
| 647 |
chandransh |
65 |
def getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
66 |
"""
|
| 647 |
chandransh |
67 |
Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
|
|
|
68 |
|
| 412 |
ashish |
69 |
Parameters:
|
|
|
70 |
- awb
|
| 647 |
chandransh |
71 |
- providerId
|
| 412 |
ashish |
72 |
"""
|
|
|
73 |
pass
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
class Client(Iface):
|
|
|
77 |
def __init__(self, iprot, oprot=None):
|
|
|
78 |
self._iprot = self._oprot = iprot
|
|
|
79 |
if oprot != None:
|
|
|
80 |
self._oprot = oprot
|
|
|
81 |
self._seqid = 0
|
|
|
82 |
|
| 669 |
chandransh |
83 |
def getProvider(self, providerId):
|
|
|
84 |
"""
|
|
|
85 |
Returns a provider for a given provider ID. Throws an exception if none found.
|
|
|
86 |
|
|
|
87 |
Parameters:
|
|
|
88 |
- providerId
|
|
|
89 |
"""
|
|
|
90 |
self.send_getProvider(providerId)
|
|
|
91 |
return self.recv_getProvider()
|
|
|
92 |
|
|
|
93 |
def send_getProvider(self, providerId):
|
|
|
94 |
self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
|
|
|
95 |
args = getProvider_args()
|
|
|
96 |
args.providerId = providerId
|
|
|
97 |
args.write(self._oprot)
|
|
|
98 |
self._oprot.writeMessageEnd()
|
|
|
99 |
self._oprot.trans.flush()
|
|
|
100 |
|
|
|
101 |
def recv_getProvider(self, ):
|
|
|
102 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
103 |
if mtype == TMessageType.EXCEPTION:
|
|
|
104 |
x = TApplicationException()
|
|
|
105 |
x.read(self._iprot)
|
|
|
106 |
self._iprot.readMessageEnd()
|
|
|
107 |
raise x
|
|
|
108 |
result = getProvider_result()
|
|
|
109 |
result.read(self._iprot)
|
|
|
110 |
self._iprot.readMessageEnd()
|
|
|
111 |
if result.success != None:
|
|
|
112 |
return result.success
|
|
|
113 |
if result.lse != None:
|
|
|
114 |
raise result.lse
|
|
|
115 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
|
|
|
116 |
|
| 675 |
chandransh |
117 |
def getAllProviders(self, ):
|
|
|
118 |
"""
|
|
|
119 |
Returns a list containing all the providers.
|
|
|
120 |
"""
|
|
|
121 |
self.send_getAllProviders()
|
|
|
122 |
return self.recv_getAllProviders()
|
|
|
123 |
|
|
|
124 |
def send_getAllProviders(self, ):
|
|
|
125 |
self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
|
|
|
126 |
args = getAllProviders_args()
|
|
|
127 |
args.write(self._oprot)
|
|
|
128 |
self._oprot.writeMessageEnd()
|
|
|
129 |
self._oprot.trans.flush()
|
|
|
130 |
|
|
|
131 |
def recv_getAllProviders(self, ):
|
|
|
132 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
133 |
if mtype == TMessageType.EXCEPTION:
|
|
|
134 |
x = TApplicationException()
|
|
|
135 |
x.read(self._iprot)
|
|
|
136 |
self._iprot.readMessageEnd()
|
|
|
137 |
raise x
|
|
|
138 |
result = getAllProviders_result()
|
|
|
139 |
result.read(self._iprot)
|
|
|
140 |
self._iprot.readMessageEnd()
|
|
|
141 |
if result.success != None:
|
|
|
142 |
return result.success
|
|
|
143 |
if result.lse != None:
|
|
|
144 |
raise result.lse
|
|
|
145 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
|
|
146 |
|
| 647 |
chandransh |
147 |
def getLogisticsEstimation(self, itemId, destination_pin):
|
| 483 |
rajveer |
148 |
"""
|
| 647 |
chandransh |
149 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
150 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
151 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
|
|
152 |
|
| 483 |
rajveer |
153 |
Parameters:
|
| 647 |
chandransh |
154 |
- itemId
|
|
|
155 |
- destination_pin
|
| 483 |
rajveer |
156 |
"""
|
| 647 |
chandransh |
157 |
self.send_getLogisticsEstimation(itemId, destination_pin)
|
|
|
158 |
return self.recv_getLogisticsEstimation()
|
| 483 |
rajveer |
159 |
|
| 647 |
chandransh |
160 |
def send_getLogisticsEstimation(self, itemId, destination_pin):
|
|
|
161 |
self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
|
|
|
162 |
args = getLogisticsEstimation_args()
|
|
|
163 |
args.itemId = itemId
|
|
|
164 |
args.destination_pin = destination_pin
|
| 483 |
rajveer |
165 |
args.write(self._oprot)
|
|
|
166 |
self._oprot.writeMessageEnd()
|
|
|
167 |
self._oprot.trans.flush()
|
|
|
168 |
|
| 647 |
chandransh |
169 |
def recv_getLogisticsEstimation(self, ):
|
| 483 |
rajveer |
170 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
171 |
if mtype == TMessageType.EXCEPTION:
|
|
|
172 |
x = TApplicationException()
|
|
|
173 |
x.read(self._iprot)
|
|
|
174 |
self._iprot.readMessageEnd()
|
|
|
175 |
raise x
|
| 647 |
chandransh |
176 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
177 |
result.read(self._iprot)
|
|
|
178 |
self._iprot.readMessageEnd()
|
|
|
179 |
if result.success != None:
|
|
|
180 |
return result.success
|
|
|
181 |
if result.se != None:
|
|
|
182 |
raise result.se
|
| 647 |
chandransh |
183 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 483 |
rajveer |
184 |
|
| 647 |
chandransh |
185 |
def getLogisticsInfo(self, destination_pincode, item_id):
|
| 472 |
rajveer |
186 |
"""
|
| 647 |
chandransh |
187 |
Same as above excpet that an airway bill number is also allocated and returned.
|
|
|
188 |
|
| 472 |
rajveer |
189 |
Parameters:
|
| 647 |
chandransh |
190 |
- destination_pincode
|
|
|
191 |
- item_id
|
| 472 |
rajveer |
192 |
"""
|
| 647 |
chandransh |
193 |
self.send_getLogisticsInfo(destination_pincode, item_id)
|
|
|
194 |
return self.recv_getLogisticsInfo()
|
| 472 |
rajveer |
195 |
|
| 647 |
chandransh |
196 |
def send_getLogisticsInfo(self, destination_pincode, item_id):
|
|
|
197 |
self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
|
|
|
198 |
args = getLogisticsInfo_args()
|
|
|
199 |
args.destination_pincode = destination_pincode
|
|
|
200 |
args.item_id = item_id
|
| 472 |
rajveer |
201 |
args.write(self._oprot)
|
|
|
202 |
self._oprot.writeMessageEnd()
|
|
|
203 |
self._oprot.trans.flush()
|
|
|
204 |
|
| 647 |
chandransh |
205 |
def recv_getLogisticsInfo(self, ):
|
| 472 |
rajveer |
206 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
207 |
if mtype == TMessageType.EXCEPTION:
|
|
|
208 |
x = TApplicationException()
|
|
|
209 |
x.read(self._iprot)
|
|
|
210 |
self._iprot.readMessageEnd()
|
|
|
211 |
raise x
|
| 647 |
chandransh |
212 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
213 |
result.read(self._iprot)
|
|
|
214 |
self._iprot.readMessageEnd()
|
|
|
215 |
if result.success != None:
|
|
|
216 |
return result.success
|
|
|
217 |
if result.se != None:
|
|
|
218 |
raise result.se
|
| 647 |
chandransh |
219 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
|
| 472 |
rajveer |
220 |
|
| 647 |
chandransh |
221 |
def getEmptyAWB(self, providerId):
|
| 412 |
ashish |
222 |
"""
|
| 647 |
chandransh |
223 |
Returns an unused AWB number for the given provider.
|
|
|
224 |
|
| 412 |
ashish |
225 |
Parameters:
|
| 647 |
chandransh |
226 |
- providerId
|
| 412 |
ashish |
227 |
"""
|
| 647 |
chandransh |
228 |
self.send_getEmptyAWB(providerId)
|
| 412 |
ashish |
229 |
return self.recv_getEmptyAWB()
|
|
|
230 |
|
| 647 |
chandransh |
231 |
def send_getEmptyAWB(self, providerId):
|
| 412 |
ashish |
232 |
self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
|
|
|
233 |
args = getEmptyAWB_args()
|
| 647 |
chandransh |
234 |
args.providerId = providerId
|
| 412 |
ashish |
235 |
args.write(self._oprot)
|
|
|
236 |
self._oprot.writeMessageEnd()
|
|
|
237 |
self._oprot.trans.flush()
|
|
|
238 |
|
|
|
239 |
def recv_getEmptyAWB(self, ):
|
|
|
240 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
241 |
if mtype == TMessageType.EXCEPTION:
|
|
|
242 |
x = TApplicationException()
|
|
|
243 |
x.read(self._iprot)
|
|
|
244 |
self._iprot.readMessageEnd()
|
|
|
245 |
raise x
|
|
|
246 |
result = getEmptyAWB_result()
|
|
|
247 |
result.read(self._iprot)
|
|
|
248 |
self._iprot.readMessageEnd()
|
|
|
249 |
if result.success != None:
|
|
|
250 |
return result.success
|
| 647 |
chandransh |
251 |
if result.se != None:
|
|
|
252 |
raise result.se
|
| 412 |
ashish |
253 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
|
|
|
254 |
|
| 647 |
chandransh |
255 |
def getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
256 |
"""
|
| 647 |
chandransh |
257 |
Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
|
|
|
258 |
|
| 412 |
ashish |
259 |
Parameters:
|
|
|
260 |
- awb
|
| 647 |
chandransh |
261 |
- providerId
|
| 412 |
ashish |
262 |
"""
|
| 647 |
chandransh |
263 |
self.send_getShipmentInfo(awb, providerId)
|
| 412 |
ashish |
264 |
return self.recv_getShipmentInfo()
|
|
|
265 |
|
| 647 |
chandransh |
266 |
def send_getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
267 |
self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
|
|
|
268 |
args = getShipmentInfo_args()
|
|
|
269 |
args.awb = awb
|
| 647 |
chandransh |
270 |
args.providerId = providerId
|
| 412 |
ashish |
271 |
args.write(self._oprot)
|
|
|
272 |
self._oprot.writeMessageEnd()
|
|
|
273 |
self._oprot.trans.flush()
|
|
|
274 |
|
|
|
275 |
def recv_getShipmentInfo(self, ):
|
|
|
276 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
277 |
if mtype == TMessageType.EXCEPTION:
|
|
|
278 |
x = TApplicationException()
|
|
|
279 |
x.read(self._iprot)
|
|
|
280 |
self._iprot.readMessageEnd()
|
|
|
281 |
raise x
|
|
|
282 |
result = getShipmentInfo_result()
|
|
|
283 |
result.read(self._iprot)
|
|
|
284 |
self._iprot.readMessageEnd()
|
|
|
285 |
if result.success != None:
|
|
|
286 |
return result.success
|
| 647 |
chandransh |
287 |
if result.se != None:
|
|
|
288 |
raise result.se
|
| 412 |
ashish |
289 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
|
|
|
290 |
|
|
|
291 |
|
|
|
292 |
class Processor(Iface, TProcessor):
|
|
|
293 |
def __init__(self, handler):
|
|
|
294 |
self._handler = handler
|
|
|
295 |
self._processMap = {}
|
| 669 |
chandransh |
296 |
self._processMap["getProvider"] = Processor.process_getProvider
|
| 675 |
chandransh |
297 |
self._processMap["getAllProviders"] = Processor.process_getAllProviders
|
| 647 |
chandransh |
298 |
self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
|
| 483 |
rajveer |
299 |
self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
|
| 412 |
ashish |
300 |
self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
|
|
|
301 |
self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
|
|
|
302 |
|
|
|
303 |
def process(self, iprot, oprot):
|
|
|
304 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
305 |
if name not in self._processMap:
|
|
|
306 |
iprot.skip(TType.STRUCT)
|
|
|
307 |
iprot.readMessageEnd()
|
|
|
308 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
309 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
310 |
x.write(oprot)
|
|
|
311 |
oprot.writeMessageEnd()
|
|
|
312 |
oprot.trans.flush()
|
|
|
313 |
return
|
|
|
314 |
else:
|
|
|
315 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
316 |
return True
|
|
|
317 |
|
| 669 |
chandransh |
318 |
def process_getProvider(self, seqid, iprot, oprot):
|
|
|
319 |
args = getProvider_args()
|
|
|
320 |
args.read(iprot)
|
|
|
321 |
iprot.readMessageEnd()
|
|
|
322 |
result = getProvider_result()
|
|
|
323 |
try:
|
|
|
324 |
result.success = self._handler.getProvider(args.providerId)
|
|
|
325 |
except LogisticsServiceException, lse:
|
|
|
326 |
result.lse = lse
|
|
|
327 |
oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
|
|
|
328 |
result.write(oprot)
|
|
|
329 |
oprot.writeMessageEnd()
|
|
|
330 |
oprot.trans.flush()
|
|
|
331 |
|
| 675 |
chandransh |
332 |
def process_getAllProviders(self, seqid, iprot, oprot):
|
|
|
333 |
args = getAllProviders_args()
|
|
|
334 |
args.read(iprot)
|
|
|
335 |
iprot.readMessageEnd()
|
|
|
336 |
result = getAllProviders_result()
|
|
|
337 |
try:
|
|
|
338 |
result.success = self._handler.getAllProviders()
|
|
|
339 |
except LogisticsServiceException, lse:
|
|
|
340 |
result.lse = lse
|
|
|
341 |
oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
|
|
|
342 |
result.write(oprot)
|
|
|
343 |
oprot.writeMessageEnd()
|
|
|
344 |
oprot.trans.flush()
|
|
|
345 |
|
| 647 |
chandransh |
346 |
def process_getLogisticsEstimation(self, seqid, iprot, oprot):
|
|
|
347 |
args = getLogisticsEstimation_args()
|
| 483 |
rajveer |
348 |
args.read(iprot)
|
|
|
349 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
350 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
351 |
try:
|
| 647 |
chandransh |
352 |
result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin)
|
| 483 |
rajveer |
353 |
except LogisticsServiceException, se:
|
|
|
354 |
result.se = se
|
| 647 |
chandransh |
355 |
oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
|
| 483 |
rajveer |
356 |
result.write(oprot)
|
|
|
357 |
oprot.writeMessageEnd()
|
|
|
358 |
oprot.trans.flush()
|
|
|
359 |
|
| 647 |
chandransh |
360 |
def process_getLogisticsInfo(self, seqid, iprot, oprot):
|
|
|
361 |
args = getLogisticsInfo_args()
|
| 472 |
rajveer |
362 |
args.read(iprot)
|
|
|
363 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
364 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
365 |
try:
|
| 647 |
chandransh |
366 |
result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id)
|
| 472 |
rajveer |
367 |
except LogisticsServiceException, se:
|
|
|
368 |
result.se = se
|
| 647 |
chandransh |
369 |
oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
|
| 472 |
rajveer |
370 |
result.write(oprot)
|
|
|
371 |
oprot.writeMessageEnd()
|
|
|
372 |
oprot.trans.flush()
|
|
|
373 |
|
| 412 |
ashish |
374 |
def process_getEmptyAWB(self, seqid, iprot, oprot):
|
|
|
375 |
args = getEmptyAWB_args()
|
|
|
376 |
args.read(iprot)
|
|
|
377 |
iprot.readMessageEnd()
|
|
|
378 |
result = getEmptyAWB_result()
|
| 647 |
chandransh |
379 |
try:
|
|
|
380 |
result.success = self._handler.getEmptyAWB(args.providerId)
|
|
|
381 |
except LogisticsServiceException, se:
|
|
|
382 |
result.se = se
|
| 412 |
ashish |
383 |
oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
|
|
|
384 |
result.write(oprot)
|
|
|
385 |
oprot.writeMessageEnd()
|
|
|
386 |
oprot.trans.flush()
|
|
|
387 |
|
|
|
388 |
def process_getShipmentInfo(self, seqid, iprot, oprot):
|
|
|
389 |
args = getShipmentInfo_args()
|
|
|
390 |
args.read(iprot)
|
|
|
391 |
iprot.readMessageEnd()
|
|
|
392 |
result = getShipmentInfo_result()
|
| 647 |
chandransh |
393 |
try:
|
|
|
394 |
result.success = self._handler.getShipmentInfo(args.awb, args.providerId)
|
|
|
395 |
except LogisticsServiceException, se:
|
|
|
396 |
result.se = se
|
| 412 |
ashish |
397 |
oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
|
|
|
398 |
result.write(oprot)
|
|
|
399 |
oprot.writeMessageEnd()
|
|
|
400 |
oprot.trans.flush()
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
404 |
|
| 669 |
chandransh |
405 |
class getProvider_args:
|
|
|
406 |
"""
|
|
|
407 |
Attributes:
|
|
|
408 |
- providerId
|
|
|
409 |
"""
|
|
|
410 |
|
|
|
411 |
thrift_spec = (
|
|
|
412 |
None, # 0
|
|
|
413 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
414 |
)
|
|
|
415 |
|
|
|
416 |
def __init__(self, providerId=None,):
|
|
|
417 |
self.providerId = providerId
|
|
|
418 |
|
|
|
419 |
def read(self, iprot):
|
|
|
420 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
421 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
422 |
return
|
|
|
423 |
iprot.readStructBegin()
|
|
|
424 |
while True:
|
|
|
425 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
426 |
if ftype == TType.STOP:
|
|
|
427 |
break
|
|
|
428 |
if fid == 1:
|
|
|
429 |
if ftype == TType.I64:
|
|
|
430 |
self.providerId = iprot.readI64();
|
|
|
431 |
else:
|
|
|
432 |
iprot.skip(ftype)
|
|
|
433 |
else:
|
|
|
434 |
iprot.skip(ftype)
|
|
|
435 |
iprot.readFieldEnd()
|
|
|
436 |
iprot.readStructEnd()
|
|
|
437 |
|
|
|
438 |
def write(self, oprot):
|
|
|
439 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
440 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
441 |
return
|
|
|
442 |
oprot.writeStructBegin('getProvider_args')
|
|
|
443 |
if self.providerId != None:
|
|
|
444 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
445 |
oprot.writeI64(self.providerId)
|
|
|
446 |
oprot.writeFieldEnd()
|
|
|
447 |
oprot.writeFieldStop()
|
|
|
448 |
oprot.writeStructEnd()
|
|
|
449 |
|
|
|
450 |
def __repr__(self):
|
|
|
451 |
L = ['%s=%r' % (key, value)
|
|
|
452 |
for key, value in self.__dict__.iteritems()]
|
|
|
453 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
454 |
|
|
|
455 |
def __eq__(self, other):
|
|
|
456 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
457 |
|
|
|
458 |
def __ne__(self, other):
|
|
|
459 |
return not (self == other)
|
|
|
460 |
|
|
|
461 |
class getProvider_result:
|
|
|
462 |
"""
|
|
|
463 |
Attributes:
|
|
|
464 |
- success
|
|
|
465 |
- lse
|
|
|
466 |
"""
|
|
|
467 |
|
|
|
468 |
thrift_spec = (
|
|
|
469 |
(0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
|
|
|
470 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
471 |
)
|
|
|
472 |
|
|
|
473 |
def __init__(self, success=None, lse=None,):
|
|
|
474 |
self.success = success
|
|
|
475 |
self.lse = lse
|
|
|
476 |
|
|
|
477 |
def read(self, iprot):
|
|
|
478 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
479 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
480 |
return
|
|
|
481 |
iprot.readStructBegin()
|
|
|
482 |
while True:
|
|
|
483 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
484 |
if ftype == TType.STOP:
|
|
|
485 |
break
|
|
|
486 |
if fid == 0:
|
|
|
487 |
if ftype == TType.STRUCT:
|
|
|
488 |
self.success = Provider()
|
|
|
489 |
self.success.read(iprot)
|
|
|
490 |
else:
|
|
|
491 |
iprot.skip(ftype)
|
|
|
492 |
elif fid == 1:
|
|
|
493 |
if ftype == TType.STRUCT:
|
|
|
494 |
self.lse = LogisticsServiceException()
|
|
|
495 |
self.lse.read(iprot)
|
|
|
496 |
else:
|
|
|
497 |
iprot.skip(ftype)
|
|
|
498 |
else:
|
|
|
499 |
iprot.skip(ftype)
|
|
|
500 |
iprot.readFieldEnd()
|
|
|
501 |
iprot.readStructEnd()
|
|
|
502 |
|
|
|
503 |
def write(self, oprot):
|
|
|
504 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
505 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
506 |
return
|
|
|
507 |
oprot.writeStructBegin('getProvider_result')
|
|
|
508 |
if self.success != None:
|
|
|
509 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
510 |
self.success.write(oprot)
|
|
|
511 |
oprot.writeFieldEnd()
|
|
|
512 |
if self.lse != None:
|
|
|
513 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
514 |
self.lse.write(oprot)
|
|
|
515 |
oprot.writeFieldEnd()
|
|
|
516 |
oprot.writeFieldStop()
|
|
|
517 |
oprot.writeStructEnd()
|
|
|
518 |
|
|
|
519 |
def __repr__(self):
|
|
|
520 |
L = ['%s=%r' % (key, value)
|
|
|
521 |
for key, value in self.__dict__.iteritems()]
|
|
|
522 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
523 |
|
|
|
524 |
def __eq__(self, other):
|
|
|
525 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
526 |
|
|
|
527 |
def __ne__(self, other):
|
|
|
528 |
return not (self == other)
|
|
|
529 |
|
| 675 |
chandransh |
530 |
class getAllProviders_args:
|
|
|
531 |
|
|
|
532 |
thrift_spec = (
|
|
|
533 |
)
|
|
|
534 |
|
|
|
535 |
def read(self, iprot):
|
|
|
536 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
537 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
538 |
return
|
|
|
539 |
iprot.readStructBegin()
|
|
|
540 |
while True:
|
|
|
541 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
542 |
if ftype == TType.STOP:
|
|
|
543 |
break
|
|
|
544 |
else:
|
|
|
545 |
iprot.skip(ftype)
|
|
|
546 |
iprot.readFieldEnd()
|
|
|
547 |
iprot.readStructEnd()
|
|
|
548 |
|
|
|
549 |
def write(self, oprot):
|
|
|
550 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
551 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
552 |
return
|
|
|
553 |
oprot.writeStructBegin('getAllProviders_args')
|
|
|
554 |
oprot.writeFieldStop()
|
|
|
555 |
oprot.writeStructEnd()
|
|
|
556 |
|
|
|
557 |
def __repr__(self):
|
|
|
558 |
L = ['%s=%r' % (key, value)
|
|
|
559 |
for key, value in self.__dict__.iteritems()]
|
|
|
560 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
561 |
|
|
|
562 |
def __eq__(self, other):
|
|
|
563 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
564 |
|
|
|
565 |
def __ne__(self, other):
|
|
|
566 |
return not (self == other)
|
|
|
567 |
|
|
|
568 |
class getAllProviders_result:
|
|
|
569 |
"""
|
|
|
570 |
Attributes:
|
|
|
571 |
- success
|
|
|
572 |
- lse
|
|
|
573 |
"""
|
|
|
574 |
|
|
|
575 |
thrift_spec = (
|
|
|
576 |
(0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
|
|
|
577 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
578 |
)
|
|
|
579 |
|
|
|
580 |
def __init__(self, success=None, lse=None,):
|
|
|
581 |
self.success = success
|
|
|
582 |
self.lse = lse
|
|
|
583 |
|
|
|
584 |
def read(self, iprot):
|
|
|
585 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
586 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
587 |
return
|
|
|
588 |
iprot.readStructBegin()
|
|
|
589 |
while True:
|
|
|
590 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
591 |
if ftype == TType.STOP:
|
|
|
592 |
break
|
|
|
593 |
if fid == 0:
|
|
|
594 |
if ftype == TType.LIST:
|
|
|
595 |
self.success = []
|
|
|
596 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
597 |
for _i4 in xrange(_size0):
|
|
|
598 |
_elem5 = Provider()
|
|
|
599 |
_elem5.read(iprot)
|
|
|
600 |
self.success.append(_elem5)
|
|
|
601 |
iprot.readListEnd()
|
|
|
602 |
else:
|
|
|
603 |
iprot.skip(ftype)
|
|
|
604 |
elif fid == 1:
|
|
|
605 |
if ftype == TType.STRUCT:
|
|
|
606 |
self.lse = LogisticsServiceException()
|
|
|
607 |
self.lse.read(iprot)
|
|
|
608 |
else:
|
|
|
609 |
iprot.skip(ftype)
|
|
|
610 |
else:
|
|
|
611 |
iprot.skip(ftype)
|
|
|
612 |
iprot.readFieldEnd()
|
|
|
613 |
iprot.readStructEnd()
|
|
|
614 |
|
|
|
615 |
def write(self, oprot):
|
|
|
616 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
617 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
618 |
return
|
|
|
619 |
oprot.writeStructBegin('getAllProviders_result')
|
|
|
620 |
if self.success != None:
|
|
|
621 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
622 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
623 |
for iter6 in self.success:
|
|
|
624 |
iter6.write(oprot)
|
|
|
625 |
oprot.writeListEnd()
|
|
|
626 |
oprot.writeFieldEnd()
|
|
|
627 |
if self.lse != None:
|
|
|
628 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
629 |
self.lse.write(oprot)
|
|
|
630 |
oprot.writeFieldEnd()
|
|
|
631 |
oprot.writeFieldStop()
|
|
|
632 |
oprot.writeStructEnd()
|
|
|
633 |
|
|
|
634 |
def __repr__(self):
|
|
|
635 |
L = ['%s=%r' % (key, value)
|
|
|
636 |
for key, value in self.__dict__.iteritems()]
|
|
|
637 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
638 |
|
|
|
639 |
def __eq__(self, other):
|
|
|
640 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
641 |
|
|
|
642 |
def __ne__(self, other):
|
|
|
643 |
return not (self == other)
|
|
|
644 |
|
| 647 |
chandransh |
645 |
class getLogisticsEstimation_args:
|
| 483 |
rajveer |
646 |
"""
|
|
|
647 |
Attributes:
|
| 647 |
chandransh |
648 |
- itemId
|
|
|
649 |
- destination_pin
|
| 483 |
rajveer |
650 |
"""
|
|
|
651 |
|
|
|
652 |
thrift_spec = (
|
|
|
653 |
None, # 0
|
| 647 |
chandransh |
654 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
655 |
(2, TType.STRING, 'destination_pin', None, None, ), # 2
|
| 483 |
rajveer |
656 |
)
|
|
|
657 |
|
| 647 |
chandransh |
658 |
def __init__(self, itemId=None, destination_pin=None,):
|
|
|
659 |
self.itemId = itemId
|
|
|
660 |
self.destination_pin = destination_pin
|
| 483 |
rajveer |
661 |
|
|
|
662 |
def read(self, iprot):
|
|
|
663 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
664 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
665 |
return
|
|
|
666 |
iprot.readStructBegin()
|
|
|
667 |
while True:
|
|
|
668 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
669 |
if ftype == TType.STOP:
|
|
|
670 |
break
|
|
|
671 |
if fid == 1:
|
| 647 |
chandransh |
672 |
if ftype == TType.I64:
|
|
|
673 |
self.itemId = iprot.readI64();
|
| 483 |
rajveer |
674 |
else:
|
|
|
675 |
iprot.skip(ftype)
|
|
|
676 |
elif fid == 2:
|
|
|
677 |
if ftype == TType.STRING:
|
| 647 |
chandransh |
678 |
self.destination_pin = iprot.readString();
|
| 483 |
rajveer |
679 |
else:
|
|
|
680 |
iprot.skip(ftype)
|
|
|
681 |
else:
|
|
|
682 |
iprot.skip(ftype)
|
|
|
683 |
iprot.readFieldEnd()
|
|
|
684 |
iprot.readStructEnd()
|
|
|
685 |
|
|
|
686 |
def write(self, oprot):
|
|
|
687 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
688 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
689 |
return
|
| 647 |
chandransh |
690 |
oprot.writeStructBegin('getLogisticsEstimation_args')
|
|
|
691 |
if self.itemId != None:
|
|
|
692 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
693 |
oprot.writeI64(self.itemId)
|
| 483 |
rajveer |
694 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
695 |
if self.destination_pin != None:
|
|
|
696 |
oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
|
|
|
697 |
oprot.writeString(self.destination_pin)
|
| 483 |
rajveer |
698 |
oprot.writeFieldEnd()
|
|
|
699 |
oprot.writeFieldStop()
|
|
|
700 |
oprot.writeStructEnd()
|
|
|
701 |
|
|
|
702 |
def __repr__(self):
|
|
|
703 |
L = ['%s=%r' % (key, value)
|
|
|
704 |
for key, value in self.__dict__.iteritems()]
|
|
|
705 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
706 |
|
|
|
707 |
def __eq__(self, other):
|
|
|
708 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
709 |
|
|
|
710 |
def __ne__(self, other):
|
|
|
711 |
return not (self == other)
|
|
|
712 |
|
| 647 |
chandransh |
713 |
class getLogisticsEstimation_result:
|
| 483 |
rajveer |
714 |
"""
|
|
|
715 |
Attributes:
|
|
|
716 |
- success
|
|
|
717 |
- se
|
|
|
718 |
"""
|
|
|
719 |
|
|
|
720 |
thrift_spec = (
|
|
|
721 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
|
|
722 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
723 |
)
|
|
|
724 |
|
|
|
725 |
def __init__(self, success=None, se=None,):
|
|
|
726 |
self.success = success
|
|
|
727 |
self.se = se
|
|
|
728 |
|
|
|
729 |
def read(self, iprot):
|
|
|
730 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
731 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
732 |
return
|
|
|
733 |
iprot.readStructBegin()
|
|
|
734 |
while True:
|
|
|
735 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
736 |
if ftype == TType.STOP:
|
|
|
737 |
break
|
|
|
738 |
if fid == 0:
|
|
|
739 |
if ftype == TType.STRUCT:
|
|
|
740 |
self.success = LogisticsInfo()
|
|
|
741 |
self.success.read(iprot)
|
|
|
742 |
else:
|
|
|
743 |
iprot.skip(ftype)
|
|
|
744 |
elif fid == 1:
|
|
|
745 |
if ftype == TType.STRUCT:
|
|
|
746 |
self.se = LogisticsServiceException()
|
|
|
747 |
self.se.read(iprot)
|
|
|
748 |
else:
|
|
|
749 |
iprot.skip(ftype)
|
|
|
750 |
else:
|
|
|
751 |
iprot.skip(ftype)
|
|
|
752 |
iprot.readFieldEnd()
|
|
|
753 |
iprot.readStructEnd()
|
|
|
754 |
|
|
|
755 |
def write(self, oprot):
|
|
|
756 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
757 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
758 |
return
|
| 647 |
chandransh |
759 |
oprot.writeStructBegin('getLogisticsEstimation_result')
|
| 483 |
rajveer |
760 |
if self.success != None:
|
|
|
761 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
762 |
self.success.write(oprot)
|
|
|
763 |
oprot.writeFieldEnd()
|
|
|
764 |
if self.se != None:
|
|
|
765 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
766 |
self.se.write(oprot)
|
|
|
767 |
oprot.writeFieldEnd()
|
|
|
768 |
oprot.writeFieldStop()
|
|
|
769 |
oprot.writeStructEnd()
|
|
|
770 |
|
|
|
771 |
def __repr__(self):
|
|
|
772 |
L = ['%s=%r' % (key, value)
|
|
|
773 |
for key, value in self.__dict__.iteritems()]
|
|
|
774 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
775 |
|
|
|
776 |
def __eq__(self, other):
|
|
|
777 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
778 |
|
|
|
779 |
def __ne__(self, other):
|
|
|
780 |
return not (self == other)
|
|
|
781 |
|
| 647 |
chandransh |
782 |
class getLogisticsInfo_args:
|
| 472 |
rajveer |
783 |
"""
|
|
|
784 |
Attributes:
|
| 647 |
chandransh |
785 |
- destination_pincode
|
|
|
786 |
- item_id
|
| 472 |
rajveer |
787 |
"""
|
|
|
788 |
|
|
|
789 |
thrift_spec = (
|
|
|
790 |
None, # 0
|
| 647 |
chandransh |
791 |
(1, TType.STRING, 'destination_pincode', None, None, ), # 1
|
|
|
792 |
(2, TType.STRING, 'item_id', None, None, ), # 2
|
| 472 |
rajveer |
793 |
)
|
|
|
794 |
|
| 647 |
chandransh |
795 |
def __init__(self, destination_pincode=None, item_id=None,):
|
|
|
796 |
self.destination_pincode = destination_pincode
|
|
|
797 |
self.item_id = item_id
|
| 472 |
rajveer |
798 |
|
|
|
799 |
def read(self, iprot):
|
|
|
800 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
801 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
802 |
return
|
|
|
803 |
iprot.readStructBegin()
|
|
|
804 |
while True:
|
|
|
805 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
806 |
if ftype == TType.STOP:
|
|
|
807 |
break
|
|
|
808 |
if fid == 1:
|
| 647 |
chandransh |
809 |
if ftype == TType.STRING:
|
|
|
810 |
self.destination_pincode = iprot.readString();
|
| 472 |
rajveer |
811 |
else:
|
|
|
812 |
iprot.skip(ftype)
|
|
|
813 |
elif fid == 2:
|
|
|
814 |
if ftype == TType.STRING:
|
| 647 |
chandransh |
815 |
self.item_id = iprot.readString();
|
| 472 |
rajveer |
816 |
else:
|
|
|
817 |
iprot.skip(ftype)
|
|
|
818 |
else:
|
|
|
819 |
iprot.skip(ftype)
|
|
|
820 |
iprot.readFieldEnd()
|
|
|
821 |
iprot.readStructEnd()
|
|
|
822 |
|
|
|
823 |
def write(self, oprot):
|
|
|
824 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
825 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
826 |
return
|
| 647 |
chandransh |
827 |
oprot.writeStructBegin('getLogisticsInfo_args')
|
|
|
828 |
if self.destination_pincode != None:
|
|
|
829 |
oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
|
|
|
830 |
oprot.writeString(self.destination_pincode)
|
| 472 |
rajveer |
831 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
832 |
if self.item_id != None:
|
|
|
833 |
oprot.writeFieldBegin('item_id', TType.STRING, 2)
|
|
|
834 |
oprot.writeString(self.item_id)
|
| 472 |
rajveer |
835 |
oprot.writeFieldEnd()
|
|
|
836 |
oprot.writeFieldStop()
|
|
|
837 |
oprot.writeStructEnd()
|
|
|
838 |
|
|
|
839 |
def __repr__(self):
|
|
|
840 |
L = ['%s=%r' % (key, value)
|
|
|
841 |
for key, value in self.__dict__.iteritems()]
|
|
|
842 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
843 |
|
|
|
844 |
def __eq__(self, other):
|
|
|
845 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
846 |
|
|
|
847 |
def __ne__(self, other):
|
|
|
848 |
return not (self == other)
|
|
|
849 |
|
| 647 |
chandransh |
850 |
class getLogisticsInfo_result:
|
| 472 |
rajveer |
851 |
"""
|
|
|
852 |
Attributes:
|
|
|
853 |
- success
|
|
|
854 |
- se
|
|
|
855 |
"""
|
|
|
856 |
|
|
|
857 |
thrift_spec = (
|
| 644 |
chandransh |
858 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
| 472 |
rajveer |
859 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
860 |
)
|
|
|
861 |
|
|
|
862 |
def __init__(self, success=None, se=None,):
|
|
|
863 |
self.success = success
|
|
|
864 |
self.se = se
|
|
|
865 |
|
|
|
866 |
def read(self, iprot):
|
|
|
867 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
868 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
869 |
return
|
|
|
870 |
iprot.readStructBegin()
|
|
|
871 |
while True:
|
|
|
872 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
873 |
if ftype == TType.STOP:
|
|
|
874 |
break
|
|
|
875 |
if fid == 0:
|
|
|
876 |
if ftype == TType.STRUCT:
|
| 644 |
chandransh |
877 |
self.success = LogisticsInfo()
|
| 472 |
rajveer |
878 |
self.success.read(iprot)
|
|
|
879 |
else:
|
|
|
880 |
iprot.skip(ftype)
|
|
|
881 |
elif fid == 1:
|
|
|
882 |
if ftype == TType.STRUCT:
|
|
|
883 |
self.se = LogisticsServiceException()
|
|
|
884 |
self.se.read(iprot)
|
|
|
885 |
else:
|
|
|
886 |
iprot.skip(ftype)
|
|
|
887 |
else:
|
|
|
888 |
iprot.skip(ftype)
|
|
|
889 |
iprot.readFieldEnd()
|
|
|
890 |
iprot.readStructEnd()
|
|
|
891 |
|
|
|
892 |
def write(self, oprot):
|
|
|
893 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
894 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
895 |
return
|
| 647 |
chandransh |
896 |
oprot.writeStructBegin('getLogisticsInfo_result')
|
| 472 |
rajveer |
897 |
if self.success != None:
|
|
|
898 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
899 |
self.success.write(oprot)
|
|
|
900 |
oprot.writeFieldEnd()
|
|
|
901 |
if self.se != None:
|
|
|
902 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
903 |
self.se.write(oprot)
|
|
|
904 |
oprot.writeFieldEnd()
|
|
|
905 |
oprot.writeFieldStop()
|
|
|
906 |
oprot.writeStructEnd()
|
|
|
907 |
|
|
|
908 |
def __repr__(self):
|
|
|
909 |
L = ['%s=%r' % (key, value)
|
|
|
910 |
for key, value in self.__dict__.iteritems()]
|
|
|
911 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
912 |
|
|
|
913 |
def __eq__(self, other):
|
|
|
914 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
915 |
|
|
|
916 |
def __ne__(self, other):
|
|
|
917 |
return not (self == other)
|
|
|
918 |
|
| 412 |
ashish |
919 |
class getEmptyAWB_args:
|
|
|
920 |
"""
|
|
|
921 |
Attributes:
|
| 647 |
chandransh |
922 |
- providerId
|
| 412 |
ashish |
923 |
"""
|
|
|
924 |
|
|
|
925 |
thrift_spec = (
|
|
|
926 |
None, # 0
|
| 647 |
chandransh |
927 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
| 412 |
ashish |
928 |
)
|
|
|
929 |
|
| 647 |
chandransh |
930 |
def __init__(self, providerId=None,):
|
|
|
931 |
self.providerId = providerId
|
| 412 |
ashish |
932 |
|
|
|
933 |
def read(self, iprot):
|
|
|
934 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
935 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
936 |
return
|
|
|
937 |
iprot.readStructBegin()
|
|
|
938 |
while True:
|
|
|
939 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
940 |
if ftype == TType.STOP:
|
|
|
941 |
break
|
|
|
942 |
if fid == 1:
|
|
|
943 |
if ftype == TType.I64:
|
| 647 |
chandransh |
944 |
self.providerId = iprot.readI64();
|
| 412 |
ashish |
945 |
else:
|
|
|
946 |
iprot.skip(ftype)
|
|
|
947 |
else:
|
|
|
948 |
iprot.skip(ftype)
|
|
|
949 |
iprot.readFieldEnd()
|
|
|
950 |
iprot.readStructEnd()
|
|
|
951 |
|
|
|
952 |
def write(self, oprot):
|
|
|
953 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
954 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
955 |
return
|
|
|
956 |
oprot.writeStructBegin('getEmptyAWB_args')
|
| 647 |
chandransh |
957 |
if self.providerId != None:
|
|
|
958 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
959 |
oprot.writeI64(self.providerId)
|
| 412 |
ashish |
960 |
oprot.writeFieldEnd()
|
|
|
961 |
oprot.writeFieldStop()
|
|
|
962 |
oprot.writeStructEnd()
|
|
|
963 |
|
|
|
964 |
def __repr__(self):
|
|
|
965 |
L = ['%s=%r' % (key, value)
|
|
|
966 |
for key, value in self.__dict__.iteritems()]
|
|
|
967 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
968 |
|
|
|
969 |
def __eq__(self, other):
|
|
|
970 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
971 |
|
|
|
972 |
def __ne__(self, other):
|
|
|
973 |
return not (self == other)
|
|
|
974 |
|
|
|
975 |
class getEmptyAWB_result:
|
|
|
976 |
"""
|
|
|
977 |
Attributes:
|
|
|
978 |
- success
|
| 647 |
chandransh |
979 |
- se
|
| 412 |
ashish |
980 |
"""
|
|
|
981 |
|
|
|
982 |
thrift_spec = (
|
|
|
983 |
(0, TType.STRING, 'success', None, None, ), # 0
|
| 647 |
chandransh |
984 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
985 |
)
|
|
|
986 |
|
| 647 |
chandransh |
987 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
988 |
self.success = success
|
| 647 |
chandransh |
989 |
self.se = se
|
| 412 |
ashish |
990 |
|
|
|
991 |
def read(self, iprot):
|
|
|
992 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
993 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
994 |
return
|
|
|
995 |
iprot.readStructBegin()
|
|
|
996 |
while True:
|
|
|
997 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
998 |
if ftype == TType.STOP:
|
|
|
999 |
break
|
|
|
1000 |
if fid == 0:
|
|
|
1001 |
if ftype == TType.STRING:
|
|
|
1002 |
self.success = iprot.readString();
|
|
|
1003 |
else:
|
|
|
1004 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1005 |
elif fid == 1:
|
|
|
1006 |
if ftype == TType.STRUCT:
|
|
|
1007 |
self.se = LogisticsServiceException()
|
|
|
1008 |
self.se.read(iprot)
|
|
|
1009 |
else:
|
|
|
1010 |
iprot.skip(ftype)
|
| 412 |
ashish |
1011 |
else:
|
|
|
1012 |
iprot.skip(ftype)
|
|
|
1013 |
iprot.readFieldEnd()
|
|
|
1014 |
iprot.readStructEnd()
|
|
|
1015 |
|
|
|
1016 |
def write(self, oprot):
|
|
|
1017 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1018 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1019 |
return
|
|
|
1020 |
oprot.writeStructBegin('getEmptyAWB_result')
|
|
|
1021 |
if self.success != None:
|
|
|
1022 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
1023 |
oprot.writeString(self.success)
|
|
|
1024 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
1025 |
if self.se != None:
|
|
|
1026 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1027 |
self.se.write(oprot)
|
|
|
1028 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1029 |
oprot.writeFieldStop()
|
|
|
1030 |
oprot.writeStructEnd()
|
|
|
1031 |
|
|
|
1032 |
def __repr__(self):
|
|
|
1033 |
L = ['%s=%r' % (key, value)
|
|
|
1034 |
for key, value in self.__dict__.iteritems()]
|
|
|
1035 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1036 |
|
|
|
1037 |
def __eq__(self, other):
|
|
|
1038 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1039 |
|
|
|
1040 |
def __ne__(self, other):
|
|
|
1041 |
return not (self == other)
|
|
|
1042 |
|
|
|
1043 |
class getShipmentInfo_args:
|
|
|
1044 |
"""
|
|
|
1045 |
Attributes:
|
|
|
1046 |
- awb
|
| 647 |
chandransh |
1047 |
- providerId
|
| 412 |
ashish |
1048 |
"""
|
|
|
1049 |
|
|
|
1050 |
thrift_spec = (
|
|
|
1051 |
None, # 0
|
|
|
1052 |
(1, TType.STRING, 'awb', None, None, ), # 1
|
| 647 |
chandransh |
1053 |
(2, TType.I64, 'providerId', None, None, ), # 2
|
| 412 |
ashish |
1054 |
)
|
|
|
1055 |
|
| 647 |
chandransh |
1056 |
def __init__(self, awb=None, providerId=None,):
|
| 412 |
ashish |
1057 |
self.awb = awb
|
| 647 |
chandransh |
1058 |
self.providerId = providerId
|
| 412 |
ashish |
1059 |
|
|
|
1060 |
def read(self, iprot):
|
|
|
1061 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1062 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1063 |
return
|
|
|
1064 |
iprot.readStructBegin()
|
|
|
1065 |
while True:
|
|
|
1066 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1067 |
if ftype == TType.STOP:
|
|
|
1068 |
break
|
|
|
1069 |
if fid == 1:
|
|
|
1070 |
if ftype == TType.STRING:
|
|
|
1071 |
self.awb = iprot.readString();
|
|
|
1072 |
else:
|
|
|
1073 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1074 |
elif fid == 2:
|
|
|
1075 |
if ftype == TType.I64:
|
|
|
1076 |
self.providerId = iprot.readI64();
|
|
|
1077 |
else:
|
|
|
1078 |
iprot.skip(ftype)
|
| 412 |
ashish |
1079 |
else:
|
|
|
1080 |
iprot.skip(ftype)
|
|
|
1081 |
iprot.readFieldEnd()
|
|
|
1082 |
iprot.readStructEnd()
|
|
|
1083 |
|
|
|
1084 |
def write(self, oprot):
|
|
|
1085 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1086 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1087 |
return
|
|
|
1088 |
oprot.writeStructBegin('getShipmentInfo_args')
|
|
|
1089 |
if self.awb != None:
|
|
|
1090 |
oprot.writeFieldBegin('awb', TType.STRING, 1)
|
|
|
1091 |
oprot.writeString(self.awb)
|
|
|
1092 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
1093 |
if self.providerId != None:
|
|
|
1094 |
oprot.writeFieldBegin('providerId', TType.I64, 2)
|
|
|
1095 |
oprot.writeI64(self.providerId)
|
|
|
1096 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1097 |
oprot.writeFieldStop()
|
|
|
1098 |
oprot.writeStructEnd()
|
|
|
1099 |
|
|
|
1100 |
def __repr__(self):
|
|
|
1101 |
L = ['%s=%r' % (key, value)
|
|
|
1102 |
for key, value in self.__dict__.iteritems()]
|
|
|
1103 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1104 |
|
|
|
1105 |
def __eq__(self, other):
|
|
|
1106 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1107 |
|
|
|
1108 |
def __ne__(self, other):
|
|
|
1109 |
return not (self == other)
|
|
|
1110 |
|
|
|
1111 |
class getShipmentInfo_result:
|
|
|
1112 |
"""
|
|
|
1113 |
Attributes:
|
|
|
1114 |
- success
|
| 647 |
chandransh |
1115 |
- se
|
| 412 |
ashish |
1116 |
"""
|
|
|
1117 |
|
|
|
1118 |
thrift_spec = (
|
| 644 |
chandransh |
1119 |
(0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
|
| 647 |
chandransh |
1120 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
1121 |
)
|
|
|
1122 |
|
| 647 |
chandransh |
1123 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
1124 |
self.success = success
|
| 647 |
chandransh |
1125 |
self.se = se
|
| 412 |
ashish |
1126 |
|
|
|
1127 |
def read(self, iprot):
|
|
|
1128 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1129 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1130 |
return
|
|
|
1131 |
iprot.readStructBegin()
|
|
|
1132 |
while True:
|
|
|
1133 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1134 |
if ftype == TType.STOP:
|
|
|
1135 |
break
|
|
|
1136 |
if fid == 0:
|
|
|
1137 |
if ftype == TType.LIST:
|
|
|
1138 |
self.success = []
|
| 675 |
chandransh |
1139 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
1140 |
for _i11 in xrange(_size7):
|
|
|
1141 |
_elem12 = AwbUpdate()
|
|
|
1142 |
_elem12.read(iprot)
|
|
|
1143 |
self.success.append(_elem12)
|
| 412 |
ashish |
1144 |
iprot.readListEnd()
|
|
|
1145 |
else:
|
|
|
1146 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1147 |
elif fid == 1:
|
|
|
1148 |
if ftype == TType.STRUCT:
|
|
|
1149 |
self.se = LogisticsServiceException()
|
|
|
1150 |
self.se.read(iprot)
|
|
|
1151 |
else:
|
|
|
1152 |
iprot.skip(ftype)
|
| 412 |
ashish |
1153 |
else:
|
|
|
1154 |
iprot.skip(ftype)
|
|
|
1155 |
iprot.readFieldEnd()
|
|
|
1156 |
iprot.readStructEnd()
|
|
|
1157 |
|
|
|
1158 |
def write(self, oprot):
|
|
|
1159 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1160 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1161 |
return
|
| 644 |
chandransh |
1162 |
oprot.writeStructBegin('getShipmentInfo_result')
|
| 412 |
ashish |
1163 |
if self.success != None:
|
|
|
1164 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1165 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 675 |
chandransh |
1166 |
for iter13 in self.success:
|
|
|
1167 |
iter13.write(oprot)
|
| 412 |
ashish |
1168 |
oprot.writeListEnd()
|
|
|
1169 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
1170 |
if self.se != None:
|
|
|
1171 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1172 |
self.se.write(oprot)
|
|
|
1173 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1174 |
oprot.writeFieldStop()
|
|
|
1175 |
oprot.writeStructEnd()
|
|
|
1176 |
|
|
|
1177 |
def __repr__(self):
|
|
|
1178 |
L = ['%s=%r' % (key, value)
|
|
|
1179 |
for key, value in self.__dict__.iteritems()]
|
|
|
1180 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1181 |
|
|
|
1182 |
def __eq__(self, other):
|
|
|
1183 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1184 |
|
|
|
1185 |
def __ne__(self, other):
|
|
|
1186 |
return not (self == other)
|
|
|
1187 |
|
|
|
1188 |
|