Subversion Repositories SmartDukaan

Rev

Rev 3376 | Rev 4386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3376 Rev 3431
Line 1... Line 1...
1
#
1
#
2
# Autogenerated by Thrift
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
5
#
6
 
6
 
7
from thrift.Thrift import *
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
9
from ttypes import *
10
from thrift.Thrift import TProcessor
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
13
try:
14
  from thrift.protocol import fastbinary
14
  from thrift.protocol import fastbinary
15
except:
15
except:
16
  fastbinary = None
16
  fastbinary = None
17
 
17
 
18
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def getProvider(self, providerId):
20
  def getProvider(self, providerId):
21
    """
21
    """
22
    Returns a provider for a given provider ID. Throws an exception if none found.
22
    Returns a provider for a given provider ID. Throws an exception if none found.
23
    
23
 
24
    Parameters:
24
    Parameters:
25
     - providerId
25
     - providerId
26
    """
26
    """
27
    pass
27
    pass
28
 
28
 
Line 35... Line 35...
35
  def getLogisticsEstimation(self, itemId, destination_pin):
35
  def getLogisticsEstimation(self, itemId, destination_pin):
36
    """
36
    """
37
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
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
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.
39
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
40
    
40
 
41
    Parameters:
41
    Parameters:
42
     - itemId
42
     - itemId
43
     - destination_pin
43
     - destination_pin
44
    """
44
    """
45
    pass
45
    pass
46
 
46
 
47
  def getLogisticsInfo(self, destination_pincode, item_id, type):
47
  def getLogisticsInfo(self, destination_pincode, item_id, type):
48
    """
48
    """
49
    Same as above excpet that an airway bill number is also allocated and returned.
49
    Same as above excpet that an airway bill number is also allocated and returned.
50
    
50
 
51
    Parameters:
51
    Parameters:
52
     - destination_pincode
52
     - destination_pincode
53
     - item_id
53
     - item_id
54
     - type
54
     - type
55
    """
55
    """
56
    pass
56
    pass
57
 
57
 
58
  def getEmptyAWB(self, providerId):
58
  def getEmptyAWB(self, providerId):
59
    """
59
    """
60
    Returns an unused AWB number for the given provider.
60
    Returns an unused AWB number for the given provider.
61
    
61
 
62
    Parameters:
62
    Parameters:
63
     - providerId
63
     - providerId
64
    """
64
    """
65
    pass
65
    pass
66
 
66
 
67
  def getShipmentInfo(self, awb, providerId):
67
  def getShipmentInfo(self, awb, providerId):
68
    """
68
    """
69
    Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
69
    Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
70
    
70
 
71
    Parameters:
71
    Parameters:
72
     - awb
72
     - awb
73
     - providerId
73
     - providerId
74
    """
74
    """
75
    pass
75
    pass
76
 
76
 
77
  def getDestinationCode(self, providerId, pinCode):
77
  def getDestinationCode(self, providerId, pinCode):
78
    """
78
    """
79
    Returns the short three letter code of a pincode for the given provider.
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.
80
       Raises an exception if the pin code is not serviced by the given provider.
81
    
81
 
82
    Parameters:
82
    Parameters:
83
     - providerId
83
     - providerId
84
     - pinCode
84
     - pinCode
85
    """
85
    """
86
    pass
86
    pass
87
 
87
 
88
  def getFreeAwbCount(self, providerId, type):
88
  def getFreeAwbCount(self, providerId, type):
89
    """
89
    """
90
    Returns the number of unused AWB numbers for the given provider of the given type
90
    Returns the number of unused AWB numbers for the given provider of the given type
91
    
91
 
92
    Parameters:
92
    Parameters:
93
     - providerId
93
     - providerId
94
     - type
94
     - type
95
    """
95
    """
96
    pass
96
    pass
Line 99... Line 99...
99
    """
99
    """
100
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
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.
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
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
103
    If toDate is passed as -1, toDate is not considered for filtering
104
    
104
 
105
    Parameters:
105
    Parameters:
106
     - fromDate
106
     - fromDate
107
     - toDate
107
     - toDate
108
    """
108
    """
109
    pass
109
    pass
110
 
110
 
111
  def isCodAllowed(self, destination_pincode):
111
  def isCodAllowed(self, destination_pincode):
112
    """
112
    """
113
    Returns true if COD is allowed for this destination pincode
113
    Returns true if COD is allowed for this destination pincode
114
    
114
 
115
    Parameters:
115
    Parameters:
116
     - destination_pincode
116
     - destination_pincode
117
    """
117
    """
118
    pass
118
    pass
119
 
119
 
Line 123... Line 123...
123
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
123
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
124
 
124
 
125
  def getProvider(self, providerId):
125
  def getProvider(self, providerId):
126
    """
126
    """
127
    Returns a provider for a given provider ID. Throws an exception if none found.
127
    Returns a provider for a given provider ID. Throws an exception if none found.
128
    
128
 
129
    Parameters:
129
    Parameters:
130
     - providerId
130
     - providerId
131
    """
131
    """
132
    self.send_getProvider(providerId)
132
    self.send_getProvider(providerId)
133
    return self.recv_getProvider()
133
    return self.recv_getProvider()
Line 148... Line 148...
148
      self._iprot.readMessageEnd()
148
      self._iprot.readMessageEnd()
149
      raise x
149
      raise x
150
    result = getProvider_result()
150
    result = getProvider_result()
151
    result.read(self._iprot)
151
    result.read(self._iprot)
152
    self._iprot.readMessageEnd()
152
    self._iprot.readMessageEnd()
153
    if result.success != None:
153
    if result.success is not None:
154
      return result.success
154
      return result.success
