Subversion Repositories SmartDukaan

Rev

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

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