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