155
    if result.lse != None:
155
    if result.lse is not None:
156
      raise result.lse
156
      raise result.lse
157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
158
 
158
 
159
  def getAllProviders(self, ):
159
  def getAllProviders(self, ):
160
    """
160
    """
Line 178... Line 178...
178
      self._iprot.readMessageEnd()
178
      self._iprot.readMessageEnd()
179
      raise x
179
      raise x
180
    result = getAllProviders_result()
180
    result = getAllProviders_result()
181
    result.read(self._iprot)
181
    result.read(self._iprot)
182
    self._iprot.readMessageEnd()
182
    self._iprot.readMessageEnd()
183
    if result.success != None:
183
    if result.success is not None:
184
      return result.success
184
      return result.success
185
    if result.lse != None:
185
    if result.lse is not None:
186
      raise result.lse
186
      raise result.lse
187
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
187
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
188
 
188
 
189
  def getLogisticsEstimation(self, itemId, destination_pin):
189
  def getLogisticsEstimation(self, itemId, destination_pin):
190
    """
190
    """
191
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
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
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.
193
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
194
    
194
 
195
    Parameters:
195
    Parameters:
196
     - itemId
196
     - itemId
197
     - destination_pin
197
     - destination_pin
198
    """
198
    """
199
    self.send_getLogisticsEstimation(itemId, destination_pin)
199
    self.send_getLogisticsEstimation(itemId, destination_pin)
Line 216... Line 216...
216
      self._iprot.readMessageEnd()
216
      self._iprot.readMessageEnd()
217
      raise x
217
      raise x
218
    result = getLogisticsEstimation_result()
218
    result = getLogisticsEstimation_result()
219
    result.read(self._iprot)
219
    result.read(self._iprot)
220
    self._iprot.readMessageEnd()
220
    self._iprot.readMessageEnd()
221
    if result.success != None:
221
    if result.success is not None:
222
      return result.success
222
      return result.success
223
    if result.se != None:
223
    if result.se is not None:
224
      raise result.se
224
      raise result.se
225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
226
 
226
 
227
  def getLogisticsInfo(self, destination_pincode, item_id, type):
227
  def getLogisticsInfo(self, destination_pincode, item_id, type):
228
    """
228
    """
229
    Same as above excpet that an airway bill number is also allocated and returned.
229
    Same as above excpet that an airway bill number is also allocated and returned.
230
    
230
 
231
    Parameters:
231
    Parameters:
232
     - destination_pincode
232
     - destination_pincode
233
     - item_id
233
     - item_id
234
     - type
234
     - type
235
    """
235
    """
Line 254... Line 254...
254
      self._iprot.readMessageEnd()
254
      self._iprot.readMessageEnd()
255
      raise x
255
      raise x
256
    result = getLogisticsInfo_result()
256
    result = getLogisticsInfo_result()
257
    result.read(self._iprot)
257
    result.read(self._iprot)
258
    self._iprot.readMessageEnd()
258
    self._iprot.readMessageEnd()
259
    if result.success != None:
259
    if result.success is not None:
260
      return result.success
260
      return result.success
261
    if result.se != None:
261
    if result.se is not None:
262
      raise result.se
262
      raise result.se
263
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
263
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
264
 
264
 
265
  def getEmptyAWB(self, providerId):
265
  def getEmptyAWB(self, providerId):
266
    """
266
    """
267
    Returns an unused AWB number for the given provider.
267
    Returns an unused AWB number for the given provider.
268
    
268
 
269
    Parameters:
269
    Parameters:
270
     - providerId
270
     - providerId
271
    """
271
    """
272
    self.send_getEmptyAWB(providerId)
272
    self.send_getEmptyAWB(providerId)
273
    return self.recv_getEmptyAWB()
273
    return self.recv_getEmptyAWB()
Line 288... Line 288...
288
      self._iprot.readMessageEnd()
288
      self._iprot.readMessageEnd()
289
      raise x
289
      raise x
290
    result = getEmptyAWB_result()
290
    result = getEmptyAWB_result()
291
    result.read(self._iprot)
291
    result.read(self._iprot)
292
    self._iprot.readMessageEnd()
292
    self._iprot.readMessageEnd()
293
    if result.success != None:
293
    if result.success is not None:
294
      return result.success
294
      return result.success
295
    if result.se != None:
295
    if result.se is not None:
296
      raise result.se
296
      raise result.se
297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
298
 
298
 
299
  def getShipmentInfo(self, awb, providerId):
299
  def getShipmentInfo(self, awb, providerId):
300
    """
300
    """
301
    Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
301
    Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
302
    
302
 
303
    Parameters:
303
    Parameters:
304
     - awb
304
     - awb
305
     - providerId
305
     - providerId
306
    """
306
    """
307
    self.send_getShipmentInfo(awb, providerId)
307
    self.send_getShipmentInfo(awb, providerId)
Line 324... Line 324...
324
      self._iprot.readMessageEnd()
324
      self._iprot.readMessageEnd()
325
      raise x
325
      raise x
326
    result = getShipmentInfo_result()
326
    result = getShipmentInfo_result()
327
    result.read(self._iprot)
327
    result.read(self._iprot)
328
    self._iprot.readMessageEnd()
328
    self._iprot.readMessageEnd()
329
    if result.success != None:
329
    if result.success is not None:
330
      return result.success
330
      return result.success
331
    if result.se != None:
331
    if result.se is not None:
332
      raise result.se
332
      raise result.se
333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
334
 
334
 
335
  def getDestinationCode(self, providerId, pinCode):
335
  def getDestinationCode(self, providerId, pinCode):
336
    """
336
    """
