Subversion Repositories SmartDukaan

Rev

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