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