337
    Returns the short three letter code of a pincode for the given provider.
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.
338
       Raises an exception if the pin code is not serviced by the given provider.
339
    
339
 
340
    Parameters:
340
    Parameters:
341
     - providerId
341
     - providerId
342
     - pinCode
342
     - pinCode
343
    """
343
    """
344
    self.send_getDestinationCode(providerId, pinCode)
344
    self.send_getDestinationCode(providerId, pinCode)
Line 361... Line 361...
361
      self._iprot.readMessageEnd()
361
      self._iprot.readMessageEnd()
362
      raise x
362
      raise x
363
    result = getDestinationCode_result()
363
    result = getDestinationCode_result()
364
    result.read(self._iprot)
364
    result.read(self._iprot)
365
    self._iprot.readMessageEnd()
365
    self._iprot.readMessageEnd()
366
    if result.success != None:
366
    if result.success is not None:
367
      return result.success
367
      return result.success
368
    if result.se != None:
368
    if result.se is not None:
369
      raise result.se
369
      raise result.se
370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
371
 
371
 
372
  def getFreeAwbCount(self, providerId, type):
372
  def getFreeAwbCount(self, providerId, type):
373
    """
373
    """
374
    Returns the number of unused AWB numbers for the given provider of the given type
374
    Returns the number of unused AWB numbers for the given provider of the given type
375
    
375
 
376
    Parameters:
376
    Parameters:
377
     - providerId
377
     - providerId
378
     - type
378
     - type
379
    """
379
    """
380
    self.send_getFreeAwbCount(providerId, type)
380
    self.send_getFreeAwbCount(providerId, type)
Line 397... Line 397...
397
      self._iprot.readMessageEnd()
397
      self._iprot.readMessageEnd()
398
      raise x
398
      raise x
399
    result = getFreeAwbCount_result()
399
    result = getFreeAwbCount_result()
400
    result.read(self._iprot)
400
    result.read(self._iprot)
401
    self._iprot.readMessageEnd()
401
    self._iprot.readMessageEnd()
402
    if result.success != None:
402
    if result.success is not None:
403
      return result.success
403
      return result.success
404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
405
 
405
 
406
  def getHolidays(self, fromDate, toDate):
406
  def getHolidays(self, fromDate, toDate):
407
    """
407
    """
408
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
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.
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
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
411
    If toDate is passed as -1, toDate is not considered for filtering
412
    
412
 
413
    Parameters:
413
    Parameters:
414
     - fromDate
414
     - fromDate
415
     - toDate
415
     - toDate
416
    """
416
    """
417
    self.send_getHolidays(fromDate, toDate)
417
    self.send_getHolidays(fromDate, toDate)
Line 434... Line 434...
434
      self._iprot.readMessageEnd()
434
      self._iprot.readMessageEnd()
435
      raise x
435
      raise x
436
    result = getHolidays_result()
436
    result = getHolidays_result()
437
    result.read(self._iprot)
437
    result.read(self._iprot)
438
    self._iprot.readMessageEnd()
438
    self._iprot.readMessageEnd()
439
    if result.success != None:
439
    if result.success is not None:
440
      return result.success
440
      return result.success
441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
442
 
442
 
443
  def isCodAllowed(self, destination_pincode):
443
  def isCodAllowed(self, destination_pincode):
444
    """
444
    """
445
    Returns true if COD is allowed for this destination pincode
445
    Returns true if COD is allowed for this destination pincode
446
    
446
 
447
    Parameters:
447
    Parameters:
448
     - destination_pincode
448
     - destination_pincode
449
    """
449
    """
450
    self.send_isCodAllowed(destination_pincode)
450
    self.send_isCodAllowed(destination_pincode)
451
    return self.recv_isCodAllowed()
451
    return self.recv_isCodAllowed()
Line 466... Line 466...
466
      self._iprot.readMessageEnd()
466
      self._iprot.readMessageEnd()
467
      raise x
467
      raise x
468
    result = isCodAllowed_result()
468
    result = isCodAllowed_result()
469
    result.read(self._iprot)
469
    result.read(self._iprot)
470
    self._iprot.readMessageEnd()
470
    self._iprot.readMessageEnd()
471
    if result.success != None:
471
    if result.success is not None:
472
      return result.success
472
      return result.success
473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isCodAllowed failed: unknown result");
473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isCodAllowed failed: unknown result");
474
 
474
 
475
 
475
 
476
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
476
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
Line 672... Line 672...
672
  def write(self, oprot):
672
  def write(self, oprot):
673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
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)))
674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
675
      return
675
      return
676
    oprot.writeStructBegin('getProvider_args')
676
    oprot.writeStructBegin('getProvider_args')
677
    if self.providerId != None:
677
    if self.providerId is not None:
678
      oprot.writeFieldBegin('providerId', TType.I64, 1)
678
      oprot.writeFieldBegin('providerId', TType.I64, 1)
679
      oprot.writeI64(self.providerId)
679
      oprot.writeI64(self.providerId)
680
      oprot.writeFieldEnd()
680
      oprot.writeFieldEnd()
681
    oprot.writeFieldStop()
681
    oprot.writeFieldStop()
682
    oprot.writeStructEnd()
682
    oprot.writeStructEnd()
683
 
683
 
-
 
684
  def validate(self):
-
 
685
    return
-
 
686
 
-
 
687
 
684
  def __repr__(self):
688
  def __repr__(self):
685
    L = ['%s=%r' % (key, value)
689
    L = ['%s=%r' % (key, value)
686
      for key, value in self.__dict__.iteritems()]
690
      for key, value in self.__dict__.iteritems()]
687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
688
 
692
 
Line 737... Line 741...
737
  def write(self, oprot):
