| 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 |
|
| 3044 |
chandransh |
48 |
def getLogisticsInfo(self, destination_pincode, item_id, type):
|
| 472 |
rajveer |
49 |
"""
|
| 647 |
chandransh |
50 |
Same as above excpet that an airway bill number is also allocated and returned.
|
| 3431 |
rajveer |
51 |
|
| 472 |
rajveer |
52 |
Parameters:
|
| 647 |
chandransh |
53 |
- destination_pincode
|
|
|
54 |
- item_id
|
| 3044 |
chandransh |
55 |
- type
|
| 472 |
rajveer |
56 |
"""
|
|
|
57 |
pass
|
|
|
58 |
|
| 5247 |
rajveer |
59 |
def getEmptyAWB(self, providerId, type):
|
| 412 |
ashish |
60 |
"""
|
| 647 |
chandransh |
61 |
Returns an unused AWB number for the given provider.
|
| 3431 |
rajveer |
62 |
|
| 412 |
ashish |
63 |
Parameters:
|
| 647 |
chandransh |
64 |
- providerId
|
| 5247 |
rajveer |
65 |
- type
|
| 412 |
ashish |
66 |
"""
|
|
|
67 |
pass
|
|
|
68 |
|
| 647 |
chandransh |
69 |
def getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
70 |
"""
|
| 647 |
chandransh |
71 |
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 |
72 |
|
| 412 |
ashish |
73 |
Parameters:
|
|
|
74 |
- awb
|
| 647 |
chandransh |
75 |
- providerId
|
| 412 |
ashish |
76 |
"""
|
|
|
77 |
pass
|
|
|
78 |
|
| 732 |
chandransh |
79 |
def getDestinationCode(self, providerId, pinCode):
|
|
|
80 |
"""
|
|
|
81 |
Returns the short three letter code of a pincode for the given provider.
|
|
|
82 |
Raises an exception if the pin code is not serviced by the given provider.
|
| 3431 |
rajveer |
83 |
|
| 732 |
chandransh |
84 |
Parameters:
|
|
|
85 |
- providerId
|
|
|
86 |
- pinCode
|
|
|
87 |
"""
|
|
|
88 |
pass
|
| 412 |
ashish |
89 |
|
| 3103 |
chandransh |
90 |
def getFreeAwbCount(self, providerId, type):
|
| 1137 |
chandransh |
91 |
"""
|
| 3103 |
chandransh |
92 |
Returns the number of unused AWB numbers for the given provider of the given type
|
| 3431 |
rajveer |
93 |
|
| 1137 |
chandransh |
94 |
Parameters:
|
|
|
95 |
- providerId
|
| 3103 |
chandransh |
96 |
- type
|
| 1137 |
chandransh |
97 |
"""
|
|
|
98 |
pass
|
| 732 |
chandransh |
99 |
|
| 1730 |
ankur.sing |
100 |
def getHolidays(self, fromDate, toDate):
|
|
|
101 |
"""
|
|
|
102 |
Returns list of Holiday dates between fromDate and toDate (both inclusive)
|
|
|
103 |
fromDate should be passed as milliseconds corresponding to the start of the day.
|
|
|
104 |
If fromDate is passed as -1, fromDate is not considered for filtering
|
|
|
105 |
If toDate is passed as -1, toDate is not considered for filtering
|
| 3431 |
rajveer |
106 |
|
| 1730 |
ankur.sing |
107 |
Parameters:
|
|
|
108 |
- fromDate
|
|
|
109 |
- toDate
|
|
|
110 |
"""
|
|
|
111 |
pass
|
| 1137 |
chandransh |
112 |
|
| 4934 |
amit.gupta |
113 |
def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
|
|
|
114 |
"""
|
|
|
115 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
116 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
117 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
| 3431 |
rajveer |
118 |
|
| 4934 |
amit.gupta |
119 |
Parameters:
|
|
|
120 |
- catalogItemId
|
|
|
121 |
- destination_pin
|
|
|
122 |
- type
|
|
|
123 |
"""
|
|
|
124 |
pass
|
|
|
125 |
|
| 5527 |
anupam.sin |
126 |
def getProviderForPickupType(self, pickUp):
|
|
|
127 |
"""
|
|
|
128 |
Returns the id for a given pickUpType
|
| 4934 |
amit.gupta |
129 |
|
| 5527 |
anupam.sin |
130 |
Parameters:
|
|
|
131 |
- pickUp
|
|
|
132 |
"""
|
|
|
133 |
pass
|
|
|
134 |
|
|
|
135 |
|
| 3376 |
rajveer |
136 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 412 |
ashish |
137 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
138 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 412 |
ashish |
139 |
|
| 669 |
chandransh |
140 |
def getProvider(self, providerId):
|
|
|
141 |
"""
|
|
|
142 |
Returns a provider for a given provider ID. Throws an exception if none found.
|
| 3431 |
rajveer |
143 |
|
| 669 |
chandransh |
144 |
Parameters:
|
|
|
145 |
- providerId
|
|
|
146 |
"""
|
|
|
147 |
self.send_getProvider(providerId)
|
|
|
148 |
return self.recv_getProvider()
|
|
|
149 |
|
|
|
150 |
def send_getProvider(self, providerId):
|
|
|
151 |
self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
|
|
|
152 |
args = getProvider_args()
|
|
|
153 |
args.providerId = providerId
|
|
|
154 |
args.write(self._oprot)
|
|
|
155 |
self._oprot.writeMessageEnd()
|
|
|
156 |
self._oprot.trans.flush()
|
|
|
157 |
|
|
|
158 |
def recv_getProvider(self, ):
|
|
|
159 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
160 |
if mtype == TMessageType.EXCEPTION:
|
|
|
161 |
x = TApplicationException()
|
|
|
162 |
x.read(self._iprot)
|
|
|
163 |
self._iprot.readMessageEnd()
|
|
|
164 |
raise x
|
|
|
165 |
result = getProvider_result()
|
|
|
166 |
result.read(self._iprot)
|
|
|
167 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
168 |
if result.success is not None:
|
| 669 |
chandransh |
169 |
return result.success
|
| 3431 |
rajveer |
170 |
if result.lse is not None:
|
| 669 |
chandransh |
171 |
raise result.lse
|
|
|
172 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
|
|
|
173 |
|
| 675 |
chandransh |
174 |
def getAllProviders(self, ):
|
|
|
175 |
"""
|
|
|
176 |
Returns a list containing all the providers.
|
|
|
177 |
"""
|
|
|
178 |
self.send_getAllProviders()
|
|
|
179 |
return self.recv_getAllProviders()
|
|
|
180 |
|
|
|
181 |
def send_getAllProviders(self, ):
|
|
|
182 |
self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
|
|
|
183 |
args = getAllProviders_args()
|
|
|
184 |
args.write(self._oprot)
|
|
|
185 |
self._oprot.writeMessageEnd()
|
|
|
186 |
self._oprot.trans.flush()
|
|
|
187 |
|
|
|
188 |
def recv_getAllProviders(self, ):
|
|
|
189 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
190 |
if mtype == TMessageType.EXCEPTION:
|
|
|
191 |
x = TApplicationException()
|
|
|
192 |
x.read(self._iprot)
|
|
|
193 |
self._iprot.readMessageEnd()
|
|
|
194 |
raise x
|
|
|
195 |
result = getAllProviders_result()
|
|
|
196 |
result.read(self._iprot)
|
|
|
197 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
198 |
if result.success is not None:
|
| 675 |
chandransh |
199 |
return result.success
|
| 3431 |
rajveer |
200 |
if result.lse is not None:
|
| 675 |
chandransh |
201 |
raise result.lse
|
|
|
202 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
|
|
203 |
|
| 4630 |
mandeep.dh |
204 |
def getLogisticsEstimation(self, itemId, destination_pin, type):
|
| 483 |
rajveer |
205 |
"""
|
| 647 |
chandransh |
206 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
207 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
208 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
| 3431 |
rajveer |
209 |
|
| 483 |
rajveer |
210 |
Parameters:
|
| 647 |
chandransh |
211 |
- itemId
|
|
|
212 |
- destination_pin
|
| 4630 |
mandeep.dh |
213 |
- type
|
| 483 |
rajveer |
214 |
"""
|
| 4630 |
mandeep.dh |
215 |
self.send_getLogisticsEstimation(itemId, destination_pin, type)
|
| 647 |
chandransh |
216 |
return self.recv_getLogisticsEstimation()
|
| 483 |
rajveer |
217 |
|
| 4630 |
mandeep.dh |
218 |
def send_getLogisticsEstimation(self, itemId, destination_pin, type):
|
| 647 |
chandransh |
219 |
self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
|
|
|
220 |
args = getLogisticsEstimation_args()
|
|
|
221 |
args.itemId = itemId
|
|
|
222 |
args.destination_pin = destination_pin
|
| 4630 |
mandeep.dh |
223 |
args.type = type
|
| 483 |
rajveer |
224 |
args.write(self._oprot)
|
|
|
225 |
self._oprot.writeMessageEnd()
|
|
|
226 |
self._oprot.trans.flush()
|
|
|
227 |
|
| 647 |
chandransh |
228 |
def recv_getLogisticsEstimation(self, ):
|
| 483 |
rajveer |
229 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
230 |
if mtype == TMessageType.EXCEPTION:
|
|
|
231 |
x = TApplicationException()
|
|
|
232 |
x.read(self._iprot)
|
|
|
233 |
self._iprot.readMessageEnd()
|
|
|
234 |
raise x
|
| 647 |
chandransh |
235 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
236 |
result.read(self._iprot)
|
|
|
237 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
238 |
if result.success is not None:
|
| 483 |
rajveer |
239 |
return result.success
|
| 3431 |
rajveer |
240 |
if result.se is not None:
|
| 483 |
rajveer |
241 |
raise result.se
|
| 647 |
chandransh |
242 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 483 |
rajveer |
243 |
|
| 3044 |
chandransh |
244 |
def getLogisticsInfo(self, destination_pincode, item_id, type):
|
| 472 |
rajveer |
245 |
"""
|
| 647 |
chandransh |
246 |
Same as above excpet that an airway bill number is also allocated and returned.
|
| 3431 |
rajveer |
247 |
|
| 472 |
rajveer |
248 |
Parameters:
|
| 647 |
chandransh |
249 |
- destination_pincode
|
|
|
250 |
- item_id
|
| 3044 |
chandransh |
251 |
- type
|
| 472 |
rajveer |
252 |
"""
|
| 3044 |
chandransh |
253 |
self.send_getLogisticsInfo(destination_pincode, item_id, type)
|
| 647 |
chandransh |
254 |
return self.recv_getLogisticsInfo()
|
| 472 |
rajveer |
255 |
|
| 3044 |
chandransh |
256 |
def send_getLogisticsInfo(self, destination_pincode, item_id, type):
|
| 647 |
chandransh |
257 |
self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
|
|
|
258 |
args = getLogisticsInfo_args()
|
|
|
259 |
args.destination_pincode = destination_pincode
|
|
|
260 |
args.item_id = item_id
|
| 3044 |
chandransh |
261 |
args.type = type
|
| 472 |
rajveer |
262 |
args.write(self._oprot)
|
|
|
263 |
self._oprot.writeMessageEnd()
|
|
|
264 |
self._oprot.trans.flush()
|
|
|
265 |
|
| 647 |
chandransh |
266 |
def recv_getLogisticsInfo(self, ):
|
| 472 |
rajveer |
267 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
268 |
if mtype == TMessageType.EXCEPTION:
|
|
|
269 |
x = TApplicationException()
|
|
|
270 |
x.read(self._iprot)
|
|
|
271 |
self._iprot.readMessageEnd()
|
|
|
272 |
raise x
|
| 647 |
chandransh |
273 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
274 |
result.read(self._iprot)
|
|
|
275 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
276 |
if result.success is not None:
|
| 472 |
rajveer |
277 |
return result.success
|
| 3431 |
rajveer |
278 |
if result.se is not None:
|
| 472 |
rajveer |
279 |
raise result.se
|
| 647 |
chandransh |
280 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
|
| 472 |
rajveer |
281 |
|
| 5247 |
rajveer |
282 |
def getEmptyAWB(self, providerId, type):
|
| 412 |
ashish |
283 |
"""
|
| 647 |
chandransh |
284 |
Returns an unused AWB number for the given provider.
|
| 3431 |
rajveer |
285 |
|
| 412 |
ashish |
286 |
Parameters:
|
| 647 |
chandransh |
287 |
- providerId
|
| 5247 |
rajveer |
288 |
- type
|
| 412 |
ashish |
289 |
"""
|
| 5247 |
rajveer |
290 |
self.send_getEmptyAWB(providerId, type)
|
| 412 |
ashish |
291 |
return self.recv_getEmptyAWB()
|
|
|
292 |
|
| 5247 |
rajveer |
293 |
def send_getEmptyAWB(self, providerId, type):
|
| 412 |
ashish |
294 |
self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
|
|
|
295 |
args = getEmptyAWB_args()
|
| 647 |
chandransh |
296 |
args.providerId = providerId
|
| 5247 |
rajveer |
297 |
args.type = type
|
| 412 |
ashish |
298 |
args.write(self._oprot)
|
|
|
299 |
self._oprot.writeMessageEnd()
|
|
|
300 |
self._oprot.trans.flush()
|
|
|
301 |
|
|
|
302 |
def recv_getEmptyAWB(self, ):
|
|
|
303 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
304 |
if mtype == TMessageType.EXCEPTION:
|
|
|
305 |
x = TApplicationException()
|
|
|
306 |
x.read(self._iprot)
|
|
|
307 |
self._iprot.readMessageEnd()
|
|
|
308 |
raise x
|
|
|
309 |
result = getEmptyAWB_result()
|
|
|
310 |
result.read(self._iprot)
|
|
|
311 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
312 |
if result.success is not None:
|
| 412 |
ashish |
313 |
return result.success
|
| 3431 |
rajveer |
314 |
if result.se is not None:
|
| 647 |
chandransh |
315 |
raise result.se
|
| 412 |
ashish |
316 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
|
|
|
317 |
|
| 647 |
chandransh |
318 |
def getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
319 |
"""
|
| 647 |
chandransh |
320 |
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 |
321 |
|
| 412 |
ashish |
322 |
Parameters:
|
|
|
323 |
- awb
|
| 647 |
chandransh |
324 |
- providerId
|
| 412 |
ashish |
325 |
"""
|
| 647 |
chandransh |
326 |
self.send_getShipmentInfo(awb, providerId)
|
| 412 |
ashish |
327 |
return self.recv_getShipmentInfo()
|
|
|
328 |
|
| 647 |
chandransh |
329 |
def send_getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
330 |
self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
|
|
|
331 |
args = getShipmentInfo_args()
|
|
|
332 |
args.awb = awb
|
| 647 |
chandransh |
333 |
args.providerId = providerId
|
| 412 |
ashish |
334 |
args.write(self._oprot)
|
|
|
335 |
self._oprot.writeMessageEnd()
|
|
|
336 |
self._oprot.trans.flush()
|
|
|
337 |
|
|
|
338 |
def recv_getShipmentInfo(self, ):
|
|
|
339 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
340 |
if mtype == TMessageType.EXCEPTION:
|
|
|
341 |
x = TApplicationException()
|
|
|
342 |
x.read(self._iprot)
|
|
|
343 |
self._iprot.readMessageEnd()
|
|
|
344 |
raise x
|
|
|
345 |
result = getShipmentInfo_result()
|
|
|
346 |
result.read(self._iprot)
|
|
|
347 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
348 |
if result.success is not None:
|
| 412 |
ashish |
349 |
return result.success
|
| 3431 |
rajveer |
350 |
if result.se is not None:
|
| 647 |
chandransh |
351 |
raise result.se
|
| 412 |
ashish |
352 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
|
|
|
353 |
|
| 732 |
chandransh |
354 |
def getDestinationCode(self, providerId, pinCode):
|
|
|
355 |
"""
|
|
|
356 |
Returns the short three letter code of a pincode for the given provider.
|
|
|
357 |
Raises an exception if the pin code is not serviced by the given provider.
|
| 3431 |
rajveer |
358 |
|
| 732 |
chandransh |
359 |
Parameters:
|
|
|
360 |
- providerId
|
|
|
361 |
- pinCode
|
|
|
362 |
"""
|
|
|
363 |
self.send_getDestinationCode(providerId, pinCode)
|
|
|
364 |
return self.recv_getDestinationCode()
|
| 412 |
ashish |
365 |
|
| 732 |
chandransh |
366 |
def send_getDestinationCode(self, providerId, pinCode):
|
|
|
367 |
self._oprot.writeMessageBegin('getDestinationCode', TMessageType.CALL, self._seqid)
|
|
|
368 |
args = getDestinationCode_args()
|
|
|
369 |
args.providerId = providerId
|
|
|
370 |
args.pinCode = pinCode
|
|
|
371 |
args.write(self._oprot)
|
|
|
372 |
self._oprot.writeMessageEnd()
|
|
|
373 |
self._oprot.trans.flush()
|
|
|
374 |
|
|
|
375 |
def recv_getDestinationCode(self, ):
|
|
|
376 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
377 |
if mtype == TMessageType.EXCEPTION:
|
|
|
378 |
x = TApplicationException()
|
|
|
379 |
x.read(self._iprot)
|
|
|
380 |
self._iprot.readMessageEnd()
|
|
|
381 |
raise x
|
|
|
382 |
result = getDestinationCode_result()
|
|
|
383 |
result.read(self._iprot)
|
|
|
384 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
385 |
if result.success is not None:
|
| 732 |
chandransh |
386 |
return result.success
|
| 3431 |
rajveer |
387 |
if result.se is not None:
|
| 732 |
chandransh |
388 |
raise result.se
|
|
|
389 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
|
|
|
390 |
|
| 3103 |
chandransh |
391 |
def getFreeAwbCount(self, providerId, type):
|
| 1137 |
chandransh |
392 |
"""
|
| 3103 |
chandransh |
393 |
Returns the number of unused AWB numbers for the given provider of the given type
|
| 3431 |
rajveer |
394 |
|
| 1137 |
chandransh |
395 |
Parameters:
|
|
|
396 |
- providerId
|
| 3103 |
chandransh |
397 |
- type
|
| 1137 |
chandransh |
398 |
"""
|
| 3103 |
chandransh |
399 |
self.send_getFreeAwbCount(providerId, type)
|
| 1137 |
chandransh |
400 |
return self.recv_getFreeAwbCount()
|
| 732 |
chandransh |
401 |
|
| 3103 |
chandransh |
402 |
def send_getFreeAwbCount(self, providerId, type):
|
| 1137 |
chandransh |
403 |
self._oprot.writeMessageBegin('getFreeAwbCount', TMessageType.CALL, self._seqid)
|
|
|
404 |
args = getFreeAwbCount_args()
|
|
|
405 |
args.providerId = providerId
|
| 3103 |
chandransh |
406 |
args.type = type
|
| 1137 |
chandransh |
407 |
args.write(self._oprot)
|
|
|
408 |
self._oprot.writeMessageEnd()
|
|
|
409 |
self._oprot.trans.flush()
|
|
|
410 |
|
|
|
411 |
def recv_getFreeAwbCount(self, ):
|
|
|
412 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
413 |
if mtype == TMessageType.EXCEPTION:
|
|
|
414 |
x = TApplicationException()
|
|
|
415 |
x.read(self._iprot)
|
|
|
416 |
self._iprot.readMessageEnd()
|
|
|
417 |
raise x
|
|
|
418 |
result = getFreeAwbCount_result()
|
|
|
419 |
result.read(self._iprot)
|
|
|
420 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
421 |
if result.success is not None:
|
| 1137 |
chandransh |
422 |
return result.success
|
|
|
423 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
|
|
|
424 |
|
| 1730 |
ankur.sing |
425 |
def getHolidays(self, fromDate, toDate):
|
|
|
426 |
"""
|
|
|
427 |
Returns list of Holiday dates between fromDate and toDate (both inclusive)
|
|
|
428 |
fromDate should be passed as milliseconds corresponding to the start of the day.
|
|
|
429 |
If fromDate is passed as -1, fromDate is not considered for filtering
|
|
|
430 |
If toDate is passed as -1, toDate is not considered for filtering
|
| 3431 |
rajveer |
431 |
|
| 1730 |
ankur.sing |
432 |
Parameters:
|
|
|
433 |
- fromDate
|
|
|
434 |
- toDate
|
|
|
435 |
"""
|
|
|
436 |
self.send_getHolidays(fromDate, toDate)
|
|
|
437 |
return self.recv_getHolidays()
|
| 1137 |
chandransh |
438 |
|
| 1730 |
ankur.sing |
439 |
def send_getHolidays(self, fromDate, toDate):
|
|
|
440 |
self._oprot.writeMessageBegin('getHolidays', TMessageType.CALL, self._seqid)
|
|
|
441 |
args = getHolidays_args()
|
|
|
442 |
args.fromDate = fromDate
|
|
|
443 |
args.toDate = toDate
|
|
|
444 |
args.write(self._oprot)
|
|
|
445 |
self._oprot.writeMessageEnd()
|
|
|
446 |
self._oprot.trans.flush()
|
|
|
447 |
|
|
|
448 |
def recv_getHolidays(self, ):
|
|
|
449 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
450 |
if mtype == TMessageType.EXCEPTION:
|
|
|
451 |
x = TApplicationException()
|
|
|
452 |
x.read(self._iprot)
|
|
|
453 |
self._iprot.readMessageEnd()
|
|
|
454 |
raise x
|
|
|
455 |
result = getHolidays_result()
|
|
|
456 |
result.read(self._iprot)
|
|
|
457 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
458 |
if result.success is not None:
|
| 1730 |
ankur.sing |
459 |
return result.success
|
|
|
460 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
|
|
|
461 |
|
| 4934 |
amit.gupta |
462 |
def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
|
|
|
463 |
"""
|
|
|
464 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
465 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
466 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
| 3431 |
rajveer |
467 |
|
| 4934 |
amit.gupta |
468 |
Parameters:
|
|
|
469 |
- catalogItemId
|
|
|
470 |
- destination_pin
|
|
|
471 |
- type
|
|
|
472 |
"""
|
|
|
473 |
self.send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type)
|
|
|
474 |
return self.recv_getEntityLogisticsEstimation()
|
|
|
475 |
|
|
|
476 |
def send_getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
|
|
|
477 |
self._oprot.writeMessageBegin('getEntityLogisticsEstimation', TMessageType.CALL, self._seqid)
|
|
|
478 |
args = getEntityLogisticsEstimation_args()
|
|
|
479 |
args.catalogItemId = catalogItemId
|
|
|
480 |
args.destination_pin = destination_pin
|
|
|
481 |
args.type = type
|
|
|
482 |
args.write(self._oprot)
|
|
|
483 |
self._oprot.writeMessageEnd()
|
|
|
484 |
self._oprot.trans.flush()
|
|
|
485 |
|
|
|
486 |
def recv_getEntityLogisticsEstimation(self, ):
|
|
|
487 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
488 |
if mtype == TMessageType.EXCEPTION:
|
|
|
489 |
x = TApplicationException()
|
|
|
490 |
x.read(self._iprot)
|
|
|
491 |
self._iprot.readMessageEnd()
|
|
|
492 |
raise x
|
|
|
493 |
result = getEntityLogisticsEstimation_result()
|
|
|
494 |
result.read(self._iprot)
|
|
|
495 |
self._iprot.readMessageEnd()
|
|
|
496 |
if result.success is not None:
|
|
|
497 |
return result.success
|
|
|
498 |
if result.se is not None:
|
|
|
499 |
raise result.se
|
|
|
500 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
|
|
|
501 |
|
| 5527 |
anupam.sin |
502 |
def getProviderForPickupType(self, pickUp):
|
|
|
503 |
"""
|
|
|
504 |
Returns the id for a given pickUpType
|
| 4934 |
amit.gupta |
505 |
|
| 5527 |
anupam.sin |
506 |
Parameters:
|
|
|
507 |
- pickUp
|
|
|
508 |
"""
|
|
|
509 |
self.send_getProviderForPickupType(pickUp)
|
|
|
510 |
return self.recv_getProviderForPickupType()
|
|
|
511 |
|
|
|
512 |
def send_getProviderForPickupType(self, pickUp):
|
|
|
513 |
self._oprot.writeMessageBegin('getProviderForPickupType', TMessageType.CALL, self._seqid)
|
|
|
514 |
args = getProviderForPickupType_args()
|
|
|
515 |
args.pickUp = pickUp
|
|
|
516 |
args.write(self._oprot)
|
|
|
517 |
self._oprot.writeMessageEnd()
|
|
|
518 |
self._oprot.trans.flush()
|
|
|
519 |
|
|
|
520 |
def recv_getProviderForPickupType(self, ):
|
|
|
521 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
522 |
if mtype == TMessageType.EXCEPTION:
|
|
|
523 |
x = TApplicationException()
|
|
|
524 |
x.read(self._iprot)
|
|
|
525 |
self._iprot.readMessageEnd()
|
|
|
526 |
raise x
|
|
|
527 |
result = getProviderForPickupType_result()
|
|
|
528 |
result.read(self._iprot)
|
|
|
529 |
self._iprot.readMessageEnd()
|
|
|
530 |
if result.success is not None:
|
|
|
531 |
return result.success
|
|
|
532 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
|
|
|
533 |
|
|
|
534 |
|
| 3376 |
rajveer |
535 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 412 |
ashish |
536 |
def __init__(self, handler):
|
| 3376 |
rajveer |
537 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 669 |
chandransh |
538 |
self._processMap["getProvider"] = Processor.process_getProvider
|
| 675 |
chandransh |
539 |
self._processMap["getAllProviders"] = Processor.process_getAllProviders
|
| 647 |
chandransh |
540 |
self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
|
| 483 |
rajveer |
541 |
self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
|
| 412 |
ashish |
542 |
self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
|
|
|
543 |
self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
|
| 732 |
chandransh |
544 |
self._processMap["getDestinationCode"] = Processor.process_getDestinationCode
|
| 1137 |
chandransh |
545 |
self._processMap["getFreeAwbCount"] = Processor.process_getFreeAwbCount
|
| 1730 |
ankur.sing |
546 |
self._processMap["getHolidays"] = Processor.process_getHolidays
|
| 4934 |
amit.gupta |
547 |
self._processMap["getEntityLogisticsEstimation"] = Processor.process_getEntityLogisticsEstimation
|
| 5527 |
anupam.sin |
548 |
self._processMap["getProviderForPickupType"] = Processor.process_getProviderForPickupType
|
| 412 |
ashish |
549 |
|
|
|
550 |
def process(self, iprot, oprot):
|
|
|
551 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
552 |
if name not in self._processMap:
|
|
|
553 |
iprot.skip(TType.STRUCT)
|
|
|
554 |
iprot.readMessageEnd()
|
|
|
555 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
556 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
557 |
x.write(oprot)
|
|
|
558 |
oprot.writeMessageEnd()
|
|
|
559 |
oprot.trans.flush()
|
|
|
560 |
return
|
|
|
561 |
else:
|
|
|
562 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
563 |
return True
|
|
|
564 |
|
| 669 |
chandransh |
565 |
def process_getProvider(self, seqid, iprot, oprot):
|
|
|
566 |
args = getProvider_args()
|
|
|
567 |
args.read(iprot)
|
|
|
568 |
iprot.readMessageEnd()
|
|
|
569 |
result = getProvider_result()
|
|
|
570 |
try:
|
|
|
571 |
result.success = self._handler.getProvider(args.providerId)
|
|
|
572 |
except LogisticsServiceException, lse:
|
|
|
573 |
result.lse = lse
|
|
|
574 |
oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
|
|
|
575 |
result.write(oprot)
|
|
|
576 |
oprot.writeMessageEnd()
|
|
|
577 |
oprot.trans.flush()
|
|
|
578 |
|
| 675 |
chandransh |
579 |
def process_getAllProviders(self, seqid, iprot, oprot):
|
|
|
580 |
args = getAllProviders_args()
|
|
|
581 |
args.read(iprot)
|
|
|
582 |
iprot.readMessageEnd()
|
|
|
583 |
result = getAllProviders_result()
|
|
|
584 |
try:
|
|
|
585 |
result.success = self._handler.getAllProviders()
|
|
|
586 |
except LogisticsServiceException, lse:
|
|
|
587 |
result.lse = lse
|
|
|
588 |
oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
|
|
|
589 |
result.write(oprot)
|
|
|
590 |
oprot.writeMessageEnd()
|
|
|
591 |
oprot.trans.flush()
|
|
|
592 |
|
| 647 |
chandransh |
593 |
def process_getLogisticsEstimation(self, seqid, iprot, oprot):
|
|
|
594 |
args = getLogisticsEstimation_args()
|
| 483 |
rajveer |
595 |
args.read(iprot)
|
|
|
596 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
597 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
598 |
try:
|
| 4630 |
mandeep.dh |
599 |
result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin, args.type)
|
| 483 |
rajveer |
600 |
except LogisticsServiceException, se:
|
|
|
601 |
result.se = se
|
| 647 |
chandransh |
602 |
oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
|
| 483 |
rajveer |
603 |
result.write(oprot)
|
|
|
604 |
oprot.writeMessageEnd()
|
|
|
605 |
oprot.trans.flush()
|
|
|
606 |
|
| 647 |
chandransh |
607 |
def process_getLogisticsInfo(self, seqid, iprot, oprot):
|
|
|
608 |
args = getLogisticsInfo_args()
|
| 472 |
rajveer |
609 |
args.read(iprot)
|
|
|
610 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
611 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
612 |
try:
|
| 3044 |
chandransh |
613 |
result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type)
|
| 472 |
rajveer |
614 |
except LogisticsServiceException, se:
|
|
|
615 |
result.se = se
|
| 647 |
chandransh |
616 |
oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
|
| 472 |
rajveer |
617 |
result.write(oprot)
|
|
|
618 |
oprot.writeMessageEnd()
|
|
|
619 |
oprot.trans.flush()
|
|
|
620 |
|
| 412 |
ashish |
621 |
def process_getEmptyAWB(self, seqid, iprot, oprot):
|
|
|
622 |
args = getEmptyAWB_args()
|
|
|
623 |
args.read(iprot)
|
|
|
624 |
iprot.readMessageEnd()
|
|
|
625 |
result = getEmptyAWB_result()
|
| 647 |
chandransh |
626 |
try:
|
| 5247 |
rajveer |
627 |
result.success = self._handler.getEmptyAWB(args.providerId, args.type)
|
| 647 |
chandransh |
628 |
except LogisticsServiceException, se:
|
|
|
629 |
result.se = se
|
| 412 |
ashish |
630 |
oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
|
|
|
631 |
result.write(oprot)
|
|
|
632 |
oprot.writeMessageEnd()
|
|
|
633 |
oprot.trans.flush()
|
|
|
634 |
|
|
|
635 |
def process_getShipmentInfo(self, seqid, iprot, oprot):
|
|
|
636 |
args = getShipmentInfo_args()
|
|
|
637 |
args.read(iprot)
|
|
|
638 |
iprot.readMessageEnd()
|
|
|
639 |
result = getShipmentInfo_result()
|
| 647 |
chandransh |
640 |
try:
|
|
|
641 |
result.success = self._handler.getShipmentInfo(args.awb, args.providerId)
|
|
|
642 |
except LogisticsServiceException, se:
|
|
|
643 |
result.se = se
|
| 412 |
ashish |
644 |
oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
|
|
|
645 |
result.write(oprot)
|
|
|
646 |
oprot.writeMessageEnd()
|
|
|
647 |
oprot.trans.flush()
|
|
|
648 |
|
| 732 |
chandransh |
649 |
def process_getDestinationCode(self, seqid, iprot, oprot):
|
|
|
650 |
args = getDestinationCode_args()
|
|
|
651 |
args.read(iprot)
|
|
|
652 |
iprot.readMessageEnd()
|
|
|
653 |
result = getDestinationCode_result()
|
|
|
654 |
try:
|
|
|
655 |
result.success = self._handler.getDestinationCode(args.providerId, args.pinCode)
|
|
|
656 |
except LogisticsServiceException, se:
|
|
|
657 |
result.se = se
|
|
|
658 |
oprot.writeMessageBegin("getDestinationCode", TMessageType.REPLY, seqid)
|
|
|
659 |
result.write(oprot)
|
|
|
660 |
oprot.writeMessageEnd()
|
|
|
661 |
oprot.trans.flush()
|
| 412 |
ashish |
662 |
|
| 1137 |
chandransh |
663 |
def process_getFreeAwbCount(self, seqid, iprot, oprot):
|
|
|
664 |
args = getFreeAwbCount_args()
|
|
|
665 |
args.read(iprot)
|
|
|
666 |
iprot.readMessageEnd()
|
|
|
667 |
result = getFreeAwbCount_result()
|
| 3103 |
chandransh |
668 |
result.success = self._handler.getFreeAwbCount(args.providerId, args.type)
|
| 1137 |
chandransh |
669 |
oprot.writeMessageBegin("getFreeAwbCount", TMessageType.REPLY, seqid)
|
|
|
670 |
result.write(oprot)
|
|
|
671 |
oprot.writeMessageEnd()
|
|
|
672 |
oprot.trans.flush()
|
| 732 |
chandransh |
673 |
|
| 1730 |
ankur.sing |
674 |
def process_getHolidays(self, seqid, iprot, oprot):
|
|
|
675 |
args = getHolidays_args()
|
|
|
676 |
args.read(iprot)
|
|
|
677 |
iprot.readMessageEnd()
|
|
|
678 |
result = getHolidays_result()
|
|
|
679 |
result.success = self._handler.getHolidays(args.fromDate, args.toDate)
|
|
|
680 |
oprot.writeMessageBegin("getHolidays", TMessageType.REPLY, seqid)
|
|
|
681 |
result.write(oprot)
|
|
|
682 |
oprot.writeMessageEnd()
|
|
|
683 |
oprot.trans.flush()
|
| 1137 |
chandransh |
684 |
|
| 4934 |
amit.gupta |
685 |
def process_getEntityLogisticsEstimation(self, seqid, iprot, oprot):
|
|
|
686 |
args = getEntityLogisticsEstimation_args()
|
|
|
687 |
args.read(iprot)
|
|
|
688 |
iprot.readMessageEnd()
|
|
|
689 |
result = getEntityLogisticsEstimation_result()
|
|
|
690 |
try:
|
|
|
691 |
result.success = self._handler.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type)
|
|
|
692 |
except LogisticsServiceException, se:
|
|
|
693 |
result.se = se
|
|
|
694 |
oprot.writeMessageBegin("getEntityLogisticsEstimation", TMessageType.REPLY, seqid)
|
|
|
695 |
result.write(oprot)
|
|
|
696 |
oprot.writeMessageEnd()
|
|
|
697 |
oprot.trans.flush()
|
| 1730 |
ankur.sing |
698 |
|
| 5527 |
anupam.sin |
699 |
def process_getProviderForPickupType(self, seqid, iprot, oprot):
|
|
|
700 |
args = getProviderForPickupType_args()
|
|
|
701 |
args.read(iprot)
|
|
|
702 |
iprot.readMessageEnd()
|
|
|
703 |
result = getProviderForPickupType_result()
|
|
|
704 |
result.success = self._handler.getProviderForPickupType(args.pickUp)
|
|
|
705 |
oprot.writeMessageBegin("getProviderForPickupType", TMessageType.REPLY, seqid)
|
|
|
706 |
result.write(oprot)
|
|
|
707 |
oprot.writeMessageEnd()
|
|
|
708 |
oprot.trans.flush()
|
| 4934 |
amit.gupta |
709 |
|
| 5527 |
anupam.sin |
710 |
|
| 412 |
ashish |
711 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
712 |
|
| 669 |
chandransh |
713 |
class getProvider_args:
|
|
|
714 |
"""
|
|
|
715 |
Attributes:
|
|
|
716 |
- providerId
|
|
|
717 |
"""
|
|
|
718 |
|
|
|
719 |
thrift_spec = (
|
|
|
720 |
None, # 0
|
|
|
721 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
722 |
)
|
|
|
723 |
|
|
|
724 |
def __init__(self, providerId=None,):
|
|
|
725 |
self.providerId = providerId
|
|
|
726 |
|
|
|
727 |
def read(self, iprot):
|
|
|
728 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
729 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
730 |
return
|
|
|
731 |
iprot.readStructBegin()
|
|
|
732 |
while True:
|
|
|
733 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
734 |
if ftype == TType.STOP:
|
|
|
735 |
break
|
|
|
736 |
if fid == 1:
|
|
|
737 |
if ftype == TType.I64:
|
|
|
738 |
self.providerId = iprot.readI64();
|
|
|
739 |
else:
|
|
|
740 |
iprot.skip(ftype)
|
|
|
741 |
else:
|
|
|
742 |
iprot.skip(ftype)
|
|
|
743 |
iprot.readFieldEnd()
|
|
|
744 |
iprot.readStructEnd()
|
|
|
745 |
|
|
|
746 |
def write(self, oprot):
|
|
|
747 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
748 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
749 |
return
|
|
|
750 |
oprot.writeStructBegin('getProvider_args')
|
| 3431 |
rajveer |
751 |
if self.providerId is not None:
|
| 669 |
chandransh |
752 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
753 |
oprot.writeI64(self.providerId)
|
|
|
754 |
oprot.writeFieldEnd()
|
|
|
755 |
oprot.writeFieldStop()
|
|
|
756 |
oprot.writeStructEnd()
|
|
|
757 |
|
| 3431 |
rajveer |
758 |
def validate(self):
|
|
|
759 |
return
|
|
|
760 |
|
|
|
761 |
|
| 669 |
chandransh |
762 |
def __repr__(self):
|
|
|
763 |
L = ['%s=%r' % (key, value)
|
|
|
764 |
for key, value in self.__dict__.iteritems()]
|
|
|
765 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
766 |
|
|
|
767 |
def __eq__(self, other):
|
|
|
768 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
769 |
|
|
|
770 |
def __ne__(self, other):
|
|
|
771 |
return not (self == other)
|
|
|
772 |
|
|
|
773 |
class getProvider_result:
|
|
|
774 |
"""
|
|
|
775 |
Attributes:
|
|
|
776 |
- success
|
|
|
777 |
- lse
|
|
|
778 |
"""
|
|
|
779 |
|
|
|
780 |
thrift_spec = (
|
|
|
781 |
(0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
|
|
|
782 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
783 |
)
|
|
|
784 |
|
|
|
785 |
def __init__(self, success=None, lse=None,):
|
|
|
786 |
self.success = success
|
|
|
787 |
self.lse = lse
|
|
|
788 |
|
|
|
789 |
def read(self, iprot):
|
|
|
790 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
791 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
792 |
return
|
|
|
793 |
iprot.readStructBegin()
|
|
|
794 |
while True:
|
|
|
795 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
796 |
if ftype == TType.STOP:
|
|
|
797 |
break
|
|
|
798 |
if fid == 0:
|
|
|
799 |
if ftype == TType.STRUCT:
|
|
|
800 |
self.success = Provider()
|
|
|
801 |
self.success.read(iprot)
|
|
|
802 |
else:
|
|
|
803 |
iprot.skip(ftype)
|
|
|
804 |
elif fid == 1:
|
|
|
805 |
if ftype == TType.STRUCT:
|
|
|
806 |
self.lse = LogisticsServiceException()
|
|
|
807 |
self.lse.read(iprot)
|
|
|
808 |
else:
|
|
|
809 |
iprot.skip(ftype)
|
|
|
810 |
else:
|
|
|
811 |
iprot.skip(ftype)
|
|
|
812 |
iprot.readFieldEnd()
|
|
|
813 |
iprot.readStructEnd()
|
|
|
814 |
|
|
|
815 |
def write(self, oprot):
|
|
|
816 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
817 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
818 |
return
|
|
|
819 |
oprot.writeStructBegin('getProvider_result')
|
| 3431 |
rajveer |
820 |
if self.success is not None:
|
| 669 |
chandransh |
821 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
822 |
self.success.write(oprot)
|
|
|
823 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
824 |
if self.lse is not None:
|
| 669 |
chandransh |
825 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
826 |
self.lse.write(oprot)
|
|
|
827 |
oprot.writeFieldEnd()
|
|
|
828 |
oprot.writeFieldStop()
|
|
|
829 |
oprot.writeStructEnd()
|
|
|
830 |
|
| 3431 |
rajveer |
831 |
def validate(self):
|
|
|
832 |
return
|
|
|
833 |
|
|
|
834 |
|
| 669 |
chandransh |
835 |
def __repr__(self):
|
|
|
836 |
L = ['%s=%r' % (key, value)
|
|
|
837 |
for key, value in self.__dict__.iteritems()]
|
|
|
838 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
839 |
|
|
|
840 |
def __eq__(self, other):
|
|
|
841 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
842 |
|
|
|
843 |
def __ne__(self, other):
|
|
|
844 |
return not (self == other)
|
|
|
845 |
|
| 675 |
chandransh |
846 |
class getAllProviders_args:
|
|
|
847 |
|
|
|
848 |
thrift_spec = (
|
|
|
849 |
)
|
|
|
850 |
|
|
|
851 |
def read(self, iprot):
|
|
|
852 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
853 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
854 |
return
|
|
|
855 |
iprot.readStructBegin()
|
|
|
856 |
while True:
|
|
|
857 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
858 |
if ftype == TType.STOP:
|
|
|
859 |
break
|
|
|
860 |
else:
|
|
|
861 |
iprot.skip(ftype)
|
|
|
862 |
iprot.readFieldEnd()
|
|
|
863 |
iprot.readStructEnd()
|
|
|
864 |
|
|
|
865 |
def write(self, oprot):
|
|
|
866 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
867 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
868 |
return
|
|
|
869 |
oprot.writeStructBegin('getAllProviders_args')
|
|
|
870 |
oprot.writeFieldStop()
|
|
|
871 |
oprot.writeStructEnd()
|
|
|
872 |
|
| 3431 |
rajveer |
873 |
def validate(self):
|
|
|
874 |
return
|
|
|
875 |
|
|
|
876 |
|
| 675 |
chandransh |
877 |
def __repr__(self):
|
|
|
878 |
L = ['%s=%r' % (key, value)
|
|
|
879 |
for key, value in self.__dict__.iteritems()]
|
|
|
880 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
881 |
|
|
|
882 |
def __eq__(self, other):
|
|
|
883 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
884 |
|
|
|
885 |
def __ne__(self, other):
|
|
|
886 |
return not (self == other)
|
|
|
887 |
|
|
|
888 |
class getAllProviders_result:
|
|
|
889 |
"""
|
|
|
890 |
Attributes:
|
|
|
891 |
- success
|
|
|
892 |
- lse
|
|
|
893 |
"""
|
|
|
894 |
|
|
|
895 |
thrift_spec = (
|
|
|
896 |
(0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
|
|
|
897 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
898 |
)
|
|
|
899 |
|
|
|
900 |
def __init__(self, success=None, lse=None,):
|
|
|
901 |
self.success = success
|
|
|
902 |
self.lse = lse
|
|
|
903 |
|
|
|
904 |
def read(self, iprot):
|
|
|
905 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
906 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
907 |
return
|
|
|
908 |
iprot.readStructBegin()
|
|
|
909 |
while True:
|
|
|
910 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
911 |
if ftype == TType.STOP:
|
|
|
912 |
break
|
|
|
913 |
if fid == 0:
|
|
|
914 |
if ftype == TType.LIST:
|
|
|
915 |
self.success = []
|
| 3044 |
chandransh |
916 |
(_etype12, _size9) = iprot.readListBegin()
|
|
|
917 |
for _i13 in xrange(_size9):
|
|
|
918 |
_elem14 = Provider()
|
|
|
919 |
_elem14.read(iprot)
|
|
|
920 |
self.success.append(_elem14)
|
| 675 |
chandransh |
921 |
iprot.readListEnd()
|
|
|
922 |
else:
|
|
|
923 |
iprot.skip(ftype)
|
|
|
924 |
elif fid == 1:
|
|
|
925 |
if ftype == TType.STRUCT:
|
|
|
926 |
self.lse = LogisticsServiceException()
|
|
|
927 |
self.lse.read(iprot)
|
|
|
928 |
else:
|
|
|
929 |
iprot.skip(ftype)
|
|
|
930 |
else:
|
|
|
931 |
iprot.skip(ftype)
|
|
|
932 |
iprot.readFieldEnd()
|
|
|
933 |
iprot.readStructEnd()
|
|
|
934 |
|
|
|
935 |
def write(self, oprot):
|
|
|
936 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
937 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
938 |
return
|
|
|
939 |
oprot.writeStructBegin('getAllProviders_result')
|
| 3431 |
rajveer |
940 |
if self.success is not None:
|
| 675 |
chandransh |
941 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
942 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 3044 |
chandransh |
943 |
for iter15 in self.success:
|
|
|
944 |
iter15.write(oprot)
|
| 675 |
chandransh |
945 |
oprot.writeListEnd()
|
|
|
946 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
947 |
if self.lse is not None:
|
| 675 |
chandransh |
948 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
949 |
self.lse.write(oprot)
|
|
|
950 |
oprot.writeFieldEnd()
|
|
|
951 |
oprot.writeFieldStop()
|
|
|
952 |
oprot.writeStructEnd()
|
|
|
953 |
|
| 3431 |
rajveer |
954 |
def validate(self):
|
|
|
955 |
return
|
|
|
956 |
|
|
|
957 |
|
| 675 |
chandransh |
958 |
def __repr__(self):
|
|
|
959 |
L = ['%s=%r' % (key, value)
|
|
|
960 |
for key, value in self.__dict__.iteritems()]
|
|
|
961 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
962 |
|
|
|
963 |
def __eq__(self, other):
|
|
|
964 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
965 |
|
|
|
966 |
def __ne__(self, other):
|
|
|
967 |
return not (self == other)
|
|
|
968 |
|
| 647 |
chandransh |
969 |
class getLogisticsEstimation_args:
|
| 483 |
rajveer |
970 |
"""
|
|
|
971 |
Attributes:
|
| 647 |
chandransh |
972 |
- itemId
|
|
|
973 |
- destination_pin
|
| 4630 |
mandeep.dh |
974 |
- type
|
| 483 |
rajveer |
975 |
"""
|
|
|
976 |
|
|
|
977 |
thrift_spec = (
|
|
|
978 |
None, # 0
|
| 647 |
chandransh |
979 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
980 |
(2, TType.STRING, 'destination_pin', None, None, ), # 2
|
| 4630 |
mandeep.dh |
981 |
(3, TType.I32, 'type', None, None, ), # 3
|
| 483 |
rajveer |
982 |
)
|
|
|
983 |
|
| 4630 |
mandeep.dh |
984 |
def __init__(self, itemId=None, destination_pin=None, type=None,):
|
| 647 |
chandransh |
985 |
self.itemId = itemId
|
|
|
986 |
self.destination_pin = destination_pin
|
| 4630 |
mandeep.dh |
987 |
self.type = type
|
| 483 |
rajveer |
988 |
|
|
|
989 |
def read(self, iprot):
|
|
|
990 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
991 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
992 |
return
|
|
|
993 |
iprot.readStructBegin()
|
|
|
994 |
while True:
|
|
|
995 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
996 |
if ftype == TType.STOP:
|
|
|
997 |
break
|
|
|
998 |
if fid == 1:
|
| 647 |
chandransh |
999 |
if ftype == TType.I64:
|
|
|
1000 |
self.itemId = iprot.readI64();
|
| 483 |
rajveer |
1001 |
else:
|
|
|
1002 |
iprot.skip(ftype)
|
|
|
1003 |
elif fid == 2:
|
|
|
1004 |
if ftype == TType.STRING:
|
| 647 |
chandransh |
1005 |
self.destination_pin = iprot.readString();
|
| 483 |
rajveer |
1006 |
else:
|
|
|
1007 |
iprot.skip(ftype)
|
| 4630 |
mandeep.dh |
1008 |
elif fid == 3:
|
|
|
1009 |
if ftype == TType.I32:
|
|
|
1010 |
self.type = iprot.readI32();
|
|
|
1011 |
else:
|
|
|
1012 |
iprot.skip(ftype)
|
| 483 |
rajveer |
1013 |
else:
|
|
|
1014 |
iprot.skip(ftype)
|
|
|
1015 |
iprot.readFieldEnd()
|
|
|
1016 |
iprot.readStructEnd()
|
|
|
1017 |
|
|
|
1018 |
def write(self, oprot):
|
|
|
1019 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1020 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1021 |
return
|
| 647 |
chandransh |
1022 |
oprot.writeStructBegin('getLogisticsEstimation_args')
|
| 3431 |
rajveer |
1023 |
if self.itemId is not None:
|
| 647 |
chandransh |
1024 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
1025 |
oprot.writeI64(self.itemId)
|
| 483 |
rajveer |
1026 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1027 |
if self.destination_pin is not None:
|
| 647 |
chandransh |
1028 |
oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
|
|
|
1029 |
oprot.writeString(self.destination_pin)
|
| 483 |
rajveer |
1030 |
oprot.writeFieldEnd()
|
| 4630 |
mandeep.dh |
1031 |
if self.type is not None:
|
|
|
1032 |
oprot.writeFieldBegin('type', TType.I32, 3)
|
|
|
1033 |
oprot.writeI32(self.type)
|
|
|
1034 |
oprot.writeFieldEnd()
|
| 483 |
rajveer |
1035 |
oprot.writeFieldStop()
|
|
|
1036 |
oprot.writeStructEnd()
|
|
|
1037 |
|
| 3431 |
rajveer |
1038 |
def validate(self):
|
|
|
1039 |
return
|
|
|
1040 |
|
|
|
1041 |
|
| 483 |
rajveer |
1042 |
def __repr__(self):
|
|
|
1043 |
L = ['%s=%r' % (key, value)
|
|
|
1044 |
for key, value in self.__dict__.iteritems()]
|
|
|
1045 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1046 |
|
|
|
1047 |
def __eq__(self, other):
|
|
|
1048 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1049 |
|
|
|
1050 |
def __ne__(self, other):
|
|
|
1051 |
return not (self == other)
|
|
|
1052 |
|
| 647 |
chandransh |
1053 |
class getLogisticsEstimation_result:
|
| 483 |
rajveer |
1054 |
"""
|
|
|
1055 |
Attributes:
|
|
|
1056 |
- success
|
|
|
1057 |
- se
|
|
|
1058 |
"""
|
|
|
1059 |
|
|
|
1060 |
thrift_spec = (
|
|
|
1061 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
|
|
1062 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1063 |
)
|
|
|
1064 |
|
|
|
1065 |
def __init__(self, success=None, se=None,):
|
|
|
1066 |
self.success = success
|
|
|
1067 |
self.se = se
|
|
|
1068 |
|
|
|
1069 |
def read(self, iprot):
|
|
|
1070 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1071 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1072 |
return
|
|
|
1073 |
iprot.readStructBegin()
|
|
|
1074 |
while True:
|
|
|
1075 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1076 |
if ftype == TType.STOP:
|
|
|
1077 |
break
|
|
|
1078 |
if fid == 0:
|
|
|
1079 |
if ftype == TType.STRUCT:
|
|
|
1080 |
self.success = LogisticsInfo()
|
|
|
1081 |
self.success.read(iprot)
|
|
|
1082 |
else:
|
|
|
1083 |
iprot.skip(ftype)
|
|
|
1084 |
elif fid == 1:
|
|
|
1085 |
if ftype == TType.STRUCT:
|
|
|
1086 |
self.se = LogisticsServiceException()
|
|
|
1087 |
self.se.read(iprot)
|
|
|
1088 |
else:
|
|
|
1089 |
iprot.skip(ftype)
|
|
|
1090 |
else:
|
|
|
1091 |
iprot.skip(ftype)
|
|
|
1092 |
iprot.readFieldEnd()
|
|
|
1093 |
iprot.readStructEnd()
|
|
|
1094 |
|
|
|
1095 |
def write(self, oprot):
|
|
|
1096 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1097 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1098 |
return
|
| 647 |
chandransh |
1099 |
oprot.writeStructBegin('getLogisticsEstimation_result')
|
| 3431 |
rajveer |
1100 |
if self.success is not None:
|
| 483 |
rajveer |
1101 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1102 |
self.success.write(oprot)
|
|
|
1103 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1104 |
if self.se is not None:
|
| 483 |
rajveer |
1105 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1106 |
self.se.write(oprot)
|
|
|
1107 |
oprot.writeFieldEnd()
|
|
|
1108 |
oprot.writeFieldStop()
|
|
|
1109 |
oprot.writeStructEnd()
|
|
|
1110 |
|
| 3431 |
rajveer |
1111 |
def validate(self):
|
|
|
1112 |
return
|
|
|
1113 |
|
|
|
1114 |
|
| 483 |
rajveer |
1115 |
def __repr__(self):
|
|
|
1116 |
L = ['%s=%r' % (key, value)
|
|
|
1117 |
for key, value in self.__dict__.iteritems()]
|
|
|
1118 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1119 |
|
|
|
1120 |
def __eq__(self, other):
|
|
|
1121 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1122 |
|
|
|
1123 |
def __ne__(self, other):
|
|
|
1124 |
return not (self == other)
|
|
|
1125 |
|
| 647 |
chandransh |
1126 |
class getLogisticsInfo_args:
|
| 472 |
rajveer |
1127 |
"""
|
|
|
1128 |
Attributes:
|
| 647 |
chandransh |
1129 |
- destination_pincode
|
|
|
1130 |
- item_id
|
| 3044 |
chandransh |
1131 |
- type
|
| 472 |
rajveer |
1132 |
"""
|
|
|
1133 |
|
|
|
1134 |
thrift_spec = (
|
|
|
1135 |
None, # 0
|
| 647 |
chandransh |
1136 |
(1, TType.STRING, 'destination_pincode', None, None, ), # 1
|
| 716 |
rajveer |
1137 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
| 3044 |
chandransh |
1138 |
(3, TType.I32, 'type', None, None, ), # 3
|
| 472 |
rajveer |
1139 |
)
|
|
|
1140 |
|
| 3044 |
chandransh |
1141 |
def __init__(self, destination_pincode=None, item_id=None, type=None,):
|
| 647 |
chandransh |
1142 |
self.destination_pincode = destination_pincode
|
|
|
1143 |
self.item_id = item_id
|
| 3044 |
chandransh |
1144 |
self.type = type
|
| 472 |
rajveer |
1145 |
|
|
|
1146 |
def read(self, iprot):
|
|
|
1147 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1148 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1149 |
return
|
|
|
1150 |
iprot.readStructBegin()
|
|
|
1151 |
while True:
|
|
|
1152 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1153 |
if ftype == TType.STOP:
|
|
|
1154 |
break
|
|
|
1155 |
if fid == 1:
|
| 647 |
chandransh |
1156 |
if ftype == TType.STRING:
|
|
|
1157 |
self.destination_pincode = iprot.readString();
|
| 472 |
rajveer |
1158 |
else:
|
|
|
1159 |
iprot.skip(ftype)
|
|
|
1160 |
elif fid == 2:
|
| 716 |
rajveer |
1161 |
if ftype == TType.I64:
|
|
|
1162 |
self.item_id = iprot.readI64();
|
| 472 |
rajveer |
1163 |
else:
|
|
|
1164 |
iprot.skip(ftype)
|
| 3044 |
chandransh |
1165 |
elif fid == 3:
|
|
|
1166 |
if ftype == TType.I32:
|
|
|
1167 |
self.type = iprot.readI32();
|
|
|
1168 |
else:
|
|
|
1169 |
iprot.skip(ftype)
|
| 472 |
rajveer |
1170 |
else:
|
|
|
1171 |
iprot.skip(ftype)
|
|
|
1172 |
iprot.readFieldEnd()
|
|
|
1173 |
iprot.readStructEnd()
|
|
|
1174 |
|
|
|
1175 |
def write(self, oprot):
|
|
|
1176 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1177 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1178 |
return
|
| 647 |
chandransh |
1179 |
oprot.writeStructBegin('getLogisticsInfo_args')
|
| 3431 |
rajveer |
1180 |
if self.destination_pincode is not None:
|
| 647 |
chandransh |
1181 |
oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
|
|
|
1182 |
oprot.writeString(self.destination_pincode)
|
| 472 |
rajveer |
1183 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1184 |
if self.item_id is not None:
|
| 716 |
rajveer |
1185 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
1186 |
oprot.writeI64(self.item_id)
|
| 472 |
rajveer |
1187 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1188 |
if self.type is not None:
|
| 3044 |
chandransh |
1189 |
oprot.writeFieldBegin('type', TType.I32, 3)
|
|
|
1190 |
oprot.writeI32(self.type)
|
|
|
1191 |
oprot.writeFieldEnd()
|
| 472 |
rajveer |
1192 |
oprot.writeFieldStop()
|
|
|
1193 |
oprot.writeStructEnd()
|
|
|
1194 |
|
| 3431 |
rajveer |
1195 |
def validate(self):
|
|
|
1196 |
return
|
|
|
1197 |
|
|
|
1198 |
|
| 472 |
rajveer |
1199 |
def __repr__(self):
|
|
|
1200 |
L = ['%s=%r' % (key, value)
|
|
|
1201 |
for key, value in self.__dict__.iteritems()]
|
|
|
1202 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1203 |
|
|
|
1204 |
def __eq__(self, other):
|
|
|
1205 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1206 |
|
|
|
1207 |
def __ne__(self, other):
|
|
|
1208 |
return not (self == other)
|
|
|
1209 |
|
| 647 |
chandransh |
1210 |
class getLogisticsInfo_result:
|
| 472 |
rajveer |
1211 |
"""
|
|
|
1212 |
Attributes:
|
|
|
1213 |
- success
|
|
|
1214 |
- se
|
|
|
1215 |
"""
|
|
|
1216 |
|
|
|
1217 |
thrift_spec = (
|
| 644 |
chandransh |
1218 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
| 472 |
rajveer |
1219 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1220 |
)
|
|
|
1221 |
|
|
|
1222 |
def __init__(self, success=None, se=None,):
|
|
|
1223 |
self.success = success
|
|
|
1224 |
self.se = se
|
|
|
1225 |
|
|
|
1226 |
def read(self, iprot):
|
|
|
1227 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1228 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1229 |
return
|
|
|
1230 |
iprot.readStructBegin()
|
|
|
1231 |
while True:
|
|
|
1232 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1233 |
if ftype == TType.STOP:
|
|
|
1234 |
break
|
|
|
1235 |
if fid == 0:
|
|
|
1236 |
if ftype == TType.STRUCT:
|
| 644 |
chandransh |
1237 |
self.success = LogisticsInfo()
|
| 472 |
rajveer |
1238 |
self.success.read(iprot)
|
|
|
1239 |
else:
|
|
|
1240 |
iprot.skip(ftype)
|
|
|
1241 |
elif fid == 1:
|
|
|
1242 |
if ftype == TType.STRUCT:
|
|
|
1243 |
self.se = LogisticsServiceException()
|
|
|
1244 |
self.se.read(iprot)
|
|
|
1245 |
else:
|
|
|
1246 |
iprot.skip(ftype)
|
|
|
1247 |
else:
|
|
|
1248 |
iprot.skip(ftype)
|
|
|
1249 |
iprot.readFieldEnd()
|
|
|
1250 |
iprot.readStructEnd()
|
|
|
1251 |
|
|
|
1252 |
def write(self, oprot):
|
|
|
1253 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1254 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1255 |
return
|
| 647 |
chandransh |
1256 |
oprot.writeStructBegin('getLogisticsInfo_result')
|
| 3431 |
rajveer |
1257 |
if self.success is not None:
|
| 472 |
rajveer |
1258 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1259 |
self.success.write(oprot)
|
|
|
1260 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1261 |
if self.se is not None:
|
| 472 |
rajveer |
1262 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1263 |
self.se.write(oprot)
|
|
|
1264 |
oprot.writeFieldEnd()
|
|
|
1265 |
oprot.writeFieldStop()
|
|
|
1266 |
oprot.writeStructEnd()
|
|
|
1267 |
|
| 3431 |
rajveer |
1268 |
def validate(self):
|
|
|
1269 |
return
|
|
|
1270 |
|
|
|
1271 |
|
| 472 |
rajveer |
1272 |
def __repr__(self):
|
|
|
1273 |
L = ['%s=%r' % (key, value)
|
|
|
1274 |
for key, value in self.__dict__.iteritems()]
|
|
|
1275 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1276 |
|
|
|
1277 |
def __eq__(self, other):
|
|
|
1278 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1279 |
|
|
|
1280 |
def __ne__(self, other):
|
|
|
1281 |
return not (self == other)
|
|
|
1282 |
|
| 412 |
ashish |
1283 |
class getEmptyAWB_args:
|
|
|
1284 |
"""
|
|
|
1285 |
Attributes:
|
| 647 |
chandransh |
1286 |
- providerId
|
| 5247 |
rajveer |
1287 |
- type
|
| 412 |
ashish |
1288 |
"""
|
|
|
1289 |
|
| 5247 |
rajveer |
1290 |
thrift_spec = None
|
|
|
1291 |
def __init__(self, providerId=None, type=None,):
|
| 647 |
chandransh |
1292 |
self.providerId = providerId
|
| 5247 |
rajveer |
1293 |
self.type = type
|
| 412 |
ashish |
1294 |
|
|
|
1295 |
def read(self, iprot):
|
|
|
1296 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1297 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1298 |
return
|
|
|
1299 |
iprot.readStructBegin()
|
|
|
1300 |
while True:
|
|
|
1301 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1302 |
if ftype == TType.STOP:
|
|
|
1303 |
break
|
|
|
1304 |
if fid == 1:
|
|
|
1305 |
if ftype == TType.I64:
|
| 647 |
chandransh |
1306 |
self.providerId = iprot.readI64();
|
| 412 |
ashish |
1307 |
else:
|
|
|
1308 |
iprot.skip(ftype)
|
| 5247 |
rajveer |
1309 |
elif fid == -1:
|
|
|
1310 |
if ftype == TType.I32:
|
|
|
1311 |
self.type = iprot.readI32();
|
|
|
1312 |
else:
|
|
|
1313 |
iprot.skip(ftype)
|
| 412 |
ashish |
1314 |
else:
|
|
|
1315 |
iprot.skip(ftype)
|
|
|
1316 |
iprot.readFieldEnd()
|
|
|
1317 |
iprot.readStructEnd()
|
|
|
1318 |
|
|
|
1319 |
def write(self, oprot):
|
|
|
1320 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1321 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1322 |
return
|
|
|
1323 |
oprot.writeStructBegin('getEmptyAWB_args')
|
| 5247 |
rajveer |
1324 |
if self.type is not None:
|
|
|
1325 |
oprot.writeFieldBegin('type', TType.I32, -1)
|
|
|
1326 |
oprot.writeI32(self.type)
|
|
|
1327 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1328 |
if self.providerId is not None:
|
| 647 |
chandransh |
1329 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1330 |
oprot.writeI64(self.providerId)
|
| 412 |
ashish |
1331 |
oprot.writeFieldEnd()
|
|
|
1332 |
oprot.writeFieldStop()
|
|
|
1333 |
oprot.writeStructEnd()
|
|
|
1334 |
|
| 3431 |
rajveer |
1335 |
def validate(self):
|
|
|
1336 |
return
|
|
|
1337 |
|
|
|
1338 |
|
| 412 |
ashish |
1339 |
def __repr__(self):
|
|
|
1340 |
L = ['%s=%r' % (key, value)
|
|
|
1341 |
for key, value in self.__dict__.iteritems()]
|
|
|
1342 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1343 |
|
|
|
1344 |
def __eq__(self, other):
|
|
|
1345 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1346 |
|
|
|
1347 |
def __ne__(self, other):
|
|
|
1348 |
return not (self == other)
|
|
|
1349 |
|
|
|
1350 |
class getEmptyAWB_result:
|
|
|
1351 |
"""
|
|
|
1352 |
Attributes:
|
|
|
1353 |
- success
|
| 647 |
chandransh |
1354 |
- se
|
| 412 |
ashish |
1355 |
"""
|
|
|
1356 |
|
|
|
1357 |
thrift_spec = (
|
|
|
1358 |
(0, TType.STRING, 'success', None, None, ), # 0
|
| 647 |
chandransh |
1359 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
1360 |
)
|
|
|
1361 |
|
| 647 |
chandransh |
1362 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
1363 |
self.success = success
|
| 647 |
chandransh |
1364 |
self.se = se
|
| 412 |
ashish |
1365 |
|
|
|
1366 |
def read(self, iprot):
|
|
|
1367 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1368 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1369 |
return
|
|
|
1370 |
iprot.readStructBegin()
|
|
|
1371 |
while True:
|
|
|
1372 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1373 |
if ftype == TType.STOP:
|
|
|
1374 |
break
|
|
|
1375 |
if fid == 0:
|
|
|
1376 |
if ftype == TType.STRING:
|
|
|
1377 |
self.success = iprot.readString();
|
|
|
1378 |
else:
|
|
|
1379 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1380 |
elif fid == 1:
|
|
|
1381 |
if ftype == TType.STRUCT:
|
|
|
1382 |
self.se = LogisticsServiceException()
|
|
|
1383 |
self.se.read(iprot)
|
|
|
1384 |
else:
|
|
|
1385 |
iprot.skip(ftype)
|
| 412 |
ashish |
1386 |
else:
|
|
|
1387 |
iprot.skip(ftype)
|
|
|
1388 |
iprot.readFieldEnd()
|
|
|
1389 |
iprot.readStructEnd()
|
|
|
1390 |
|
|
|
1391 |
def write(self, oprot):
|
|
|
1392 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1393 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1394 |
return
|
|
|
1395 |
oprot.writeStructBegin('getEmptyAWB_result')
|
| 3431 |
rajveer |
1396 |
if self.success is not None:
|
| 412 |
ashish |
1397 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
1398 |
oprot.writeString(self.success)
|
|
|
1399 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1400 |
if self.se is not None:
|
| 647 |
chandransh |
1401 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1402 |
self.se.write(oprot)
|
|
|
1403 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1404 |
oprot.writeFieldStop()
|
|
|
1405 |
oprot.writeStructEnd()
|
|
|
1406 |
|
| 3431 |
rajveer |
1407 |
def validate(self):
|
|
|
1408 |
return
|
|
|
1409 |
|
|
|
1410 |
|
| 412 |
ashish |
1411 |
def __repr__(self):
|
|
|
1412 |
L = ['%s=%r' % (key, value)
|
|
|
1413 |
for key, value in self.__dict__.iteritems()]
|
|
|
1414 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1415 |
|
|
|
1416 |
def __eq__(self, other):
|
|
|
1417 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1418 |
|
|
|
1419 |
def __ne__(self, other):
|
|
|
1420 |
return not (self == other)
|
|
|
1421 |
|
|
|
1422 |
class getShipmentInfo_args:
|
|
|
1423 |
"""
|
|
|
1424 |
Attributes:
|
|
|
1425 |
- awb
|
| 647 |
chandransh |
1426 |
- providerId
|
| 412 |
ashish |
1427 |
"""
|
|
|
1428 |
|
|
|
1429 |
thrift_spec = (
|
|
|
1430 |
None, # 0
|
|
|
1431 |
(1, TType.STRING, 'awb', None, None, ), # 1
|
| 647 |
chandransh |
1432 |
(2, TType.I64, 'providerId', None, None, ), # 2
|
| 412 |
ashish |
1433 |
)
|
|
|
1434 |
|
| 647 |
chandransh |
1435 |
def __init__(self, awb=None, providerId=None,):
|
| 412 |
ashish |
1436 |
self.awb = awb
|
| 647 |
chandransh |
1437 |
self.providerId = providerId
|
| 412 |
ashish |
1438 |
|
|
|
1439 |
def read(self, iprot):
|
|
|
1440 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1441 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1442 |
return
|
|
|
1443 |
iprot.readStructBegin()
|
|
|
1444 |
while True:
|
|
|
1445 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1446 |
if ftype == TType.STOP:
|
|
|
1447 |
break
|
|
|
1448 |
if fid == 1:
|
|
|
1449 |
if ftype == TType.STRING:
|
|
|
1450 |
self.awb = iprot.readString();
|
|
|
1451 |
else:
|
|
|
1452 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1453 |
elif fid == 2:
|
|
|
1454 |
if ftype == TType.I64:
|
|
|
1455 |
self.providerId = iprot.readI64();
|
|
|
1456 |
else:
|
|
|
1457 |
iprot.skip(ftype)
|
| 412 |
ashish |
1458 |
else:
|
|
|
1459 |
iprot.skip(ftype)
|
|
|
1460 |
iprot.readFieldEnd()
|
|
|
1461 |
iprot.readStructEnd()
|
|
|
1462 |
|
|
|
1463 |
def write(self, oprot):
|
|
|
1464 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1465 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1466 |
return
|
|
|
1467 |
oprot.writeStructBegin('getShipmentInfo_args')
|
| 3431 |
rajveer |
1468 |
if self.awb is not None:
|
| 412 |
ashish |
1469 |
oprot.writeFieldBegin('awb', TType.STRING, 1)
|
|
|
1470 |
oprot.writeString(self.awb)
|
|
|
1471 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1472 |
if self.providerId is not None:
|
| 647 |
chandransh |
1473 |
oprot.writeFieldBegin('providerId', TType.I64, 2)
|
|
|
1474 |
oprot.writeI64(self.providerId)
|
|
|
1475 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1476 |
oprot.writeFieldStop()
|
|
|
1477 |
oprot.writeStructEnd()
|
|
|
1478 |
|
| 3431 |
rajveer |
1479 |
def validate(self):
|
|
|
1480 |
return
|
|
|
1481 |
|
|
|
1482 |
|
| 412 |
ashish |
1483 |
def __repr__(self):
|
|
|
1484 |
L = ['%s=%r' % (key, value)
|
|
|
1485 |
for key, value in self.__dict__.iteritems()]
|
|
|
1486 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1487 |
|
|
|
1488 |
def __eq__(self, other):
|
|
|
1489 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1490 |
|
|
|
1491 |
def __ne__(self, other):
|
|
|
1492 |
return not (self == other)
|
|
|
1493 |
|
|
|
1494 |
class getShipmentInfo_result:
|
|
|
1495 |
"""
|
|
|
1496 |
Attributes:
|
|
|
1497 |
- success
|
| 647 |
chandransh |
1498 |
- se
|
| 412 |
ashish |
1499 |
"""
|
|
|
1500 |
|
|
|
1501 |
thrift_spec = (
|
| 644 |
chandransh |
1502 |
(0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
|
| 647 |
chandransh |
1503 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
1504 |
)
|
|
|
1505 |
|
| 647 |
chandransh |
1506 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
1507 |
self.success = success
|
| 647 |
chandransh |
1508 |
self.se = se
|
| 412 |
ashish |
1509 |
|
|
|
1510 |
def read(self, iprot):
|
|
|
1511 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1512 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1513 |
return
|
|
|
1514 |
iprot.readStructBegin()
|
|
|
1515 |
while True:
|
|
|
1516 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1517 |
if ftype == TType.STOP:
|
|
|
1518 |
break
|
|
|
1519 |
if fid == 0:
|
|
|
1520 |
if ftype == TType.LIST:
|
|
|
1521 |
self.success = []
|
| 3044 |
chandransh |
1522 |
(_etype19, _size16) = iprot.readListBegin()
|
|
|
1523 |
for _i20 in xrange(_size16):
|
|
|
1524 |
_elem21 = AwbUpdate()
|
|
|
1525 |
_elem21.read(iprot)
|
|
|
1526 |
self.success.append(_elem21)
|
| 412 |
ashish |
1527 |
iprot.readListEnd()
|
|
|
1528 |
else:
|
|
|
1529 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1530 |
elif fid == 1:
|
|
|
1531 |
if ftype == TType.STRUCT:
|
|
|
1532 |
self.se = LogisticsServiceException()
|
|
|
1533 |
self.se.read(iprot)
|
|
|
1534 |
else:
|
|
|
1535 |
iprot.skip(ftype)
|
| 412 |
ashish |
1536 |
else:
|
|
|
1537 |
iprot.skip(ftype)
|
|
|
1538 |
iprot.readFieldEnd()
|
|
|
1539 |
iprot.readStructEnd()
|
|
|
1540 |
|
|
|
1541 |
def write(self, oprot):
|
|
|
1542 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1543 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1544 |
return
|
| 644 |
chandransh |
1545 |
oprot.writeStructBegin('getShipmentInfo_result')
|
| 3431 |
rajveer |
1546 |
if self.success is not None:
|
| 412 |
ashish |
1547 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1548 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 3044 |
chandransh |
1549 |
for iter22 in self.success:
|
|
|
1550 |
iter22.write(oprot)
|
| 412 |
ashish |
1551 |
oprot.writeListEnd()
|
|
|
1552 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1553 |
if self.se is not None:
|
| 647 |
chandransh |
1554 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1555 |
self.se.write(oprot)
|
|
|
1556 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1557 |
oprot.writeFieldStop()
|
|
|
1558 |
oprot.writeStructEnd()
|
|
|
1559 |
|
| 3431 |
rajveer |
1560 |
def validate(self):
|
|
|
1561 |
return
|
|
|
1562 |
|
|
|
1563 |
|
| 412 |
ashish |
1564 |
def __repr__(self):
|
|
|
1565 |
L = ['%s=%r' % (key, value)
|
|
|
1566 |
for key, value in self.__dict__.iteritems()]
|
|
|
1567 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1568 |
|
|
|
1569 |
def __eq__(self, other):
|
|
|
1570 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1571 |
|
|
|
1572 |
def __ne__(self, other):
|
|
|
1573 |
return not (self == other)
|
|
|
1574 |
|
| 732 |
chandransh |
1575 |
class getDestinationCode_args:
|
|
|
1576 |
"""
|
|
|
1577 |
Attributes:
|
|
|
1578 |
- providerId
|
|
|
1579 |
- pinCode
|
|
|
1580 |
"""
|
| 412 |
ashish |
1581 |
|
| 732 |
chandransh |
1582 |
thrift_spec = (
|
|
|
1583 |
None, # 0
|
|
|
1584 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
1585 |
(2, TType.STRING, 'pinCode', None, None, ), # 2
|
|
|
1586 |
)
|
|
|
1587 |
|
|
|
1588 |
def __init__(self, providerId=None, pinCode=None,):
|
|
|
1589 |
self.providerId = providerId
|
|
|
1590 |
self.pinCode = pinCode
|
|
|
1591 |
|
|
|
1592 |
def read(self, iprot):
|
|
|
1593 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1594 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1595 |
return
|
|
|
1596 |
iprot.readStructBegin()
|
|
|
1597 |
while True:
|
|
|
1598 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1599 |
if ftype == TType.STOP:
|
|
|
1600 |
break
|
|
|
1601 |
if fid == 1:
|
|
|
1602 |
if ftype == TType.I64:
|
|
|
1603 |
self.providerId = iprot.readI64();
|
|
|
1604 |
else:
|
|
|
1605 |
iprot.skip(ftype)
|
|
|
1606 |
elif fid == 2:
|
|
|
1607 |
if ftype == TType.STRING:
|
|
|
1608 |
self.pinCode = iprot.readString();
|
|
|
1609 |
else:
|
|
|
1610 |
iprot.skip(ftype)
|
|
|
1611 |
else:
|
|
|
1612 |
iprot.skip(ftype)
|
|
|
1613 |
iprot.readFieldEnd()
|
|
|
1614 |
iprot.readStructEnd()
|
|
|
1615 |
|
|
|
1616 |
def write(self, oprot):
|
|
|
1617 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1618 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1619 |
return
|
|
|
1620 |
oprot.writeStructBegin('getDestinationCode_args')
|
| 3431 |
rajveer |
1621 |
if self.providerId is not None:
|
| 732 |
chandransh |
1622 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1623 |
oprot.writeI64(self.providerId)
|
|
|
1624 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1625 |
if self.pinCode is not None:
|
| 732 |
chandransh |
1626 |
oprot.writeFieldBegin('pinCode', TType.STRING, 2)
|
|
|
1627 |
oprot.writeString(self.pinCode)
|
|
|
1628 |
oprot.writeFieldEnd()
|
|
|
1629 |
oprot.writeFieldStop()
|
|
|
1630 |
oprot.writeStructEnd()
|
|
|
1631 |
|
| 3431 |
rajveer |
1632 |
def validate(self):
|
|
|
1633 |
return
|
|
|
1634 |
|
|
|
1635 |
|
| 732 |
chandransh |
1636 |
def __repr__(self):
|
|
|
1637 |
L = ['%s=%r' % (key, value)
|
|
|
1638 |
for key, value in self.__dict__.iteritems()]
|
|
|
1639 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1640 |
|
|
|
1641 |
def __eq__(self, other):
|
|
|
1642 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1643 |
|
|
|
1644 |
def __ne__(self, other):
|
|
|
1645 |
return not (self == other)
|
|
|
1646 |
|
|
|
1647 |
class getDestinationCode_result:
|
|
|
1648 |
"""
|
|
|
1649 |
Attributes:
|
|
|
1650 |
- success
|
|
|
1651 |
- se
|
|
|
1652 |
"""
|
|
|
1653 |
|
|
|
1654 |
thrift_spec = (
|
|
|
1655 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
1656 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1657 |
)
|
|
|
1658 |
|
|
|
1659 |
def __init__(self, success=None, se=None,):
|
|
|
1660 |
self.success = success
|
|
|
1661 |
self.se = se
|
|
|
1662 |
|
|
|
1663 |
def read(self, iprot):
|
|
|
1664 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1665 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1666 |
return
|
|
|
1667 |
iprot.readStructBegin()
|
|
|
1668 |
while True:
|
|
|
1669 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1670 |
if ftype == TType.STOP:
|
|
|
1671 |
break
|
|
|
1672 |
if fid == 0:
|
|
|
1673 |
if ftype == TType.STRING:
|
|
|
1674 |
self.success = iprot.readString();
|
|
|
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('getDestinationCode_result')
|
| 3431 |
rajveer |
1693 |
if self.success is not None:
|
| 732 |
chandransh |
1694 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
1695 |
oprot.writeString(self.success)
|
|
|
1696 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1697 |
if self.se is not None:
|
| 732 |
chandransh |
1698 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1699 |
self.se.write(oprot)
|
|
|
1700 |
oprot.writeFieldEnd()
|
|
|
1701 |
oprot.writeFieldStop()
|
|
|
1702 |
oprot.writeStructEnd()
|
|
|
1703 |
|
| 3431 |
rajveer |
1704 |
def validate(self):
|
|
|
1705 |
return
|
|
|
1706 |
|
|
|
1707 |
|
| 732 |
chandransh |
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 |
|
| 1137 |
chandransh |
1719 |
class getFreeAwbCount_args:
|
|
|
1720 |
"""
|
|
|
1721 |
Attributes:
|
|
|
1722 |
- providerId
|
| 3103 |
chandransh |
1723 |
- type
|
| 1137 |
chandransh |
1724 |
"""
|
| 732 |
chandransh |
1725 |
|
| 1137 |
chandransh |
1726 |
thrift_spec = (
|
|
|
1727 |
None, # 0
|
|
|
1728 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
| 3103 |
chandransh |
1729 |
(2, TType.STRING, 'type', None, None, ), # 2
|
| 1137 |
chandransh |
1730 |
)
|
|
|
1731 |
|
| 3103 |
chandransh |
1732 |
def __init__(self, providerId=None, type=None,):
|
| 1137 |
chandransh |
1733 |
self.providerId = providerId
|
| 3103 |
chandransh |
1734 |
self.type = type
|
| 1137 |
chandransh |
1735 |
|
|
|
1736 |
def read(self, iprot):
|
|
|
1737 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1738 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1739 |
return
|
|
|
1740 |
iprot.readStructBegin()
|
|
|
1741 |
while True:
|
|
|
1742 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1743 |
if ftype == TType.STOP:
|
|
|
1744 |
break
|
|
|
1745 |
if fid == 1:
|
|
|
1746 |
if ftype == TType.I64:
|
|
|
1747 |
self.providerId = iprot.readI64();
|
|
|
1748 |
else:
|
|
|
1749 |
iprot.skip(ftype)
|
| 3103 |
chandransh |
1750 |
elif fid == 2:
|
|
|
1751 |
if ftype == TType.STRING:
|
|
|
1752 |
self.type = iprot.readString();
|
|
|
1753 |
else:
|
|
|
1754 |
iprot.skip(ftype)
|
| 1137 |
chandransh |
1755 |
else:
|
|
|
1756 |
iprot.skip(ftype)
|
|
|
1757 |
iprot.readFieldEnd()
|
|
|
1758 |
iprot.readStructEnd()
|
|
|
1759 |
|
|
|
1760 |
def write(self, oprot):
|
|
|
1761 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1762 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1763 |
return
|
|
|
1764 |
oprot.writeStructBegin('getFreeAwbCount_args')
|
| 3431 |
rajveer |
1765 |
if self.providerId is not None:
|
| 1137 |
chandransh |
1766 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1767 |
oprot.writeI64(self.providerId)
|
|
|
1768 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1769 |
if self.type is not None:
|
| 3103 |
chandransh |
1770 |
oprot.writeFieldBegin('type', TType.STRING, 2)
|
|
|
1771 |
oprot.writeString(self.type)
|
|
|
1772 |
oprot.writeFieldEnd()
|
| 1137 |
chandransh |
1773 |
oprot.writeFieldStop()
|
|
|
1774 |
oprot.writeStructEnd()
|
|
|
1775 |
|
| 3431 |
rajveer |
1776 |
def validate(self):
|
|
|
1777 |
return
|
|
|
1778 |
|
|
|
1779 |
|
| 1137 |
chandransh |
1780 |
def __repr__(self):
|
|
|
1781 |
L = ['%s=%r' % (key, value)
|
|
|
1782 |
for key, value in self.__dict__.iteritems()]
|
|
|
1783 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1784 |
|
|
|
1785 |
def __eq__(self, other):
|
|
|
1786 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1787 |
|
|
|
1788 |
def __ne__(self, other):
|
|
|
1789 |
return not (self == other)
|
|
|
1790 |
|
|
|
1791 |
class getFreeAwbCount_result:
|
|
|
1792 |
"""
|
|
|
1793 |
Attributes:
|
|
|
1794 |
- success
|
|
|
1795 |
"""
|
|
|
1796 |
|
|
|
1797 |
thrift_spec = (
|
|
|
1798 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1799 |
)
|
|
|
1800 |
|
|
|
1801 |
def __init__(self, success=None,):
|
|
|
1802 |
self.success = success
|
|
|
1803 |
|
|
|
1804 |
def read(self, iprot):
|
|
|
1805 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1806 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1807 |
return
|
|
|
1808 |
iprot.readStructBegin()
|
|
|
1809 |
while True:
|
|
|
1810 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1811 |
if ftype == TType.STOP:
|
|
|
1812 |
break
|
|
|
1813 |
if fid == 0:
|
|
|
1814 |
if ftype == TType.I64:
|
|
|
1815 |
self.success = iprot.readI64();
|
|
|
1816 |
else:
|
|
|
1817 |
iprot.skip(ftype)
|
|
|
1818 |
else:
|
|
|
1819 |
iprot.skip(ftype)
|
|
|
1820 |
iprot.readFieldEnd()
|
|
|
1821 |
iprot.readStructEnd()
|
|
|
1822 |
|
|
|
1823 |
def write(self, oprot):
|
|
|
1824 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1825 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1826 |
return
|
|
|
1827 |
oprot.writeStructBegin('getFreeAwbCount_result')
|
| 3431 |
rajveer |
1828 |
if self.success is not None:
|
| 1137 |
chandransh |
1829 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1830 |
oprot.writeI64(self.success)
|
|
|
1831 |
oprot.writeFieldEnd()
|
|
|
1832 |
oprot.writeFieldStop()
|
|
|
1833 |
oprot.writeStructEnd()
|
|
|
1834 |
|
| 3431 |
rajveer |
1835 |
def validate(self):
|
|
|
1836 |
return
|
|
|
1837 |
|
|
|
1838 |
|
| 1137 |
chandransh |
1839 |
def __repr__(self):
|
|
|
1840 |
L = ['%s=%r' % (key, value)
|
|
|
1841 |
for key, value in self.__dict__.iteritems()]
|
|
|
1842 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1843 |
|
|
|
1844 |
def __eq__(self, other):
|
|
|
1845 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1846 |
|
|
|
1847 |
def __ne__(self, other):
|
|
|
1848 |
return not (self == other)
|
|
|
1849 |
|
| 1730 |
ankur.sing |
1850 |
class getHolidays_args:
|
|
|
1851 |
"""
|
|
|
1852 |
Attributes:
|
|
|
1853 |
- fromDate
|
|
|
1854 |
- toDate
|
|
|
1855 |
"""
|
| 1137 |
chandransh |
1856 |
|
| 1730 |
ankur.sing |
1857 |
thrift_spec = (
|
|
|
1858 |
None, # 0
|
|
|
1859 |
(1, TType.I64, 'fromDate', None, None, ), # 1
|
|
|
1860 |
(2, TType.I64, 'toDate', None, None, ), # 2
|
|
|
1861 |
)
|
|
|
1862 |
|
|
|
1863 |
def __init__(self, fromDate=None, toDate=None,):
|
|
|
1864 |
self.fromDate = fromDate
|
|
|
1865 |
self.toDate = toDate
|
|
|
1866 |
|
|
|
1867 |
def read(self, iprot):
|
|
|
1868 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1869 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1870 |
return
|
|
|
1871 |
iprot.readStructBegin()
|
|
|
1872 |
while True:
|
|
|
1873 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1874 |
if ftype == TType.STOP:
|
|
|
1875 |
break
|
|
|
1876 |
if fid == 1:
|
|
|
1877 |
if ftype == TType.I64:
|
|
|
1878 |
self.fromDate = iprot.readI64();
|
|
|
1879 |
else:
|
|
|
1880 |
iprot.skip(ftype)
|
|
|
1881 |
elif fid == 2:
|
|
|
1882 |
if ftype == TType.I64:
|
|
|
1883 |
self.toDate = iprot.readI64();
|
|
|
1884 |
else:
|
|
|
1885 |
iprot.skip(ftype)
|
|
|
1886 |
else:
|
|
|
1887 |
iprot.skip(ftype)
|
|
|
1888 |
iprot.readFieldEnd()
|
|
|
1889 |
iprot.readStructEnd()
|
|
|
1890 |
|
|
|
1891 |
def write(self, oprot):
|
|
|
1892 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1893 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1894 |
return
|
|
|
1895 |
oprot.writeStructBegin('getHolidays_args')
|
| 3431 |
rajveer |
1896 |
if self.fromDate is not None:
|
| 1730 |
ankur.sing |
1897 |
oprot.writeFieldBegin('fromDate', TType.I64, 1)
|
|
|
1898 |
oprot.writeI64(self.fromDate)
|
|
|
1899 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1900 |
if self.toDate is not None:
|
| 1730 |
ankur.sing |
1901 |
oprot.writeFieldBegin('toDate', TType.I64, 2)
|
|
|
1902 |
oprot.writeI64(self.toDate)
|
|
|
1903 |
oprot.writeFieldEnd()
|
|
|
1904 |
oprot.writeFieldStop()
|
|
|
1905 |
oprot.writeStructEnd()
|
|
|
1906 |
|
| 3431 |
rajveer |
1907 |
def validate(self):
|
|
|
1908 |
return
|
|
|
1909 |
|
|
|
1910 |
|
| 1730 |
ankur.sing |
1911 |
def __repr__(self):
|
|
|
1912 |
L = ['%s=%r' % (key, value)
|
|
|
1913 |
for key, value in self.__dict__.iteritems()]
|
|
|
1914 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1915 |
|
|
|
1916 |
def __eq__(self, other):
|
|
|
1917 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1918 |
|
|
|
1919 |
def __ne__(self, other):
|
|
|
1920 |
return not (self == other)
|
|
|
1921 |
|
|
|
1922 |
class getHolidays_result:
|
|
|
1923 |
"""
|
|
|
1924 |
Attributes:
|
|
|
1925 |
- success
|
|
|
1926 |
"""
|
|
|
1927 |
|
|
|
1928 |
thrift_spec = (
|
|
|
1929 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
1930 |
)
|
|
|
1931 |
|
|
|
1932 |
def __init__(self, success=None,):
|
|
|
1933 |
self.success = success
|
|
|
1934 |
|
|
|
1935 |
def read(self, iprot):
|
|
|
1936 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1937 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1938 |
return
|
|
|
1939 |
iprot.readStructBegin()
|
|
|
1940 |
while True:
|
|
|
1941 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1942 |
if ftype == TType.STOP:
|
|
|
1943 |
break
|
|
|
1944 |
if fid == 0:
|
|
|
1945 |
if ftype == TType.LIST:
|
|
|
1946 |
self.success = []
|
| 3044 |
chandransh |
1947 |
(_etype26, _size23) = iprot.readListBegin()
|
|
|
1948 |
for _i27 in xrange(_size23):
|
|
|
1949 |
_elem28 = iprot.readI64();
|
|
|
1950 |
self.success.append(_elem28)
|
| 1730 |
ankur.sing |
1951 |
iprot.readListEnd()
|
|
|
1952 |
else:
|
|
|
1953 |
iprot.skip(ftype)
|
|
|
1954 |
else:
|
|
|
1955 |
iprot.skip(ftype)
|
|
|
1956 |
iprot.readFieldEnd()
|
|
|
1957 |
iprot.readStructEnd()
|
|
|
1958 |
|
|
|
1959 |
def write(self, oprot):
|
|
|
1960 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1961 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1962 |
return
|
|
|
1963 |
oprot.writeStructBegin('getHolidays_result')
|
| 3431 |
rajveer |
1964 |
if self.success is not None:
|
| 1730 |
ankur.sing |
1965 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1966 |
oprot.writeListBegin(TType.I64, len(self.success))
|
| 3044 |
chandransh |
1967 |
for iter29 in self.success:
|
|
|
1968 |
oprot.writeI64(iter29)
|
| 1730 |
ankur.sing |
1969 |
oprot.writeListEnd()
|
|
|
1970 |
oprot.writeFieldEnd()
|
|
|
1971 |
oprot.writeFieldStop()
|
|
|
1972 |
oprot.writeStructEnd()
|
|
|
1973 |
|
| 3431 |
rajveer |
1974 |
def validate(self):
|
|
|
1975 |
return
|
|
|
1976 |
|
|
|
1977 |
|
| 1730 |
ankur.sing |
1978 |
def __repr__(self):
|
|
|
1979 |
L = ['%s=%r' % (key, value)
|
|
|
1980 |
for key, value in self.__dict__.iteritems()]
|
|
|
1981 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1982 |
|
|
|
1983 |
def __eq__(self, other):
|
|
|
1984 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1985 |
|
|
|
1986 |
def __ne__(self, other):
|
|
|
1987 |
return not (self == other)
|
| 4934 |
amit.gupta |
1988 |
|
|
|
1989 |
class getEntityLogisticsEstimation_args:
|
|
|
1990 |
"""
|
|
|
1991 |
Attributes:
|
|
|
1992 |
- catalogItemId
|
|
|
1993 |
- destination_pin
|
|
|
1994 |
- type
|
|
|
1995 |
"""
|
|
|
1996 |
|
|
|
1997 |
thrift_spec = (
|
|
|
1998 |
None, # 0
|
|
|
1999 |
(1, TType.I64, 'catalogItemId', None, None, ), # 1
|
|
|
2000 |
(2, TType.STRING, 'destination_pin', None, None, ), # 2
|
|
|
2001 |
(3, TType.I32, 'type', None, None, ), # 3
|
|
|
2002 |
)
|
|
|
2003 |
|
|
|
2004 |
def __init__(self, catalogItemId=None, destination_pin=None, type=None,):
|
|
|
2005 |
self.catalogItemId = catalogItemId
|
|
|
2006 |
self.destination_pin = destination_pin
|
|
|
2007 |
self.type = type
|
|
|
2008 |
|
|
|
2009 |
def read(self, iprot):
|
|
|
2010 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2011 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2012 |
return
|
|
|
2013 |
iprot.readStructBegin()
|
|
|
2014 |
while True:
|
|
|
2015 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2016 |
if ftype == TType.STOP:
|
|
|
2017 |
break
|
|
|
2018 |
if fid == 1:
|
|
|
2019 |
if ftype == TType.I64:
|
|
|
2020 |
self.catalogItemId = iprot.readI64();
|
|
|
2021 |
else:
|
|
|
2022 |
iprot.skip(ftype)
|
|
|
2023 |
elif fid == 2:
|
|
|
2024 |
if ftype == TType.STRING:
|
|
|
2025 |
self.destination_pin = iprot.readString();
|
|
|
2026 |
else:
|
|
|
2027 |
iprot.skip(ftype)
|
|
|
2028 |
elif fid == 3:
|
|
|
2029 |
if ftype == TType.I32:
|
|
|
2030 |
self.type = iprot.readI32();
|
|
|
2031 |
else:
|
|
|
2032 |
iprot.skip(ftype)
|
|
|
2033 |
else:
|
|
|
2034 |
iprot.skip(ftype)
|
|
|
2035 |
iprot.readFieldEnd()
|
|
|
2036 |
iprot.readStructEnd()
|
|
|
2037 |
|
|
|
2038 |
def write(self, oprot):
|
|
|
2039 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2040 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2041 |
return
|
|
|
2042 |
oprot.writeStructBegin('getEntityLogisticsEstimation_args')
|
|
|
2043 |
if self.catalogItemId is not None:
|
|
|
2044 |
oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
|
|
|
2045 |
oprot.writeI64(self.catalogItemId)
|
|
|
2046 |
oprot.writeFieldEnd()
|
|
|
2047 |
if self.destination_pin is not None:
|
|
|
2048 |
oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
|
|
|
2049 |
oprot.writeString(self.destination_pin)
|
|
|
2050 |
oprot.writeFieldEnd()
|
|
|
2051 |
if self.type is not None:
|
|
|
2052 |
oprot.writeFieldBegin('type', TType.I32, 3)
|
|
|
2053 |
oprot.writeI32(self.type)
|
|
|
2054 |
oprot.writeFieldEnd()
|
|
|
2055 |
oprot.writeFieldStop()
|
|
|
2056 |
oprot.writeStructEnd()
|
|
|
2057 |
|
|
|
2058 |
def validate(self):
|
|
|
2059 |
return
|
|
|
2060 |
|
|
|
2061 |
|
|
|
2062 |
def __repr__(self):
|
|
|
2063 |
L = ['%s=%r' % (key, value)
|
|
|
2064 |
for key, value in self.__dict__.iteritems()]
|
|
|
2065 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2066 |
|
|
|
2067 |
def __eq__(self, other):
|
|
|
2068 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2069 |
|
|
|
2070 |
def __ne__(self, other):
|
|
|
2071 |
return not (self == other)
|
|
|
2072 |
|
|
|
2073 |
class getEntityLogisticsEstimation_result:
|
|
|
2074 |
"""
|
|
|
2075 |
Attributes:
|
|
|
2076 |
- success
|
|
|
2077 |
- se
|
|
|
2078 |
"""
|
|
|
2079 |
|
|
|
2080 |
thrift_spec = (
|
|
|
2081 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
2082 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
2083 |
)
|
|
|
2084 |
|
|
|
2085 |
def __init__(self, success=None, se=None,):
|
|
|
2086 |
self.success = success
|
|
|
2087 |
self.se = se
|
|
|
2088 |
|
|
|
2089 |
def read(self, iprot):
|
|
|
2090 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2091 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2092 |
return
|
|
|
2093 |
iprot.readStructBegin()
|
|
|
2094 |
while True:
|
|
|
2095 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2096 |
if ftype == TType.STOP:
|
|
|
2097 |
break
|
|
|
2098 |
if fid == 0:
|
|
|
2099 |
if ftype == TType.LIST:
|
|
|
2100 |
self.success = []
|
|
|
2101 |
(_etype33, _size30) = iprot.readListBegin()
|
|
|
2102 |
for _i34 in xrange(_size30):
|
|
|
2103 |
_elem35 = iprot.readI64();
|
|
|
2104 |
self.success.append(_elem35)
|
|
|
2105 |
iprot.readListEnd()
|
|
|
2106 |
else:
|
|
|
2107 |
iprot.skip(ftype)
|
|
|
2108 |
elif fid == 1:
|
|
|
2109 |
if ftype == TType.STRUCT:
|
|
|
2110 |
self.se = LogisticsServiceException()
|
|
|
2111 |
self.se.read(iprot)
|
|
|
2112 |
else:
|
|
|
2113 |
iprot.skip(ftype)
|
|
|
2114 |
else:
|
|
|
2115 |
iprot.skip(ftype)
|
|
|
2116 |
iprot.readFieldEnd()
|
|
|
2117 |
iprot.readStructEnd()
|
|
|
2118 |
|
|
|
2119 |
def write(self, oprot):
|
|
|
2120 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2121 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2122 |
return
|
|
|
2123 |
oprot.writeStructBegin('getEntityLogisticsEstimation_result')
|
|
|
2124 |
if self.success is not None:
|
|
|
2125 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2126 |
oprot.writeListBegin(TType.I64, len(self.success))
|
|
|
2127 |
for iter36 in self.success:
|
|
|
2128 |
oprot.writeI64(iter36)
|
|
|
2129 |
oprot.writeListEnd()
|
|
|
2130 |
oprot.writeFieldEnd()
|
|
|
2131 |
if self.se is not None:
|
|
|
2132 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2133 |
self.se.write(oprot)
|
|
|
2134 |
oprot.writeFieldEnd()
|
|
|
2135 |
oprot.writeFieldStop()
|
|
|
2136 |
oprot.writeStructEnd()
|
|
|
2137 |
|
|
|
2138 |
def validate(self):
|
|
|
2139 |
return
|
|
|
2140 |
|
|
|
2141 |
|
|
|
2142 |
def __repr__(self):
|
|
|
2143 |
L = ['%s=%r' % (key, value)
|
|
|
2144 |
for key, value in self.__dict__.iteritems()]
|
|
|
2145 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2146 |
|
|
|
2147 |
def __eq__(self, other):
|
|
|
2148 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2149 |
|
|
|
2150 |
def __ne__(self, other):
|
|
|
2151 |
return not (self == other)
|
| 5527 |
anupam.sin |
2152 |
|
|
|
2153 |
class getProviderForPickupType_args:
|
|
|
2154 |
"""
|
|
|
2155 |
Attributes:
|
|
|
2156 |
- pickUp
|
|
|
2157 |
"""
|
|
|
2158 |
|
|
|
2159 |
thrift_spec = (
|
|
|
2160 |
None, # 0
|
|
|
2161 |
(1, TType.I64, 'pickUp', None, None, ), # 1
|
|
|
2162 |
)
|
|
|
2163 |
|
|
|
2164 |
def __init__(self, pickUp=None,):
|
|
|
2165 |
self.pickUp = pickUp
|
|
|
2166 |
|
|
|
2167 |
def read(self, iprot):
|
|
|
2168 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2169 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2170 |
return
|
|
|
2171 |
iprot.readStructBegin()
|
|
|
2172 |
while True:
|
|
|
2173 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2174 |
if ftype == TType.STOP:
|
|
|
2175 |
break
|
|
|
2176 |
if fid == 1:
|
|
|
2177 |
if ftype == TType.I64:
|
|
|
2178 |
self.pickUp = iprot.readI64();
|
|
|
2179 |
else:
|
|
|
2180 |
iprot.skip(ftype)
|
|
|
2181 |
else:
|
|
|
2182 |
iprot.skip(ftype)
|
|
|
2183 |
iprot.readFieldEnd()
|
|
|
2184 |
iprot.readStructEnd()
|
|
|
2185 |
|
|
|
2186 |
def write(self, oprot):
|
|
|
2187 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2188 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2189 |
return
|
|
|
2190 |
oprot.writeStructBegin('getProviderForPickupType_args')
|
|
|
2191 |
if self.pickUp is not None:
|
|
|
2192 |
oprot.writeFieldBegin('pickUp', TType.I64, 1)
|
|
|
2193 |
oprot.writeI64(self.pickUp)
|
|
|
2194 |
oprot.writeFieldEnd()
|
|
|
2195 |
oprot.writeFieldStop()
|
|
|
2196 |
oprot.writeStructEnd()
|
|
|
2197 |
|
|
|
2198 |
def validate(self):
|
|
|
2199 |
return
|
|
|
2200 |
|
|
|
2201 |
|
|
|
2202 |
def __repr__(self):
|
|
|
2203 |
L = ['%s=%r' % (key, value)
|
|
|
2204 |
for key, value in self.__dict__.iteritems()]
|
|
|
2205 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2206 |
|
|
|
2207 |
def __eq__(self, other):
|
|
|
2208 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2209 |
|
|
|
2210 |
def __ne__(self, other):
|
|
|
2211 |
return not (self == other)
|
|
|
2212 |
|
|
|
2213 |
class getProviderForPickupType_result:
|
|
|
2214 |
"""
|
|
|
2215 |
Attributes:
|
|
|
2216 |
- success
|
|
|
2217 |
"""
|
|
|
2218 |
|
|
|
2219 |
thrift_spec = (
|
|
|
2220 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
2221 |
)
|
|
|
2222 |
|
|
|
2223 |
def __init__(self, success=None,):
|
|
|
2224 |
self.success = success
|
|
|
2225 |
|
|
|
2226 |
def read(self, iprot):
|
|
|
2227 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2228 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2229 |
return
|
|
|
2230 |
iprot.readStructBegin()
|
|
|
2231 |
while True:
|
|
|
2232 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2233 |
if ftype == TType.STOP:
|
|
|
2234 |
break
|
|
|
2235 |
if fid == 0:
|
|
|
2236 |
if ftype == TType.I64:
|
|
|
2237 |
self.success = iprot.readI64();
|
|
|
2238 |
else:
|
|
|
2239 |
iprot.skip(ftype)
|
|
|
2240 |
else:
|
|
|
2241 |
iprot.skip(ftype)
|
|
|
2242 |
iprot.readFieldEnd()
|
|
|
2243 |
iprot.readStructEnd()
|
|
|
2244 |
|
|
|
2245 |
def write(self, oprot):
|
|
|
2246 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2247 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2248 |
return
|
|
|
2249 |
oprot.writeStructBegin('getProviderForPickupType_result')
|
|
|
2250 |
if self.success is not None:
|
|
|
2251 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
2252 |
oprot.writeI64(self.success)
|
|
|
2253 |
oprot.writeFieldEnd()
|
|
|
2254 |
oprot.writeFieldStop()
|
|
|
2255 |
oprot.writeStructEnd()
|
|
|
2256 |
|
|
|
2257 |
def validate(self):
|
|
|
2258 |
return
|
|
|
2259 |
|
|
|
2260 |
|
|
|
2261 |
def __repr__(self):
|
|
|
2262 |
L = ['%s=%r' % (key, value)
|
|
|
2263 |
for key, value in self.__dict__.iteritems()]
|
|
|
2264 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2265 |
|
|
|
2266 |
def __eq__(self, other):
|
|
|
2267 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2268 |
|
|
|
2269 |
def __ne__(self, other):
|
|
|
2270 |
return not (self == other)
|