Subversion Repositories SmartDukaan

Rev

Rev 3431 | Rev 4391 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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