741
  def write(self, oprot):
738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
740
      return
744
      return
741
    oprot.writeStructBegin('getProvider_result')
745
    oprot.writeStructBegin('getProvider_result')
742
    if self.success != None:
746
    if self.success is not None:
743
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
747
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
744
      self.success.write(oprot)
748
      self.success.write(oprot)
745
      oprot.writeFieldEnd()
749
      oprot.writeFieldEnd()
746
    if self.lse != None:
750
    if self.lse is not None:
747
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
751
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
748
      self.lse.write(oprot)
752
      self.lse.write(oprot)
749
      oprot.writeFieldEnd()
753
      oprot.writeFieldEnd()
750
    oprot.writeFieldStop()
754
    oprot.writeFieldStop()
751
    oprot.writeStructEnd()
755
    oprot.writeStructEnd()
752
 
756
 
-
 
757
  def validate(self):
-
 
758
    return
-
 
759
 
-
 
760
 
753
  def __repr__(self):
761
  def __repr__(self):
754
    L = ['%s=%r' % (key, value)
762
    L = ['%s=%r' % (key, value)
755
      for key, value in self.__dict__.iteritems()]
763
      for key, value in self.__dict__.iteritems()]
756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
757
 
765
 
Line 786... Line 794...
786
      return
794
      return
787
    oprot.writeStructBegin('getAllProviders_args')
795
    oprot.writeStructBegin('getAllProviders_args')
788
    oprot.writeFieldStop()
796
    oprot.writeFieldStop()
789
    oprot.writeStructEnd()
797
    oprot.writeStructEnd()
790
 
798
 
-
 
799
  def validate(self):
-
 
800
    return
-
 
801
 
-
 
802
 
791
  def __repr__(self):
803
  def __repr__(self):
792
    L = ['%s=%r' % (key, value)
804
    L = ['%s=%r' % (key, value)
793
      for key, value in self.__dict__.iteritems()]
805
      for key, value in self.__dict__.iteritems()]
794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
795
 
807
 
Line 849... Line 861...
849
  def write(self, oprot):
861
  def write(self, oprot):
850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
852
      return
864
      return
853
    oprot.writeStructBegin('getAllProviders_result')
865
    oprot.writeStructBegin('getAllProviders_result')
854
    if self.success != None:
866
    if self.success is not None:
855
      oprot.writeFieldBegin('success', TType.LIST, 0)
867
      oprot.writeFieldBegin('success', TType.LIST, 0)
856
      oprot.writeListBegin(TType.STRUCT, len(self.success))
868
      oprot.writeListBegin(TType.STRUCT, len(self.success))
857
      for iter15 in self.success:
869
      for iter15 in self.success:
858
        iter15.write(oprot)
870
        iter15.write(oprot)
859
      oprot.writeListEnd()
871
      oprot.writeListEnd()
860
      oprot.writeFieldEnd()
872
      oprot.writeFieldEnd()
861
    if self.lse != None:
873
    if self.lse is not None:
862
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
874
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
863
      self.lse.write(oprot)
875
      self.lse.write(oprot)
864
      oprot.writeFieldEnd()
876
      oprot.writeFieldEnd()
865
    oprot.writeFieldStop()
877
    oprot.writeFieldStop()
866
    oprot.writeStructEnd()
878
    oprot.writeStructEnd()
867
 
879
 
-
 
880
  def validate(self):
-
 
881
    return
-
 
882
 
-
 
883
 
868
  def __repr__(self):
884
  def __repr__(self):
869
    L = ['%s=%r' % (key, value)
885
    L = ['%s=%r' % (key, value)
870
      for key, value in self.__dict__.iteritems()]
886
      for key, value in self.__dict__.iteritems()]
871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
872
 
888
 
Line 920... Line 936...
920
  def write(self, oprot):
936
  def write(self, oprot):
921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
923
      return
939
      return
924
    oprot.writeStructBegin('getLogisticsEstimation_args')
940
    oprot.writeStructBegin('getLogisticsEstimation_args')
925
    if self.itemId != None:
941
    if self.itemId is not None:
926
      oprot.writeFieldBegin('itemId', TType.I64, 1)
942
      oprot.writeFieldBegin('itemId', TType.I64, 1)
927
      oprot.writeI64(self.itemId)
943
      oprot.writeI64(self.itemId)
928
      oprot.writeFieldEnd()
944
      oprot.writeFieldEnd()
929
    if self.destination_pin != None:
945
    if self.destination_pin is not None:
930
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
946
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
931
      oprot.writeString(self.destination_pin)
947
      oprot.writeString(self.destination_pin)
932
      oprot.writeFieldEnd()
948
      oprot.writeFieldEnd()
933
    oprot.writeFieldStop()
949
    oprot.writeFieldStop()
934
    oprot.writeStructEnd()
950
    oprot.writeStructEnd()
935
 
951
 
-
 
952
  def validate(self):
-
 
953
    return
-
 
954
 
-
 
955
 
936
  def __repr__(self):
956
  def __repr__(self):
937
    L = ['%s=%r' % (key, value)
957
    L = ['%s=%r' % (key, value)
938
      for key, value in self.__dict__.iteritems()]
958
      for key, value in self.__dict__.iteritems()]
939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
940
 
960
 
Line 989... Line 1009...
989
  def write(self, oprot):
1009
  def write(self, oprot):
990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
992
      return
1012
      return
993
    oprot.writeStructBegin('getLogisticsEstimation_result')
1013
    oprot.writeStructBegin('getLogisticsEstimation_result')
994
    if self.success != None:
1014
    if self.success is not None:
995
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1015
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
996
      self.success.write(oprot)
