| 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 |
|
| 5553 |
rajveer |
135 |
def getAllPickupStores(self, ):
|
|
|
136 |
pass
|
| 5527 |
anupam.sin |
137 |
|
| 5553 |
rajveer |
138 |
def getPickupStore(self, storeId):
|
|
|
139 |
"""
|
|
|
140 |
Parameters:
|
|
|
141 |
- storeId
|
|
|
142 |
"""
|
|
|
143 |
pass
|
|
|
144 |
|
| 5719 |
rajveer |
145 |
def getPickupStoreByHotspotId(self, hotspotId):
|
|
|
146 |
"""
|
|
|
147 |
Parameters:
|
|
|
148 |
- hotspotId
|
|
|
149 |
"""
|
|
|
150 |
pass
|
| 5553 |
rajveer |
151 |
|
| 5719 |
rajveer |
152 |
|
| 3376 |
rajveer |
153 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 412 |
ashish |
154 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
155 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 412 |
ashish |
156 |
|
| 669 |
chandransh |
157 |
def getProvider(self, providerId):
|
|
|
158 |
"""
|
|
|
159 |
Returns a provider for a given provider ID. Throws an exception if none found.
|
| 3431 |
rajveer |
160 |
|
| 669 |
chandransh |
161 |
Parameters:
|
|
|
162 |
- providerId
|
|
|
163 |
"""
|
|
|
164 |
self.send_getProvider(providerId)
|
|
|
165 |
return self.recv_getProvider()
|
|
|
166 |
|
|
|
167 |
def send_getProvider(self, providerId):
|
|
|
168 |
self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
|
|
|
169 |
args = getProvider_args()
|
|
|
170 |
args.providerId = providerId
|
|
|
171 |
args.write(self._oprot)
|
|
|
172 |
self._oprot.writeMessageEnd()
|
|
|
173 |
self._oprot.trans.flush()
|
|
|
174 |
|
|
|
175 |
def recv_getProvider(self, ):
|
|
|
176 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
177 |
if mtype == TMessageType.EXCEPTION:
|
|
|
178 |
x = TApplicationException()
|
|
|
179 |
x.read(self._iprot)
|
|
|
180 |
self._iprot.readMessageEnd()
|
|
|
181 |
raise x
|
|
|
182 |
result = getProvider_result()
|
|
|
183 |
result.read(self._iprot)
|
|
|
184 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
185 |
if result.success is not None:
|
| 669 |
chandransh |
186 |
return result.success
|
| 3431 |
rajveer |
187 |
if result.lse is not None:
|
| 669 |
chandransh |
188 |
raise result.lse
|
|
|
189 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
|
|
|
190 |
|
| 675 |
chandransh |
191 |
def getAllProviders(self, ):
|
|
|
192 |
"""
|
|
|
193 |
Returns a list containing all the providers.
|
|
|
194 |
"""
|
|
|
195 |
self.send_getAllProviders()
|
|
|
196 |
return self.recv_getAllProviders()
|
|
|
197 |
|
|
|
198 |
def send_getAllProviders(self, ):
|
|
|
199 |
self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
|
|
|
200 |
args = getAllProviders_args()
|
|
|
201 |
args.write(self._oprot)
|
|
|
202 |
self._oprot.writeMessageEnd()
|
|
|
203 |
self._oprot.trans.flush()
|
|
|
204 |
|
|
|
205 |
def recv_getAllProviders(self, ):
|
|
|
206 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
207 |
if mtype == TMessageType.EXCEPTION:
|
|
|
208 |
x = TApplicationException()
|
|
|
209 |
x.read(self._iprot)
|
|
|
210 |
self._iprot.readMessageEnd()
|
|
|
211 |
raise x
|
|
|
212 |
result = getAllProviders_result()
|
|
|
213 |
result.read(self._iprot)
|
|
|
214 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
215 |
if result.success is not None:
|
| 675 |
chandransh |
216 |
return result.success
|
| 3431 |
rajveer |
217 |
if result.lse is not None:
|
| 675 |
chandransh |
218 |
raise result.lse
|
|
|
219 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
|
|
220 |
|
| 4630 |
mandeep.dh |
221 |
def getLogisticsEstimation(self, itemId, destination_pin, type):
|
| 483 |
rajveer |
222 |
"""
|
| 647 |
chandransh |
223 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
224 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
225 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
| 3431 |
rajveer |
226 |
|
| 483 |
rajveer |
227 |
Parameters:
|
| 647 |
chandransh |
228 |
- itemId
|
|
|
229 |
- destination_pin
|
| 4630 |
mandeep.dh |
230 |
- type
|
| 483 |
rajveer |
231 |
"""
|
| 4630 |
mandeep.dh |
232 |
self.send_getLogisticsEstimation(itemId, destination_pin, type)
|
| 647 |
chandransh |
233 |
return self.recv_getLogisticsEstimation()
|
| 483 |
rajveer |
234 |
|
| 4630 |
mandeep.dh |
235 |
def send_getLogisticsEstimation(self, itemId, destination_pin, type):
|
| 647 |
chandransh |
236 |
self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
|
|
|
237 |
args = getLogisticsEstimation_args()
|
|
|
238 |
args.itemId = itemId
|
|
|
239 |
args.destination_pin = destination_pin
|
| 4630 |
mandeep.dh |
240 |
args.type = type
|
| 483 |
rajveer |
241 |
args.write(self._oprot)
|
|
|
242 |
self._oprot.writeMessageEnd()
|
|
|
243 |
self._oprot.trans.flush()
|
|
|
244 |
|
| 647 |
chandransh |
245 |
def recv_getLogisticsEstimation(self, ):
|
| 483 |
rajveer |
246 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
247 |
if mtype == TMessageType.EXCEPTION:
|
|
|
248 |
x = TApplicationException()
|
|
|
249 |
x.read(self._iprot)
|
|
|
250 |
self._iprot.readMessageEnd()
|
|
|
251 |
raise x
|
| 647 |
chandransh |
252 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
253 |
result.read(self._iprot)
|
|
|
254 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
255 |
if result.success is not None:
|
| 483 |
rajveer |
256 |
return result.success
|
| 3431 |
rajveer |
257 |
if result.se is not None:
|
| 483 |
rajveer |
258 |
raise result.se
|
| 647 |
chandransh |
259 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 483 |
rajveer |
260 |
|
| 3044 |
chandransh |
261 |
def getLogisticsInfo(self, destination_pincode, item_id, type):
|
| 472 |
rajveer |
262 |
"""
|
| 647 |
chandransh |
263 |
Same as above excpet that an airway bill number is also allocated and returned.
|
| 3431 |
rajveer |
264 |
|
| 472 |
rajveer |
265 |
Parameters:
|
| 647 |
chandransh |
266 |
- destination_pincode
|
|
|
267 |
- item_id
|
| 3044 |
chandransh |
268 |
- type
|
| 472 |
rajveer |
269 |
"""
|
| 3044 |
chandransh |
270 |
self.send_getLogisticsInfo(destination_pincode, item_id, type)
|
| 647 |
chandransh |
271 |
return self.recv_getLogisticsInfo()
|
| 472 |
rajveer |
272 |
|
| 3044 |
chandransh |
273 |
def send_getLogisticsInfo(self, destination_pincode, item_id, type):
|
| 647 |
chandransh |
274 |
self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
|
|
|
275 |
args = getLogisticsInfo_args()
|
|
|
276 |
args.destination_pincode = destination_pincode
|
|
|
277 |
args.item_id = item_id
|
| 3044 |
chandransh |
278 |
args.type = type
|
| 472 |
rajveer |
279 |
args.write(self._oprot)
|
|
|
280 |
self._oprot.writeMessageEnd()
|
|
|
281 |
self._oprot.trans.flush()
|
|
|
282 |
|
| 647 |
chandransh |
283 |
def recv_getLogisticsInfo(self, ):
|
| 472 |
rajveer |
284 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
285 |
if mtype == TMessageType.EXCEPTION:
|
|
|
286 |
x = TApplicationException()
|
|
|
287 |
x.read(self._iprot)
|
|
|
288 |
self._iprot.readMessageEnd()
|
|
|
289 |
raise x
|
| 647 |
chandransh |
290 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
291 |
result.read(self._iprot)
|
|
|
292 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
293 |
if result.success is not None:
|
| 472 |
rajveer |
294 |
return result.success
|
| 3431 |
rajveer |
295 |
if result.se is not None:
|
| 472 |
rajveer |
296 |
raise result.se
|
| 647 |
chandransh |
297 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
|
| 472 |
rajveer |
298 |
|
| 5247 |
rajveer |
299 |
def getEmptyAWB(self, providerId, type):
|
| 412 |
ashish |
300 |
"""
|
| 647 |
chandransh |
301 |
Returns an unused AWB number for the given provider.
|
| 3431 |
rajveer |
302 |
|
| 412 |
ashish |
303 |
Parameters:
|
| 647 |
chandransh |
304 |
- providerId
|
| 5247 |
rajveer |
305 |
- type
|
| 412 |
ashish |
306 |
"""
|
| 5247 |
rajveer |
307 |
self.send_getEmptyAWB(providerId, type)
|
| 412 |
ashish |
308 |
return self.recv_getEmptyAWB()
|
|
|
309 |
|
| 5247 |
rajveer |
310 |
def send_getEmptyAWB(self, providerId, type):
|
| 412 |
ashish |
311 |
self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
|
|
|
312 |
args = getEmptyAWB_args()
|
| 647 |
chandransh |
313 |
args.providerId = providerId
|
| 5247 |
rajveer |
314 |
args.type = type
|
| 412 |
ashish |
315 |
args.write(self._oprot)
|
|
|
316 |
self._oprot.writeMessageEnd()
|
|
|
317 |
self._oprot.trans.flush()
|
|
|
318 |
|
|
|
319 |
def recv_getEmptyAWB(self, ):
|
|
|
320 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
321 |
if mtype == TMessageType.EXCEPTION:
|
|
|
322 |
x = TApplicationException()
|
|
|
323 |
x.read(self._iprot)
|
|
|
324 |
self._iprot.readMessageEnd()
|
|
|
325 |
raise x
|
|
|
326 |
result = getEmptyAWB_result()
|
|
|
327 |
result.read(self._iprot)
|
|
|
328 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
329 |
if result.success is not None:
|
| 412 |
ashish |
330 |
return result.success
|
| 3431 |
rajveer |
331 |
if result.se is not None:
|
| 647 |
chandransh |
332 |
raise result.se
|
| 412 |
ashish |
333 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
|
|
|
334 |
|
| 647 |
chandransh |
335 |
def getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
336 |
"""
|
| 647 |
chandransh |
337 |
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 |
338 |
|
| 412 |
ashish |
339 |
Parameters:
|
|
|
340 |
- awb
|
| 647 |
chandransh |
341 |
- providerId
|
| 412 |
ashish |
342 |
"""
|
| 647 |
chandransh |
343 |
self.send_getShipmentInfo(awb, providerId)
|
| 412 |
ashish |
344 |
return self.recv_getShipmentInfo()
|
|
|
345 |
|
| 647 |
chandransh |
346 |
def send_getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
347 |
self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
|
|
|
348 |
args = getShipmentInfo_args()
|
|
|
349 |
args.awb = awb
|
| 647 |
chandransh |
350 |
args.providerId = providerId
|
| 412 |
ashish |
351 |
args.write(self._oprot)
|
|
|
352 |
self._oprot.writeMessageEnd()
|
|
|
353 |
self._oprot.trans.flush()
|
|
|
354 |
|
|
|
355 |
def recv_getShipmentInfo(self, ):
|
|
|
356 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
357 |
if mtype == TMessageType.EXCEPTION:
|
|
|
358 |
x = TApplicationException()
|
|
|
359 |
x.read(self._iprot)
|
|
|
360 |
self._iprot.readMessageEnd()
|
|
|
361 |
raise x
|
|
|
362 |
result = getShipmentInfo_result()
|
|
|
363 |
result.read(self._iprot)
|
|
|
364 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
365 |
if result.success is not None:
|
| 412 |
ashish |
366 |
return result.success
|
| 3431 |
rajveer |
367 |
if result.se is not None:
|
| 647 |
chandransh |
368 |
raise result.se
|
| 412 |
ashish |
369 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
|
|
|
370 |
|
| 732 |
chandransh |
371 |
def getDestinationCode(self, providerId, pinCode):
|
|
|
372 |
"""
|
|
|
373 |
Returns the short three letter code of a pincode for the given provider.
|
|
|
374 |
Raises an exception if the pin code is not serviced by the given provider.
|
| 3431 |
rajveer |
375 |
|
| 732 |
chandransh |
376 |
Parameters:
|
|
|
377 |
- providerId
|
|
|
378 |
- pinCode
|
|
|
379 |
"""
|
|
|
380 |
self.send_getDestinationCode(providerId, pinCode)
|
|
|
381 |
return self.recv_getDestinationCode()
|
| 412 |
ashish |
382 |
|
| 732 |
chandransh |
383 |
def send_getDestinationCode(self, providerId, pinCode):
|
|
|
384 |
self._oprot.writeMessageBegin('getDestinationCode', TMessageType.CALL, self._seqid)
|
|
|
385 |
args = getDestinationCode_args()
|
|
|
386 |
args.providerId = providerId
|
|
|
387 |
args.pinCode = pinCode
|
|
|
388 |
args.write(self._oprot)
|
|
|
389 |
self._oprot.writeMessageEnd()
|
|
|
390 |
self._oprot.trans.flush()
|
|
|
391 |
|
|
|
392 |
def recv_getDestinationCode(self, ):
|
|
|
393 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
394 |
if mtype == TMessageType.EXCEPTION:
|
|
|
395 |
x = TApplicationException()
|
|
|
396 |
x.read(self._iprot)
|
|
|
397 |
self._iprot.readMessageEnd()
|
|
|
398 |
raise x
|
|
|
399 |
result = getDestinationCode_result()
|
|
|
400 |
result.read(self._iprot)
|
|
|
401 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
402 |
if result.success is not None:
|
| 732 |
chandransh |
403 |
return result.success
|
| 3431 |
rajveer |
404 |
if result.se is not None:
|
| 732 |
chandransh |
405 |
raise result.se
|
|
|
406 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
|
|
|
407 |
|
| 3103 |
chandransh |
408 |
def getFreeAwbCount(self, providerId, type):
|
| 1137 |
chandransh |
409 |
"""
|
| 3103 |
chandransh |
410 |
Returns the number of unused AWB numbers for the given provider of the given type
|
| 3431 |
rajveer |
411 |
|
| 1137 |
chandransh |
412 |
Parameters:
|
|
|
413 |
- providerId
|
| 3103 |
chandransh |
414 |
- type
|
| 1137 |
chandransh |
415 |
"""
|
| 3103 |
chandransh |
416 |
self.send_getFreeAwbCount(providerId, type)
|
| 1137 |
chandransh |
417 |
return self.recv_getFreeAwbCount()
|
| 732 |
chandransh |
418 |
|
| 3103 |
chandransh |
419 |
def send_getFreeAwbCount(self, providerId, type):
|
| 1137 |
chandransh |
420 |
self._oprot.writeMessageBegin('getFreeAwbCount', TMessageType.CALL, self._seqid)
|
|
|
421 |
args = getFreeAwbCount_args()
|
|
|
422 |
args.providerId = providerId
|
| 3103 |
chandransh |
423 |
args.type = type
|
| 1137 |
chandransh |
424 |
args.write(self._oprot)
|
|
|
425 |
self._oprot.writeMessageEnd()
|
|
|
426 |
self._oprot.trans.flush()
|
|
|
427 |
|
|
|
428 |
def recv_getFreeAwbCount(self, ):
|
|
|
429 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
430 |
if mtype == TMessageType.EXCEPTION:
|
|
|
431 |
x = TApplicationException()
|
|
|
432 |
x.read(self._iprot)
|
|
|
433 |
self._iprot.readMessageEnd()
|
|
|
434 |
raise x
|
|
|
435 |
result = getFreeAwbCount_result()
|
|
|
436 |
result.read(self._iprot)
|
|
|
437 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
438 |
if result.success is not None:
|
| 1137 |
chandransh |
439 |
return result.success
|
|
|
440 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
|
|
|
441 |
|
| 1730 |
ankur.sing |
442 |
def getHolidays(self, fromDate, toDate):
|
|
|
443 |
"""
|
|
|
444 |
Returns list of Holiday dates between fromDate and toDate (both inclusive)
|
|
|
445 |
fromDate should be passed as milliseconds corresponding to the start of the day.
|
|
|
446 |
If fromDate is passed as -1, fromDate is not considered for filtering
|
|
|
447 |
If toDate is passed as -1, toDate is not considered for filtering
|
| 3431 |
rajveer |
448 |
|
| 1730 |
ankur.sing |
449 |
Parameters:
|
|
|
450 |
- fromDate
|
|
|
451 |
- toDate
|
|
|
452 |
"""
|
|
|
453 |
self.send_getHolidays(fromDate, toDate)
|
|
|
454 |
return self.recv_getHolidays()
|
| 1137 |
chandransh |
455 |
|
| 1730 |
ankur.sing |
456 |
def send_getHolidays(self, fromDate, toDate):
|
|
|
457 |
self._oprot.writeMessageBegin('getHolidays', TMessageType.CALL, self._seqid)
|
|
|
458 |
args = getHolidays_args()
|
|
|
459 |
args.fromDate = fromDate
|
|
|
460 |
args.toDate = toDate
|
|
|
461 |
args.write(self._oprot)
|
|
|
462 |
self._oprot.writeMessageEnd()
|
|
|
463 |
self._oprot.trans.flush()
|
|
|
464 |
|
|
|
465 |
def recv_getHolidays(self, ):
|
|
|
466 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
467 |
if mtype == TMessageType.EXCEPTION:
|
|
|
468 |
x = TApplicationException()
|
|
|
469 |
x.read(self._iprot)
|
|
|
470 |
self._iprot.readMessageEnd()
|
|
|
471 |
raise x
|
|
|
472 |
result = getHolidays_result()
|
|
|
473 |
result.read(self._iprot)
|
|
|
474 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
475 |
if result.success is not None:
|
| 1730 |
ankur.sing |
476 |
return result.success
|
|
|
477 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
|
|
|
478 |
|
| 4934 |
amit.gupta |
479 |
def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
|
|
|
480 |
"""
|
|
|
481 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
482 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
483 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
| 3431 |
rajveer |
484 |
|
| 4934 |
amit.gupta |
485 |
Parameters:
|
|
|
486 |
- catalogItemId
|
|
|
487 |
- destination_pin
|
|
|
488 |
- type
|
|
|
489 |
"""
|
|
|
490 |
self.send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type)
|
|
|
491 |
return self.recv_getEntityLogisticsEstimation()
|
|
|
492 |
|
|
|
493 |
def send_getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
|
|
|
494 |
self._oprot.writeMessageBegin('getEntityLogisticsEstimation', TMessageType.CALL, self._seqid)
|
|
|
495 |
args = getEntityLogisticsEstimation_args()
|
|
|
496 |
args.catalogItemId = catalogItemId
|
|
|
497 |
args.destination_pin = destination_pin
|
|
|
498 |
args.type = type
|
|
|
499 |
args.write(self._oprot)
|
|
|
500 |
self._oprot.writeMessageEnd()
|
|
|
501 |
self._oprot.trans.flush()
|
|
|
502 |
|
|
|
503 |
def recv_getEntityLogisticsEstimation(self, ):
|
|
|
504 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
505 |
if mtype == TMessageType.EXCEPTION:
|
|
|
506 |
x = TApplicationException()
|
|
|
507 |
x.read(self._iprot)
|
|
|
508 |
self._iprot.readMessageEnd()
|
|
|
509 |
raise x
|
|
|
510 |
result = getEntityLogisticsEstimation_result()
|
|
|
511 |
result.read(self._iprot)
|
|
|
512 |
self._iprot.readMessageEnd()
|
|
|
513 |
if result.success is not None:
|
|
|
514 |
return result.success
|
|
|
515 |
if result.se is not None:
|
|
|
516 |
raise result.se
|
|
|
517 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
|
|
|
518 |
|
| 5527 |
anupam.sin |
519 |
def getProviderForPickupType(self, pickUp):
|
|
|
520 |
"""
|
|
|
521 |
Returns the id for a given pickUpType
|
| 4934 |
amit.gupta |
522 |
|
| 5527 |
anupam.sin |
523 |
Parameters:
|
|
|
524 |
- pickUp
|
|
|
525 |
"""
|
|
|
526 |
self.send_getProviderForPickupType(pickUp)
|
|
|
527 |
return self.recv_getProviderForPickupType()
|
|
|
528 |
|
|
|
529 |
def send_getProviderForPickupType(self, pickUp):
|
|
|
530 |
self._oprot.writeMessageBegin('getProviderForPickupType', TMessageType.CALL, self._seqid)
|
|
|
531 |
args = getProviderForPickupType_args()
|
|
|
532 |
args.pickUp = pickUp
|
|
|
533 |
args.write(self._oprot)
|
|
|
534 |
self._oprot.writeMessageEnd()
|
|
|
535 |
self._oprot.trans.flush()
|
|
|
536 |
|
|
|
537 |
def recv_getProviderForPickupType(self, ):
|
|
|
538 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
539 |
if mtype == TMessageType.EXCEPTION:
|
|
|
540 |
x = TApplicationException()
|
|
|
541 |
x.read(self._iprot)
|
|
|
542 |
self._iprot.readMessageEnd()
|
|
|
543 |
raise x
|
|
|
544 |
result = getProviderForPickupType_result()
|
|
|
545 |
result.read(self._iprot)
|
|
|
546 |
self._iprot.readMessageEnd()
|
|
|
547 |
if result.success is not None:
|
|
|
548 |
return result.success
|
|
|
549 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
|
|
|
550 |
|
| 5553 |
rajveer |
551 |
def getAllPickupStores(self, ):
|
|
|
552 |
self.send_getAllPickupStores()
|
|
|
553 |
return self.recv_getAllPickupStores()
|
| 5527 |
anupam.sin |
554 |
|
| 5553 |
rajveer |
555 |
def send_getAllPickupStores(self, ):
|
|
|
556 |
self._oprot.writeMessageBegin('getAllPickupStores', TMessageType.CALL, self._seqid)
|
|
|
557 |
args = getAllPickupStores_args()
|
|
|
558 |
args.write(self._oprot)
|
|
|
559 |
self._oprot.writeMessageEnd()
|
|
|
560 |
self._oprot.trans.flush()
|
|
|
561 |
|
|
|
562 |
def recv_getAllPickupStores(self, ):
|
|
|
563 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
564 |
if mtype == TMessageType.EXCEPTION:
|
|
|
565 |
x = TApplicationException()
|
|
|
566 |
x.read(self._iprot)
|
|
|
567 |
self._iprot.readMessageEnd()
|
|
|
568 |
raise x
|
|
|
569 |
result = getAllPickupStores_result()
|
|
|
570 |
result.read(self._iprot)
|
|
|
571 |
self._iprot.readMessageEnd()
|
|
|
572 |
if result.success is not None:
|
|
|
573 |
return result.success
|
|
|
574 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
|
|
|
575 |
|
|
|
576 |
def getPickupStore(self, storeId):
|
|
|
577 |
"""
|
|
|
578 |
Parameters:
|
|
|
579 |
- storeId
|
|
|
580 |
"""
|
|
|
581 |
self.send_getPickupStore(storeId)
|
|
|
582 |
return self.recv_getPickupStore()
|
|
|
583 |
|
|
|
584 |
def send_getPickupStore(self, storeId):
|
|
|
585 |
self._oprot.writeMessageBegin('getPickupStore', TMessageType.CALL, self._seqid)
|
|
|
586 |
args = getPickupStore_args()
|
|
|
587 |
args.storeId = storeId
|
|
|
588 |
args.write(self._oprot)
|
|
|
589 |
self._oprot.writeMessageEnd()
|
|
|
590 |
self._oprot.trans.flush()
|
|
|
591 |
|
|
|
592 |
def recv_getPickupStore(self, ):
|
|
|
593 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
594 |
if mtype == TMessageType.EXCEPTION:
|
|
|
595 |
x = TApplicationException()
|
|
|
596 |
x.read(self._iprot)
|
|
|
597 |
self._iprot.readMessageEnd()
|
|
|
598 |
raise x
|
|
|
599 |
result = getPickupStore_result()
|
|
|
600 |
result.read(self._iprot)
|
|
|
601 |
self._iprot.readMessageEnd()
|
|
|
602 |
if result.success is not None:
|
|
|
603 |
return result.success
|
|
|
604 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
|
|
|
605 |
|
| 5719 |
rajveer |
606 |
def getPickupStoreByHotspotId(self, hotspotId):
|
|
|
607 |
"""
|
|
|
608 |
Parameters:
|
|
|
609 |
- hotspotId
|
|
|
610 |
"""
|
|
|
611 |
self.send_getPickupStoreByHotspotId(hotspotId)
|
|
|
612 |
return self.recv_getPickupStoreByHotspotId()
|
| 5553 |
rajveer |
613 |
|
| 5719 |
rajveer |
614 |
def send_getPickupStoreByHotspotId(self, hotspotId):
|
|
|
615 |
self._oprot.writeMessageBegin('getPickupStoreByHotspotId', TMessageType.CALL, self._seqid)
|
|
|
616 |
args = getPickupStoreByHotspotId_args()
|
|
|
617 |
args.hotspotId = hotspotId
|
|
|
618 |
args.write(self._oprot)
|
|
|
619 |
self._oprot.writeMessageEnd()
|
|
|
620 |
self._oprot.trans.flush()
|
|
|
621 |
|
|
|
622 |
def recv_getPickupStoreByHotspotId(self, ):
|
|
|
623 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
624 |
if mtype == TMessageType.EXCEPTION:
|
|
|
625 |
x = TApplicationException()
|
|
|
626 |
x.read(self._iprot)
|
|
|
627 |
self._iprot.readMessageEnd()
|
|
|
628 |
raise x
|
|
|
629 |
result = getPickupStoreByHotspotId_result()
|
|
|
630 |
result.read(self._iprot)
|
|
|
631 |
self._iprot.readMessageEnd()
|
|
|
632 |
if result.success is not None:
|
|
|
633 |
return result.success
|
|
|
634 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
|
|
|
635 |
|
|
|
636 |
|
| 3376 |
rajveer |
637 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 412 |
ashish |
638 |
def __init__(self, handler):
|
| 3376 |
rajveer |
639 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 669 |
chandransh |
640 |
self._processMap["getProvider"] = Processor.process_getProvider
|
| 675 |
chandransh |
641 |
self._processMap["getAllProviders"] = Processor.process_getAllProviders
|
| 647 |
chandransh |
642 |
self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
|
| 483 |
rajveer |
643 |
self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
|
| 412 |
ashish |
644 |
self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
|
|
|
645 |
self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
|
| 732 |
chandransh |
646 |
self._processMap["getDestinationCode"] = Processor.process_getDestinationCode
|
| 1137 |
chandransh |
647 |
self._processMap["getFreeAwbCount"] = Processor.process_getFreeAwbCount
|
| 1730 |
ankur.sing |
648 |
self._processMap["getHolidays"] = Processor.process_getHolidays
|
| 4934 |
amit.gupta |
649 |
self._processMap["getEntityLogisticsEstimation"] = Processor.process_getEntityLogisticsEstimation
|
| 5527 |
anupam.sin |
650 |
self._processMap["getProviderForPickupType"] = Processor.process_getProviderForPickupType
|
| 5553 |
rajveer |
651 |
self._processMap["getAllPickupStores"] = Processor.process_getAllPickupStores
|
|
|
652 |
self._processMap["getPickupStore"] = Processor.process_getPickupStore
|
| 5719 |
rajveer |
653 |
self._processMap["getPickupStoreByHotspotId"] = Processor.process_getPickupStoreByHotspotId
|
| 412 |
ashish |
654 |
|
|
|
655 |
def process(self, iprot, oprot):
|
|
|
656 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
657 |
if name not in self._processMap:
|
|
|
658 |
iprot.skip(TType.STRUCT)
|
|
|
659 |
iprot.readMessageEnd()
|
|
|
660 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
661 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
662 |
x.write(oprot)
|
|
|
663 |
oprot.writeMessageEnd()
|
|
|
664 |
oprot.trans.flush()
|
|
|
665 |
return
|
|
|
666 |
else:
|
|
|
667 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
668 |
return True
|
|
|
669 |
|
| 669 |
chandransh |
670 |
def process_getProvider(self, seqid, iprot, oprot):
|
|
|
671 |
args = getProvider_args()
|
|
|
672 |
args.read(iprot)
|
|
|
673 |
iprot.readMessageEnd()
|
|
|
674 |
result = getProvider_result()
|
|
|
675 |
try:
|
|
|
676 |
result.success = self._handler.getProvider(args.providerId)
|
|
|
677 |
except LogisticsServiceException, lse:
|
|
|
678 |
result.lse = lse
|
|
|
679 |
oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
|
|
|
680 |
result.write(oprot)
|
|
|
681 |
oprot.writeMessageEnd()
|
|
|
682 |
oprot.trans.flush()
|
|
|
683 |
|
| 675 |
chandransh |
684 |
def process_getAllProviders(self, seqid, iprot, oprot):
|
|
|
685 |
args = getAllProviders_args()
|
|
|
686 |
args.read(iprot)
|
|
|
687 |
iprot.readMessageEnd()
|
|
|
688 |
result = getAllProviders_result()
|
|
|
689 |
try:
|
|
|
690 |
result.success = self._handler.getAllProviders()
|
|
|
691 |
except LogisticsServiceException, lse:
|
|
|
692 |
result.lse = lse
|
|
|
693 |
oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
|
|
|
694 |
result.write(oprot)
|
|
|
695 |
oprot.writeMessageEnd()
|
|
|
696 |
oprot.trans.flush()
|
|
|
697 |
|
| 647 |
chandransh |
698 |
def process_getLogisticsEstimation(self, seqid, iprot, oprot):
|
|
|
699 |
args = getLogisticsEstimation_args()
|
| 483 |
rajveer |
700 |
args.read(iprot)
|
|
|
701 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
702 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
703 |
try:
|
| 4630 |
mandeep.dh |
704 |
result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin, args.type)
|
| 483 |
rajveer |
705 |
except LogisticsServiceException, se:
|
|
|
706 |
result.se = se
|
| 647 |
chandransh |
707 |
oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
|
| 483 |
rajveer |
708 |
result.write(oprot)
|
|
|
709 |
oprot.writeMessageEnd()
|
|
|
710 |
oprot.trans.flush()
|
|
|
711 |
|
| 647 |
chandransh |
712 |
def process_getLogisticsInfo(self, seqid, iprot, oprot):
|
|
|
713 |
args = getLogisticsInfo_args()
|
| 472 |
rajveer |
714 |
args.read(iprot)
|
|
|
715 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
716 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
717 |
try:
|
| 3044 |
chandransh |
718 |
result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type)
|
| 472 |
rajveer |
719 |
except LogisticsServiceException, se:
|
|
|
720 |
result.se = se
|
| 647 |
chandransh |
721 |
oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
|
| 472 |
rajveer |
722 |
result.write(oprot)
|
|
|
723 |
oprot.writeMessageEnd()
|
|
|
724 |
oprot.trans.flush()
|
|
|
725 |
|
| 412 |
ashish |
726 |
def process_getEmptyAWB(self, seqid, iprot, oprot):
|
|
|
727 |
args = getEmptyAWB_args()
|
|
|
728 |
args.read(iprot)
|
|
|
729 |
iprot.readMessageEnd()
|
|
|
730 |
result = getEmptyAWB_result()
|
| 647 |
chandransh |
731 |
try:
|
| 5247 |
rajveer |
732 |
result.success = self._handler.getEmptyAWB(args.providerId, args.type)
|
| 647 |
chandransh |
733 |
except LogisticsServiceException, se:
|
|
|
734 |
result.se = se
|
| 412 |
ashish |
735 |
oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
|
|
|
736 |
result.write(oprot)
|
|
|
737 |
oprot.writeMessageEnd()
|
|
|
738 |
oprot.trans.flush()
|
|
|
739 |
|
|
|
740 |
def process_getShipmentInfo(self, seqid, iprot, oprot):
|
|
|
741 |
args = getShipmentInfo_args()
|
|
|
742 |
args.read(iprot)
|
|
|
743 |
iprot.readMessageEnd()
|
|
|
744 |
result = getShipmentInfo_result()
|
| 647 |
chandransh |
745 |
try:
|
|
|
746 |
result.success = self._handler.getShipmentInfo(args.awb, args.providerId)
|
|
|
747 |
except LogisticsServiceException, se:
|
|
|
748 |
result.se = se
|
| 412 |
ashish |
749 |
oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
|
|
|
750 |
result.write(oprot)
|
|
|
751 |
oprot.writeMessageEnd()
|
|
|
752 |
oprot.trans.flush()
|
|
|
753 |
|
| 732 |
chandransh |
754 |
def process_getDestinationCode(self, seqid, iprot, oprot):
|
|
|
755 |
args = getDestinationCode_args()
|
|
|
756 |
args.read(iprot)
|
|
|
757 |
iprot.readMessageEnd()
|
|
|
758 |
result = getDestinationCode_result()
|
|
|
759 |
try:
|
|
|
760 |
result.success = self._handler.getDestinationCode(args.providerId, args.pinCode)
|
|
|
761 |
except LogisticsServiceException, se:
|
|
|
762 |
result.se = se
|
|
|
763 |
oprot.writeMessageBegin("getDestinationCode", TMessageType.REPLY, seqid)
|
|
|
764 |
result.write(oprot)
|
|
|
765 |
oprot.writeMessageEnd()
|
|
|
766 |
oprot.trans.flush()
|
| 412 |
ashish |
767 |
|
| 1137 |
chandransh |
768 |
def process_getFreeAwbCount(self, seqid, iprot, oprot):
|
|
|
769 |
args = getFreeAwbCount_args()
|
|
|
770 |
args.read(iprot)
|
|
|
771 |
iprot.readMessageEnd()
|
|
|
772 |
result = getFreeAwbCount_result()
|
| 3103 |
chandransh |
773 |
result.success = self._handler.getFreeAwbCount(args.providerId, args.type)
|
| 1137 |
chandransh |
774 |
oprot.writeMessageBegin("getFreeAwbCount", TMessageType.REPLY, seqid)
|
|
|
775 |
result.write(oprot)
|
|
|
776 |
oprot.writeMessageEnd()
|
|
|
777 |
oprot.trans.flush()
|
| 732 |
chandransh |
778 |
|
| 1730 |
ankur.sing |
779 |
def process_getHolidays(self, seqid, iprot, oprot):
|
|
|
780 |
args = getHolidays_args()
|
|
|
781 |
args.read(iprot)
|
|
|
782 |
iprot.readMessageEnd()
|
|
|
783 |
result = getHolidays_result()
|
|
|
784 |
result.success = self._handler.getHolidays(args.fromDate, args.toDate)
|
|
|
785 |
oprot.writeMessageBegin("getHolidays", TMessageType.REPLY, seqid)
|
|
|
786 |
result.write(oprot)
|
|
|
787 |
oprot.writeMessageEnd()
|
|
|
788 |
oprot.trans.flush()
|
| 1137 |
chandransh |
789 |
|
| 4934 |
amit.gupta |
790 |
def process_getEntityLogisticsEstimation(self, seqid, iprot, oprot):
|
|
|
791 |
args = getEntityLogisticsEstimation_args()
|
|
|
792 |
args.read(iprot)
|
|
|
793 |
iprot.readMessageEnd()
|
|
|
794 |
result = getEntityLogisticsEstimation_result()
|
|
|
795 |
try:
|
|
|
796 |
result.success = self._handler.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type)
|
|
|
797 |
except LogisticsServiceException, se:
|
|
|
798 |
result.se = se
|
|
|
799 |
oprot.writeMessageBegin("getEntityLogisticsEstimation", TMessageType.REPLY, seqid)
|
|
|
800 |
result.write(oprot)
|
|
|
801 |
oprot.writeMessageEnd()
|
|
|
802 |
oprot.trans.flush()
|
| 1730 |
ankur.sing |
803 |
|
| 5527 |
anupam.sin |
804 |
def process_getProviderForPickupType(self, seqid, iprot, oprot):
|
|
|
805 |
args = getProviderForPickupType_args()
|
|
|
806 |
args.read(iprot)
|
|
|
807 |
iprot.readMessageEnd()
|
|
|
808 |
result = getProviderForPickupType_result()
|
|
|
809 |
result.success = self._handler.getProviderForPickupType(args.pickUp)
|
|
|
810 |
oprot.writeMessageBegin("getProviderForPickupType", TMessageType.REPLY, seqid)
|
|
|
811 |
result.write(oprot)
|
|
|
812 |
oprot.writeMessageEnd()
|
|
|
813 |
oprot.trans.flush()
|
| 4934 |
amit.gupta |
814 |
|
| 5553 |
rajveer |
815 |
def process_getAllPickupStores(self, seqid, iprot, oprot):
|
|
|
816 |
args = getAllPickupStores_args()
|
|
|
817 |
args.read(iprot)
|
|
|
818 |
iprot.readMessageEnd()
|
|
|
819 |
result = getAllPickupStores_result()
|
|
|
820 |
result.success = self._handler.getAllPickupStores()
|
|
|
821 |
oprot.writeMessageBegin("getAllPickupStores", TMessageType.REPLY, seqid)
|
|
|
822 |
result.write(oprot)
|
|
|
823 |
oprot.writeMessageEnd()
|
|
|
824 |
oprot.trans.flush()
|
| 5527 |
anupam.sin |
825 |
|
| 5553 |
rajveer |
826 |
def process_getPickupStore(self, seqid, iprot, oprot):
|
|
|
827 |
args = getPickupStore_args()
|
|
|
828 |
args.read(iprot)
|
|
|
829 |
iprot.readMessageEnd()
|
|
|
830 |
result = getPickupStore_result()
|
|
|
831 |
result.success = self._handler.getPickupStore(args.storeId)
|
|
|
832 |
oprot.writeMessageBegin("getPickupStore", TMessageType.REPLY, seqid)
|
|
|
833 |
result.write(oprot)
|
|
|
834 |
oprot.writeMessageEnd()
|
|
|
835 |
oprot.trans.flush()
|
|
|
836 |
|
| 5719 |
rajveer |
837 |
def process_getPickupStoreByHotspotId(self, seqid, iprot, oprot):
|
|
|
838 |
args = getPickupStoreByHotspotId_args()
|
|
|
839 |
args.read(iprot)
|
|
|
840 |
iprot.readMessageEnd()
|
|
|
841 |
result = getPickupStoreByHotspotId_result()
|
|
|
842 |
result.success = self._handler.getPickupStoreByHotspotId(args.hotspotId)
|
|
|
843 |
oprot.writeMessageBegin("getPickupStoreByHotspotId", TMessageType.REPLY, seqid)
|
|
|
844 |
result.write(oprot)
|
|
|
845 |
oprot.writeMessageEnd()
|
|
|
846 |
oprot.trans.flush()
|
| 5553 |
rajveer |
847 |
|
| 5719 |
rajveer |
848 |
|
| 412 |
ashish |
849 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
850 |
|
| 669 |
chandransh |
851 |
class getProvider_args:
|
|
|
852 |
"""
|
|
|
853 |
Attributes:
|
|
|
854 |
- providerId
|
|
|
855 |
"""
|
|
|
856 |
|
|
|
857 |
thrift_spec = (
|
|
|
858 |
None, # 0
|
|
|
859 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
860 |
)
|
|
|
861 |
|
|
|
862 |
def __init__(self, providerId=None,):
|
|
|
863 |
self.providerId = providerId
|
|
|
864 |
|
|
|
865 |
def read(self, iprot):
|
|
|
866 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
867 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
868 |
return
|
|
|
869 |
iprot.readStructBegin()
|
|
|
870 |
while True:
|
|
|
871 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
872 |
if ftype == TType.STOP:
|
|
|
873 |
break
|
|
|
874 |
if fid == 1:
|
|
|
875 |
if ftype == TType.I64:
|
|
|
876 |
self.providerId = iprot.readI64();
|
|
|
877 |
else:
|
|
|
878 |
iprot.skip(ftype)
|
|
|
879 |
else:
|
|
|
880 |
iprot.skip(ftype)
|
|
|
881 |
iprot.readFieldEnd()
|
|
|
882 |
iprot.readStructEnd()
|
|
|
883 |
|
|
|
884 |
def write(self, oprot):
|
|
|
885 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
886 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
887 |
return
|
|
|
888 |
oprot.writeStructBegin('getProvider_args')
|
| 3431 |
rajveer |
889 |
if self.providerId is not None:
|
| 669 |
chandransh |
890 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
891 |
oprot.writeI64(self.providerId)
|
|
|
892 |
oprot.writeFieldEnd()
|
|
|
893 |
oprot.writeFieldStop()
|
|
|
894 |
oprot.writeStructEnd()
|
|
|
895 |
|
| 3431 |
rajveer |
896 |
def validate(self):
|
|
|
897 |
return
|
|
|
898 |
|
|
|
899 |
|
| 669 |
chandransh |
900 |
def __repr__(self):
|
|
|
901 |
L = ['%s=%r' % (key, value)
|
|
|
902 |
for key, value in self.__dict__.iteritems()]
|
|
|
903 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
904 |
|
|
|
905 |
def __eq__(self, other):
|
|
|
906 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
907 |
|
|
|
908 |
def __ne__(self, other):
|
|
|
909 |
return not (self == other)
|
|
|
910 |
|
|
|
911 |
class getProvider_result:
|
|
|
912 |
"""
|
|
|
913 |
Attributes:
|
|
|
914 |
- success
|
|
|
915 |
- lse
|
|
|
916 |
"""
|
|
|
917 |
|
|
|
918 |
thrift_spec = (
|
|
|
919 |
(0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
|
|
|
920 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
921 |
)
|
|
|
922 |
|
|
|
923 |
def __init__(self, success=None, lse=None,):
|
|
|
924 |
self.success = success
|
|
|
925 |
self.lse = lse
|
|
|
926 |
|
|
|
927 |
def read(self, iprot):
|
|
|
928 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
929 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
930 |
return
|
|
|
931 |
iprot.readStructBegin()
|
|
|
932 |
while True:
|
|
|
933 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
934 |
if ftype == TType.STOP:
|
|
|
935 |
break
|
|
|
936 |
if fid == 0:
|
|
|
937 |
if ftype == TType.STRUCT:
|
|
|
938 |
self.success = Provider()
|
|
|
939 |
self.success.read(iprot)
|
|
|
940 |
else:
|
|
|
941 |
iprot.skip(ftype)
|
|
|
942 |
elif fid == 1:
|
|
|
943 |
if ftype == TType.STRUCT:
|
|
|
944 |
self.lse = LogisticsServiceException()
|
|
|
945 |
self.lse.read(iprot)
|
|
|
946 |
else:
|
|
|
947 |
iprot.skip(ftype)
|
|
|
948 |
else:
|
|
|
949 |
iprot.skip(ftype)
|
|
|
950 |
iprot.readFieldEnd()
|
|
|
951 |
iprot.readStructEnd()
|
|
|
952 |
|
|
|
953 |
def write(self, oprot):
|
|
|
954 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
955 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
956 |
return
|
|
|
957 |
oprot.writeStructBegin('getProvider_result')
|
| 3431 |
rajveer |
958 |
if self.success is not None:
|
| 669 |
chandransh |
959 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
960 |
self.success.write(oprot)
|
|
|
961 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
962 |
if self.lse is not None:
|
| 669 |
chandransh |
963 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
964 |
self.lse.write(oprot)
|
|
|
965 |
oprot.writeFieldEnd()
|
|
|
966 |
oprot.writeFieldStop()
|
|
|
967 |
oprot.writeStructEnd()
|
|
|
968 |
|
| 3431 |
rajveer |
969 |
def validate(self):
|
|
|
970 |
return
|
|
|
971 |
|
|
|
972 |
|
| 669 |
chandransh |
973 |
def __repr__(self):
|
|
|
974 |
L = ['%s=%r' % (key, value)
|
|
|
975 |
for key, value in self.__dict__.iteritems()]
|
|
|
976 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
977 |
|
|
|
978 |
def __eq__(self, other):
|
|
|
979 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
980 |
|
|
|
981 |
def __ne__(self, other):
|
|
|
982 |
return not (self == other)
|
|
|
983 |
|
| 675 |
chandransh |
984 |
class getAllProviders_args:
|
|
|
985 |
|
|
|
986 |
thrift_spec = (
|
|
|
987 |
)
|
|
|
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 |
else:
|
|
|
999 |
iprot.skip(ftype)
|
|
|
1000 |
iprot.readFieldEnd()
|
|
|
1001 |
iprot.readStructEnd()
|
|
|
1002 |
|
|
|
1003 |
def write(self, oprot):
|
|
|
1004 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1005 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1006 |
return
|
|
|
1007 |
oprot.writeStructBegin('getAllProviders_args')
|
|
|
1008 |
oprot.writeFieldStop()
|
|
|
1009 |
oprot.writeStructEnd()
|
|
|
1010 |
|
| 3431 |
rajveer |
1011 |
def validate(self):
|
|
|
1012 |
return
|
|
|
1013 |
|
|
|
1014 |
|
| 675 |
chandransh |
1015 |
def __repr__(self):
|
|
|
1016 |
L = ['%s=%r' % (key, value)
|
|
|
1017 |
for key, value in self.__dict__.iteritems()]
|
|
|
1018 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1019 |
|
|
|
1020 |
def __eq__(self, other):
|
|
|
1021 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1022 |
|
|
|
1023 |
def __ne__(self, other):
|
|
|
1024 |
return not (self == other)
|
|
|
1025 |
|
|
|
1026 |
class getAllProviders_result:
|
|
|
1027 |
"""
|
|
|
1028 |
Attributes:
|
|
|
1029 |
- success
|
|
|
1030 |
- lse
|
|
|
1031 |
"""
|
|
|
1032 |
|
|
|
1033 |
thrift_spec = (
|
|
|
1034 |
(0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
|
|
|
1035 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1036 |
)
|
|
|
1037 |
|
|
|
1038 |
def __init__(self, success=None, lse=None,):
|
|
|
1039 |
self.success = success
|
|
|
1040 |
self.lse = lse
|
|
|
1041 |
|
|
|
1042 |
def read(self, iprot):
|
|
|
1043 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1044 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1045 |
return
|
|
|
1046 |
iprot.readStructBegin()
|
|
|
1047 |
while True:
|
|
|
1048 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1049 |
if ftype == TType.STOP:
|
|
|
1050 |
break
|
|
|
1051 |
if fid == 0:
|
|
|
1052 |
if ftype == TType.LIST:
|
|
|
1053 |
self.success = []
|
| 3044 |
chandransh |
1054 |
(_etype12, _size9) = iprot.readListBegin()
|
|
|
1055 |
for _i13 in xrange(_size9):
|
|
|
1056 |
_elem14 = Provider()
|
|
|
1057 |
_elem14.read(iprot)
|
|
|
1058 |
self.success.append(_elem14)
|
| 675 |
chandransh |
1059 |
iprot.readListEnd()
|
|
|
1060 |
else:
|
|
|
1061 |
iprot.skip(ftype)
|
|
|
1062 |
elif fid == 1:
|
|
|
1063 |
if ftype == TType.STRUCT:
|
|
|
1064 |
self.lse = LogisticsServiceException()
|
|
|
1065 |
self.lse.read(iprot)
|
|
|
1066 |
else:
|
|
|
1067 |
iprot.skip(ftype)
|
|
|
1068 |
else:
|
|
|
1069 |
iprot.skip(ftype)
|
|
|
1070 |
iprot.readFieldEnd()
|
|
|
1071 |
iprot.readStructEnd()
|
|
|
1072 |
|
|
|
1073 |
def write(self, oprot):
|
|
|
1074 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1075 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1076 |
return
|
|
|
1077 |
oprot.writeStructBegin('getAllProviders_result')
|
| 3431 |
rajveer |
1078 |
if self.success is not None:
|
| 675 |
chandransh |
1079 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1080 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 3044 |
chandransh |
1081 |
for iter15 in self.success:
|
|
|
1082 |
iter15.write(oprot)
|
| 675 |
chandransh |
1083 |
oprot.writeListEnd()
|
|
|
1084 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1085 |
if self.lse is not None:
|
| 675 |
chandransh |
1086 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
1087 |
self.lse.write(oprot)
|
|
|
1088 |
oprot.writeFieldEnd()
|
|
|
1089 |
oprot.writeFieldStop()
|
|
|
1090 |
oprot.writeStructEnd()
|
|
|
1091 |
|
| 3431 |
rajveer |
1092 |
def validate(self):
|
|
|
1093 |
return
|
|
|
1094 |
|
|
|
1095 |
|
| 675 |
chandransh |
1096 |
def __repr__(self):
|
|
|
1097 |
L = ['%s=%r' % (key, value)
|
|
|
1098 |
for key, value in self.__dict__.iteritems()]
|
|
|
1099 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1100 |
|
|
|
1101 |
def __eq__(self, other):
|
|
|
1102 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1103 |
|
|
|
1104 |
def __ne__(self, other):
|
|
|
1105 |
return not (self == other)
|
|
|
1106 |
|
| 647 |
chandransh |
1107 |
class getLogisticsEstimation_args:
|
| 483 |
rajveer |
1108 |
"""
|
|
|
1109 |
Attributes:
|
| 647 |
chandransh |
1110 |
- itemId
|
|
|
1111 |
- destination_pin
|
| 4630 |
mandeep.dh |
1112 |
- type
|
| 483 |
rajveer |
1113 |
"""
|
|
|
1114 |
|
|
|
1115 |
thrift_spec = (
|
|
|
1116 |
None, # 0
|
| 647 |
chandransh |
1117 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
1118 |
(2, TType.STRING, 'destination_pin', None, None, ), # 2
|
| 4630 |
mandeep.dh |
1119 |
(3, TType.I32, 'type', None, None, ), # 3
|
| 483 |
rajveer |
1120 |
)
|
|
|
1121 |
|
| 4630 |
mandeep.dh |
1122 |
def __init__(self, itemId=None, destination_pin=None, type=None,):
|
| 647 |
chandransh |
1123 |
self.itemId = itemId
|
|
|
1124 |
self.destination_pin = destination_pin
|
| 4630 |
mandeep.dh |
1125 |
self.type = type
|
| 483 |
rajveer |
1126 |
|
|
|
1127 |
def read(self, iprot):
|
|
|
1128 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1129 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1130 |
return
|
|
|
1131 |
iprot.readStructBegin()
|
|
|
1132 |
while True:
|
|
|
1133 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1134 |
if ftype == TType.STOP:
|
|
|
1135 |
break
|
|
|
1136 |
if fid == 1:
|
| 647 |
chandransh |
1137 |
if ftype == TType.I64:
|
|
|
1138 |
self.itemId = iprot.readI64();
|
| 483 |
rajveer |
1139 |
else:
|
|
|
1140 |
iprot.skip(ftype)
|
|
|
1141 |
elif fid == 2:
|
|
|
1142 |
if ftype == TType.STRING:
|
| 647 |
chandransh |
1143 |
self.destination_pin = iprot.readString();
|
| 483 |
rajveer |
1144 |
else:
|
|
|
1145 |
iprot.skip(ftype)
|
| 4630 |
mandeep.dh |
1146 |
elif fid == 3:
|
|
|
1147 |
if ftype == TType.I32:
|
|
|
1148 |
self.type = iprot.readI32();
|
|
|
1149 |
else:
|
|
|
1150 |
iprot.skip(ftype)
|
| 483 |
rajveer |
1151 |
else:
|
|
|
1152 |
iprot.skip(ftype)
|
|
|
1153 |
iprot.readFieldEnd()
|
|
|
1154 |
iprot.readStructEnd()
|
|
|
1155 |
|
|
|
1156 |
def write(self, oprot):
|
|
|
1157 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1158 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1159 |
return
|
| 647 |
chandransh |
1160 |
oprot.writeStructBegin('getLogisticsEstimation_args')
|
| 3431 |
rajveer |
1161 |
if self.itemId is not None:
|
| 647 |
chandransh |
1162 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
1163 |
oprot.writeI64(self.itemId)
|
| 483 |
rajveer |
1164 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1165 |
if self.destination_pin is not None:
|
| 647 |
chandransh |
1166 |
oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
|
|
|
1167 |
oprot.writeString(self.destination_pin)
|
| 483 |
rajveer |
1168 |
oprot.writeFieldEnd()
|
| 4630 |
mandeep.dh |
1169 |
if self.type is not None:
|
|
|
1170 |
oprot.writeFieldBegin('type', TType.I32, 3)
|
|
|
1171 |
oprot.writeI32(self.type)
|
|
|
1172 |
oprot.writeFieldEnd()
|
| 483 |
rajveer |
1173 |
oprot.writeFieldStop()
|
|
|
1174 |
oprot.writeStructEnd()
|
|
|
1175 |
|
| 3431 |
rajveer |
1176 |
def validate(self):
|
|
|
1177 |
return
|
|
|
1178 |
|
|
|
1179 |
|
| 483 |
rajveer |
1180 |
def __repr__(self):
|
|
|
1181 |
L = ['%s=%r' % (key, value)
|
|
|
1182 |
for key, value in self.__dict__.iteritems()]
|
|
|
1183 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1184 |
|
|
|
1185 |
def __eq__(self, other):
|
|
|
1186 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1187 |
|
|
|
1188 |
def __ne__(self, other):
|
|
|
1189 |
return not (self == other)
|
|
|
1190 |
|
| 647 |
chandransh |
1191 |
class getLogisticsEstimation_result:
|
| 483 |
rajveer |
1192 |
"""
|
|
|
1193 |
Attributes:
|
|
|
1194 |
- success
|
|
|
1195 |
- se
|
|
|
1196 |
"""
|
|
|
1197 |
|
|
|
1198 |
thrift_spec = (
|
|
|
1199 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
|
|
1200 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1201 |
)
|
|
|
1202 |
|
|
|
1203 |
def __init__(self, success=None, se=None,):
|
|
|
1204 |
self.success = success
|
|
|
1205 |
self.se = se
|
|
|
1206 |
|
|
|
1207 |
def read(self, iprot):
|
|
|
1208 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1209 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1210 |
return
|
|
|
1211 |
iprot.readStructBegin()
|
|
|
1212 |
while True:
|
|
|
1213 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1214 |
if ftype == TType.STOP:
|
|
|
1215 |
break
|
|
|
1216 |
if fid == 0:
|
|
|
1217 |
if ftype == TType.STRUCT:
|
|
|
1218 |
self.success = LogisticsInfo()
|
|
|
1219 |
self.success.read(iprot)
|
|
|
1220 |
else:
|
|
|
1221 |
iprot.skip(ftype)
|
|
|
1222 |
elif fid == 1:
|
|
|
1223 |
if ftype == TType.STRUCT:
|
|
|
1224 |
self.se = LogisticsServiceException()
|
|
|
1225 |
self.se.read(iprot)
|
|
|
1226 |
else:
|
|
|
1227 |
iprot.skip(ftype)
|
|
|
1228 |
else:
|
|
|
1229 |
iprot.skip(ftype)
|
|
|
1230 |
iprot.readFieldEnd()
|
|
|
1231 |
iprot.readStructEnd()
|
|
|
1232 |
|
|
|
1233 |
def write(self, oprot):
|
|
|
1234 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1235 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1236 |
return
|
| 647 |
chandransh |
1237 |
oprot.writeStructBegin('getLogisticsEstimation_result')
|
| 3431 |
rajveer |
1238 |
if self.success is not None:
|
| 483 |
rajveer |
1239 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1240 |
self.success.write(oprot)
|
|
|
1241 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1242 |
if self.se is not None:
|
| 483 |
rajveer |
1243 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1244 |
self.se.write(oprot)
|
|
|
1245 |
oprot.writeFieldEnd()
|
|
|
1246 |
oprot.writeFieldStop()
|
|
|
1247 |
oprot.writeStructEnd()
|
|
|
1248 |
|
| 3431 |
rajveer |
1249 |
def validate(self):
|
|
|
1250 |
return
|
|
|
1251 |
|
|
|
1252 |
|
| 483 |
rajveer |
1253 |
def __repr__(self):
|
|
|
1254 |
L = ['%s=%r' % (key, value)
|
|
|
1255 |
for key, value in self.__dict__.iteritems()]
|
|
|
1256 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1257 |
|
|
|
1258 |
def __eq__(self, other):
|
|
|
1259 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1260 |
|
|
|
1261 |
def __ne__(self, other):
|
|
|
1262 |
return not (self == other)
|
|
|
1263 |
|
| 647 |
chandransh |
1264 |
class getLogisticsInfo_args:
|
| 472 |
rajveer |
1265 |
"""
|
|
|
1266 |
Attributes:
|
| 647 |
chandransh |
1267 |
- destination_pincode
|
|
|
1268 |
- item_id
|
| 3044 |
chandransh |
1269 |
- type
|
| 472 |
rajveer |
1270 |
"""
|
|
|
1271 |
|
|
|
1272 |
thrift_spec = (
|
|
|
1273 |
None, # 0
|
| 647 |
chandransh |
1274 |
(1, TType.STRING, 'destination_pincode', None, None, ), # 1
|
| 716 |
rajveer |
1275 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
| 3044 |
chandransh |
1276 |
(3, TType.I32, 'type', None, None, ), # 3
|
| 472 |
rajveer |
1277 |
)
|
|
|
1278 |
|
| 3044 |
chandransh |
1279 |
def __init__(self, destination_pincode=None, item_id=None, type=None,):
|
| 647 |
chandransh |
1280 |
self.destination_pincode = destination_pincode
|
|
|
1281 |
self.item_id = item_id
|
| 3044 |
chandransh |
1282 |
self.type = type
|
| 472 |
rajveer |
1283 |
|
|
|
1284 |
def read(self, iprot):
|
|
|
1285 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1286 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1287 |
return
|
|
|
1288 |
iprot.readStructBegin()
|
|
|
1289 |
while True:
|
|
|
1290 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1291 |
if ftype == TType.STOP:
|
|
|
1292 |
break
|
|
|
1293 |
if fid == 1:
|
| 647 |
chandransh |
1294 |
if ftype == TType.STRING:
|
|
|
1295 |
self.destination_pincode = iprot.readString();
|
| 472 |
rajveer |
1296 |
else:
|
|
|
1297 |
iprot.skip(ftype)
|
|
|
1298 |
elif fid == 2:
|
| 716 |
rajveer |
1299 |
if ftype == TType.I64:
|
|
|
1300 |
self.item_id = iprot.readI64();
|
| 472 |
rajveer |
1301 |
else:
|
|
|
1302 |
iprot.skip(ftype)
|
| 3044 |
chandransh |
1303 |
elif fid == 3:
|
|
|
1304 |
if ftype == TType.I32:
|
|
|
1305 |
self.type = iprot.readI32();
|
|
|
1306 |
else:
|
|
|
1307 |
iprot.skip(ftype)
|
| 472 |
rajveer |
1308 |
else:
|
|
|
1309 |
iprot.skip(ftype)
|
|
|
1310 |
iprot.readFieldEnd()
|
|
|
1311 |
iprot.readStructEnd()
|
|
|
1312 |
|
|
|
1313 |
def write(self, oprot):
|
|
|
1314 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1315 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1316 |
return
|
| 647 |
chandransh |
1317 |
oprot.writeStructBegin('getLogisticsInfo_args')
|
| 3431 |
rajveer |
1318 |
if self.destination_pincode is not None:
|
| 647 |
chandransh |
1319 |
oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
|
|
|
1320 |
oprot.writeString(self.destination_pincode)
|
| 472 |
rajveer |
1321 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1322 |
if self.item_id is not None:
|
| 716 |
rajveer |
1323 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
1324 |
oprot.writeI64(self.item_id)
|
| 472 |
rajveer |
1325 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1326 |
if self.type is not None:
|
| 3044 |
chandransh |
1327 |
oprot.writeFieldBegin('type', TType.I32, 3)
|
|
|
1328 |
oprot.writeI32(self.type)
|
|
|
1329 |
oprot.writeFieldEnd()
|
| 472 |
rajveer |
1330 |
oprot.writeFieldStop()
|
|
|
1331 |
oprot.writeStructEnd()
|
|
|
1332 |
|
| 3431 |
rajveer |
1333 |
def validate(self):
|
|
|
1334 |
return
|
|
|
1335 |
|
|
|
1336 |
|
| 472 |
rajveer |
1337 |
def __repr__(self):
|
|
|
1338 |
L = ['%s=%r' % (key, value)
|
|
|
1339 |
for key, value in self.__dict__.iteritems()]
|
|
|
1340 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1341 |
|
|
|
1342 |
def __eq__(self, other):
|
|
|
1343 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1344 |
|
|
|
1345 |
def __ne__(self, other):
|
|
|
1346 |
return not (self == other)
|
|
|
1347 |
|
| 647 |
chandransh |
1348 |
class getLogisticsInfo_result:
|
| 472 |
rajveer |
1349 |
"""
|
|
|
1350 |
Attributes:
|
|
|
1351 |
- success
|
|
|
1352 |
- se
|
|
|
1353 |
"""
|
|
|
1354 |
|
|
|
1355 |
thrift_spec = (
|
| 644 |
chandransh |
1356 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
| 472 |
rajveer |
1357 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1358 |
)
|
|
|
1359 |
|
|
|
1360 |
def __init__(self, success=None, se=None,):
|
|
|
1361 |
self.success = success
|
|
|
1362 |
self.se = se
|
|
|
1363 |
|
|
|
1364 |
def read(self, iprot):
|
|
|
1365 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1366 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1367 |
return
|
|
|
1368 |
iprot.readStructBegin()
|
|
|
1369 |
while True:
|
|
|
1370 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1371 |
if ftype == TType.STOP:
|
|
|
1372 |
break
|
|
|
1373 |
if fid == 0:
|
|
|
1374 |
if ftype == TType.STRUCT:
|
| 644 |
chandransh |
1375 |
self.success = LogisticsInfo()
|
| 472 |
rajveer |
1376 |
self.success.read(iprot)
|
|
|
1377 |
else:
|
|
|
1378 |
iprot.skip(ftype)
|
|
|
1379 |
elif fid == 1:
|
|
|
1380 |
if ftype == TType.STRUCT:
|
|
|
1381 |
self.se = LogisticsServiceException()
|
|
|
1382 |
self.se.read(iprot)
|
|
|
1383 |
else:
|
|
|
1384 |
iprot.skip(ftype)
|
|
|
1385 |
else:
|
|
|
1386 |
iprot.skip(ftype)
|
|
|
1387 |
iprot.readFieldEnd()
|
|
|
1388 |
iprot.readStructEnd()
|
|
|
1389 |
|
|
|
1390 |
def write(self, oprot):
|
|
|
1391 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1392 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1393 |
return
|
| 647 |
chandransh |
1394 |
oprot.writeStructBegin('getLogisticsInfo_result')
|
| 3431 |
rajveer |
1395 |
if self.success is not None:
|
| 472 |
rajveer |
1396 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1397 |
self.success.write(oprot)
|
|
|
1398 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1399 |
if self.se is not None:
|
| 472 |
rajveer |
1400 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1401 |
self.se.write(oprot)
|
|
|
1402 |
oprot.writeFieldEnd()
|
|
|
1403 |
oprot.writeFieldStop()
|
|
|
1404 |
oprot.writeStructEnd()
|
|
|
1405 |
|
| 3431 |
rajveer |
1406 |
def validate(self):
|
|
|
1407 |
return
|
|
|
1408 |
|
|
|
1409 |
|
| 472 |
rajveer |
1410 |
def __repr__(self):
|
|
|
1411 |
L = ['%s=%r' % (key, value)
|
|
|
1412 |
for key, value in self.__dict__.iteritems()]
|
|
|
1413 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1414 |
|
|
|
1415 |
def __eq__(self, other):
|
|
|
1416 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1417 |
|
|
|
1418 |
def __ne__(self, other):
|
|
|
1419 |
return not (self == other)
|
|
|
1420 |
|
| 412 |
ashish |
1421 |
class getEmptyAWB_args:
|
|
|
1422 |
"""
|
|
|
1423 |
Attributes:
|
| 647 |
chandransh |
1424 |
- providerId
|
| 5247 |
rajveer |
1425 |
- type
|
| 412 |
ashish |
1426 |
"""
|
|
|
1427 |
|
| 5247 |
rajveer |
1428 |
thrift_spec = None
|
|
|
1429 |
def __init__(self, providerId=None, type=None,):
|
| 647 |
chandransh |
1430 |
self.providerId = providerId
|
| 5247 |
rajveer |
1431 |
self.type = type
|
| 412 |
ashish |
1432 |
|
|
|
1433 |
def read(self, iprot):
|
|
|
1434 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1435 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1436 |
return
|
|
|
1437 |
iprot.readStructBegin()
|
|
|
1438 |
while True:
|
|
|
1439 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1440 |
if ftype == TType.STOP:
|
|
|
1441 |
break
|
|
|
1442 |
if fid == 1:
|
|
|
1443 |
if ftype == TType.I64:
|
| 647 |
chandransh |
1444 |
self.providerId = iprot.readI64();
|
| 412 |
ashish |
1445 |
else:
|
|
|
1446 |
iprot.skip(ftype)
|
| 5247 |
rajveer |
1447 |
elif fid == -1:
|
|
|
1448 |
if ftype == TType.I32:
|
|
|
1449 |
self.type = iprot.readI32();
|
|
|
1450 |
else:
|
|
|
1451 |
iprot.skip(ftype)
|
| 412 |
ashish |
1452 |
else:
|
|
|
1453 |
iprot.skip(ftype)
|
|
|
1454 |
iprot.readFieldEnd()
|
|
|
1455 |
iprot.readStructEnd()
|
|
|
1456 |
|
|
|
1457 |
def write(self, oprot):
|
|
|
1458 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1459 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1460 |
return
|
|
|
1461 |
oprot.writeStructBegin('getEmptyAWB_args')
|
| 5247 |
rajveer |
1462 |
if self.type is not None:
|
|
|
1463 |
oprot.writeFieldBegin('type', TType.I32, -1)
|
|
|
1464 |
oprot.writeI32(self.type)
|
|
|
1465 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1466 |
if self.providerId is not None:
|
| 647 |
chandransh |
1467 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1468 |
oprot.writeI64(self.providerId)
|
| 412 |
ashish |
1469 |
oprot.writeFieldEnd()
|
|
|
1470 |
oprot.writeFieldStop()
|
|
|
1471 |
oprot.writeStructEnd()
|
|
|
1472 |
|
| 3431 |
rajveer |
1473 |
def validate(self):
|
|
|
1474 |
return
|
|
|
1475 |
|
|
|
1476 |
|
| 412 |
ashish |
1477 |
def __repr__(self):
|
|
|
1478 |
L = ['%s=%r' % (key, value)
|
|
|
1479 |
for key, value in self.__dict__.iteritems()]
|
|
|
1480 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1481 |
|
|
|
1482 |
def __eq__(self, other):
|
|
|
1483 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1484 |
|
|
|
1485 |
def __ne__(self, other):
|
|
|
1486 |
return not (self == other)
|
|
|
1487 |
|
|
|
1488 |
class getEmptyAWB_result:
|
|
|
1489 |
"""
|
|
|
1490 |
Attributes:
|
|
|
1491 |
- success
|
| 647 |
chandransh |
1492 |
- se
|
| 412 |
ashish |
1493 |
"""
|
|
|
1494 |
|
|
|
1495 |
thrift_spec = (
|
|
|
1496 |
(0, TType.STRING, 'success', None, None, ), # 0
|
| 647 |
chandransh |
1497 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
1498 |
)
|
|
|
1499 |
|
| 647 |
chandransh |
1500 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
1501 |
self.success = success
|
| 647 |
chandransh |
1502 |
self.se = se
|
| 412 |
ashish |
1503 |
|
|
|
1504 |
def read(self, iprot):
|
|
|
1505 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1506 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1507 |
return
|
|
|
1508 |
iprot.readStructBegin()
|
|
|
1509 |
while True:
|
|
|
1510 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1511 |
if ftype == TType.STOP:
|
|
|
1512 |
break
|
|
|
1513 |
if fid == 0:
|
|
|
1514 |
if ftype == TType.STRING:
|
|
|
1515 |
self.success = iprot.readString();
|
|
|
1516 |
else:
|
|
|
1517 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1518 |
elif fid == 1:
|
|
|
1519 |
if ftype == TType.STRUCT:
|
|
|
1520 |
self.se = LogisticsServiceException()
|
|
|
1521 |
self.se.read(iprot)
|
|
|
1522 |
else:
|
|
|
1523 |
iprot.skip(ftype)
|
| 412 |
ashish |
1524 |
else:
|
|
|
1525 |
iprot.skip(ftype)
|
|
|
1526 |
iprot.readFieldEnd()
|
|
|
1527 |
iprot.readStructEnd()
|
|
|
1528 |
|
|
|
1529 |
def write(self, oprot):
|
|
|
1530 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1531 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1532 |
return
|
|
|
1533 |
oprot.writeStructBegin('getEmptyAWB_result')
|
| 3431 |
rajveer |
1534 |
if self.success is not None:
|
| 412 |
ashish |
1535 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
1536 |
oprot.writeString(self.success)
|
|
|
1537 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1538 |
if self.se is not None:
|
| 647 |
chandransh |
1539 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1540 |
self.se.write(oprot)
|
|
|
1541 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1542 |
oprot.writeFieldStop()
|
|
|
1543 |
oprot.writeStructEnd()
|
|
|
1544 |
|
| 3431 |
rajveer |
1545 |
def validate(self):
|
|
|
1546 |
return
|
|
|
1547 |
|
|
|
1548 |
|
| 412 |
ashish |
1549 |
def __repr__(self):
|
|
|
1550 |
L = ['%s=%r' % (key, value)
|
|
|
1551 |
for key, value in self.__dict__.iteritems()]
|
|
|
1552 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1553 |
|
|
|
1554 |
def __eq__(self, other):
|
|
|
1555 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1556 |
|
|
|
1557 |
def __ne__(self, other):
|
|
|
1558 |
return not (self == other)
|
|
|
1559 |
|
|
|
1560 |
class getShipmentInfo_args:
|
|
|
1561 |
"""
|
|
|
1562 |
Attributes:
|
|
|
1563 |
- awb
|
| 647 |
chandransh |
1564 |
- providerId
|
| 412 |
ashish |
1565 |
"""
|
|
|
1566 |
|
|
|
1567 |
thrift_spec = (
|
|
|
1568 |
None, # 0
|
|
|
1569 |
(1, TType.STRING, 'awb', None, None, ), # 1
|
| 647 |
chandransh |
1570 |
(2, TType.I64, 'providerId', None, None, ), # 2
|
| 412 |
ashish |
1571 |
)
|
|
|
1572 |
|
| 647 |
chandransh |
1573 |
def __init__(self, awb=None, providerId=None,):
|
| 412 |
ashish |
1574 |
self.awb = awb
|
| 647 |
chandransh |
1575 |
self.providerId = providerId
|
| 412 |
ashish |
1576 |
|
|
|
1577 |
def read(self, iprot):
|
|
|
1578 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1579 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1580 |
return
|
|
|
1581 |
iprot.readStructBegin()
|
|
|
1582 |
while True:
|
|
|
1583 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1584 |
if ftype == TType.STOP:
|
|
|
1585 |
break
|
|
|
1586 |
if fid == 1:
|
|
|
1587 |
if ftype == TType.STRING:
|
|
|
1588 |
self.awb = iprot.readString();
|
|
|
1589 |
else:
|
|
|
1590 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1591 |
elif fid == 2:
|
|
|
1592 |
if ftype == TType.I64:
|
|
|
1593 |
self.providerId = iprot.readI64();
|
|
|
1594 |
else:
|
|
|
1595 |
iprot.skip(ftype)
|
| 412 |
ashish |
1596 |
else:
|
|
|
1597 |
iprot.skip(ftype)
|
|
|
1598 |
iprot.readFieldEnd()
|
|
|
1599 |
iprot.readStructEnd()
|
|
|
1600 |
|
|
|
1601 |
def write(self, oprot):
|
|
|
1602 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1603 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1604 |
return
|
|
|
1605 |
oprot.writeStructBegin('getShipmentInfo_args')
|
| 3431 |
rajveer |
1606 |
if self.awb is not None:
|
| 412 |
ashish |
1607 |
oprot.writeFieldBegin('awb', TType.STRING, 1)
|
|
|
1608 |
oprot.writeString(self.awb)
|
|
|
1609 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1610 |
if self.providerId is not None:
|
| 647 |
chandransh |
1611 |
oprot.writeFieldBegin('providerId', TType.I64, 2)
|
|
|
1612 |
oprot.writeI64(self.providerId)
|
|
|
1613 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1614 |
oprot.writeFieldStop()
|
|
|
1615 |
oprot.writeStructEnd()
|
|
|
1616 |
|
| 3431 |
rajveer |
1617 |
def validate(self):
|
|
|
1618 |
return
|
|
|
1619 |
|
|
|
1620 |
|
| 412 |
ashish |
1621 |
def __repr__(self):
|
|
|
1622 |
L = ['%s=%r' % (key, value)
|
|
|
1623 |
for key, value in self.__dict__.iteritems()]
|
|
|
1624 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1625 |
|
|
|
1626 |
def __eq__(self, other):
|
|
|
1627 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1628 |
|
|
|
1629 |
def __ne__(self, other):
|
|
|
1630 |
return not (self == other)
|
|
|
1631 |
|
|
|
1632 |
class getShipmentInfo_result:
|
|
|
1633 |
"""
|
|
|
1634 |
Attributes:
|
|
|
1635 |
- success
|
| 647 |
chandransh |
1636 |
- se
|
| 412 |
ashish |
1637 |
"""
|
|
|
1638 |
|
|
|
1639 |
thrift_spec = (
|
| 644 |
chandransh |
1640 |
(0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
|
| 647 |
chandransh |
1641 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
1642 |
)
|
|
|
1643 |
|
| 647 |
chandransh |
1644 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
1645 |
self.success = success
|
| 647 |
chandransh |
1646 |
self.se = se
|
| 412 |
ashish |
1647 |
|
|
|
1648 |
def read(self, iprot):
|
|
|
1649 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1650 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1651 |
return
|
|
|
1652 |
iprot.readStructBegin()
|
|
|
1653 |
while True:
|
|
|
1654 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1655 |
if ftype == TType.STOP:
|
|
|
1656 |
break
|
|
|
1657 |
if fid == 0:
|
|
|
1658 |
if ftype == TType.LIST:
|
|
|
1659 |
self.success = []
|
| 3044 |
chandransh |
1660 |
(_etype19, _size16) = iprot.readListBegin()
|
|
|
1661 |
for _i20 in xrange(_size16):
|
|
|
1662 |
_elem21 = AwbUpdate()
|
|
|
1663 |
_elem21.read(iprot)
|
|
|
1664 |
self.success.append(_elem21)
|
| 412 |
ashish |
1665 |
iprot.readListEnd()
|
|
|
1666 |
else:
|
|
|
1667 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1668 |
elif fid == 1:
|
|
|
1669 |
if ftype == TType.STRUCT:
|
|
|
1670 |
self.se = LogisticsServiceException()
|
|
|
1671 |
self.se.read(iprot)
|
|
|
1672 |
else:
|
|
|
1673 |
iprot.skip(ftype)
|
| 412 |
ashish |
1674 |
else:
|
|
|
1675 |
iprot.skip(ftype)
|
|
|
1676 |
iprot.readFieldEnd()
|
|
|
1677 |
iprot.readStructEnd()
|
|
|
1678 |
|
|
|
1679 |
def write(self, oprot):
|
|
|
1680 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1681 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1682 |
return
|
| 644 |
chandransh |
1683 |
oprot.writeStructBegin('getShipmentInfo_result')
|
| 3431 |
rajveer |
1684 |
if self.success is not None:
|
| 412 |
ashish |
1685 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1686 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 3044 |
chandransh |
1687 |
for iter22 in self.success:
|
|
|
1688 |
iter22.write(oprot)
|
| 412 |
ashish |
1689 |
oprot.writeListEnd()
|
|
|
1690 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1691 |
if self.se is not None:
|
| 647 |
chandransh |
1692 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1693 |
self.se.write(oprot)
|
|
|
1694 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1695 |
oprot.writeFieldStop()
|
|
|
1696 |
oprot.writeStructEnd()
|
|
|
1697 |
|
| 3431 |
rajveer |
1698 |
def validate(self):
|
|
|
1699 |
return
|
|
|
1700 |
|
|
|
1701 |
|
| 412 |
ashish |
1702 |
def __repr__(self):
|
|
|
1703 |
L = ['%s=%r' % (key, value)
|
|
|
1704 |
for key, value in self.__dict__.iteritems()]
|
|
|
1705 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1706 |
|
|
|
1707 |
def __eq__(self, other):
|
|
|
1708 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1709 |
|
|
|
1710 |
def __ne__(self, other):
|
|
|
1711 |
return not (self == other)
|
|
|
1712 |
|
| 732 |
chandransh |
1713 |
class getDestinationCode_args:
|
|
|
1714 |
"""
|
|
|
1715 |
Attributes:
|
|
|
1716 |
- providerId
|
|
|
1717 |
- pinCode
|
|
|
1718 |
"""
|
| 412 |
ashish |
1719 |
|
| 732 |
chandransh |
1720 |
thrift_spec = (
|
|
|
1721 |
None, # 0
|
|
|
1722 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
1723 |
(2, TType.STRING, 'pinCode', None, None, ), # 2
|
|
|
1724 |
)
|
|
|
1725 |
|
|
|
1726 |
def __init__(self, providerId=None, pinCode=None,):
|
|
|
1727 |
self.providerId = providerId
|
|
|
1728 |
self.pinCode = pinCode
|
|
|
1729 |
|
|
|
1730 |
def read(self, iprot):
|
|
|
1731 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1732 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1733 |
return
|
|
|
1734 |
iprot.readStructBegin()
|
|
|
1735 |
while True:
|
|
|
1736 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1737 |
if ftype == TType.STOP:
|
|
|
1738 |
break
|
|
|
1739 |
if fid == 1:
|
|
|
1740 |
if ftype == TType.I64:
|
|
|
1741 |
self.providerId = iprot.readI64();
|
|
|
1742 |
else:
|
|
|
1743 |
iprot.skip(ftype)
|
|
|
1744 |
elif fid == 2:
|
|
|
1745 |
if ftype == TType.STRING:
|
|
|
1746 |
self.pinCode = iprot.readString();
|
|
|
1747 |
else:
|
|
|
1748 |
iprot.skip(ftype)
|
|
|
1749 |
else:
|
|
|
1750 |
iprot.skip(ftype)
|
|
|
1751 |
iprot.readFieldEnd()
|
|
|
1752 |
iprot.readStructEnd()
|
|
|
1753 |
|
|
|
1754 |
def write(self, oprot):
|
|
|
1755 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1756 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1757 |
return
|
|
|
1758 |
oprot.writeStructBegin('getDestinationCode_args')
|
| 3431 |
rajveer |
1759 |
if self.providerId is not None:
|
| 732 |
chandransh |
1760 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1761 |
oprot.writeI64(self.providerId)
|
|
|
1762 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1763 |
if self.pinCode is not None:
|
| 732 |
chandransh |
1764 |
oprot.writeFieldBegin('pinCode', TType.STRING, 2)
|
|
|
1765 |
oprot.writeString(self.pinCode)
|
|
|
1766 |
oprot.writeFieldEnd()
|
|
|
1767 |
oprot.writeFieldStop()
|
|
|
1768 |
oprot.writeStructEnd()
|
|
|
1769 |
|
| 3431 |
rajveer |
1770 |
def validate(self):
|
|
|
1771 |
return
|
|
|
1772 |
|
|
|
1773 |
|
| 732 |
chandransh |
1774 |
def __repr__(self):
|
|
|
1775 |
L = ['%s=%r' % (key, value)
|
|
|
1776 |
for key, value in self.__dict__.iteritems()]
|
|
|
1777 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1778 |
|
|
|
1779 |
def __eq__(self, other):
|
|
|
1780 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1781 |
|
|
|
1782 |
def __ne__(self, other):
|
|
|
1783 |
return not (self == other)
|
|
|
1784 |
|
|
|
1785 |
class getDestinationCode_result:
|
|
|
1786 |
"""
|
|
|
1787 |
Attributes:
|
|
|
1788 |
- success
|
|
|
1789 |
- se
|
|
|
1790 |
"""
|
|
|
1791 |
|
|
|
1792 |
thrift_spec = (
|
|
|
1793 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
1794 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1795 |
)
|
|
|
1796 |
|
|
|
1797 |
def __init__(self, success=None, se=None,):
|
|
|
1798 |
self.success = success
|
|
|
1799 |
self.se = se
|
|
|
1800 |
|
|
|
1801 |
def read(self, iprot):
|
|
|
1802 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1803 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1804 |
return
|
|
|
1805 |
iprot.readStructBegin()
|
|
|
1806 |
while True:
|
|
|
1807 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1808 |
if ftype == TType.STOP:
|
|
|
1809 |
break
|
|
|
1810 |
if fid == 0:
|
|
|
1811 |
if ftype == TType.STRING:
|
|
|
1812 |
self.success = iprot.readString();
|
|
|
1813 |
else:
|
|
|
1814 |
iprot.skip(ftype)
|
|
|
1815 |
elif fid == 1:
|
|
|
1816 |
if ftype == TType.STRUCT:
|
|
|
1817 |
self.se = LogisticsServiceException()
|
|
|
1818 |
self.se.read(iprot)
|
|
|
1819 |
else:
|
|
|
1820 |
iprot.skip(ftype)
|
|
|
1821 |
else:
|
|
|
1822 |
iprot.skip(ftype)
|
|
|
1823 |
iprot.readFieldEnd()
|
|
|
1824 |
iprot.readStructEnd()
|
|
|
1825 |
|
|
|
1826 |
def write(self, oprot):
|
|
|
1827 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1828 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1829 |
return
|
|
|
1830 |
oprot.writeStructBegin('getDestinationCode_result')
|
| 3431 |
rajveer |
1831 |
if self.success is not None:
|
| 732 |
chandransh |
1832 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
1833 |
oprot.writeString(self.success)
|
|
|
1834 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1835 |
if self.se is not None:
|
| 732 |
chandransh |
1836 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1837 |
self.se.write(oprot)
|
|
|
1838 |
oprot.writeFieldEnd()
|
|
|
1839 |
oprot.writeFieldStop()
|
|
|
1840 |
oprot.writeStructEnd()
|
|
|
1841 |
|
| 3431 |
rajveer |
1842 |
def validate(self):
|
|
|
1843 |
return
|
|
|
1844 |
|
|
|
1845 |
|
| 732 |
chandransh |
1846 |
def __repr__(self):
|
|
|
1847 |
L = ['%s=%r' % (key, value)
|
|
|
1848 |
for key, value in self.__dict__.iteritems()]
|
|
|
1849 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1850 |
|
|
|
1851 |
def __eq__(self, other):
|
|
|
1852 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1853 |
|
|
|
1854 |
def __ne__(self, other):
|
|
|
1855 |
return not (self == other)
|
|
|
1856 |
|
| 1137 |
chandransh |
1857 |
class getFreeAwbCount_args:
|
|
|
1858 |
"""
|
|
|
1859 |
Attributes:
|
|
|
1860 |
- providerId
|
| 3103 |
chandransh |
1861 |
- type
|
| 1137 |
chandransh |
1862 |
"""
|
| 732 |
chandransh |
1863 |
|
| 1137 |
chandransh |
1864 |
thrift_spec = (
|
|
|
1865 |
None, # 0
|
|
|
1866 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
| 3103 |
chandransh |
1867 |
(2, TType.STRING, 'type', None, None, ), # 2
|
| 1137 |
chandransh |
1868 |
)
|
|
|
1869 |
|
| 3103 |
chandransh |
1870 |
def __init__(self, providerId=None, type=None,):
|
| 1137 |
chandransh |
1871 |
self.providerId = providerId
|
| 3103 |
chandransh |
1872 |
self.type = type
|
| 1137 |
chandransh |
1873 |
|
|
|
1874 |
def read(self, iprot):
|
|
|
1875 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1876 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1877 |
return
|
|
|
1878 |
iprot.readStructBegin()
|
|
|
1879 |
while True:
|
|
|
1880 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1881 |
if ftype == TType.STOP:
|
|
|
1882 |
break
|
|
|
1883 |
if fid == 1:
|
|
|
1884 |
if ftype == TType.I64:
|
|
|
1885 |
self.providerId = iprot.readI64();
|
|
|
1886 |
else:
|
|
|
1887 |
iprot.skip(ftype)
|
| 3103 |
chandransh |
1888 |
elif fid == 2:
|
|
|
1889 |
if ftype == TType.STRING:
|
|
|
1890 |
self.type = iprot.readString();
|
|
|
1891 |
else:
|
|
|
1892 |
iprot.skip(ftype)
|
| 1137 |
chandransh |
1893 |
else:
|
|
|
1894 |
iprot.skip(ftype)
|
|
|
1895 |
iprot.readFieldEnd()
|
|
|
1896 |
iprot.readStructEnd()
|
|
|
1897 |
|
|
|
1898 |
def write(self, oprot):
|
|
|
1899 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1900 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1901 |
return
|
|
|
1902 |
oprot.writeStructBegin('getFreeAwbCount_args')
|
| 3431 |
rajveer |
1903 |
if self.providerId is not None:
|
| 1137 |
chandransh |
1904 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1905 |
oprot.writeI64(self.providerId)
|
|
|
1906 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1907 |
if self.type is not None:
|
| 3103 |
chandransh |
1908 |
oprot.writeFieldBegin('type', TType.STRING, 2)
|
|
|
1909 |
oprot.writeString(self.type)
|
|
|
1910 |
oprot.writeFieldEnd()
|
| 1137 |
chandransh |
1911 |
oprot.writeFieldStop()
|
|
|
1912 |
oprot.writeStructEnd()
|
|
|
1913 |
|
| 3431 |
rajveer |
1914 |
def validate(self):
|
|
|
1915 |
return
|
|
|
1916 |
|
|
|
1917 |
|
| 1137 |
chandransh |
1918 |
def __repr__(self):
|
|
|
1919 |
L = ['%s=%r' % (key, value)
|
|
|
1920 |
for key, value in self.__dict__.iteritems()]
|
|
|
1921 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1922 |
|
|
|
1923 |
def __eq__(self, other):
|
|
|
1924 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1925 |
|
|
|
1926 |
def __ne__(self, other):
|
|
|
1927 |
return not (self == other)
|
|
|
1928 |
|
|
|
1929 |
class getFreeAwbCount_result:
|
|
|
1930 |
"""
|
|
|
1931 |
Attributes:
|
|
|
1932 |
- success
|
|
|
1933 |
"""
|
|
|
1934 |
|
|
|
1935 |
thrift_spec = (
|
|
|
1936 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1937 |
)
|
|
|
1938 |
|
|
|
1939 |
def __init__(self, success=None,):
|
|
|
1940 |
self.success = success
|
|
|
1941 |
|
|
|
1942 |
def read(self, iprot):
|
|
|
1943 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1944 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1945 |
return
|
|
|
1946 |
iprot.readStructBegin()
|
|
|
1947 |
while True:
|
|
|
1948 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1949 |
if ftype == TType.STOP:
|
|
|
1950 |
break
|
|
|
1951 |
if fid == 0:
|
|
|
1952 |
if ftype == TType.I64:
|
|
|
1953 |
self.success = iprot.readI64();
|
|
|
1954 |
else:
|
|
|
1955 |
iprot.skip(ftype)
|
|
|
1956 |
else:
|
|
|
1957 |
iprot.skip(ftype)
|
|
|
1958 |
iprot.readFieldEnd()
|
|
|
1959 |
iprot.readStructEnd()
|
|
|
1960 |
|
|
|
1961 |
def write(self, oprot):
|
|
|
1962 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1963 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1964 |
return
|
|
|
1965 |
oprot.writeStructBegin('getFreeAwbCount_result')
|
| 3431 |
rajveer |
1966 |
if self.success is not None:
|
| 1137 |
chandransh |
1967 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1968 |
oprot.writeI64(self.success)
|
|
|
1969 |
oprot.writeFieldEnd()
|
|
|
1970 |
oprot.writeFieldStop()
|
|
|
1971 |
oprot.writeStructEnd()
|
|
|
1972 |
|
| 3431 |
rajveer |
1973 |
def validate(self):
|
|
|
1974 |
return
|
|
|
1975 |
|
|
|
1976 |
|
| 1137 |
chandransh |
1977 |
def __repr__(self):
|
|
|
1978 |
L = ['%s=%r' % (key, value)
|
|
|
1979 |
for key, value in self.__dict__.iteritems()]
|
|
|
1980 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1981 |
|
|
|
1982 |
def __eq__(self, other):
|
|
|
1983 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1984 |
|
|
|
1985 |
def __ne__(self, other):
|
|
|
1986 |
return not (self == other)
|
|
|
1987 |
|
| 1730 |
ankur.sing |
1988 |
class getHolidays_args:
|
|
|
1989 |
"""
|
|
|
1990 |
Attributes:
|
|
|
1991 |
- fromDate
|
|
|
1992 |
- toDate
|
|
|
1993 |
"""
|
| 1137 |
chandransh |
1994 |
|
| 1730 |
ankur.sing |
1995 |
thrift_spec = (
|
|
|
1996 |
None, # 0
|
|
|
1997 |
(1, TType.I64, 'fromDate', None, None, ), # 1
|
|
|
1998 |
(2, TType.I64, 'toDate', None, None, ), # 2
|
|
|
1999 |
)
|
|
|
2000 |
|
|
|
2001 |
def __init__(self, fromDate=None, toDate=None,):
|
|
|
2002 |
self.fromDate = fromDate
|
|
|
2003 |
self.toDate = toDate
|
|
|
2004 |
|
|
|
2005 |
def read(self, iprot):
|
|
|
2006 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2007 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2008 |
return
|
|
|
2009 |
iprot.readStructBegin()
|
|
|
2010 |
while True:
|
|
|
2011 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2012 |
if ftype == TType.STOP:
|
|
|
2013 |
break
|
|
|
2014 |
if fid == 1:
|
|
|
2015 |
if ftype == TType.I64:
|
|
|
2016 |
self.fromDate = iprot.readI64();
|
|
|
2017 |
else:
|
|
|
2018 |
iprot.skip(ftype)
|
|
|
2019 |
elif fid == 2:
|
|
|
2020 |
if ftype == TType.I64:
|
|
|
2021 |
self.toDate = iprot.readI64();
|
|
|
2022 |
else:
|
|
|
2023 |
iprot.skip(ftype)
|
|
|
2024 |
else:
|
|
|
2025 |
iprot.skip(ftype)
|
|
|
2026 |
iprot.readFieldEnd()
|
|
|
2027 |
iprot.readStructEnd()
|
|
|
2028 |
|
|
|
2029 |
def write(self, oprot):
|
|
|
2030 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2031 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2032 |
return
|
|
|
2033 |
oprot.writeStructBegin('getHolidays_args')
|
| 3431 |
rajveer |
2034 |
if self.fromDate is not None:
|
| 1730 |
ankur.sing |
2035 |
oprot.writeFieldBegin('fromDate', TType.I64, 1)
|
|
|
2036 |
oprot.writeI64(self.fromDate)
|
|
|
2037 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2038 |
if self.toDate is not None:
|
| 1730 |
ankur.sing |
2039 |
oprot.writeFieldBegin('toDate', TType.I64, 2)
|
|
|
2040 |
oprot.writeI64(self.toDate)
|
|
|
2041 |
oprot.writeFieldEnd()
|
|
|
2042 |
oprot.writeFieldStop()
|
|
|
2043 |
oprot.writeStructEnd()
|
|
|
2044 |
|
| 3431 |
rajveer |
2045 |
def validate(self):
|
|
|
2046 |
return
|
|
|
2047 |
|
|
|
2048 |
|
| 1730 |
ankur.sing |
2049 |
def __repr__(self):
|
|
|
2050 |
L = ['%s=%r' % (key, value)
|
|
|
2051 |
for key, value in self.__dict__.iteritems()]
|
|
|
2052 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2053 |
|
|
|
2054 |
def __eq__(self, other):
|
|
|
2055 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2056 |
|
|
|
2057 |
def __ne__(self, other):
|
|
|
2058 |
return not (self == other)
|
|
|
2059 |
|
|
|
2060 |
class getHolidays_result:
|
|
|
2061 |
"""
|
|
|
2062 |
Attributes:
|
|
|
2063 |
- success
|
|
|
2064 |
"""
|
|
|
2065 |
|
|
|
2066 |
thrift_spec = (
|
|
|
2067 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
2068 |
)
|
|
|
2069 |
|
|
|
2070 |
def __init__(self, success=None,):
|
|
|
2071 |
self.success = success
|
|
|
2072 |
|
|
|
2073 |
def read(self, iprot):
|
|
|
2074 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2075 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2076 |
return
|
|
|
2077 |
iprot.readStructBegin()
|
|
|
2078 |
while True:
|
|
|
2079 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2080 |
if ftype == TType.STOP:
|
|
|
2081 |
break
|
|
|
2082 |
if fid == 0:
|
|
|
2083 |
if ftype == TType.LIST:
|
|
|
2084 |
self.success = []
|
| 3044 |
chandransh |
2085 |
(_etype26, _size23) = iprot.readListBegin()
|
|
|
2086 |
for _i27 in xrange(_size23):
|
|
|
2087 |
_elem28 = iprot.readI64();
|
|
|
2088 |
self.success.append(_elem28)
|
| 1730 |
ankur.sing |
2089 |
iprot.readListEnd()
|
|
|
2090 |
else:
|
|
|
2091 |
iprot.skip(ftype)
|
|
|
2092 |
else:
|
|
|
2093 |
iprot.skip(ftype)
|
|
|
2094 |
iprot.readFieldEnd()
|
|
|
2095 |
iprot.readStructEnd()
|
|
|
2096 |
|
|
|
2097 |
def write(self, oprot):
|
|
|
2098 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2099 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2100 |
return
|
|
|
2101 |
oprot.writeStructBegin('getHolidays_result')
|
| 3431 |
rajveer |
2102 |
if self.success is not None:
|
| 1730 |
ankur.sing |
2103 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2104 |
oprot.writeListBegin(TType.I64, len(self.success))
|
| 3044 |
chandransh |
2105 |
for iter29 in self.success:
|
|
|
2106 |
oprot.writeI64(iter29)
|
| 1730 |
ankur.sing |
2107 |
oprot.writeListEnd()
|
|
|
2108 |
oprot.writeFieldEnd()
|
|
|
2109 |
oprot.writeFieldStop()
|
|
|
2110 |
oprot.writeStructEnd()
|
|
|
2111 |
|
| 3431 |
rajveer |
2112 |
def validate(self):
|
|
|
2113 |
return
|
|
|
2114 |
|
|
|
2115 |
|
| 1730 |
ankur.sing |
2116 |
def __repr__(self):
|
|
|
2117 |
L = ['%s=%r' % (key, value)
|
|
|
2118 |
for key, value in self.__dict__.iteritems()]
|
|
|
2119 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2120 |
|
|
|
2121 |
def __eq__(self, other):
|
|
|
2122 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2123 |
|
|
|
2124 |
def __ne__(self, other):
|
|
|
2125 |
return not (self == other)
|
| 4934 |
amit.gupta |
2126 |
|
|
|
2127 |
class getEntityLogisticsEstimation_args:
|
|
|
2128 |
"""
|
|
|
2129 |
Attributes:
|
|
|
2130 |
- catalogItemId
|
|
|
2131 |
- destination_pin
|
|
|
2132 |
- type
|
|
|
2133 |
"""
|
|
|
2134 |
|
|
|
2135 |
thrift_spec = (
|
|
|
2136 |
None, # 0
|
|
|
2137 |
(1, TType.I64, 'catalogItemId', None, None, ), # 1
|
|
|
2138 |
(2, TType.STRING, 'destination_pin', None, None, ), # 2
|
|
|
2139 |
(3, TType.I32, 'type', None, None, ), # 3
|
|
|
2140 |
)
|
|
|
2141 |
|
|
|
2142 |
def __init__(self, catalogItemId=None, destination_pin=None, type=None,):
|
|
|
2143 |
self.catalogItemId = catalogItemId
|
|
|
2144 |
self.destination_pin = destination_pin
|
|
|
2145 |
self.type = type
|
|
|
2146 |
|
|
|
2147 |
def read(self, iprot):
|
|
|
2148 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2149 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2150 |
return
|
|
|
2151 |
iprot.readStructBegin()
|
|
|
2152 |
while True:
|
|
|
2153 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2154 |
if ftype == TType.STOP:
|
|
|
2155 |
break
|
|
|
2156 |
if fid == 1:
|
|
|
2157 |
if ftype == TType.I64:
|
|
|
2158 |
self.catalogItemId = iprot.readI64();
|
|
|
2159 |
else:
|
|
|
2160 |
iprot.skip(ftype)
|
|
|
2161 |
elif fid == 2:
|
|
|
2162 |
if ftype == TType.STRING:
|
|
|
2163 |
self.destination_pin = iprot.readString();
|
|
|
2164 |
else:
|
|
|
2165 |
iprot.skip(ftype)
|
|
|
2166 |
elif fid == 3:
|
|
|
2167 |
if ftype == TType.I32:
|
|
|
2168 |
self.type = iprot.readI32();
|
|
|
2169 |
else:
|
|
|
2170 |
iprot.skip(ftype)
|
|
|
2171 |
else:
|
|
|
2172 |
iprot.skip(ftype)
|
|
|
2173 |
iprot.readFieldEnd()
|
|
|
2174 |
iprot.readStructEnd()
|
|
|
2175 |
|
|
|
2176 |
def write(self, oprot):
|
|
|
2177 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2178 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2179 |
return
|
|
|
2180 |
oprot.writeStructBegin('getEntityLogisticsEstimation_args')
|
|
|
2181 |
if self.catalogItemId is not None:
|
|
|
2182 |
oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
|
|
|
2183 |
oprot.writeI64(self.catalogItemId)
|
|
|
2184 |
oprot.writeFieldEnd()
|
|
|
2185 |
if self.destination_pin is not None:
|
|
|
2186 |
oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
|
|
|
2187 |
oprot.writeString(self.destination_pin)
|
|
|
2188 |
oprot.writeFieldEnd()
|
|
|
2189 |
if self.type is not None:
|
|
|
2190 |
oprot.writeFieldBegin('type', TType.I32, 3)
|
|
|
2191 |
oprot.writeI32(self.type)
|
|
|
2192 |
oprot.writeFieldEnd()
|
|
|
2193 |
oprot.writeFieldStop()
|
|
|
2194 |
oprot.writeStructEnd()
|
|
|
2195 |
|
|
|
2196 |
def validate(self):
|
|
|
2197 |
return
|
|
|
2198 |
|
|
|
2199 |
|
|
|
2200 |
def __repr__(self):
|
|
|
2201 |
L = ['%s=%r' % (key, value)
|
|
|
2202 |
for key, value in self.__dict__.iteritems()]
|
|
|
2203 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2204 |
|
|
|
2205 |
def __eq__(self, other):
|
|
|
2206 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2207 |
|
|
|
2208 |
def __ne__(self, other):
|
|
|
2209 |
return not (self == other)
|
|
|
2210 |
|
|
|
2211 |
class getEntityLogisticsEstimation_result:
|
|
|
2212 |
"""
|
|
|
2213 |
Attributes:
|
|
|
2214 |
- success
|
|
|
2215 |
- se
|
|
|
2216 |
"""
|
|
|
2217 |
|
|
|
2218 |
thrift_spec = (
|
|
|
2219 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
2220 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
2221 |
)
|
|
|
2222 |
|
|
|
2223 |
def __init__(self, success=None, se=None,):
|
|
|
2224 |
self.success = success
|
|
|
2225 |
self.se = se
|
|
|
2226 |
|
|
|
2227 |
def read(self, iprot):
|
|
|
2228 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2229 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2230 |
return
|
|
|
2231 |
iprot.readStructBegin()
|
|
|
2232 |
while True:
|
|
|
2233 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2234 |
if ftype == TType.STOP:
|
|
|
2235 |
break
|
|
|
2236 |
if fid == 0:
|
|
|
2237 |
if ftype == TType.LIST:
|
|
|
2238 |
self.success = []
|
|
|
2239 |
(_etype33, _size30) = iprot.readListBegin()
|
|
|
2240 |
for _i34 in xrange(_size30):
|
|
|
2241 |
_elem35 = iprot.readI64();
|
|
|
2242 |
self.success.append(_elem35)
|
|
|
2243 |
iprot.readListEnd()
|
|
|
2244 |
else:
|
|
|
2245 |
iprot.skip(ftype)
|
|
|
2246 |
elif fid == 1:
|
|
|
2247 |
if ftype == TType.STRUCT:
|
|
|
2248 |
self.se = LogisticsServiceException()
|
|
|
2249 |
self.se.read(iprot)
|
|
|
2250 |
else:
|
|
|
2251 |
iprot.skip(ftype)
|
|
|
2252 |
else:
|
|
|
2253 |
iprot.skip(ftype)
|
|
|
2254 |
iprot.readFieldEnd()
|
|
|
2255 |
iprot.readStructEnd()
|
|
|
2256 |
|
|
|
2257 |
def write(self, oprot):
|
|
|
2258 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2259 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2260 |
return
|
|
|
2261 |
oprot.writeStructBegin('getEntityLogisticsEstimation_result')
|
|
|
2262 |
if self.success is not None:
|
|
|
2263 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2264 |
oprot.writeListBegin(TType.I64, len(self.success))
|
|
|
2265 |
for iter36 in self.success:
|
|
|
2266 |
oprot.writeI64(iter36)
|
|
|
2267 |
oprot.writeListEnd()
|
|
|
2268 |
oprot.writeFieldEnd()
|
|
|
2269 |
if self.se is not None:
|
|
|
2270 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2271 |
self.se.write(oprot)
|
|
|
2272 |
oprot.writeFieldEnd()
|
|
|
2273 |
oprot.writeFieldStop()
|
|
|
2274 |
oprot.writeStructEnd()
|
|
|
2275 |
|
|
|
2276 |
def validate(self):
|
|
|
2277 |
return
|
|
|
2278 |
|
|
|
2279 |
|
|
|
2280 |
def __repr__(self):
|
|
|
2281 |
L = ['%s=%r' % (key, value)
|
|
|
2282 |
for key, value in self.__dict__.iteritems()]
|
|
|
2283 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2284 |
|
|
|
2285 |
def __eq__(self, other):
|
|
|
2286 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2287 |
|
|
|
2288 |
def __ne__(self, other):
|
|
|
2289 |
return not (self == other)
|
| 5527 |
anupam.sin |
2290 |
|
|
|
2291 |
class getProviderForPickupType_args:
|
|
|
2292 |
"""
|
|
|
2293 |
Attributes:
|
|
|
2294 |
- pickUp
|
|
|
2295 |
"""
|
|
|
2296 |
|
|
|
2297 |
thrift_spec = (
|
|
|
2298 |
None, # 0
|
|
|
2299 |
(1, TType.I64, 'pickUp', None, None, ), # 1
|
|
|
2300 |
)
|
|
|
2301 |
|
|
|
2302 |
def __init__(self, pickUp=None,):
|
|
|
2303 |
self.pickUp = pickUp
|
|
|
2304 |
|
|
|
2305 |
def read(self, iprot):
|
|
|
2306 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2307 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2308 |
return
|
|
|
2309 |
iprot.readStructBegin()
|
|
|
2310 |
while True:
|
|
|
2311 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2312 |
if ftype == TType.STOP:
|
|
|
2313 |
break
|
|
|
2314 |
if fid == 1:
|
|
|
2315 |
if ftype == TType.I64:
|
|
|
2316 |
self.pickUp = iprot.readI64();
|
|
|
2317 |
else:
|
|
|
2318 |
iprot.skip(ftype)
|
|
|
2319 |
else:
|
|
|
2320 |
iprot.skip(ftype)
|
|
|
2321 |
iprot.readFieldEnd()
|
|
|
2322 |
iprot.readStructEnd()
|
|
|
2323 |
|
|
|
2324 |
def write(self, oprot):
|
|
|
2325 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2326 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2327 |
return
|
|
|
2328 |
oprot.writeStructBegin('getProviderForPickupType_args')
|
|
|
2329 |
if self.pickUp is not None:
|
|
|
2330 |
oprot.writeFieldBegin('pickUp', TType.I64, 1)
|
|
|
2331 |
oprot.writeI64(self.pickUp)
|
|
|
2332 |
oprot.writeFieldEnd()
|
|
|
2333 |
oprot.writeFieldStop()
|
|
|
2334 |
oprot.writeStructEnd()
|
|
|
2335 |
|
|
|
2336 |
def validate(self):
|
|
|
2337 |
return
|
|
|
2338 |
|
|
|
2339 |
|
|
|
2340 |
def __repr__(self):
|
|
|
2341 |
L = ['%s=%r' % (key, value)
|
|
|
2342 |
for key, value in self.__dict__.iteritems()]
|
|
|
2343 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2344 |
|
|
|
2345 |
def __eq__(self, other):
|
|
|
2346 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2347 |
|
|
|
2348 |
def __ne__(self, other):
|
|
|
2349 |
return not (self == other)
|
|
|
2350 |
|
|
|
2351 |
class getProviderForPickupType_result:
|
|
|
2352 |
"""
|
|
|
2353 |
Attributes:
|
|
|
2354 |
- success
|
|
|
2355 |
"""
|
|
|
2356 |
|
|
|
2357 |
thrift_spec = (
|
|
|
2358 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
2359 |
)
|
|
|
2360 |
|
|
|
2361 |
def __init__(self, success=None,):
|
|
|
2362 |
self.success = success
|
|
|
2363 |
|
|
|
2364 |
def read(self, iprot):
|
|
|
2365 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2366 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2367 |
return
|
|
|
2368 |
iprot.readStructBegin()
|
|
|
2369 |
while True:
|
|
|
2370 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2371 |
if ftype == TType.STOP:
|
|
|
2372 |
break
|
|
|
2373 |
if fid == 0:
|
|
|
2374 |
if ftype == TType.I64:
|
|
|
2375 |
self.success = iprot.readI64();
|
|
|
2376 |
else:
|
|
|
2377 |
iprot.skip(ftype)
|
|
|
2378 |
else:
|
|
|
2379 |
iprot.skip(ftype)
|
|
|
2380 |
iprot.readFieldEnd()
|
|
|
2381 |
iprot.readStructEnd()
|
|
|
2382 |
|
|
|
2383 |
def write(self, oprot):
|
|
|
2384 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2385 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2386 |
return
|
|
|
2387 |
oprot.writeStructBegin('getProviderForPickupType_result')
|
|
|
2388 |
if self.success is not None:
|
|
|
2389 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
2390 |
oprot.writeI64(self.success)
|
|
|
2391 |
oprot.writeFieldEnd()
|
|
|
2392 |
oprot.writeFieldStop()
|
|
|
2393 |
oprot.writeStructEnd()
|
|
|
2394 |
|
|
|
2395 |
def validate(self):
|
|
|
2396 |
return
|
|
|
2397 |
|
|
|
2398 |
|
|
|
2399 |
def __repr__(self):
|
|
|
2400 |
L = ['%s=%r' % (key, value)
|
|
|
2401 |
for key, value in self.__dict__.iteritems()]
|
|
|
2402 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2403 |
|
|
|
2404 |
def __eq__(self, other):
|
|
|
2405 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2406 |
|
|
|
2407 |
def __ne__(self, other):
|
|
|
2408 |
return not (self == other)
|
| 5553 |
rajveer |
2409 |
|
|
|
2410 |
class getAllPickupStores_args:
|
|
|
2411 |
|
|
|
2412 |
thrift_spec = (
|
|
|
2413 |
)
|
|
|
2414 |
|
|
|
2415 |
def read(self, iprot):
|
|
|
2416 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2417 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2418 |
return
|
|
|
2419 |
iprot.readStructBegin()
|
|
|
2420 |
while True:
|
|
|
2421 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2422 |
if ftype == TType.STOP:
|
|
|
2423 |
break
|
|
|
2424 |
else:
|
|
|
2425 |
iprot.skip(ftype)
|
|
|
2426 |
iprot.readFieldEnd()
|
|
|
2427 |
iprot.readStructEnd()
|
|
|
2428 |
|
|
|
2429 |
def write(self, oprot):
|
|
|
2430 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2431 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2432 |
return
|
|
|
2433 |
oprot.writeStructBegin('getAllPickupStores_args')
|
|
|
2434 |
oprot.writeFieldStop()
|
|
|
2435 |
oprot.writeStructEnd()
|
|
|
2436 |
|
|
|
2437 |
def validate(self):
|
|
|
2438 |
return
|
|
|
2439 |
|
|
|
2440 |
|
|
|
2441 |
def __repr__(self):
|
|
|
2442 |
L = ['%s=%r' % (key, value)
|
|
|
2443 |
for key, value in self.__dict__.iteritems()]
|
|
|
2444 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2445 |
|
|
|
2446 |
def __eq__(self, other):
|
|
|
2447 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2448 |
|
|
|
2449 |
def __ne__(self, other):
|
|
|
2450 |
return not (self == other)
|
|
|
2451 |
|
|
|
2452 |
class getAllPickupStores_result:
|
|
|
2453 |
"""
|
|
|
2454 |
Attributes:
|
|
|
2455 |
- success
|
|
|
2456 |
"""
|
|
|
2457 |
|
|
|
2458 |
thrift_spec = (
|
|
|
2459 |
(0, TType.LIST, 'success', (TType.STRUCT,(PickupStore, PickupStore.thrift_spec)), None, ), # 0
|
|
|
2460 |
)
|
|
|
2461 |
|
|
|
2462 |
def __init__(self, success=None,):
|
|
|
2463 |
self.success = success
|
|
|
2464 |
|
|
|
2465 |
def read(self, iprot):
|
|
|
2466 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2467 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2468 |
return
|
|
|
2469 |
iprot.readStructBegin()
|
|
|
2470 |
while True:
|
|
|
2471 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2472 |
if ftype == TType.STOP:
|
|
|
2473 |
break
|
|
|
2474 |
if fid == 0:
|
|
|
2475 |
if ftype == TType.LIST:
|
|
|
2476 |
self.success = []
|
|
|
2477 |
(_etype40, _size37) = iprot.readListBegin()
|
|
|
2478 |
for _i41 in xrange(_size37):
|
|
|
2479 |
_elem42 = PickupStore()
|
|
|
2480 |
_elem42.read(iprot)
|
|
|
2481 |
self.success.append(_elem42)
|
|
|
2482 |
iprot.readListEnd()
|
|
|
2483 |
else:
|
|
|
2484 |
iprot.skip(ftype)
|
|
|
2485 |
else:
|
|
|
2486 |
iprot.skip(ftype)
|
|
|
2487 |
iprot.readFieldEnd()
|
|
|
2488 |
iprot.readStructEnd()
|
|
|
2489 |
|
|
|
2490 |
def write(self, oprot):
|
|
|
2491 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2492 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2493 |
return
|
|
|
2494 |
oprot.writeStructBegin('getAllPickupStores_result')
|
|
|
2495 |
if self.success is not None:
|
|
|
2496 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2497 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
2498 |
for iter43 in self.success:
|
|
|
2499 |
iter43.write(oprot)
|
|
|
2500 |
oprot.writeListEnd()
|
|
|
2501 |
oprot.writeFieldEnd()
|
|
|
2502 |
oprot.writeFieldStop()
|
|
|
2503 |
oprot.writeStructEnd()
|
|
|
2504 |
|
|
|
2505 |
def validate(self):
|
|
|
2506 |
return
|
|
|
2507 |
|
|
|
2508 |
|
|
|
2509 |
def __repr__(self):
|
|
|
2510 |
L = ['%s=%r' % (key, value)
|
|
|
2511 |
for key, value in self.__dict__.iteritems()]
|
|
|
2512 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2513 |
|
|
|
2514 |
def __eq__(self, other):
|
|
|
2515 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2516 |
|
|
|
2517 |
def __ne__(self, other):
|
|
|
2518 |
return not (self == other)
|
|
|
2519 |
|
|
|
2520 |
class getPickupStore_args:
|
|
|
2521 |
"""
|
|
|
2522 |
Attributes:
|
|
|
2523 |
- storeId
|
|
|
2524 |
"""
|
|
|
2525 |
|
|
|
2526 |
thrift_spec = (
|
|
|
2527 |
None, # 0
|
|
|
2528 |
(1, TType.I64, 'storeId', None, None, ), # 1
|
|
|
2529 |
)
|
|
|
2530 |
|
|
|
2531 |
def __init__(self, storeId=None,):
|
|
|
2532 |
self.storeId = storeId
|
|
|
2533 |
|
|
|
2534 |
def read(self, iprot):
|
|
|
2535 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2536 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2537 |
return
|
|
|
2538 |
iprot.readStructBegin()
|
|
|
2539 |
while True:
|
|
|
2540 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2541 |
if ftype == TType.STOP:
|
|
|
2542 |
break
|
|
|
2543 |
if fid == 1:
|
|
|
2544 |
if ftype == TType.I64:
|
|
|
2545 |
self.storeId = iprot.readI64();
|
|
|
2546 |
else:
|
|
|
2547 |
iprot.skip(ftype)
|
|
|
2548 |
else:
|
|
|
2549 |
iprot.skip(ftype)
|
|
|
2550 |
iprot.readFieldEnd()
|
|
|
2551 |
iprot.readStructEnd()
|
|
|
2552 |
|
|
|
2553 |
def write(self, oprot):
|
|
|
2554 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2555 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2556 |
return
|
|
|
2557 |
oprot.writeStructBegin('getPickupStore_args')
|
|
|
2558 |
if self.storeId is not None:
|
|
|
2559 |
oprot.writeFieldBegin('storeId', TType.I64, 1)
|
|
|
2560 |
oprot.writeI64(self.storeId)
|
|
|
2561 |
oprot.writeFieldEnd()
|
|
|
2562 |
oprot.writeFieldStop()
|
|
|
2563 |
oprot.writeStructEnd()
|
|
|
2564 |
|
|
|
2565 |
def validate(self):
|
|
|
2566 |
return
|
|
|
2567 |
|
|
|
2568 |
|
|
|
2569 |
def __repr__(self):
|
|
|
2570 |
L = ['%s=%r' % (key, value)
|
|
|
2571 |
for key, value in self.__dict__.iteritems()]
|
|
|
2572 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2573 |
|
|
|
2574 |
def __eq__(self, other):
|
|
|
2575 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2576 |
|
|
|
2577 |
def __ne__(self, other):
|
|
|
2578 |
return not (self == other)
|
|
|
2579 |
|
|
|
2580 |
class getPickupStore_result:
|
|
|
2581 |
"""
|
|
|
2582 |
Attributes:
|
|
|
2583 |
- success
|
|
|
2584 |
"""
|
|
|
2585 |
|
|
|
2586 |
thrift_spec = (
|
|
|
2587 |
(0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
|
|
|
2588 |
)
|
|
|
2589 |
|
|
|
2590 |
def __init__(self, success=None,):
|
|
|
2591 |
self.success = success
|
|
|
2592 |
|
|
|
2593 |
def read(self, iprot):
|
|
|
2594 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2595 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2596 |
return
|
|
|
2597 |
iprot.readStructBegin()
|
|
|
2598 |
while True:
|
|
|
2599 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2600 |
if ftype == TType.STOP:
|
|
|
2601 |
break
|
|
|
2602 |
if fid == 0:
|
|
|
2603 |
if ftype == TType.STRUCT:
|
|
|
2604 |
self.success = PickupStore()
|
|
|
2605 |
self.success.read(iprot)
|
|
|
2606 |
else:
|
|
|
2607 |
iprot.skip(ftype)
|
|
|
2608 |
else:
|
|
|
2609 |
iprot.skip(ftype)
|
|
|
2610 |
iprot.readFieldEnd()
|
|
|
2611 |
iprot.readStructEnd()
|
|
|
2612 |
|
|
|
2613 |
def write(self, oprot):
|
|
|
2614 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2615 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2616 |
return
|
|
|
2617 |
oprot.writeStructBegin('getPickupStore_result')
|
|
|
2618 |
if self.success is not None:
|
|
|
2619 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2620 |
self.success.write(oprot)
|
|
|
2621 |
oprot.writeFieldEnd()
|
|
|
2622 |
oprot.writeFieldStop()
|
|
|
2623 |
oprot.writeStructEnd()
|
|
|
2624 |
|
|
|
2625 |
def validate(self):
|
|
|
2626 |
return
|
|
|
2627 |
|
|
|
2628 |
|
|
|
2629 |
def __repr__(self):
|
|
|
2630 |
L = ['%s=%r' % (key, value)
|
|
|
2631 |
for key, value in self.__dict__.iteritems()]
|
|
|
2632 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2633 |
|
|
|
2634 |
def __eq__(self, other):
|
|
|
2635 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2636 |
|
|
|
2637 |
def __ne__(self, other):
|
|
|
2638 |
return not (self == other)
|
| 5719 |
rajveer |
2639 |
|
|
|
2640 |
class getPickupStoreByHotspotId_args:
|
|
|
2641 |
"""
|
|
|
2642 |
Attributes:
|
|
|
2643 |
- hotspotId
|
|
|
2644 |
"""
|
|
|
2645 |
|
|
|
2646 |
thrift_spec = (
|
|
|
2647 |
None, # 0
|
|
|
2648 |
(1, TType.STRING, 'hotspotId', None, None, ), # 1
|
|
|
2649 |
)
|
|
|
2650 |
|
|
|
2651 |
def __init__(self, hotspotId=None,):
|
|
|
2652 |
self.hotspotId = hotspotId
|
|
|
2653 |
|
|
|
2654 |
def read(self, iprot):
|
|
|
2655 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2656 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2657 |
return
|
|
|
2658 |
iprot.readStructBegin()
|
|
|
2659 |
while True:
|
|
|
2660 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2661 |
if ftype == TType.STOP:
|
|
|
2662 |
break
|
|
|
2663 |
if fid == 1:
|
|
|
2664 |
if ftype == TType.STRING:
|
|
|
2665 |
self.hotspotId = iprot.readString();
|
|
|
2666 |
else:
|
|
|
2667 |
iprot.skip(ftype)
|
|
|
2668 |
else:
|
|
|
2669 |
iprot.skip(ftype)
|
|
|
2670 |
iprot.readFieldEnd()
|
|
|
2671 |
iprot.readStructEnd()
|
|
|
2672 |
|
|
|
2673 |
def write(self, oprot):
|
|
|
2674 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2675 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2676 |
return
|
|
|
2677 |
oprot.writeStructBegin('getPickupStoreByHotspotId_args')
|
|
|
2678 |
if self.hotspotId is not None:
|
|
|
2679 |
oprot.writeFieldBegin('hotspotId', TType.STRING, 1)
|
|
|
2680 |
oprot.writeString(self.hotspotId)
|
|
|
2681 |
oprot.writeFieldEnd()
|
|
|
2682 |
oprot.writeFieldStop()
|
|
|
2683 |
oprot.writeStructEnd()
|
|
|
2684 |
|
|
|
2685 |
def validate(self):
|
|
|
2686 |
return
|
|
|
2687 |
|
|
|
2688 |
|
|
|
2689 |
def __repr__(self):
|
|
|
2690 |
L = ['%s=%r' % (key, value)
|
|
|
2691 |
for key, value in self.__dict__.iteritems()]
|
|
|
2692 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2693 |
|
|
|
2694 |
def __eq__(self, other):
|
|
|
2695 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2696 |
|
|
|
2697 |
def __ne__(self, other):
|
|
|
2698 |
return not (self == other)
|
|
|
2699 |
|
|
|
2700 |
class getPickupStoreByHotspotId_result:
|
|
|
2701 |
"""
|
|
|
2702 |
Attributes:
|
|
|
2703 |
- success
|
|
|
2704 |
"""
|
|
|
2705 |
|
|
|
2706 |
thrift_spec = (
|
|
|
2707 |
(0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
|
|
|
2708 |
)
|
|
|
2709 |
|
|
|
2710 |
def __init__(self, success=None,):
|
|
|
2711 |
self.success = success
|
|
|
2712 |
|
|
|
2713 |
def read(self, iprot):
|
|
|
2714 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2715 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2716 |
return
|
|
|
2717 |
iprot.readStructBegin()
|
|
|
2718 |
while True:
|
|
|
2719 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2720 |
if ftype == TType.STOP:
|
|
|
2721 |
break
|
|
|
2722 |
if fid == 0:
|
|
|
2723 |
if ftype == TType.STRUCT:
|
|
|
2724 |
self.success = PickupStore()
|
|
|
2725 |
self.success.read(iprot)
|
|
|
2726 |
else:
|
|
|
2727 |
iprot.skip(ftype)
|
|
|
2728 |
else:
|
|
|
2729 |
iprot.skip(ftype)
|
|
|
2730 |
iprot.readFieldEnd()
|
|
|
2731 |
iprot.readStructEnd()
|
|
|
2732 |
|
|
|
2733 |
def write(self, oprot):
|
|
|
2734 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2735 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2736 |
return
|
|
|
2737 |
oprot.writeStructBegin('getPickupStoreByHotspotId_result')
|
|
|
2738 |
if self.success is not None:
|
|
|
2739 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2740 |
self.success.write(oprot)
|
|
|
2741 |
oprot.writeFieldEnd()
|
|
|
2742 |
oprot.writeFieldStop()
|
|
|
2743 |
oprot.writeStructEnd()
|
|
|
2744 |
|
|
|
2745 |
def validate(self):
|
|
|
2746 |
return
|
|
|
2747 |
|
|
|
2748 |
|
|
|
2749 |
def __repr__(self):
|
|
|
2750 |
L = ['%s=%r' % (key, value)
|
|
|
2751 |
for key, value in self.__dict__.iteritems()]
|
|
|
2752 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2753 |
|
|
|
2754 |
def __eq__(self, other):
|
|
|
2755 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2756 |
|
|
|
2757 |
def __ne__(self, other):
|
|
|
2758 |
return not (self == other)
|