1016
      self.success.write(oprot)
997
      oprot.writeFieldEnd()
1017
      oprot.writeFieldEnd()
998
    if self.se != None:
1018
    if self.se is not None:
999
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1019
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1000
      self.se.write(oprot)
1020
      self.se.write(oprot)
1001
      oprot.writeFieldEnd()
1021
      oprot.writeFieldEnd()
1002
    oprot.writeFieldStop()
1022
    oprot.writeFieldStop()
1003
    oprot.writeStructEnd()
1023
    oprot.writeStructEnd()
1004
 
1024
 
-
 
1025
  def validate(self):
-
 
1026
    return
-
 
1027
 
-
 
1028
 
1005
  def __repr__(self):
1029
  def __repr__(self):
1006
    L = ['%s=%r' % (key, value)
1030
    L = ['%s=%r' % (key, value)
1007
      for key, value in self.__dict__.iteritems()]
1031
      for key, value in self.__dict__.iteritems()]
1008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1009
 
1033
 
Line 1065... Line 1089...
1065
  def write(self, oprot):
1089
  def write(self, oprot):
1066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1068
      return
1092
      return
1069
    oprot.writeStructBegin('getLogisticsInfo_args')
1093
    oprot.writeStructBegin('getLogisticsInfo_args')
1070
    if self.destination_pincode != None:
1094
    if self.destination_pincode is not None:
1071
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1095
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1072
      oprot.writeString(self.destination_pincode)
1096
      oprot.writeString(self.destination_pincode)
1073
      oprot.writeFieldEnd()
1097
      oprot.writeFieldEnd()
1074
    if self.item_id != None:
1098
    if self.item_id is not None:
1075
      oprot.writeFieldBegin('item_id', TType.I64, 2)
1099
      oprot.writeFieldBegin('item_id', TType.I64, 2)
1076
      oprot.writeI64(self.item_id)
1100
      oprot.writeI64(self.item_id)
1077
      oprot.writeFieldEnd()
1101
      oprot.writeFieldEnd()
1078
    if self.type != None:
1102
    if self.type is not None:
1079
      oprot.writeFieldBegin('type', TType.I32, 3)
1103
      oprot.writeFieldBegin('type', TType.I32, 3)
1080
      oprot.writeI32(self.type)
1104
      oprot.writeI32(self.type)
1081
      oprot.writeFieldEnd()
1105
      oprot.writeFieldEnd()
1082
    oprot.writeFieldStop()
1106
    oprot.writeFieldStop()
1083
    oprot.writeStructEnd()
1107
    oprot.writeStructEnd()
1084
 
1108
 
-
 
1109
  def validate(self):
-
 
1110
    return
-
 
1111
 
-
 
1112
 
1085
  def __repr__(self):
1113
  def __repr__(self):
1086
    L = ['%s=%r' % (key, value)
1114
    L = ['%s=%r' % (key, value)
1087
      for key, value in self.__dict__.iteritems()]
1115
      for key, value in self.__dict__.iteritems()]
1088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1089
 
1117
 
Line 1138... Line 1166...
1138
  def write(self, oprot):
1166
  def write(self, oprot):
1139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1141
      return
1169
      return
1142
    oprot.writeStructBegin('getLogisticsInfo_result')
1170
    oprot.writeStructBegin('getLogisticsInfo_result')
1143
    if self.success != None:
1171
    if self.success is not None:
1144
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1172
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1145
      self.success.write(oprot)
1173
      self.success.write(oprot)
1146
      oprot.writeFieldEnd()
1174
      oprot.writeFieldEnd()
1147
    if self.se != None:
1175
    if self.se is not None:
1148
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1176
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1149
      self.se.write(oprot)
1177
      self.se.write(oprot)
1150
      oprot.writeFieldEnd()
1178
      oprot.writeFieldEnd()
1151
    oprot.writeFieldStop()
1179
    oprot.writeFieldStop()
1152
    oprot.writeStructEnd()
1180
    oprot.writeStructEnd()
1153
 
1181
 
-
 
1182
  def validate(self):
-
 
1183
    return
-
 
1184
 
-
 
1185
 
1154
  def __repr__(self):
1186
  def __repr__(self):
1155
    L = ['%s=%r' % (key, value)
1187
    L = ['%s=%r' % (key, value)
1156
      for key, value in self.__dict__.iteritems()]
1188
      for key, value in self.__dict__.iteritems()]
1157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1158
 
1190
 
Line 1198... Line 1230...
1198
  def write(self, oprot):
1230
  def write(self, oprot):
1199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1201
      return
1233
      return
1202
    oprot.writeStructBegin('getEmptyAWB_args')
1234
    oprot.writeStructBegin('getEmptyAWB_args')
1203
    if self.providerId != None:
1235
    if self.providerId is not None:
1204
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1236
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1205
      oprot.writeI64(self.providerId)
1237
      oprot.writeI64(self.providerId)
1206
      oprot.writeFieldEnd()
1238
      oprot.writeFieldEnd()
1207
    oprot.writeFieldStop()
1239
    oprot.writeFieldStop()
1208
    oprot.writeStructEnd()
1240
    oprot.writeStructEnd()
1209
 
1241
 
-
 
1242
  def validate(self):
-
 
1243
    return
-
 
1244
 
-
 
1245
 
1210
  def __repr__(self):
1246
  def __repr__(self):
1211
    L = ['%s=%r' % (key, value)
1247
    L = ['%s=%r' % (key, value)
1212
      for key, value in self.__dict__.iteritems()]
1248
      for key, value in self.__dict__.iteritems()]
1213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1214
 
1250
 
Line 1262... Line 1298...
1262
  def write(self, oprot):
1298
  def write(self, oprot):
1263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1265
      return
1301
      return
1266
    oprot.writeStructBegin('getEmptyAWB_result')
1302
    oprot.writeStructBegin('getEmptyAWB_result')
1267
    if self.success != None:
1303
    if self.success is not None:
1268
      oprot.writeFieldBegin('success', TType.STRING, 0)
1304
      oprot.writeFieldBegin('success', TType.STRING, 0)
1269
      oprot.writeString(self.success)
1305
      oprot.writeString(self.success)
1270
      oprot.writeFieldEnd()
1306
      oprot.writeFieldEnd()
1271
    if self.se != None:
1307
    if self.se is not None:
1272
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1308
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1273
      self.se.write(oprot)
1309
      self.se.write(oprot)
1274
      oprot.writeFieldEnd()
1310
      oprot.writeFieldEnd()
1275
    oprot.writeFieldStop()
1311
    oprot.writeFieldStop()
1276
    oprot.writeStructEnd()
1312
    oprot.writeStructEnd()
1277
 
1313
 
-
 
1314
  def validate(self):
-
 
1315
    return
-
 
1316
 
-
 
1317
 
1278
  def __repr__(self):
1318
  def __repr__(self):
1279
    L = ['%s=%r' % (key, value)
1319
    L = ['%s=%r' % (key, value)
1280
      for key, value in self.__dict__.iteritems()]
1320
      for key, value in self.__dict__.iteritems()]
1281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1282
 
1322
 
Line 1330... Line 1370...
1330
  def write(self, oprot):
1370
  def write(self, oprot):
1331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1333
      return
1373
      return
1334
    oprot.writeStructBegin('getShipmentInfo_args')
1374
    oprot.writeStructBegin('getShipmentInfo_args')
1335
    if self.awb != None:
1375
    if self.awb is not None:
1336
      oprot.writeFieldBegin('awb', TType.STRING, 1)
1376
      oprot.writeFieldBegin('awb', TType.STRING, 1)
1337
      oprot.writeString(self.awb)
1377
      oprot.writeString(self.awb)
1338
      oprot.writeFieldEnd()
1378
      oprot.writeFieldEnd()
1339
    if self.providerId != None:
1379
    if self.providerId is not None:
1340
      oprot.writeFieldBegin('providerId', TType.I64, 2)
1380
      oprot.writeFieldBegin('providerId', TType.I64, 2)
1341
      oprot.writeI64(self.providerId)
1381
      oprot.writeI64(self.providerId)
1342
      oprot.writeFieldEnd()
1382
      oprot.writeFieldEnd()
1343
    oprot.writeFieldStop()
1383
    oprot.writeFieldStop()
1344
    oprot.writeStructEnd()
1384
    oprot.writeStructEnd()
1345
 
1385
 
-
 
1386
  def validate(self):
-
 
1387
    return
-
 
1388
 
-
 
1389
 
1346
  def __repr__(self):
1390
  def __repr__(self):
1347
    L = ['%s=%r' % (key, value)
1391
    L = ['%s=%r' % (key, value)
1348
      for key, value in self.__dict__.iteritems()]
1392
      for key, value in self.__dict__.iteritems()]
1349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1350
 
1394
 
Line 1404... Line 1448...
1404
  def write(self, oprot):
1448
  def write(self, oprot):
1405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1407
      return
1451
      return
1408
    oprot.writeStructBegin('getShipmentInfo_result')
1452
    oprot.writeStructBegin('getShipmentInfo_result')
1409
    if self.success != None:
1453
    if self.success is not None:
1410
      oprot.writeFieldBegin('success', TType.LIST, 0)
1454
      oprot.writeFieldBegin('success', TType.LIST, 0)
1411
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1455
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1412
      for iter22 in self.success:
1456
      for iter22 in self.success:
1413
        iter22.write(oprot)
1457
        iter22.write(oprot)
1414
      oprot.writeListEnd()
1458
      oprot.writeListEnd()
1415
      oprot.writeFieldEnd()
1459
      oprot.writeFieldEnd()
1416
    if self.se != None:
1460
    if self.se is not None:
1417
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1461
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1418
      self.se.write(oprot)
1462
      self.se.write(oprot)
1419
      oprot.writeFieldEnd()
1463
      oprot.writeFieldEnd()
1420
    oprot.writeFieldStop()
1464
    oprot.writeFieldStop()
1421
    oprot.writeStructEnd()
1465
    oprot.writeStructEnd()
1422
 
1466
 
-
 
1467
  def validate(self):
-
 
1468
    return
-
 
1469
 
-
 
1470
 
1423
  def __repr__(self):
1471
  def __repr__(self):
1424
    L = ['%s=%r' % (key, value)
1472
    L = ['%s=%r' % (key, value)
1425
      for key, value in self.__dict__.iteritems()]
1473
      for key, value in self.__dict__.iteritems()]
1426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1427
 
1475
 
Line 1475... Line 1523...
1475
  def write(self, oprot):
1523
  def write(self, oprot):
1476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1478
      return
1526
      return
1479
    oprot.writeStructBegin('getDestinationCode_args')
1527
    oprot.writeStructBegin('getDestinationCode_args')
1480
    if self.providerId != None:
1528
    if self.providerId is not None:
1481
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1529
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1482
      oprot.writeI64(self.providerId)
1530
      oprot.writeI64(self.providerId)
1483
      oprot.writeFieldEnd()
1531
      oprot.writeFieldEnd()
1484
    if self.pinCode != None:
1532
    if self.pinCode is not None:
1485
      oprot.writeFieldBegin('pinCode', TType.STRING, 2)
1533
      oprot.writeFieldBegin('pinCode', TType.STRING, 2)
1486
      oprot.writeString(self.pinCode)
1534
      oprot.writeString(self.pinCode)
1487
      oprot.writeFieldEnd()
1535
      oprot.writeFieldEnd()
1488
    oprot.writeFieldStop()
1536
    oprot.writeFieldStop()
1489
    oprot.writeStructEnd()
1537
    oprot.writeStructEnd()
1490
 
1538
 
-
 
1539
  def validate(self):
-
 
1540
    return
-
 
1541
 
-
 
1542
 
1491
  def __repr__(self):
1543
  def __repr__(self):
1492
    L = ['%s=%r' % (key, value)
1544
    L = ['%s=%r' % (key, value)
1493
      for key, value in self.__dict__.iteritems()]
1545
      for key, value in self.__dict__.iteritems()]
1494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1495
 
1547
 
Line 1543... Line 1595...
1543
  def write(self, oprot):
1595
  def write(self, oprot):
1544
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1545
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1546
      return
1598
      return
1547
    oprot.writeStructBegin('getDestinationCode_result')
1599
    oprot.writeStructBegin('getDestinationCode_result')
1548
    if self.success != None:
1600
    if self.success is not None:
1549
      oprot.writeFieldBegin('success', TType.STRING, 0)
1601
      oprot.writeFieldBegin('success', TType.STRING, 0)
1550
      oprot.writeString(self.success)
1602
      oprot.writeString(self.success)
1551
      oprot.writeFieldEnd()
1603
      oprot.writeFieldEnd()
1552
    if self.se != None:
1604
    if self.se is not None:
1553
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1605
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1554
      self.se.write(oprot)
1606
      self.se.write(oprot)
1555
      oprot.writeFieldEnd()
1607
      oprot.writeFieldEnd()
1556
    oprot.writeFieldStop()
1608
    oprot.writeFieldStop()
1557
    oprot.writeStructEnd()
1609
    oprot.writeStructEnd()
1558
 
1610
 
-
 
1611
  def validate(self):
-
 
1612
    return
-
 
1613
 
-
 
1614
 
1559
  def __repr__(self):
1615
  def __repr__(self):
1560
    L = ['%s=%r' % (key, value)
1616
    L = ['%s=%r' % (key, value)
1561
      for key, value in self.__dict__.iteritems()]
1617
      for key, value in self.__dict__.iteritems()]
1562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1563
 
1619
 
Line 1611... Line 1667...
1611
  def write(self, oprot):
1667
  def write(self, oprot):
1612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1614
      return
1670
      return
1615
    oprot.writeStructBegin('getFreeAwbCount_args')
1671
    oprot.writeStructBegin('getFreeAwbCount_args')
1616
    if self.providerId != None:
1672
    if self.providerId is not None:
1617
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1673
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1618
      oprot.writeI64(self.providerId)
1674
      oprot.writeI64(self.providerId)
1619
      oprot.writeFieldEnd()
1675
      oprot.writeFieldEnd()
1620
    if self.type != None:
1676
    if self.type is not None:
1621
      oprot.writeFieldBegin('type', TType.STRING, 2)
1677
      oprot.writeFieldBegin('type', TType.STRING, 2)
1622
      oprot.writeString(self.type)
1678
      oprot.writeString(self.type)
1623
      oprot.writeFieldEnd()
1679
      oprot.writeFieldEnd()
1624
    oprot.writeFieldStop()
1680
    oprot.writeFieldStop()
1625
    oprot.writeStructEnd()
1681
    oprot.writeStructEnd()
1626
 
1682
 
-
 
1683
  def validate(self):
-
 
1684
    return
-
 
1685
 
-
 
1686
 
1627
  def __repr__(self):
1687
  def __repr__(self):
1628
    L = ['%s=%r' % (key, value)
1688
    L = ['%s=%r' % (key, value)
1629
      for key, value in self.__dict__.iteritems()]
1689
      for key, value in self.__dict__.iteritems()]
1630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1631
 
1691
 
Line 1670... Line 1730...
1670
  def write(self, oprot):
1730
  def write(self, oprot):
1671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1673
      return
1733
      return
1674
    oprot.writeStructBegin('getFreeAwbCount_result')
1734
    oprot.writeStructBegin('getFreeAwbCount_result')
1675
    if self.success != None:
1735
    if self.success is not None:
1676
      oprot.writeFieldBegin('success', TType.I64, 0)
1736
      oprot.writeFieldBegin('success', TType.I64, 0)
1677
      oprot.writeI64(self.success)
1737
      oprot.writeI64(self.success)
1678
      oprot.writeFieldEnd()
1738
      oprot.writeFieldEnd()
1679
    oprot.writeFieldStop()
1739
    oprot.writeFieldStop()
1680
    oprot.writeStructEnd()
1740
    oprot.writeStructEnd()
1681
 
1741
 
-
 
1742
  def validate(self):
-
 
1743
    return
-
 
1744
 
-
 
1745
 
1682
  def __repr__(self):
1746
  def __repr__(self):
1683
    L = ['%s=%r' % (key, value)
1747
    L = ['%s=%r' % (key, value)
1684
      for key, value in self.__dict__.iteritems()]
1748
      for key, value in self.__dict__.iteritems()]
1685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1686
 
1750
 
Line 1734... Line 1798...
1734
  def write(self, oprot):
1798
  def write(self, oprot):
1735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1737
      return
1801
      return
1738
    oprot.writeStructBegin('getHolidays_args')
1802
    oprot.writeStructBegin('getHolidays_args')
1739
    if self.fromDate != None:
1803
    if self.fromDate is not None:
1740
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
1804
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
1741
      oprot.writeI64(self.fromDate)
1805
      oprot.writeI64(self.fromDate)
1742
      oprot.writeFieldEnd()
1806
      oprot.writeFieldEnd()
1743
    if self.toDate != None:
1807
    if self.toDate is not None:
1744
      oprot.writeFieldBegin('toDate', TType.I64, 2)
1808
      oprot.writeFieldBegin('toDate', TType.I64, 2)
1745
      oprot.writeI64(self.toDate)
1809
      oprot.writeI64(self.toDate)
1746
      oprot.writeFieldEnd()
1810
      oprot.writeFieldEnd()
1747
    oprot.writeFieldStop()
1811
    oprot.writeFieldStop()
1748
    oprot.writeStructEnd()
1812
    oprot.writeStructEnd()
1749
 
1813
 
-
 
1814
  def validate(self):
-
 
1815
    return
-
 
1816
 
-
 
1817
 
1750
  def __repr__(self):
1818
  def __repr__(self):
1751
    L = ['%s=%r' % (key, value)
1819
    L = ['%s=%r' % (key, value)
1752
      for key, value in self.__dict__.iteritems()]
1820
      for key, value in self.__dict__.iteritems()]
1753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1754
 
1822
 
Line 1798... Line 1866...
1798
  def write(self, oprot):
1866
  def write(self, oprot):
1799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1867
    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)))
1868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1801
      return
1869
      return
1802
    oprot.writeStructBegin('getHolidays_result')
1870
    oprot.writeStructBegin('getHolidays_result')
1803
    if self.success != None:
1871
    if self.success is not None:
1804
      oprot.writeFieldBegin('success', TType.LIST, 0)
1872
      oprot.writeFieldBegin('success', TType.LIST, 0)
1805
      oprot.writeListBegin(TType.I64, len(self.success))
1873
      oprot.writeListBegin(TType.I64, len(self.success))
1806
      for iter29 in self.success:
1874
      for iter29 in self.success:
1807
        oprot.writeI64(iter29)
1875
        oprot.writeI64(iter29)
1808
      oprot.writeListEnd()
1876
      oprot.writeListEnd()
1809
      oprot.writeFieldEnd()
1877
      oprot.writeFieldEnd()
1810
    oprot.writeFieldStop()
1878
    oprot.writeFieldStop()
1811
    oprot.writeStructEnd()
1879
    oprot.writeStructEnd()
1812
 
1880
 
-
 
1881
  def validate(self):
-
 
1882
    return
-
 
1883
 
-
 
1884
 
1813
  def __repr__(self):
1885
  def __repr__(self):
1814
    L = ['%s=%r' % (key, value)
1886
    L = ['%s=%r' % (key, value)
1815
      for key, value in self.__dict__.iteritems()]
1887
      for key, value in self.__dict__.iteritems()]
1816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1817
 
1889
 
Line 1857... Line 1929...
1857
  def write(self, oprot):
1929
  def write(self, oprot):
1858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1860
      return
1932
      return
1861
    oprot.writeStructBegin('isCodAllowed_args')
1933
    oprot.writeStructBegin('isCodAllowed_args')
1862
    if self.destination_pincode != None:
1934
    if self.destination_pincode is not None:
1863
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1935
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1864
      oprot.writeString(self.destination_pincode)
1936
      oprot.writeString(self.destination_pincode)
1865
      oprot.writeFieldEnd()
1937
      oprot.writeFieldEnd()
1866
    oprot.writeFieldStop()
1938
    oprot.writeFieldStop()
1867
    oprot.writeStructEnd()
1939
    oprot.writeStructEnd()
1868
 
1940
 
-
 
1941
  def validate(self):
-
 
1942
    return
-
 
1943
 
-
 
1944
 
1869
  def __repr__(self):
1945
  def __repr__(self):
1870
    L = ['%s=%r' % (key, value)
1946
    L = ['%s=%r' % (key, value)
1871
      for key, value in self.__dict__.iteritems()]
1947
      for key, value in self.__dict__.iteritems()]
1872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1873
 
1949
 
Line 1912... Line 1988...
1912
  def write(self, oprot):
1988
  def write(self, oprot):
1913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1915
      return
1991
      return
1916
    oprot.writeStructBegin('isCodAllowed_result')
1992
    oprot.writeStructBegin('isCodAllowed_result')
1917
    if self.success != None:
1993
    if self.success is not None:
1918
      oprot.writeFieldBegin('success', TType.BOOL, 0)
1994
      oprot.writeFieldBegin('success', TType.BOOL, 0)
1919
      oprot.writeBool(self.success)
1995
      oprot.writeBool(self.success)
1920
      oprot.writeFieldEnd()
1996
      oprot.writeFieldEnd()
1921
    oprot.writeFieldStop()
1997
    oprot.writeFieldStop()
1922
    oprot.writeStructEnd()
1998
    oprot.writeStructEnd()
1923
 
1999
 
-
 
2000
  def validate(self):
-
 
2001
    return
-
 
2002
 
-
 
2003
 
1924
  def __repr__(self):
2004
  def __repr__(self):
1925
    L = ['%s=%r' % (key, value)
2005
    L = ['%s=%r' % (key, value)
1926
      for key, value in self.__dict__.iteritems()]
2006
      for key, value in self.__dict__.iteritems()]
1927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1928
 
2008
 
1929
  def __eq__(self, other):
2009
  def __eq__(self, other):
1930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1931
 
2011
 
1932
  def __ne__(self, other):
2012
  def __ne__(self, other):
1933
    return not (self == other)
2013
    return not (self == other)
1934
 
-
 
1935
 
-