Subversion Repositories SmartDukaan

Rev

Rev 6643 | Rev 7567 | 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
 
7256 rajveer 48
  def getLogisticsEstimationForStore(self, itemId, destination_pin, type):
49
    """
50
    Parameters:
51
     - itemId
52
     - destination_pin
53
     - type
54
    """
55
    pass
56
 
5767 rajveer 57
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
472 rajveer 58
    """
647 chandransh 59
    Same as above excpet that an airway bill number is also allocated and returned.
3431 rajveer 60
 
472 rajveer 61
    Parameters:
647 chandransh 62
     - destination_pincode
63
     - item_id
3044 chandransh 64
     - type
5767 rajveer 65
     - pickUp
472 rajveer 66
    """
67
    pass
68
 
5247 rajveer 69
  def getEmptyAWB(self, providerId, type):
412 ashish 70
    """
647 chandransh 71
    Returns an unused AWB number for the given provider.
3431 rajveer 72
 
412 ashish 73
    Parameters:
647 chandransh 74
     - providerId
5247 rajveer 75
     - type
412 ashish 76
    """
77
    pass
78
 
6643 rajveer 79
  def getShipmentInfo(self, awbNumber, providerId):
412 ashish 80
    """
647 chandransh 81
    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 82
 
412 ashish 83
    Parameters:
6643 rajveer 84
     - awbNumber
647 chandransh 85
     - providerId
412 ashish 86
    """
87
    pass
88
 
6643 rajveer 89
  def storeShipmentInfo(self, update):
90
    """
91
    Store the update for the given AWB number and provider id.
92
 
93
    Parameters:
94
     - update
95
    """
96
    pass
97
 
732 chandransh 98
  def getDestinationCode(self, providerId, pinCode):
99
    """
100
    Returns the short three letter code of a pincode for the given provider.
101
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 102
 
732 chandransh 103
    Parameters:
104
     - providerId
105
     - pinCode
106
    """
107
    pass
412 ashish 108
 
3103 chandransh 109
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 110
    """
3103 chandransh 111
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 112
 
1137 chandransh 113
    Parameters:
114
     - providerId
3103 chandransh 115
     - type
1137 chandransh 116
    """
117
    pass
732 chandransh 118
 
1730 ankur.sing 119
  def getHolidays(self, fromDate, toDate):
120
    """
121
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
122
    fromDate should be passed as milliseconds corresponding to the start of the day.
123
    If fromDate is passed as -1, fromDate is not considered for filtering
124
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 125
 
1730 ankur.sing 126
    Parameters:
127
     - fromDate
128
     - toDate
129
    """
130
    pass
1137 chandransh 131
 
4934 amit.gupta 132
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
133
    """
134
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
135
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
136
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 137
 
4934 amit.gupta 138
    Parameters:
139
     - catalogItemId
140
     - destination_pin
141
     - type
142
    """
143
    pass
144
 
5527 anupam.sin 145
  def getProviderForPickupType(self, pickUp):
146
    """
147
    Returns the id for a given pickUpType
4934 amit.gupta 148
 
5527 anupam.sin 149
    Parameters:
150
     - pickUp
151
    """
152
    pass
153
 
5553 rajveer 154
  def getAllPickupStores(self, ):
155
    pass
5527 anupam.sin 156
 
5553 rajveer 157
  def getPickupStore(self, storeId):
158
    """
159
    Parameters:
160
     - storeId
161
    """
162
    pass
163
 
5719 rajveer 164
  def getPickupStoreByHotspotId(self, hotspotId):
165
    """
166
    Parameters:
167
     - hotspotId
168
    """
169
    pass
5553 rajveer 170
 
6524 rajveer 171
  def addPincode(self, providerId, pincode, destCode, exp, cod, stationType, otgAvailable):
6322 amar.kumar 172
    """
173
    Parameters:
174
     - providerId
175
     - pincode
176
     - destCode
177
     - exp
178
     - cod
179
     - stationType
6524 rajveer 180
     - otgAvailable
6322 amar.kumar 181
    """
182
    pass
5719 rajveer 183
 
6524 rajveer 184
  def updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
6322 amar.kumar 185
    """
186
    Parameters:
187
     - providerId
188
     - pincode
189
     - exp
190
     - cod
6524 rajveer 191
     - otgAvailable
6322 amar.kumar 192
    """
193
    pass
194
 
195
 
3376 rajveer 196
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
412 ashish 197
  def __init__(self, iprot, oprot=None):
3376 rajveer 198
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
412 ashish 199
 
669 chandransh 200
  def getProvider(self, providerId):
201
    """
202
    Returns a provider for a given provider ID. Throws an exception if none found.
3431 rajveer 203
 
669 chandransh 204
    Parameters:
205
     - providerId
206
    """
207
    self.send_getProvider(providerId)
208
    return self.recv_getProvider()
209
 
210
  def send_getProvider(self, providerId):
211
    self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
212
    args = getProvider_args()
213
    args.providerId = providerId
214
    args.write(self._oprot)
215
    self._oprot.writeMessageEnd()
216
    self._oprot.trans.flush()
217
 
218
  def recv_getProvider(self, ):
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
225
    result = getProvider_result()
226
    result.read(self._iprot)
227
    self._iprot.readMessageEnd()
3431 rajveer 228
    if result.success is not None:
669 chandransh 229
      return result.success
3431 rajveer 230
    if result.lse is not None:
669 chandransh 231
      raise result.lse
232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
233
 
675 chandransh 234
  def getAllProviders(self, ):
235
    """
236
    Returns a list containing all the providers.
237
    """
238
    self.send_getAllProviders()
239
    return self.recv_getAllProviders()
240
 
241
  def send_getAllProviders(self, ):
242
    self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
243
    args = getAllProviders_args()
244
    args.write(self._oprot)
245
    self._oprot.writeMessageEnd()
246
    self._oprot.trans.flush()
247
 
248
  def recv_getAllProviders(self, ):
249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
250
    if mtype == TMessageType.EXCEPTION:
251
      x = TApplicationException()
252
      x.read(self._iprot)
253
      self._iprot.readMessageEnd()
254
      raise x
255
    result = getAllProviders_result()
256
    result.read(self._iprot)
257
    self._iprot.readMessageEnd()
3431 rajveer 258
    if result.success is not None:
675 chandransh 259
      return result.success
3431 rajveer 260
    if result.lse is not None:
675 chandransh 261
      raise result.lse
262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
263
 
4630 mandeep.dh 264
  def getLogisticsEstimation(self, itemId, destination_pin, type):
483 rajveer 265
    """
647 chandransh 266
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
267
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
268
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 269
 
483 rajveer 270
    Parameters:
647 chandransh 271
     - itemId
272
     - destination_pin
4630 mandeep.dh 273
     - type
483 rajveer 274
    """
4630 mandeep.dh 275
    self.send_getLogisticsEstimation(itemId, destination_pin, type)
647 chandransh 276
    return self.recv_getLogisticsEstimation()
483 rajveer 277
 
4630 mandeep.dh 278
  def send_getLogisticsEstimation(self, itemId, destination_pin, type):
647 chandransh 279
    self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
280
    args = getLogisticsEstimation_args()
281
    args.itemId = itemId
282
    args.destination_pin = destination_pin
4630 mandeep.dh 283
    args.type = type
483 rajveer 284
    args.write(self._oprot)
285
    self._oprot.writeMessageEnd()
286
    self._oprot.trans.flush()
287
 
647 chandransh 288
  def recv_getLogisticsEstimation(self, ):
483 rajveer 289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
290
    if mtype == TMessageType.EXCEPTION:
291
      x = TApplicationException()
292
      x.read(self._iprot)
293
      self._iprot.readMessageEnd()
294
      raise x
647 chandransh 295
    result = getLogisticsEstimation_result()
483 rajveer 296
    result.read(self._iprot)
297
    self._iprot.readMessageEnd()
3431 rajveer 298
    if result.success is not None:
483 rajveer 299
      return result.success
3431 rajveer 300
    if result.se is not None:
483 rajveer 301
      raise result.se
647 chandransh 302
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
483 rajveer 303
 
7256 rajveer 304
  def getLogisticsEstimationForStore(self, itemId, destination_pin, type):
305
    """
306
    Parameters:
307
     - itemId
308
     - destination_pin
309
     - type
310
    """
311
    self.send_getLogisticsEstimationForStore(itemId, destination_pin, type)
312
    return self.recv_getLogisticsEstimationForStore()
313
 
314
  def send_getLogisticsEstimationForStore(self, itemId, destination_pin, type):
315
    self._oprot.writeMessageBegin('getLogisticsEstimationForStore', TMessageType.CALL, self._seqid)
316
    args = getLogisticsEstimationForStore_args()
317
    args.itemId = itemId
318
    args.destination_pin = destination_pin
319
    args.type = type
320
    args.write(self._oprot)
321
    self._oprot.writeMessageEnd()
322
    self._oprot.trans.flush()
323
 
324
  def recv_getLogisticsEstimationForStore(self, ):
325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
326
    if mtype == TMessageType.EXCEPTION:
327
      x = TApplicationException()
328
      x.read(self._iprot)
329
      self._iprot.readMessageEnd()
330
      raise x
331
    result = getLogisticsEstimationForStore_result()
332
    result.read(self._iprot)
333
    self._iprot.readMessageEnd()
334
    if result.success is not None:
335
      return result.success
336
    if result.se is not None:
337
      raise result.se
338
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
339
 
5767 rajveer 340
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
472 rajveer 341
    """
647 chandransh 342
    Same as above excpet that an airway bill number is also allocated and returned.
3431 rajveer 343
 
472 rajveer 344
    Parameters:
647 chandransh 345
     - destination_pincode
346
     - item_id
3044 chandransh 347
     - type
5767 rajveer 348
     - pickUp
472 rajveer 349
    """
5767 rajveer 350
    self.send_getLogisticsInfo(destination_pincode, item_id, type, pickUp)
647 chandransh 351
    return self.recv_getLogisticsInfo()
472 rajveer 352
 
5767 rajveer 353
  def send_getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
647 chandransh 354
    self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
355
    args = getLogisticsInfo_args()
356
    args.destination_pincode = destination_pincode
357
    args.item_id = item_id
3044 chandransh 358
    args.type = type
5767 rajveer 359
    args.pickUp = pickUp
472 rajveer 360
    args.write(self._oprot)
361
    self._oprot.writeMessageEnd()
362
    self._oprot.trans.flush()
363
 
647 chandransh 364
  def recv_getLogisticsInfo(self, ):
472 rajveer 365
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
366
    if mtype == TMessageType.EXCEPTION:
367
      x = TApplicationException()
368
      x.read(self._iprot)
369
      self._iprot.readMessageEnd()
370
      raise x
647 chandransh 371
    result = getLogisticsInfo_result()
472 rajveer 372
    result.read(self._iprot)
373
    self._iprot.readMessageEnd()
3431 rajveer 374
    if result.success is not None:
472 rajveer 375
      return result.success
3431 rajveer 376
    if result.se is not None:
472 rajveer 377
      raise result.se
647 chandransh 378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
472 rajveer 379
 
5247 rajveer 380
  def getEmptyAWB(self, providerId, type):
412 ashish 381
    """
647 chandransh 382
    Returns an unused AWB number for the given provider.
3431 rajveer 383
 
412 ashish 384
    Parameters:
647 chandransh 385
     - providerId
5247 rajveer 386
     - type
412 ashish 387
    """
5247 rajveer 388
    self.send_getEmptyAWB(providerId, type)
412 ashish 389
    return self.recv_getEmptyAWB()
390
 
5247 rajveer 391
  def send_getEmptyAWB(self, providerId, type):
412 ashish 392
    self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
393
    args = getEmptyAWB_args()
647 chandransh 394
    args.providerId = providerId
5247 rajveer 395
    args.type = type
412 ashish 396
    args.write(self._oprot)
397
    self._oprot.writeMessageEnd()
398
    self._oprot.trans.flush()
399
 
400
  def recv_getEmptyAWB(self, ):
401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
402
    if mtype == TMessageType.EXCEPTION:
403
      x = TApplicationException()
404
      x.read(self._iprot)
405
      self._iprot.readMessageEnd()
406
      raise x
407
    result = getEmptyAWB_result()
408
    result.read(self._iprot)
409
    self._iprot.readMessageEnd()
3431 rajveer 410
    if result.success is not None:
412 ashish 411
      return result.success
3431 rajveer 412
    if result.se is not None:
647 chandransh 413
      raise result.se
412 ashish 414
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
415
 
6643 rajveer 416
  def getShipmentInfo(self, awbNumber, providerId):
412 ashish 417
    """
647 chandransh 418
    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 419
 
412 ashish 420
    Parameters:
6643 rajveer 421
     - awbNumber
647 chandransh 422
     - providerId
412 ashish 423
    """
6643 rajveer 424
    self.send_getShipmentInfo(awbNumber, providerId)
412 ashish 425
    return self.recv_getShipmentInfo()
426
 
6643 rajveer 427
  def send_getShipmentInfo(self, awbNumber, providerId):
412 ashish 428
    self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
429
    args = getShipmentInfo_args()
6643 rajveer 430
    args.awbNumber = awbNumber
647 chandransh 431
    args.providerId = providerId
412 ashish 432
    args.write(self._oprot)
433
    self._oprot.writeMessageEnd()
434
    self._oprot.trans.flush()
435
 
436
  def recv_getShipmentInfo(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 = getShipmentInfo_result()
444
    result.read(self._iprot)
445
    self._iprot.readMessageEnd()
3431 rajveer 446
    if result.success is not None:
412 ashish 447
      return result.success
3431 rajveer 448
    if result.se is not None:
647 chandransh 449
      raise result.se
412 ashish 450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
451
 
6643 rajveer 452
  def storeShipmentInfo(self, update):
453
    """
454
    Store the update for the given AWB number and provider id.
455
 
456
    Parameters:
457
     - update
458
    """
459
    self.send_storeShipmentInfo(update)
460
    self.recv_storeShipmentInfo()
461
 
462
  def send_storeShipmentInfo(self, update):
463
    self._oprot.writeMessageBegin('storeShipmentInfo', TMessageType.CALL, self._seqid)
464
    args = storeShipmentInfo_args()
465
    args.update = update
466
    args.write(self._oprot)
467
    self._oprot.writeMessageEnd()
468
    self._oprot.trans.flush()
469
 
470
  def recv_storeShipmentInfo(self, ):
471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
472
    if mtype == TMessageType.EXCEPTION:
473
      x = TApplicationException()
474
      x.read(self._iprot)
475
      self._iprot.readMessageEnd()
476
      raise x
477
    result = storeShipmentInfo_result()
478
    result.read(self._iprot)
479
    self._iprot.readMessageEnd()
480
    if result.se is not None:
481
      raise result.se
482
    return
483
 
732 chandransh 484
  def getDestinationCode(self, providerId, pinCode):
485
    """
486
    Returns the short three letter code of a pincode for the given provider.
487
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 488
 
732 chandransh 489
    Parameters:
490
     - providerId
491
     - pinCode
492
    """
493
    self.send_getDestinationCode(providerId, pinCode)
494
    return self.recv_getDestinationCode()
412 ashish 495
 
732 chandransh 496
  def send_getDestinationCode(self, providerId, pinCode):
497
    self._oprot.writeMessageBegin('getDestinationCode', TMessageType.CALL, self._seqid)
498
    args = getDestinationCode_args()
499
    args.providerId = providerId
500
    args.pinCode = pinCode
501
    args.write(self._oprot)
502
    self._oprot.writeMessageEnd()
503
    self._oprot.trans.flush()
504
 
505
  def recv_getDestinationCode(self, ):
506
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
507
    if mtype == TMessageType.EXCEPTION:
508
      x = TApplicationException()
509
      x.read(self._iprot)
510
      self._iprot.readMessageEnd()
511
      raise x
512
    result = getDestinationCode_result()
513
    result.read(self._iprot)
514
    self._iprot.readMessageEnd()
3431 rajveer 515
    if result.success is not None:
732 chandransh 516
      return result.success
3431 rajveer 517
    if result.se is not None:
732 chandransh 518
      raise result.se
519
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
520
 
3103 chandransh 521
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 522
    """
3103 chandransh 523
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 524
 
1137 chandransh 525
    Parameters:
526
     - providerId
3103 chandransh 527
     - type
1137 chandransh 528
    """
3103 chandransh 529
    self.send_getFreeAwbCount(providerId, type)
1137 chandransh 530
    return self.recv_getFreeAwbCount()
732 chandransh 531
 
3103 chandransh 532
  def send_getFreeAwbCount(self, providerId, type):
1137 chandransh 533
    self._oprot.writeMessageBegin('getFreeAwbCount', TMessageType.CALL, self._seqid)
534
    args = getFreeAwbCount_args()
535
    args.providerId = providerId
3103 chandransh 536
    args.type = type
1137 chandransh 537
    args.write(self._oprot)
538
    self._oprot.writeMessageEnd()
539
    self._oprot.trans.flush()
540
 
541
  def recv_getFreeAwbCount(self, ):
542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
543
    if mtype == TMessageType.EXCEPTION:
544
      x = TApplicationException()
545
      x.read(self._iprot)
546
      self._iprot.readMessageEnd()
547
      raise x
548
    result = getFreeAwbCount_result()
549
    result.read(self._iprot)
550
    self._iprot.readMessageEnd()
3431 rajveer 551
    if result.success is not None:
1137 chandransh 552
      return result.success
553
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
554
 
1730 ankur.sing 555
  def getHolidays(self, fromDate, toDate):
556
    """
557
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
558
    fromDate should be passed as milliseconds corresponding to the start of the day.
559
    If fromDate is passed as -1, fromDate is not considered for filtering
560
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 561
 
1730 ankur.sing 562
    Parameters:
563
     - fromDate
564
     - toDate
565
    """
566
    self.send_getHolidays(fromDate, toDate)
567
    return self.recv_getHolidays()
1137 chandransh 568
 
1730 ankur.sing 569
  def send_getHolidays(self, fromDate, toDate):
570
    self._oprot.writeMessageBegin('getHolidays', TMessageType.CALL, self._seqid)
571
    args = getHolidays_args()
572
    args.fromDate = fromDate
573
    args.toDate = toDate
574
    args.write(self._oprot)
575
    self._oprot.writeMessageEnd()
576
    self._oprot.trans.flush()
577
 
578
  def recv_getHolidays(self, ):
579
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
580
    if mtype == TMessageType.EXCEPTION:
581
      x = TApplicationException()
582
      x.read(self._iprot)
583
      self._iprot.readMessageEnd()
584
      raise x
585
    result = getHolidays_result()
586
    result.read(self._iprot)
587
    self._iprot.readMessageEnd()
3431 rajveer 588
    if result.success is not None:
1730 ankur.sing 589
      return result.success
590
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
591
 
4934 amit.gupta 592
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
593
    """
594
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
595
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
596
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 597
 
4934 amit.gupta 598
    Parameters:
599
     - catalogItemId
600
     - destination_pin
601
     - type
602
    """
603
    self.send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type)
604
    return self.recv_getEntityLogisticsEstimation()
605
 
606
  def send_getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
607
    self._oprot.writeMessageBegin('getEntityLogisticsEstimation', TMessageType.CALL, self._seqid)
608
    args = getEntityLogisticsEstimation_args()
609
    args.catalogItemId = catalogItemId
610
    args.destination_pin = destination_pin
611
    args.type = type
612
    args.write(self._oprot)
613
    self._oprot.writeMessageEnd()
614
    self._oprot.trans.flush()
615
 
616
  def recv_getEntityLogisticsEstimation(self, ):
617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
618
    if mtype == TMessageType.EXCEPTION:
619
      x = TApplicationException()
620
      x.read(self._iprot)
621
      self._iprot.readMessageEnd()
622
      raise x
623
    result = getEntityLogisticsEstimation_result()
624
    result.read(self._iprot)
625
    self._iprot.readMessageEnd()
626
    if result.success is not None:
627
      return result.success
628
    if result.se is not None:
629
      raise result.se
630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
631
 
5527 anupam.sin 632
  def getProviderForPickupType(self, pickUp):
633
    """
634
    Returns the id for a given pickUpType
4934 amit.gupta 635
 
5527 anupam.sin 636
    Parameters:
637
     - pickUp
638
    """
639
    self.send_getProviderForPickupType(pickUp)
640
    return self.recv_getProviderForPickupType()
641
 
642
  def send_getProviderForPickupType(self, pickUp):
643
    self._oprot.writeMessageBegin('getProviderForPickupType', TMessageType.CALL, self._seqid)
644
    args = getProviderForPickupType_args()
645
    args.pickUp = pickUp
646
    args.write(self._oprot)
647
    self._oprot.writeMessageEnd()
648
    self._oprot.trans.flush()
649
 
650
  def recv_getProviderForPickupType(self, ):
651
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
652
    if mtype == TMessageType.EXCEPTION:
653
      x = TApplicationException()
654
      x.read(self._iprot)
655
      self._iprot.readMessageEnd()
656
      raise x
657
    result = getProviderForPickupType_result()
658
    result.read(self._iprot)
659
    self._iprot.readMessageEnd()
660
    if result.success is not None:
661
      return result.success
662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
663
 
5553 rajveer 664
  def getAllPickupStores(self, ):
665
    self.send_getAllPickupStores()
666
    return self.recv_getAllPickupStores()
5527 anupam.sin 667
 
5553 rajveer 668
  def send_getAllPickupStores(self, ):
669
    self._oprot.writeMessageBegin('getAllPickupStores', TMessageType.CALL, self._seqid)
670
    args = getAllPickupStores_args()
671
    args.write(self._oprot)
672
    self._oprot.writeMessageEnd()
673
    self._oprot.trans.flush()
674
 
675
  def recv_getAllPickupStores(self, ):
676
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
677
    if mtype == TMessageType.EXCEPTION:
678
      x = TApplicationException()
679
      x.read(self._iprot)
680
      self._iprot.readMessageEnd()
681
      raise x
682
    result = getAllPickupStores_result()
683
    result.read(self._iprot)
684
    self._iprot.readMessageEnd()
685
    if result.success is not None:
686
      return result.success
687
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
688
 
689
  def getPickupStore(self, storeId):
690
    """
691
    Parameters:
692
     - storeId
693
    """
694
    self.send_getPickupStore(storeId)
695
    return self.recv_getPickupStore()
696
 
697
  def send_getPickupStore(self, storeId):
698
    self._oprot.writeMessageBegin('getPickupStore', TMessageType.CALL, self._seqid)
699
    args = getPickupStore_args()
700
    args.storeId = storeId
701
    args.write(self._oprot)
702
    self._oprot.writeMessageEnd()
703
    self._oprot.trans.flush()
704
 
705
  def recv_getPickupStore(self, ):
706
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
707
    if mtype == TMessageType.EXCEPTION:
708
      x = TApplicationException()
709
      x.read(self._iprot)
710
      self._iprot.readMessageEnd()
711
      raise x
712
    result = getPickupStore_result()
713
    result.read(self._iprot)
714
    self._iprot.readMessageEnd()
715
    if result.success is not None:
716
      return result.success
717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
718
 
5719 rajveer 719
  def getPickupStoreByHotspotId(self, hotspotId):
720
    """
721
    Parameters:
722
     - hotspotId
723
    """
724
    self.send_getPickupStoreByHotspotId(hotspotId)
725
    return self.recv_getPickupStoreByHotspotId()
5553 rajveer 726
 
5719 rajveer 727
  def send_getPickupStoreByHotspotId(self, hotspotId):
728
    self._oprot.writeMessageBegin('getPickupStoreByHotspotId', TMessageType.CALL, self._seqid)
729
    args = getPickupStoreByHotspotId_args()
730
    args.hotspotId = hotspotId
731
    args.write(self._oprot)
732
    self._oprot.writeMessageEnd()
733
    self._oprot.trans.flush()
734
 
735
  def recv_getPickupStoreByHotspotId(self, ):
736
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
737
    if mtype == TMessageType.EXCEPTION:
738
      x = TApplicationException()
739
      x.read(self._iprot)
740
      self._iprot.readMessageEnd()
741
      raise x
742
    result = getPickupStoreByHotspotId_result()
743
    result.read(self._iprot)
744
    self._iprot.readMessageEnd()
745
    if result.success is not None:
746
      return result.success
747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
748
 
6524 rajveer 749
  def addPincode(self, providerId, pincode, destCode, exp, cod, stationType, otgAvailable):
6322 amar.kumar 750
    """
751
    Parameters:
752
     - providerId
753
     - pincode
754
     - destCode
755
     - exp
756
     - cod
757
     - stationType
6524 rajveer 758
     - otgAvailable
6322 amar.kumar 759
    """
6524 rajveer 760
    self.send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable)
6322 amar.kumar 761
    self.recv_addPincode()
5719 rajveer 762
 
6524 rajveer 763
  def send_addPincode(self, providerId, pincode, destCode, exp, cod, stationType, otgAvailable):
6322 amar.kumar 764
    self._oprot.writeMessageBegin('addPincode', TMessageType.CALL, self._seqid)
765
    args = addPincode_args()
766
    args.providerId = providerId
767
    args.pincode = pincode
768
    args.destCode = destCode
769
    args.exp = exp
770
    args.cod = cod
771
    args.stationType = stationType
6524 rajveer 772
    args.otgAvailable = otgAvailable
6322 amar.kumar 773
    args.write(self._oprot)
774
    self._oprot.writeMessageEnd()
775
    self._oprot.trans.flush()
776
 
777
  def recv_addPincode(self, ):
778
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
779
    if mtype == TMessageType.EXCEPTION:
780
      x = TApplicationException()
781
      x.read(self._iprot)
782
      self._iprot.readMessageEnd()
783
      raise x
784
    result = addPincode_result()
785
    result.read(self._iprot)
786
    self._iprot.readMessageEnd()
787
    return
788
 
6524 rajveer 789
  def updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
6322 amar.kumar 790
    """
791
    Parameters:
792
     - providerId
793
     - pincode
794
     - exp
795
     - cod
6524 rajveer 796
     - otgAvailable
6322 amar.kumar 797
    """
6524 rajveer 798
    self.send_updatePincode(providerId, pincode, exp, cod, otgAvailable)
6322 amar.kumar 799
    self.recv_updatePincode()
800
 
6524 rajveer 801
  def send_updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
6322 amar.kumar 802
    self._oprot.writeMessageBegin('updatePincode', TMessageType.CALL, self._seqid)
803
    args = updatePincode_args()
804
    args.providerId = providerId
805
    args.pincode = pincode
806
    args.exp = exp
807
    args.cod = cod
6524 rajveer 808
    args.otgAvailable = otgAvailable
6322 amar.kumar 809
    args.write(self._oprot)
810
    self._oprot.writeMessageEnd()
811
    self._oprot.trans.flush()
812
 
813
  def recv_updatePincode(self, ):
814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
815
    if mtype == TMessageType.EXCEPTION:
816
      x = TApplicationException()
817
      x.read(self._iprot)
818
      self._iprot.readMessageEnd()
819
      raise x
820
    result = updatePincode_result()
821
    result.read(self._iprot)
822
    self._iprot.readMessageEnd()
823
    return
824
 
825
 
3376 rajveer 826
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
412 ashish 827
  def __init__(self, handler):
3376 rajveer 828
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
669 chandransh 829
    self._processMap["getProvider"] = Processor.process_getProvider
675 chandransh 830
    self._processMap["getAllProviders"] = Processor.process_getAllProviders
647 chandransh 831
    self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
7256 rajveer 832
    self._processMap["getLogisticsEstimationForStore"] = Processor.process_getLogisticsEstimationForStore
483 rajveer 833
    self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
412 ashish 834
    self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
835
    self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
6643 rajveer 836
    self._processMap["storeShipmentInfo"] = Processor.process_storeShipmentInfo
732 chandransh 837
    self._processMap["getDestinationCode"] = Processor.process_getDestinationCode
1137 chandransh 838
    self._processMap["getFreeAwbCount"] = Processor.process_getFreeAwbCount
1730 ankur.sing 839
    self._processMap["getHolidays"] = Processor.process_getHolidays
4934 amit.gupta 840
    self._processMap["getEntityLogisticsEstimation"] = Processor.process_getEntityLogisticsEstimation
5527 anupam.sin 841
    self._processMap["getProviderForPickupType"] = Processor.process_getProviderForPickupType
5553 rajveer 842
    self._processMap["getAllPickupStores"] = Processor.process_getAllPickupStores
843
    self._processMap["getPickupStore"] = Processor.process_getPickupStore
5719 rajveer 844
    self._processMap["getPickupStoreByHotspotId"] = Processor.process_getPickupStoreByHotspotId
6322 amar.kumar 845
    self._processMap["addPincode"] = Processor.process_addPincode
846
    self._processMap["updatePincode"] = Processor.process_updatePincode
412 ashish 847
 
848
  def process(self, iprot, oprot):
849
    (name, type, seqid) = iprot.readMessageBegin()
850
    if name not in self._processMap:
851
      iprot.skip(TType.STRUCT)
852
      iprot.readMessageEnd()
853
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
854
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
855
      x.write(oprot)
856
      oprot.writeMessageEnd()
857
      oprot.trans.flush()
858
      return
859
    else:
860
      self._processMap[name](self, seqid, iprot, oprot)
861
    return True
862
 
669 chandransh 863
  def process_getProvider(self, seqid, iprot, oprot):
864
    args = getProvider_args()
865
    args.read(iprot)
866
    iprot.readMessageEnd()
867
    result = getProvider_result()
868
    try:
869
      result.success = self._handler.getProvider(args.providerId)
870
    except LogisticsServiceException, lse:
871
      result.lse = lse
872
    oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
873
    result.write(oprot)
874
    oprot.writeMessageEnd()
875
    oprot.trans.flush()
876
 
675 chandransh 877
  def process_getAllProviders(self, seqid, iprot, oprot):
878
    args = getAllProviders_args()
879
    args.read(iprot)
880
    iprot.readMessageEnd()
881
    result = getAllProviders_result()
882
    try:
883
      result.success = self._handler.getAllProviders()
884
    except LogisticsServiceException, lse:
885
      result.lse = lse
886
    oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
887
    result.write(oprot)
888
    oprot.writeMessageEnd()
889
    oprot.trans.flush()
890
 
647 chandransh 891
  def process_getLogisticsEstimation(self, seqid, iprot, oprot):
892
    args = getLogisticsEstimation_args()
483 rajveer 893
    args.read(iprot)
894
    iprot.readMessageEnd()
647 chandransh 895
    result = getLogisticsEstimation_result()
483 rajveer 896
    try:
4630 mandeep.dh 897
      result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin, args.type)
483 rajveer 898
    except LogisticsServiceException, se:
899
      result.se = se
647 chandransh 900
    oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
483 rajveer 901
    result.write(oprot)
902
    oprot.writeMessageEnd()
903
    oprot.trans.flush()
904
 
7256 rajveer 905
  def process_getLogisticsEstimationForStore(self, seqid, iprot, oprot):
906
    args = getLogisticsEstimationForStore_args()
907
    args.read(iprot)
908
    iprot.readMessageEnd()
909
    result = getLogisticsEstimationForStore_result()
910
    try:
911
      result.success = self._handler.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type)
912
    except LogisticsServiceException, se:
913
      result.se = se
914
    oprot.writeMessageBegin("getLogisticsEstimationForStore", TMessageType.REPLY, seqid)
915
    result.write(oprot)
916
    oprot.writeMessageEnd()
917
    oprot.trans.flush()
918
 
647 chandransh 919
  def process_getLogisticsInfo(self, seqid, iprot, oprot):
920
    args = getLogisticsInfo_args()
472 rajveer 921
    args.read(iprot)
922
    iprot.readMessageEnd()
647 chandransh 923
    result = getLogisticsInfo_result()
472 rajveer 924
    try:
5767 rajveer 925
      result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp)
472 rajveer 926
    except LogisticsServiceException, se:
927
      result.se = se
647 chandransh 928
    oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
472 rajveer 929
    result.write(oprot)
930
    oprot.writeMessageEnd()
931
    oprot.trans.flush()
932
 
412 ashish 933
  def process_getEmptyAWB(self, seqid, iprot, oprot):
934
    args = getEmptyAWB_args()
935
    args.read(iprot)
936
    iprot.readMessageEnd()
937
    result = getEmptyAWB_result()
647 chandransh 938
    try:
5247 rajveer 939
      result.success = self._handler.getEmptyAWB(args.providerId, args.type)
647 chandransh 940
    except LogisticsServiceException, se:
941
      result.se = se
412 ashish 942
    oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
943
    result.write(oprot)
944
    oprot.writeMessageEnd()
945
    oprot.trans.flush()
946
 
947
  def process_getShipmentInfo(self, seqid, iprot, oprot):
948
    args = getShipmentInfo_args()
949
    args.read(iprot)
950
    iprot.readMessageEnd()
951
    result = getShipmentInfo_result()
647 chandransh 952
    try:
6643 rajveer 953
      result.success = self._handler.getShipmentInfo(args.awbNumber, args.providerId)
647 chandransh 954
    except LogisticsServiceException, se:
955
      result.se = se
412 ashish 956
    oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
957
    result.write(oprot)
958
    oprot.writeMessageEnd()
959
    oprot.trans.flush()
960
 
6643 rajveer 961
  def process_storeShipmentInfo(self, seqid, iprot, oprot):
962
    args = storeShipmentInfo_args()
963
    args.read(iprot)
964
    iprot.readMessageEnd()
965
    result = storeShipmentInfo_result()
966
    try:
967
      self._handler.storeShipmentInfo(args.update)
968
    except LogisticsServiceException, se:
969
      result.se = se
970
    oprot.writeMessageBegin("storeShipmentInfo", TMessageType.REPLY, seqid)
971
    result.write(oprot)
972
    oprot.writeMessageEnd()
973
    oprot.trans.flush()
974
 
732 chandransh 975
  def process_getDestinationCode(self, seqid, iprot, oprot):
976
    args = getDestinationCode_args()
977
    args.read(iprot)
978
    iprot.readMessageEnd()
979
    result = getDestinationCode_result()
980
    try:
981
      result.success = self._handler.getDestinationCode(args.providerId, args.pinCode)
982
    except LogisticsServiceException, se:
983
      result.se = se
984
    oprot.writeMessageBegin("getDestinationCode", TMessageType.REPLY, seqid)
985
    result.write(oprot)
986
    oprot.writeMessageEnd()
987
    oprot.trans.flush()
412 ashish 988
 
1137 chandransh 989
  def process_getFreeAwbCount(self, seqid, iprot, oprot):
990
    args = getFreeAwbCount_args()
991
    args.read(iprot)
992
    iprot.readMessageEnd()
993
    result = getFreeAwbCount_result()
3103 chandransh 994
    result.success = self._handler.getFreeAwbCount(args.providerId, args.type)
1137 chandransh 995
    oprot.writeMessageBegin("getFreeAwbCount", TMessageType.REPLY, seqid)
996
    result.write(oprot)
997
    oprot.writeMessageEnd()
998
    oprot.trans.flush()
732 chandransh 999
 
1730 ankur.sing 1000
  def process_getHolidays(self, seqid, iprot, oprot):
1001
    args = getHolidays_args()
1002
    args.read(iprot)
1003
    iprot.readMessageEnd()
1004
    result = getHolidays_result()
1005
    result.success = self._handler.getHolidays(args.fromDate, args.toDate)
1006
    oprot.writeMessageBegin("getHolidays", TMessageType.REPLY, seqid)
1007
    result.write(oprot)
1008
    oprot.writeMessageEnd()
1009
    oprot.trans.flush()
1137 chandransh 1010
 
4934 amit.gupta 1011
  def process_getEntityLogisticsEstimation(self, seqid, iprot, oprot):
1012
    args = getEntityLogisticsEstimation_args()
1013
    args.read(iprot)
1014
    iprot.readMessageEnd()
1015
    result = getEntityLogisticsEstimation_result()
1016
    try:
1017
      result.success = self._handler.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type)
1018
    except LogisticsServiceException, se:
1019
      result.se = se
1020
    oprot.writeMessageBegin("getEntityLogisticsEstimation", TMessageType.REPLY, seqid)
1021
    result.write(oprot)
1022
    oprot.writeMessageEnd()
1023
    oprot.trans.flush()
1730 ankur.sing 1024
 
5527 anupam.sin 1025
  def process_getProviderForPickupType(self, seqid, iprot, oprot):
1026
    args = getProviderForPickupType_args()
1027
    args.read(iprot)
1028
    iprot.readMessageEnd()
1029
    result = getProviderForPickupType_result()
1030
    result.success = self._handler.getProviderForPickupType(args.pickUp)
1031
    oprot.writeMessageBegin("getProviderForPickupType", TMessageType.REPLY, seqid)
1032
    result.write(oprot)
1033
    oprot.writeMessageEnd()
1034
    oprot.trans.flush()
4934 amit.gupta 1035
 
5553 rajveer 1036
  def process_getAllPickupStores(self, seqid, iprot, oprot):
1037
    args = getAllPickupStores_args()
1038
    args.read(iprot)
1039
    iprot.readMessageEnd()
1040
    result = getAllPickupStores_result()
1041
    result.success = self._handler.getAllPickupStores()
1042
    oprot.writeMessageBegin("getAllPickupStores", TMessageType.REPLY, seqid)
1043
    result.write(oprot)
1044
    oprot.writeMessageEnd()
1045
    oprot.trans.flush()
5527 anupam.sin 1046
 
5553 rajveer 1047
  def process_getPickupStore(self, seqid, iprot, oprot):
1048
    args = getPickupStore_args()
1049
    args.read(iprot)
1050
    iprot.readMessageEnd()
1051
    result = getPickupStore_result()
1052
    result.success = self._handler.getPickupStore(args.storeId)
1053
    oprot.writeMessageBegin("getPickupStore", TMessageType.REPLY, seqid)
1054
    result.write(oprot)
1055
    oprot.writeMessageEnd()
1056
    oprot.trans.flush()
1057
 
5719 rajveer 1058
  def process_getPickupStoreByHotspotId(self, seqid, iprot, oprot):
1059
    args = getPickupStoreByHotspotId_args()
1060
    args.read(iprot)
1061
    iprot.readMessageEnd()
1062
    result = getPickupStoreByHotspotId_result()
1063
    result.success = self._handler.getPickupStoreByHotspotId(args.hotspotId)
1064
    oprot.writeMessageBegin("getPickupStoreByHotspotId", TMessageType.REPLY, seqid)
1065
    result.write(oprot)
1066
    oprot.writeMessageEnd()
1067
    oprot.trans.flush()
5553 rajveer 1068
 
6322 amar.kumar 1069
  def process_addPincode(self, seqid, iprot, oprot):
1070
    args = addPincode_args()
1071
    args.read(iprot)
1072
    iprot.readMessageEnd()
1073
    result = addPincode_result()
6524 rajveer 1074
    self._handler.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable)
6322 amar.kumar 1075
    oprot.writeMessageBegin("addPincode", TMessageType.REPLY, seqid)
1076
    result.write(oprot)
1077
    oprot.writeMessageEnd()
1078
    oprot.trans.flush()
5719 rajveer 1079
 
6322 amar.kumar 1080
  def process_updatePincode(self, seqid, iprot, oprot):
1081
    args = updatePincode_args()
1082
    args.read(iprot)
1083
    iprot.readMessageEnd()
1084
    result = updatePincode_result()
6524 rajveer 1085
    self._handler.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable)
6322 amar.kumar 1086
    oprot.writeMessageBegin("updatePincode", TMessageType.REPLY, seqid)
1087
    result.write(oprot)
1088
    oprot.writeMessageEnd()
1089
    oprot.trans.flush()
1090
 
1091
 
412 ashish 1092
# HELPER FUNCTIONS AND STRUCTURES
1093
 
669 chandransh 1094
class getProvider_args:
1095
  """
1096
  Attributes:
1097
   - providerId
1098
  """
1099
 
1100
  thrift_spec = (
1101
    None, # 0
1102
    (1, TType.I64, 'providerId', None, None, ), # 1
1103
  )
1104
 
1105
  def __init__(self, providerId=None,):
1106
    self.providerId = providerId
1107
 
1108
  def read(self, iprot):
1109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1111
      return
1112
    iprot.readStructBegin()
1113
    while True:
1114
      (fname, ftype, fid) = iprot.readFieldBegin()
1115
      if ftype == TType.STOP:
1116
        break
1117
      if fid == 1:
1118
        if ftype == TType.I64:
1119
          self.providerId = iprot.readI64();
1120
        else:
1121
          iprot.skip(ftype)
1122
      else:
1123
        iprot.skip(ftype)
1124
      iprot.readFieldEnd()
1125
    iprot.readStructEnd()
1126
 
1127
  def write(self, oprot):
1128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1130
      return
1131
    oprot.writeStructBegin('getProvider_args')
3431 rajveer 1132
    if self.providerId is not None:
669 chandransh 1133
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1134
      oprot.writeI64(self.providerId)
1135
      oprot.writeFieldEnd()
1136
    oprot.writeFieldStop()
1137
    oprot.writeStructEnd()
1138
 
3431 rajveer 1139
  def validate(self):
1140
    return
1141
 
1142
 
669 chandransh 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
 
1154
class getProvider_result:
1155
  """
1156
  Attributes:
1157
   - success
1158
   - lse
1159
  """
1160
 
1161
  thrift_spec = (
1162
    (0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
1163
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1164
  )
1165
 
1166
  def __init__(self, success=None, lse=None,):
1167
    self.success = success
1168
    self.lse = lse
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:
1181
          self.success = Provider()
1182
          self.success.read(iprot)
1183
        else:
1184
          iprot.skip(ftype)
1185
      elif fid == 1:
1186
        if ftype == TType.STRUCT:
1187
          self.lse = LogisticsServiceException()
1188
          self.lse.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
1200
    oprot.writeStructBegin('getProvider_result')
3431 rajveer 1201
    if self.success is not None:
669 chandransh 1202
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1203
      self.success.write(oprot)
1204
      oprot.writeFieldEnd()
3431 rajveer 1205
    if self.lse is not None:
669 chandransh 1206
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
1207
      self.lse.write(oprot)
1208
      oprot.writeFieldEnd()
1209
    oprot.writeFieldStop()
1210
    oprot.writeStructEnd()
1211
 
3431 rajveer 1212
  def validate(self):
1213
    return
1214
 
1215
 
669 chandransh 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
 
675 chandransh 1227
class getAllProviders_args:
1228
 
1229
  thrift_spec = (
1230
  )
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
      else:
1242
        iprot.skip(ftype)
1243
      iprot.readFieldEnd()
1244
    iprot.readStructEnd()
1245
 
1246
  def write(self, oprot):
1247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1249
      return
1250
    oprot.writeStructBegin('getAllProviders_args')
1251
    oprot.writeFieldStop()
1252
    oprot.writeStructEnd()
1253
 
3431 rajveer 1254
  def validate(self):
1255
    return
1256
 
1257
 
675 chandransh 1258
  def __repr__(self):
1259
    L = ['%s=%r' % (key, value)
1260
      for key, value in self.__dict__.iteritems()]
1261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1262
 
1263
  def __eq__(self, other):
1264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1265
 
1266
  def __ne__(self, other):
1267
    return not (self == other)
1268
 
1269
class getAllProviders_result:
1270
  """
1271
  Attributes:
1272
   - success
1273
   - lse
1274
  """
1275
 
1276
  thrift_spec = (
1277
    (0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
1278
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1279
  )
1280
 
1281
  def __init__(self, success=None, lse=None,):
1282
    self.success = success
1283
    self.lse = lse
1284
 
1285
  def read(self, iprot):
1286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1288
      return
1289
    iprot.readStructBegin()
1290
    while True:
1291
      (fname, ftype, fid) = iprot.readFieldBegin()
1292
      if ftype == TType.STOP:
1293
        break
1294
      if fid == 0:
1295
        if ftype == TType.LIST:
1296
          self.success = []
3044 chandransh 1297
          (_etype12, _size9) = iprot.readListBegin()
1298
          for _i13 in xrange(_size9):
1299
            _elem14 = Provider()
1300
            _elem14.read(iprot)
1301
            self.success.append(_elem14)
675 chandransh 1302
          iprot.readListEnd()
1303
        else:
1304
          iprot.skip(ftype)
1305
      elif fid == 1:
1306
        if ftype == TType.STRUCT:
1307
          self.lse = LogisticsServiceException()
1308
          self.lse.read(iprot)
1309
        else:
1310
          iprot.skip(ftype)
1311
      else:
1312
        iprot.skip(ftype)
1313
      iprot.readFieldEnd()
1314
    iprot.readStructEnd()
1315
 
1316
  def write(self, oprot):
1317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1319
      return
1320
    oprot.writeStructBegin('getAllProviders_result')
3431 rajveer 1321
    if self.success is not None:
675 chandransh 1322
      oprot.writeFieldBegin('success', TType.LIST, 0)
1323
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 1324
      for iter15 in self.success:
1325
        iter15.write(oprot)
675 chandransh 1326
      oprot.writeListEnd()
1327
      oprot.writeFieldEnd()
3431 rajveer 1328
    if self.lse is not None:
675 chandransh 1329
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
1330
      self.lse.write(oprot)
1331
      oprot.writeFieldEnd()
1332
    oprot.writeFieldStop()
1333
    oprot.writeStructEnd()
1334
 
3431 rajveer 1335
  def validate(self):
1336
    return
1337
 
1338
 
675 chandransh 1339
  def __repr__(self):
1340
    L = ['%s=%r' % (key, value)
1341
      for key, value in self.__dict__.iteritems()]
1342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1343
 
1344
  def __eq__(self, other):
1345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1346
 
1347
  def __ne__(self, other):
1348
    return not (self == other)
1349
 
647 chandransh 1350
class getLogisticsEstimation_args:
483 rajveer 1351
  """
1352
  Attributes:
647 chandransh 1353
   - itemId
1354
   - destination_pin
4630 mandeep.dh 1355
   - type
483 rajveer 1356
  """
1357
 
1358
  thrift_spec = (
1359
    None, # 0
647 chandransh 1360
    (1, TType.I64, 'itemId', None, None, ), # 1
1361
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
4630 mandeep.dh 1362
    (3, TType.I32, 'type', None, None, ), # 3
483 rajveer 1363
  )
1364
 
4630 mandeep.dh 1365
  def __init__(self, itemId=None, destination_pin=None, type=None,):
647 chandransh 1366
    self.itemId = itemId
1367
    self.destination_pin = destination_pin
4630 mandeep.dh 1368
    self.type = type
483 rajveer 1369
 
1370
  def read(self, iprot):
1371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1373
      return
1374
    iprot.readStructBegin()
1375
    while True:
1376
      (fname, ftype, fid) = iprot.readFieldBegin()
1377
      if ftype == TType.STOP:
1378
        break
1379
      if fid == 1:
647 chandransh 1380
        if ftype == TType.I64:
1381
          self.itemId = iprot.readI64();
483 rajveer 1382
        else:
1383
          iprot.skip(ftype)
1384
      elif fid == 2:
1385
        if ftype == TType.STRING:
647 chandransh 1386
          self.destination_pin = iprot.readString();
483 rajveer 1387
        else:
1388
          iprot.skip(ftype)
4630 mandeep.dh 1389
      elif fid == 3:
1390
        if ftype == TType.I32:
1391
          self.type = iprot.readI32();
1392
        else:
1393
          iprot.skip(ftype)
483 rajveer 1394
      else:
1395
        iprot.skip(ftype)
1396
      iprot.readFieldEnd()
1397
    iprot.readStructEnd()
1398
 
1399
  def write(self, oprot):
1400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1402
      return
647 chandransh 1403
    oprot.writeStructBegin('getLogisticsEstimation_args')
3431 rajveer 1404
    if self.itemId is not None:
647 chandransh 1405
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1406
      oprot.writeI64(self.itemId)
483 rajveer 1407
      oprot.writeFieldEnd()
3431 rajveer 1408
    if self.destination_pin is not None:
647 chandransh 1409
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
1410
      oprot.writeString(self.destination_pin)
483 rajveer 1411
      oprot.writeFieldEnd()
4630 mandeep.dh 1412
    if self.type is not None:
1413
      oprot.writeFieldBegin('type', TType.I32, 3)
1414
      oprot.writeI32(self.type)
1415
      oprot.writeFieldEnd()
483 rajveer 1416
    oprot.writeFieldStop()
1417
    oprot.writeStructEnd()
1418
 
3431 rajveer 1419
  def validate(self):
1420
    return
1421
 
1422
 
483 rajveer 1423
  def __repr__(self):
1424
    L = ['%s=%r' % (key, value)
1425
      for key, value in self.__dict__.iteritems()]
1426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1427
 
1428
  def __eq__(self, other):
1429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1430
 
1431
  def __ne__(self, other):
1432
    return not (self == other)
1433
 
647 chandransh 1434
class getLogisticsEstimation_result:
483 rajveer 1435
  """
1436
  Attributes:
1437
   - success
1438
   - se
1439
  """
1440
 
1441
  thrift_spec = (
1442
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
1443
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1444
  )
1445
 
1446
  def __init__(self, success=None, se=None,):
1447
    self.success = success
1448
    self.se = se
1449
 
1450
  def read(self, iprot):
1451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1453
      return
1454
    iprot.readStructBegin()
1455
    while True:
1456
      (fname, ftype, fid) = iprot.readFieldBegin()
1457
      if ftype == TType.STOP:
1458
        break
1459
      if fid == 0:
1460
        if ftype == TType.STRUCT:
1461
          self.success = LogisticsInfo()
1462
          self.success.read(iprot)
1463
        else:
1464
          iprot.skip(ftype)
1465
      elif fid == 1:
1466
        if ftype == TType.STRUCT:
1467
          self.se = LogisticsServiceException()
1468
          self.se.read(iprot)
1469
        else:
1470
          iprot.skip(ftype)
1471
      else:
1472
        iprot.skip(ftype)
1473
      iprot.readFieldEnd()
1474
    iprot.readStructEnd()
1475
 
1476
  def write(self, oprot):
1477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1479
      return
647 chandransh 1480
    oprot.writeStructBegin('getLogisticsEstimation_result')
3431 rajveer 1481
    if self.success is not None:
483 rajveer 1482
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1483
      self.success.write(oprot)
1484
      oprot.writeFieldEnd()
3431 rajveer 1485
    if self.se is not None:
483 rajveer 1486
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1487
      self.se.write(oprot)
1488
      oprot.writeFieldEnd()
1489
    oprot.writeFieldStop()
1490
    oprot.writeStructEnd()
1491
 
3431 rajveer 1492
  def validate(self):
1493
    return
1494
 
1495
 
483 rajveer 1496
  def __repr__(self):
1497
    L = ['%s=%r' % (key, value)
1498
      for key, value in self.__dict__.iteritems()]
1499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1500
 
1501
  def __eq__(self, other):
1502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1503
 
1504
  def __ne__(self, other):
1505
    return not (self == other)
1506
 
7256 rajveer 1507
class getLogisticsEstimationForStore_args:
1508
  """
1509
  Attributes:
1510
   - itemId
1511
   - destination_pin
1512
   - type
1513
  """
1514
 
1515
  thrift_spec = (
1516
    None, # 0
1517
    (1, TType.I64, 'itemId', None, None, ), # 1
1518
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
1519
    (3, TType.I32, 'type', None, None, ), # 3
1520
  )
1521
 
1522
  def __init__(self, itemId=None, destination_pin=None, type=None,):
1523
    self.itemId = itemId
1524
    self.destination_pin = destination_pin
1525
    self.type = type
1526
 
1527
  def read(self, iprot):
1528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1530
      return
1531
    iprot.readStructBegin()
1532
    while True:
1533
      (fname, ftype, fid) = iprot.readFieldBegin()
1534
      if ftype == TType.STOP:
1535
        break
1536
      if fid == 1:
1537
        if ftype == TType.I64:
1538
          self.itemId = iprot.readI64();
1539
        else:
1540
          iprot.skip(ftype)
1541
      elif fid == 2:
1542
        if ftype == TType.STRING:
1543
          self.destination_pin = iprot.readString();
1544
        else:
1545
          iprot.skip(ftype)
1546
      elif fid == 3:
1547
        if ftype == TType.I32:
1548
          self.type = iprot.readI32();
1549
        else:
1550
          iprot.skip(ftype)
1551
      else:
1552
        iprot.skip(ftype)
1553
      iprot.readFieldEnd()
1554
    iprot.readStructEnd()
1555
 
1556
  def write(self, oprot):
1557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1559
      return
1560
    oprot.writeStructBegin('getLogisticsEstimationForStore_args')
1561
    if self.itemId is not None:
1562
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1563
      oprot.writeI64(self.itemId)
1564
      oprot.writeFieldEnd()
1565
    if self.destination_pin is not None:
1566
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
1567
      oprot.writeString(self.destination_pin)
1568
      oprot.writeFieldEnd()
1569
    if self.type is not None:
1570
      oprot.writeFieldBegin('type', TType.I32, 3)
1571
      oprot.writeI32(self.type)
1572
      oprot.writeFieldEnd()
1573
    oprot.writeFieldStop()
1574
    oprot.writeStructEnd()
1575
 
1576
  def validate(self):
1577
    return
1578
 
1579
 
1580
  def __repr__(self):
1581
    L = ['%s=%r' % (key, value)
1582
      for key, value in self.__dict__.iteritems()]
1583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1584
 
1585
  def __eq__(self, other):
1586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1587
 
1588
  def __ne__(self, other):
1589
    return not (self == other)
1590
 
1591
class getLogisticsEstimationForStore_result:
1592
  """
1593
  Attributes:
1594
   - success
1595
   - se
1596
  """
1597
 
1598
  thrift_spec = (
1599
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
1600
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1601
  )
1602
 
1603
  def __init__(self, success=None, se=None,):
1604
    self.success = success
1605
    self.se = se
1606
 
1607
  def read(self, iprot):
1608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1610
      return
1611
    iprot.readStructBegin()
1612
    while True:
1613
      (fname, ftype, fid) = iprot.readFieldBegin()
1614
      if ftype == TType.STOP:
1615
        break
1616
      if fid == 0:
1617
        if ftype == TType.STRUCT:
1618
          self.success = LogisticsInfo()
1619
          self.success.read(iprot)
1620
        else:
1621
          iprot.skip(ftype)
1622
      elif fid == 1:
1623
        if ftype == TType.STRUCT:
1624
          self.se = LogisticsServiceException()
1625
          self.se.read(iprot)
1626
        else:
1627
          iprot.skip(ftype)
1628
      else:
1629
        iprot.skip(ftype)
1630
      iprot.readFieldEnd()
1631
    iprot.readStructEnd()
1632
 
1633
  def write(self, oprot):
1634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1636
      return
1637
    oprot.writeStructBegin('getLogisticsEstimationForStore_result')
1638
    if self.success is not None:
1639
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1640
      self.success.write(oprot)
1641
      oprot.writeFieldEnd()
1642
    if self.se is not None:
1643
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1644
      self.se.write(oprot)
1645
      oprot.writeFieldEnd()
1646
    oprot.writeFieldStop()
1647
    oprot.writeStructEnd()
1648
 
1649
  def validate(self):
1650
    return
1651
 
1652
 
1653
  def __repr__(self):
1654
    L = ['%s=%r' % (key, value)
1655
      for key, value in self.__dict__.iteritems()]
1656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1657
 
1658
  def __eq__(self, other):
1659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1660
 
1661
  def __ne__(self, other):
1662
    return not (self == other)
1663
 
647 chandransh 1664
class getLogisticsInfo_args:
472 rajveer 1665
  """
1666
  Attributes:
647 chandransh 1667
   - destination_pincode
1668
   - item_id
3044 chandransh 1669
   - type
5767 rajveer 1670
   - pickUp
472 rajveer 1671
  """
1672
 
1673
  thrift_spec = (
1674
    None, # 0
647 chandransh 1675
    (1, TType.STRING, 'destination_pincode', None, None, ), # 1
716 rajveer 1676
    (2, TType.I64, 'item_id', None, None, ), # 2
3044 chandransh 1677
    (3, TType.I32, 'type', None, None, ), # 3
5767 rajveer 1678
    (4, TType.I32, 'pickUp', None, None, ), # 4
472 rajveer 1679
  )
1680
 
5767 rajveer 1681
  def __init__(self, destination_pincode=None, item_id=None, type=None, pickUp=None,):
647 chandransh 1682
    self.destination_pincode = destination_pincode
1683
    self.item_id = item_id
3044 chandransh 1684
    self.type = type
5767 rajveer 1685
    self.pickUp = pickUp
472 rajveer 1686
 
1687
  def read(self, iprot):
1688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1690
      return
1691
    iprot.readStructBegin()
1692
    while True:
1693
      (fname, ftype, fid) = iprot.readFieldBegin()
1694
      if ftype == TType.STOP:
1695
        break
1696
      if fid == 1:
647 chandransh 1697
        if ftype == TType.STRING:
1698
          self.destination_pincode = iprot.readString();
472 rajveer 1699
        else:
1700
          iprot.skip(ftype)
1701
      elif fid == 2:
716 rajveer 1702
        if ftype == TType.I64:
1703
          self.item_id = iprot.readI64();
472 rajveer 1704
        else:
1705
          iprot.skip(ftype)
3044 chandransh 1706
      elif fid == 3:
1707
        if ftype == TType.I32:
1708
          self.type = iprot.readI32();
1709
        else:
1710
          iprot.skip(ftype)
5767 rajveer 1711
      elif fid == 4:
1712
        if ftype == TType.I32:
1713
          self.pickUp = iprot.readI32();
1714
        else:
1715
          iprot.skip(ftype)
472 rajveer 1716
      else:
1717
        iprot.skip(ftype)
1718
      iprot.readFieldEnd()
1719
    iprot.readStructEnd()
1720
 
1721
  def write(self, oprot):
1722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1724
      return
647 chandransh 1725
    oprot.writeStructBegin('getLogisticsInfo_args')
3431 rajveer 1726
    if self.destination_pincode is not None:
647 chandransh 1727
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1728
      oprot.writeString(self.destination_pincode)
472 rajveer 1729
      oprot.writeFieldEnd()
3431 rajveer 1730
    if self.item_id is not None:
716 rajveer 1731
      oprot.writeFieldBegin('item_id', TType.I64, 2)
1732
      oprot.writeI64(self.item_id)
472 rajveer 1733
      oprot.writeFieldEnd()
3431 rajveer 1734
    if self.type is not None:
3044 chandransh 1735
      oprot.writeFieldBegin('type', TType.I32, 3)
1736
      oprot.writeI32(self.type)
1737
      oprot.writeFieldEnd()
5767 rajveer 1738
    if self.pickUp is not None:
1739
      oprot.writeFieldBegin('pickUp', TType.I32, 4)
1740
      oprot.writeI32(self.pickUp)
1741
      oprot.writeFieldEnd()
472 rajveer 1742
    oprot.writeFieldStop()
1743
    oprot.writeStructEnd()
1744
 
3431 rajveer 1745
  def validate(self):
1746
    return
1747
 
1748
 
472 rajveer 1749
  def __repr__(self):
1750
    L = ['%s=%r' % (key, value)
1751
      for key, value in self.__dict__.iteritems()]
1752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1753
 
1754
  def __eq__(self, other):
1755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1756
 
1757
  def __ne__(self, other):
1758
    return not (self == other)
1759
 
647 chandransh 1760
class getLogisticsInfo_result:
472 rajveer 1761
  """
1762
  Attributes:
1763
   - success
1764
   - se
1765
  """
1766
 
1767
  thrift_spec = (
644 chandransh 1768
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
472 rajveer 1769
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1770
  )
1771
 
1772
  def __init__(self, success=None, se=None,):
1773
    self.success = success
1774
    self.se = se
1775
 
1776
  def read(self, iprot):
1777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1779
      return
1780
    iprot.readStructBegin()
1781
    while True:
1782
      (fname, ftype, fid) = iprot.readFieldBegin()
1783
      if ftype == TType.STOP:
1784
        break
1785
      if fid == 0:
1786
        if ftype == TType.STRUCT:
644 chandransh 1787
          self.success = LogisticsInfo()
472 rajveer 1788
          self.success.read(iprot)
1789
        else:
1790
          iprot.skip(ftype)
1791
      elif fid == 1:
1792
        if ftype == TType.STRUCT:
1793
          self.se = LogisticsServiceException()
1794
          self.se.read(iprot)
1795
        else:
1796
          iprot.skip(ftype)
1797
      else:
1798
        iprot.skip(ftype)
1799
      iprot.readFieldEnd()
1800
    iprot.readStructEnd()
1801
 
1802
  def write(self, oprot):
1803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1805
      return
647 chandransh 1806
    oprot.writeStructBegin('getLogisticsInfo_result')
3431 rajveer 1807
    if self.success is not None:
472 rajveer 1808
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1809
      self.success.write(oprot)
1810
      oprot.writeFieldEnd()
3431 rajveer 1811
    if self.se is not None:
472 rajveer 1812
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1813
      self.se.write(oprot)
1814
      oprot.writeFieldEnd()
1815
    oprot.writeFieldStop()
1816
    oprot.writeStructEnd()
1817
 
3431 rajveer 1818
  def validate(self):
1819
    return
1820
 
1821
 
472 rajveer 1822
  def __repr__(self):
1823
    L = ['%s=%r' % (key, value)
1824
      for key, value in self.__dict__.iteritems()]
1825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1826
 
1827
  def __eq__(self, other):
1828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1829
 
1830
  def __ne__(self, other):
1831
    return not (self == other)
1832
 
412 ashish 1833
class getEmptyAWB_args:
1834
  """
1835
  Attributes:
647 chandransh 1836
   - providerId
5247 rajveer 1837
   - type
412 ashish 1838
  """
1839
 
5247 rajveer 1840
  thrift_spec = None
1841
  def __init__(self, providerId=None, type=None,):
647 chandransh 1842
    self.providerId = providerId
5247 rajveer 1843
    self.type = type
412 ashish 1844
 
1845
  def read(self, iprot):
1846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1848
      return
1849
    iprot.readStructBegin()
1850
    while True:
1851
      (fname, ftype, fid) = iprot.readFieldBegin()
1852
      if ftype == TType.STOP:
1853
        break
1854
      if fid == 1:
1855
        if ftype == TType.I64:
647 chandransh 1856
          self.providerId = iprot.readI64();
412 ashish 1857
        else:
1858
          iprot.skip(ftype)
5247 rajveer 1859
      elif fid == -1:
1860
        if ftype == TType.I32:
1861
          self.type = iprot.readI32();
1862
        else:
1863
          iprot.skip(ftype)
412 ashish 1864
      else:
1865
        iprot.skip(ftype)
1866
      iprot.readFieldEnd()
1867
    iprot.readStructEnd()
1868
 
1869
  def write(self, oprot):
1870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1872
      return
1873
    oprot.writeStructBegin('getEmptyAWB_args')
5247 rajveer 1874
    if self.type is not None:
1875
      oprot.writeFieldBegin('type', TType.I32, -1)
1876
      oprot.writeI32(self.type)
1877
      oprot.writeFieldEnd()
3431 rajveer 1878
    if self.providerId is not None:
647 chandransh 1879
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1880
      oprot.writeI64(self.providerId)
412 ashish 1881
      oprot.writeFieldEnd()
1882
    oprot.writeFieldStop()
1883
    oprot.writeStructEnd()
1884
 
3431 rajveer 1885
  def validate(self):
1886
    return
1887
 
1888
 
412 ashish 1889
  def __repr__(self):
1890
    L = ['%s=%r' % (key, value)
1891
      for key, value in self.__dict__.iteritems()]
1892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1893
 
1894
  def __eq__(self, other):
1895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1896
 
1897
  def __ne__(self, other):
1898
    return not (self == other)
1899
 
1900
class getEmptyAWB_result:
1901
  """
1902
  Attributes:
1903
   - success
647 chandransh 1904
   - se
412 ashish 1905
  """
1906
 
1907
  thrift_spec = (
1908
    (0, TType.STRING, 'success', None, None, ), # 0
647 chandransh 1909
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 1910
  )
1911
 
647 chandransh 1912
  def __init__(self, success=None, se=None,):
412 ashish 1913
    self.success = success
647 chandransh 1914
    self.se = se
412 ashish 1915
 
1916
  def read(self, iprot):
1917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1919
      return
1920
    iprot.readStructBegin()
1921
    while True:
1922
      (fname, ftype, fid) = iprot.readFieldBegin()
1923
      if ftype == TType.STOP:
1924
        break
1925
      if fid == 0:
1926
        if ftype == TType.STRING:
1927
          self.success = iprot.readString();
1928
        else:
1929
          iprot.skip(ftype)
647 chandransh 1930
      elif fid == 1:
1931
        if ftype == TType.STRUCT:
1932
          self.se = LogisticsServiceException()
1933
          self.se.read(iprot)
1934
        else:
1935
          iprot.skip(ftype)
412 ashish 1936
      else:
1937
        iprot.skip(ftype)
1938
      iprot.readFieldEnd()
1939
    iprot.readStructEnd()
1940
 
1941
  def write(self, oprot):
1942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1944
      return
1945
    oprot.writeStructBegin('getEmptyAWB_result')
3431 rajveer 1946
    if self.success is not None:
412 ashish 1947
      oprot.writeFieldBegin('success', TType.STRING, 0)
1948
      oprot.writeString(self.success)
1949
      oprot.writeFieldEnd()
3431 rajveer 1950
    if self.se is not None:
647 chandransh 1951
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1952
      self.se.write(oprot)
1953
      oprot.writeFieldEnd()
412 ashish 1954
    oprot.writeFieldStop()
1955
    oprot.writeStructEnd()
1956
 
3431 rajveer 1957
  def validate(self):
1958
    return
1959
 
1960
 
412 ashish 1961
  def __repr__(self):
1962
    L = ['%s=%r' % (key, value)
1963
      for key, value in self.__dict__.iteritems()]
1964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1965
 
1966
  def __eq__(self, other):
1967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1968
 
1969
  def __ne__(self, other):
1970
    return not (self == other)
1971
 
1972
class getShipmentInfo_args:
1973
  """
1974
  Attributes:
6643 rajveer 1975
   - awbNumber
647 chandransh 1976
   - providerId
412 ashish 1977
  """
1978
 
1979
  thrift_spec = (
1980
    None, # 0
6643 rajveer 1981
    (1, TType.STRING, 'awbNumber', None, None, ), # 1
647 chandransh 1982
    (2, TType.I64, 'providerId', None, None, ), # 2
412 ashish 1983
  )
1984
 
6643 rajveer 1985
  def __init__(self, awbNumber=None, providerId=None,):
1986
    self.awbNumber = awbNumber
647 chandransh 1987
    self.providerId = providerId
412 ashish 1988
 
1989
  def read(self, iprot):
1990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1992
      return
1993
    iprot.readStructBegin()
1994
    while True:
1995
      (fname, ftype, fid) = iprot.readFieldBegin()
1996
      if ftype == TType.STOP:
1997
        break
1998
      if fid == 1:
1999
        if ftype == TType.STRING:
6643 rajveer 2000
          self.awbNumber = iprot.readString();
412 ashish 2001
        else:
2002
          iprot.skip(ftype)
647 chandransh 2003
      elif fid == 2:
2004
        if ftype == TType.I64:
2005
          self.providerId = iprot.readI64();
2006
        else:
2007
          iprot.skip(ftype)
412 ashish 2008
      else:
2009
        iprot.skip(ftype)
2010
      iprot.readFieldEnd()
2011
    iprot.readStructEnd()
2012
 
2013
  def write(self, oprot):
2014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2016
      return
2017
    oprot.writeStructBegin('getShipmentInfo_args')
6643 rajveer 2018
    if self.awbNumber is not None:
2019
      oprot.writeFieldBegin('awbNumber', TType.STRING, 1)
2020
      oprot.writeString(self.awbNumber)
412 ashish 2021
      oprot.writeFieldEnd()
3431 rajveer 2022
    if self.providerId is not None:
647 chandransh 2023
      oprot.writeFieldBegin('providerId', TType.I64, 2)
2024
      oprot.writeI64(self.providerId)
2025
      oprot.writeFieldEnd()
412 ashish 2026
    oprot.writeFieldStop()
2027
    oprot.writeStructEnd()
2028
 
3431 rajveer 2029
  def validate(self):
2030
    return
2031
 
2032
 
412 ashish 2033
  def __repr__(self):
2034
    L = ['%s=%r' % (key, value)
2035
      for key, value in self.__dict__.iteritems()]
2036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2037
 
2038
  def __eq__(self, other):
2039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2040
 
2041
  def __ne__(self, other):
2042
    return not (self == other)
2043
 
2044
class getShipmentInfo_result:
2045
  """
2046
  Attributes:
2047
   - success
647 chandransh 2048
   - se
412 ashish 2049
  """
2050
 
2051
  thrift_spec = (
644 chandransh 2052
    (0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
647 chandransh 2053
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 2054
  )
2055
 
647 chandransh 2056
  def __init__(self, success=None, se=None,):
412 ashish 2057
    self.success = success
647 chandransh 2058
    self.se = se
412 ashish 2059
 
2060
  def read(self, iprot):
2061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2063
      return
2064
    iprot.readStructBegin()
2065
    while True:
2066
      (fname, ftype, fid) = iprot.readFieldBegin()
2067
      if ftype == TType.STOP:
2068
        break
2069
      if fid == 0:
2070
        if ftype == TType.LIST:
2071
          self.success = []
3044 chandransh 2072
          (_etype19, _size16) = iprot.readListBegin()
2073
          for _i20 in xrange(_size16):
2074
            _elem21 = AwbUpdate()
2075
            _elem21.read(iprot)
2076
            self.success.append(_elem21)
412 ashish 2077
          iprot.readListEnd()
2078
        else:
2079
          iprot.skip(ftype)
647 chandransh 2080
      elif fid == 1:
2081
        if ftype == TType.STRUCT:
2082
          self.se = LogisticsServiceException()
2083
          self.se.read(iprot)
2084
        else:
2085
          iprot.skip(ftype)
412 ashish 2086
      else:
2087
        iprot.skip(ftype)
2088
      iprot.readFieldEnd()
2089
    iprot.readStructEnd()
2090
 
2091
  def write(self, oprot):
2092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2094
      return
644 chandransh 2095
    oprot.writeStructBegin('getShipmentInfo_result')
3431 rajveer 2096
    if self.success is not None:
412 ashish 2097
      oprot.writeFieldBegin('success', TType.LIST, 0)
2098
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 2099
      for iter22 in self.success:
2100
        iter22.write(oprot)
412 ashish 2101
      oprot.writeListEnd()
2102
      oprot.writeFieldEnd()
3431 rajveer 2103
    if self.se is not None:
647 chandransh 2104
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2105
      self.se.write(oprot)
2106
      oprot.writeFieldEnd()
412 ashish 2107
    oprot.writeFieldStop()
2108
    oprot.writeStructEnd()
2109
 
3431 rajveer 2110
  def validate(self):
2111
    return
2112
 
2113
 
412 ashish 2114
  def __repr__(self):
2115
    L = ['%s=%r' % (key, value)
2116
      for key, value in self.__dict__.iteritems()]
2117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2118
 
2119
  def __eq__(self, other):
2120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2121
 
2122
  def __ne__(self, other):
2123
    return not (self == other)
2124
 
6643 rajveer 2125
class storeShipmentInfo_args:
2126
  """
2127
  Attributes:
2128
   - update
2129
  """
2130
 
2131
  thrift_spec = (
2132
    None, # 0
2133
    (1, TType.STRUCT, 'update', (AwbUpdate, AwbUpdate.thrift_spec), None, ), # 1
2134
  )
2135
 
2136
  def __init__(self, update=None,):
2137
    self.update = update
2138
 
2139
  def read(self, iprot):
2140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2142
      return
2143
    iprot.readStructBegin()
2144
    while True:
2145
      (fname, ftype, fid) = iprot.readFieldBegin()
2146
      if ftype == TType.STOP:
2147
        break
2148
      if fid == 1:
2149
        if ftype == TType.STRUCT:
2150
          self.update = AwbUpdate()
2151
          self.update.read(iprot)
2152
        else:
2153
          iprot.skip(ftype)
2154
      else:
2155
        iprot.skip(ftype)
2156
      iprot.readFieldEnd()
2157
    iprot.readStructEnd()
2158
 
2159
  def write(self, oprot):
2160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2162
      return
2163
    oprot.writeStructBegin('storeShipmentInfo_args')
2164
    if self.update is not None:
2165
      oprot.writeFieldBegin('update', TType.STRUCT, 1)
2166
      self.update.write(oprot)
2167
      oprot.writeFieldEnd()
2168
    oprot.writeFieldStop()
2169
    oprot.writeStructEnd()
2170
 
2171
  def validate(self):
2172
    return
2173
 
2174
 
2175
  def __repr__(self):
2176
    L = ['%s=%r' % (key, value)
2177
      for key, value in self.__dict__.iteritems()]
2178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2179
 
2180
  def __eq__(self, other):
2181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2182
 
2183
  def __ne__(self, other):
2184
    return not (self == other)
2185
 
2186
class storeShipmentInfo_result:
2187
  """
2188
  Attributes:
2189
   - se
2190
  """
2191
 
2192
  thrift_spec = (
2193
    None, # 0
2194
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2195
  )
2196
 
2197
  def __init__(self, se=None,):
2198
    self.se = se
2199
 
2200
  def read(self, iprot):
2201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2203
      return
2204
    iprot.readStructBegin()
2205
    while True:
2206
      (fname, ftype, fid) = iprot.readFieldBegin()
2207
      if ftype == TType.STOP:
2208
        break
2209
      if fid == 1:
2210
        if ftype == TType.STRUCT:
2211
          self.se = LogisticsServiceException()
2212
          self.se.read(iprot)
2213
        else:
2214
          iprot.skip(ftype)
2215
      else:
2216
        iprot.skip(ftype)
2217
      iprot.readFieldEnd()
2218
    iprot.readStructEnd()
2219
 
2220
  def write(self, oprot):
2221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2223
      return
2224
    oprot.writeStructBegin('storeShipmentInfo_result')
2225
    if self.se is not None:
2226
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2227
      self.se.write(oprot)
2228
      oprot.writeFieldEnd()
2229
    oprot.writeFieldStop()
2230
    oprot.writeStructEnd()
2231
 
2232
  def validate(self):
2233
    return
2234
 
2235
 
2236
  def __repr__(self):
2237
    L = ['%s=%r' % (key, value)
2238
      for key, value in self.__dict__.iteritems()]
2239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2240
 
2241
  def __eq__(self, other):
2242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2243
 
2244
  def __ne__(self, other):
2245
    return not (self == other)
2246
 
732 chandransh 2247
class getDestinationCode_args:
2248
  """
2249
  Attributes:
2250
   - providerId
2251
   - pinCode
2252
  """
412 ashish 2253
 
732 chandransh 2254
  thrift_spec = (
2255
    None, # 0
2256
    (1, TType.I64, 'providerId', None, None, ), # 1
2257
    (2, TType.STRING, 'pinCode', None, None, ), # 2
2258
  )
2259
 
2260
  def __init__(self, providerId=None, pinCode=None,):
2261
    self.providerId = providerId
2262
    self.pinCode = pinCode
2263
 
2264
  def read(self, iprot):
2265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2267
      return
2268
    iprot.readStructBegin()
2269
    while True:
2270
      (fname, ftype, fid) = iprot.readFieldBegin()
2271
      if ftype == TType.STOP:
2272
        break
2273
      if fid == 1:
2274
        if ftype == TType.I64:
2275
          self.providerId = iprot.readI64();
2276
        else:
2277
          iprot.skip(ftype)
2278
      elif fid == 2:
2279
        if ftype == TType.STRING:
2280
          self.pinCode = iprot.readString();
2281
        else:
2282
          iprot.skip(ftype)
2283
      else:
2284
        iprot.skip(ftype)
2285
      iprot.readFieldEnd()
2286
    iprot.readStructEnd()
2287
 
2288
  def write(self, oprot):
2289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2291
      return
2292
    oprot.writeStructBegin('getDestinationCode_args')
3431 rajveer 2293
    if self.providerId is not None:
732 chandransh 2294
      oprot.writeFieldBegin('providerId', TType.I64, 1)
2295
      oprot.writeI64(self.providerId)
2296
      oprot.writeFieldEnd()
3431 rajveer 2297
    if self.pinCode is not None:
732 chandransh 2298
      oprot.writeFieldBegin('pinCode', TType.STRING, 2)
2299
      oprot.writeString(self.pinCode)
2300
      oprot.writeFieldEnd()
2301
    oprot.writeFieldStop()
2302
    oprot.writeStructEnd()
2303
 
3431 rajveer 2304
  def validate(self):
2305
    return
2306
 
2307
 
732 chandransh 2308
  def __repr__(self):
2309
    L = ['%s=%r' % (key, value)
2310
      for key, value in self.__dict__.iteritems()]
2311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2312
 
2313
  def __eq__(self, other):
2314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2315
 
2316
  def __ne__(self, other):
2317
    return not (self == other)
2318
 
2319
class getDestinationCode_result:
2320
  """
2321
  Attributes:
2322
   - success
2323
   - se
2324
  """
2325
 
2326
  thrift_spec = (
2327
    (0, TType.STRING, 'success', None, None, ), # 0
2328
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2329
  )
2330
 
2331
  def __init__(self, success=None, se=None,):
2332
    self.success = success
2333
    self.se = se
2334
 
2335
  def read(self, iprot):
2336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2338
      return
2339
    iprot.readStructBegin()
2340
    while True:
2341
      (fname, ftype, fid) = iprot.readFieldBegin()
2342
      if ftype == TType.STOP:
2343
        break
2344
      if fid == 0:
2345
        if ftype == TType.STRING:
2346
          self.success = iprot.readString();
2347
        else:
2348
          iprot.skip(ftype)
2349
      elif fid == 1:
2350
        if ftype == TType.STRUCT:
2351
          self.se = LogisticsServiceException()
2352
          self.se.read(iprot)
2353
        else:
2354
          iprot.skip(ftype)
2355
      else:
2356
        iprot.skip(ftype)
2357
      iprot.readFieldEnd()
2358
    iprot.readStructEnd()
2359
 
2360
  def write(self, oprot):
2361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2363
      return
2364
    oprot.writeStructBegin('getDestinationCode_result')
3431 rajveer 2365
    if self.success is not None:
732 chandransh 2366
      oprot.writeFieldBegin('success', TType.STRING, 0)
2367
      oprot.writeString(self.success)
2368
      oprot.writeFieldEnd()
3431 rajveer 2369
    if self.se is not None:
732 chandransh 2370
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2371
      self.se.write(oprot)
2372
      oprot.writeFieldEnd()
2373
    oprot.writeFieldStop()
2374
    oprot.writeStructEnd()
2375
 
3431 rajveer 2376
  def validate(self):
2377
    return
2378
 
2379
 
732 chandransh 2380
  def __repr__(self):
2381
    L = ['%s=%r' % (key, value)
2382
      for key, value in self.__dict__.iteritems()]
2383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2384
 
2385
  def __eq__(self, other):
2386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2387
 
2388
  def __ne__(self, other):
2389
    return not (self == other)
2390
 
1137 chandransh 2391
class getFreeAwbCount_args:
2392
  """
2393
  Attributes:
2394
   - providerId
3103 chandransh 2395
   - type
1137 chandransh 2396
  """
732 chandransh 2397
 
1137 chandransh 2398
  thrift_spec = (
2399
    None, # 0
2400
    (1, TType.I64, 'providerId', None, None, ), # 1
3103 chandransh 2401
    (2, TType.STRING, 'type', None, None, ), # 2
1137 chandransh 2402
  )
2403
 
3103 chandransh 2404
  def __init__(self, providerId=None, type=None,):
1137 chandransh 2405
    self.providerId = providerId
3103 chandransh 2406
    self.type = type
1137 chandransh 2407
 
2408
  def read(self, iprot):
2409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2411
      return
2412
    iprot.readStructBegin()
2413
    while True:
2414
      (fname, ftype, fid) = iprot.readFieldBegin()
2415
      if ftype == TType.STOP:
2416
        break
2417
      if fid == 1:
2418
        if ftype == TType.I64:
2419
          self.providerId = iprot.readI64();
2420
        else:
2421
          iprot.skip(ftype)
3103 chandransh 2422
      elif fid == 2:
2423
        if ftype == TType.STRING:
2424
          self.type = iprot.readString();
2425
        else:
2426
          iprot.skip(ftype)
1137 chandransh 2427
      else:
2428
        iprot.skip(ftype)
2429
      iprot.readFieldEnd()
2430
    iprot.readStructEnd()
2431
 
2432
  def write(self, oprot):
2433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2435
      return
2436
    oprot.writeStructBegin('getFreeAwbCount_args')
3431 rajveer 2437
    if self.providerId is not None:
1137 chandransh 2438
      oprot.writeFieldBegin('providerId', TType.I64, 1)
2439
      oprot.writeI64(self.providerId)
2440
      oprot.writeFieldEnd()
3431 rajveer 2441
    if self.type is not None:
3103 chandransh 2442
      oprot.writeFieldBegin('type', TType.STRING, 2)
2443
      oprot.writeString(self.type)
2444
      oprot.writeFieldEnd()
1137 chandransh 2445
    oprot.writeFieldStop()
2446
    oprot.writeStructEnd()
2447
 
3431 rajveer 2448
  def validate(self):
2449
    return
2450
 
2451
 
1137 chandransh 2452
  def __repr__(self):
2453
    L = ['%s=%r' % (key, value)
2454
      for key, value in self.__dict__.iteritems()]
2455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2456
 
2457
  def __eq__(self, other):
2458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2459
 
2460
  def __ne__(self, other):
2461
    return not (self == other)
2462
 
2463
class getFreeAwbCount_result:
2464
  """
2465
  Attributes:
2466
   - success
2467
  """
2468
 
2469
  thrift_spec = (
2470
    (0, TType.I64, 'success', None, None, ), # 0
2471
  )
2472
 
2473
  def __init__(self, success=None,):
2474
    self.success = success
2475
 
2476
  def read(self, iprot):
2477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2479
      return
2480
    iprot.readStructBegin()
2481
    while True:
2482
      (fname, ftype, fid) = iprot.readFieldBegin()
2483
      if ftype == TType.STOP:
2484
        break
2485
      if fid == 0:
2486
        if ftype == TType.I64:
2487
          self.success = iprot.readI64();
2488
        else:
2489
          iprot.skip(ftype)
2490
      else:
2491
        iprot.skip(ftype)
2492
      iprot.readFieldEnd()
2493
    iprot.readStructEnd()
2494
 
2495
  def write(self, oprot):
2496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2498
      return
2499
    oprot.writeStructBegin('getFreeAwbCount_result')
3431 rajveer 2500
    if self.success is not None:
1137 chandransh 2501
      oprot.writeFieldBegin('success', TType.I64, 0)
2502
      oprot.writeI64(self.success)
2503
      oprot.writeFieldEnd()
2504
    oprot.writeFieldStop()
2505
    oprot.writeStructEnd()
2506
 
3431 rajveer 2507
  def validate(self):
2508
    return
2509
 
2510
 
1137 chandransh 2511
  def __repr__(self):
2512
    L = ['%s=%r' % (key, value)
2513
      for key, value in self.__dict__.iteritems()]
2514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2515
 
2516
  def __eq__(self, other):
2517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2518
 
2519
  def __ne__(self, other):
2520
    return not (self == other)
2521
 
1730 ankur.sing 2522
class getHolidays_args:
2523
  """
2524
  Attributes:
2525
   - fromDate
2526
   - toDate
2527
  """
1137 chandransh 2528
 
1730 ankur.sing 2529
  thrift_spec = (
2530
    None, # 0
2531
    (1, TType.I64, 'fromDate', None, None, ), # 1
2532
    (2, TType.I64, 'toDate', None, None, ), # 2
2533
  )
2534
 
2535
  def __init__(self, fromDate=None, toDate=None,):
2536
    self.fromDate = fromDate
2537
    self.toDate = toDate
2538
 
2539
  def read(self, iprot):
2540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2542
      return
2543
    iprot.readStructBegin()
2544
    while True:
2545
      (fname, ftype, fid) = iprot.readFieldBegin()
2546
      if ftype == TType.STOP:
2547
        break
2548
      if fid == 1:
2549
        if ftype == TType.I64:
2550
          self.fromDate = iprot.readI64();
2551
        else:
2552
          iprot.skip(ftype)
2553
      elif fid == 2:
2554
        if ftype == TType.I64:
2555
          self.toDate = iprot.readI64();
2556
        else:
2557
          iprot.skip(ftype)
2558
      else:
2559
        iprot.skip(ftype)
2560
      iprot.readFieldEnd()
2561
    iprot.readStructEnd()
2562
 
2563
  def write(self, oprot):
2564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2566
      return
2567
    oprot.writeStructBegin('getHolidays_args')
3431 rajveer 2568
    if self.fromDate is not None:
1730 ankur.sing 2569
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
2570
      oprot.writeI64(self.fromDate)
2571
      oprot.writeFieldEnd()
3431 rajveer 2572
    if self.toDate is not None:
1730 ankur.sing 2573
      oprot.writeFieldBegin('toDate', TType.I64, 2)
2574
      oprot.writeI64(self.toDate)
2575
      oprot.writeFieldEnd()
2576
    oprot.writeFieldStop()
2577
    oprot.writeStructEnd()
2578
 
3431 rajveer 2579
  def validate(self):
2580
    return
2581
 
2582
 
1730 ankur.sing 2583
  def __repr__(self):
2584
    L = ['%s=%r' % (key, value)
2585
      for key, value in self.__dict__.iteritems()]
2586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2587
 
2588
  def __eq__(self, other):
2589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2590
 
2591
  def __ne__(self, other):
2592
    return not (self == other)
2593
 
2594
class getHolidays_result:
2595
  """
2596
  Attributes:
2597
   - success
2598
  """
2599
 
2600
  thrift_spec = (
2601
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2602
  )
2603
 
2604
  def __init__(self, success=None,):
2605
    self.success = success
2606
 
2607
  def read(self, iprot):
2608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2610
      return
2611
    iprot.readStructBegin()
2612
    while True:
2613
      (fname, ftype, fid) = iprot.readFieldBegin()
2614
      if ftype == TType.STOP:
2615
        break
2616
      if fid == 0:
2617
        if ftype == TType.LIST:
2618
          self.success = []
3044 chandransh 2619
          (_etype26, _size23) = iprot.readListBegin()
2620
          for _i27 in xrange(_size23):
2621
            _elem28 = iprot.readI64();
2622
            self.success.append(_elem28)
1730 ankur.sing 2623
          iprot.readListEnd()
2624
        else:
2625
          iprot.skip(ftype)
2626
      else:
2627
        iprot.skip(ftype)
2628
      iprot.readFieldEnd()
2629
    iprot.readStructEnd()
2630
 
2631
  def write(self, oprot):
2632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2634
      return
2635
    oprot.writeStructBegin('getHolidays_result')
3431 rajveer 2636
    if self.success is not None:
1730 ankur.sing 2637
      oprot.writeFieldBegin('success', TType.LIST, 0)
2638
      oprot.writeListBegin(TType.I64, len(self.success))
3044 chandransh 2639
      for iter29 in self.success:
2640
        oprot.writeI64(iter29)
1730 ankur.sing 2641
      oprot.writeListEnd()
2642
      oprot.writeFieldEnd()
2643
    oprot.writeFieldStop()
2644
    oprot.writeStructEnd()
2645
 
3431 rajveer 2646
  def validate(self):
2647
    return
2648
 
2649
 
1730 ankur.sing 2650
  def __repr__(self):
2651
    L = ['%s=%r' % (key, value)
2652
      for key, value in self.__dict__.iteritems()]
2653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2654
 
2655
  def __eq__(self, other):
2656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2657
 
2658
  def __ne__(self, other):
2659
    return not (self == other)
4934 amit.gupta 2660
 
2661
class getEntityLogisticsEstimation_args:
2662
  """
2663
  Attributes:
2664
   - catalogItemId
2665
   - destination_pin
2666
   - type
2667
  """
2668
 
2669
  thrift_spec = (
2670
    None, # 0
2671
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
2672
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
2673
    (3, TType.I32, 'type', None, None, ), # 3
2674
  )
2675
 
2676
  def __init__(self, catalogItemId=None, destination_pin=None, type=None,):
2677
    self.catalogItemId = catalogItemId
2678
    self.destination_pin = destination_pin
2679
    self.type = type
2680
 
2681
  def read(self, iprot):
2682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2684
      return
2685
    iprot.readStructBegin()
2686
    while True:
2687
      (fname, ftype, fid) = iprot.readFieldBegin()
2688
      if ftype == TType.STOP:
2689
        break
2690
      if fid == 1:
2691
        if ftype == TType.I64:
2692
          self.catalogItemId = iprot.readI64();
2693
        else:
2694
          iprot.skip(ftype)
2695
      elif fid == 2:
2696
        if ftype == TType.STRING:
2697
          self.destination_pin = iprot.readString();
2698
        else:
2699
          iprot.skip(ftype)
2700
      elif fid == 3:
2701
        if ftype == TType.I32:
2702
          self.type = iprot.readI32();
2703
        else:
2704
          iprot.skip(ftype)
2705
      else:
2706
        iprot.skip(ftype)
2707
      iprot.readFieldEnd()
2708
    iprot.readStructEnd()
2709
 
2710
  def write(self, oprot):
2711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2713
      return
2714
    oprot.writeStructBegin('getEntityLogisticsEstimation_args')
2715
    if self.catalogItemId is not None:
2716
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
2717
      oprot.writeI64(self.catalogItemId)
2718
      oprot.writeFieldEnd()
2719
    if self.destination_pin is not None:
2720
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
2721
      oprot.writeString(self.destination_pin)
2722
      oprot.writeFieldEnd()
2723
    if self.type is not None:
2724
      oprot.writeFieldBegin('type', TType.I32, 3)
2725
      oprot.writeI32(self.type)
2726
      oprot.writeFieldEnd()
2727
    oprot.writeFieldStop()
2728
    oprot.writeStructEnd()
2729
 
2730
  def validate(self):
2731
    return
2732
 
2733
 
2734
  def __repr__(self):
2735
    L = ['%s=%r' % (key, value)
2736
      for key, value in self.__dict__.iteritems()]
2737
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2738
 
2739
  def __eq__(self, other):
2740
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2741
 
2742
  def __ne__(self, other):
2743
    return not (self == other)
2744
 
2745
class getEntityLogisticsEstimation_result:
2746
  """
2747
  Attributes:
2748
   - success
2749
   - se
2750
  """
2751
 
2752
  thrift_spec = (
2753
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2754
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2755
  )
2756
 
2757
  def __init__(self, success=None, se=None,):
2758
    self.success = success
2759
    self.se = se
2760
 
2761
  def read(self, iprot):
2762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2764
      return
2765
    iprot.readStructBegin()
2766
    while True:
2767
      (fname, ftype, fid) = iprot.readFieldBegin()
2768
      if ftype == TType.STOP:
2769
        break
2770
      if fid == 0:
2771
        if ftype == TType.LIST:
2772
          self.success = []
2773
          (_etype33, _size30) = iprot.readListBegin()
2774
          for _i34 in xrange(_size30):
2775
            _elem35 = iprot.readI64();
2776
            self.success.append(_elem35)
2777
          iprot.readListEnd()
2778
        else:
2779
          iprot.skip(ftype)
2780
      elif fid == 1:
2781
        if ftype == TType.STRUCT:
2782
          self.se = LogisticsServiceException()
2783
          self.se.read(iprot)
2784
        else:
2785
          iprot.skip(ftype)
2786
      else:
2787
        iprot.skip(ftype)
2788
      iprot.readFieldEnd()
2789
    iprot.readStructEnd()
2790
 
2791
  def write(self, oprot):
2792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2794
      return
2795
    oprot.writeStructBegin('getEntityLogisticsEstimation_result')
2796
    if self.success is not None:
2797
      oprot.writeFieldBegin('success', TType.LIST, 0)
2798
      oprot.writeListBegin(TType.I64, len(self.success))
2799
      for iter36 in self.success:
2800
        oprot.writeI64(iter36)
2801
      oprot.writeListEnd()
2802
      oprot.writeFieldEnd()
2803
    if self.se is not None:
2804
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2805
      self.se.write(oprot)
2806
      oprot.writeFieldEnd()
2807
    oprot.writeFieldStop()
2808
    oprot.writeStructEnd()
2809
 
2810
  def validate(self):
2811
    return
2812
 
2813
 
2814
  def __repr__(self):
2815
    L = ['%s=%r' % (key, value)
2816
      for key, value in self.__dict__.iteritems()]
2817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2818
 
2819
  def __eq__(self, other):
2820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2821
 
2822
  def __ne__(self, other):
2823
    return not (self == other)
5527 anupam.sin 2824
 
2825
class getProviderForPickupType_args:
2826
  """
2827
  Attributes:
2828
   - pickUp
2829
  """
2830
 
2831
  thrift_spec = (
2832
    None, # 0
2833
    (1, TType.I64, 'pickUp', None, None, ), # 1
2834
  )
2835
 
2836
  def __init__(self, pickUp=None,):
2837
    self.pickUp = pickUp
2838
 
2839
  def read(self, iprot):
2840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2842
      return
2843
    iprot.readStructBegin()
2844
    while True:
2845
      (fname, ftype, fid) = iprot.readFieldBegin()
2846
      if ftype == TType.STOP:
2847
        break
2848
      if fid == 1:
2849
        if ftype == TType.I64:
2850
          self.pickUp = iprot.readI64();
2851
        else:
2852
          iprot.skip(ftype)
2853
      else:
2854
        iprot.skip(ftype)
2855
      iprot.readFieldEnd()
2856
    iprot.readStructEnd()
2857
 
2858
  def write(self, oprot):
2859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2861
      return
2862
    oprot.writeStructBegin('getProviderForPickupType_args')
2863
    if self.pickUp is not None:
2864
      oprot.writeFieldBegin('pickUp', TType.I64, 1)
2865
      oprot.writeI64(self.pickUp)
2866
      oprot.writeFieldEnd()
2867
    oprot.writeFieldStop()
2868
    oprot.writeStructEnd()
2869
 
2870
  def validate(self):
2871
    return
2872
 
2873
 
2874
  def __repr__(self):
2875
    L = ['%s=%r' % (key, value)
2876
      for key, value in self.__dict__.iteritems()]
2877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2878
 
2879
  def __eq__(self, other):
2880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2881
 
2882
  def __ne__(self, other):
2883
    return not (self == other)
2884
 
2885
class getProviderForPickupType_result:
2886
  """
2887
  Attributes:
2888
   - success
2889
  """
2890
 
2891
  thrift_spec = (
2892
    (0, TType.I64, 'success', None, None, ), # 0
2893
  )
2894
 
2895
  def __init__(self, success=None,):
2896
    self.success = success
2897
 
2898
  def read(self, iprot):
2899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2901
      return
2902
    iprot.readStructBegin()
2903
    while True:
2904
      (fname, ftype, fid) = iprot.readFieldBegin()
2905
      if ftype == TType.STOP:
2906
        break
2907
      if fid == 0:
2908
        if ftype == TType.I64:
2909
          self.success = iprot.readI64();
2910
        else:
2911
          iprot.skip(ftype)
2912
      else:
2913
        iprot.skip(ftype)
2914
      iprot.readFieldEnd()
2915
    iprot.readStructEnd()
2916
 
2917
  def write(self, oprot):
2918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2920
      return
2921
    oprot.writeStructBegin('getProviderForPickupType_result')
2922
    if self.success is not None:
2923
      oprot.writeFieldBegin('success', TType.I64, 0)
2924
      oprot.writeI64(self.success)
2925
      oprot.writeFieldEnd()
2926
    oprot.writeFieldStop()
2927
    oprot.writeStructEnd()
2928
 
2929
  def validate(self):
2930
    return
2931
 
2932
 
2933
  def __repr__(self):
2934
    L = ['%s=%r' % (key, value)
2935
      for key, value in self.__dict__.iteritems()]
2936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2937
 
2938
  def __eq__(self, other):
2939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2940
 
2941
  def __ne__(self, other):
2942
    return not (self == other)
5553 rajveer 2943
 
2944
class getAllPickupStores_args:
2945
 
2946
  thrift_spec = (
2947
  )
2948
 
2949
  def read(self, iprot):
2950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2952
      return
2953
    iprot.readStructBegin()
2954
    while True:
2955
      (fname, ftype, fid) = iprot.readFieldBegin()
2956
      if ftype == TType.STOP:
2957
        break
2958
      else:
2959
        iprot.skip(ftype)
2960
      iprot.readFieldEnd()
2961
    iprot.readStructEnd()
2962
 
2963
  def write(self, oprot):
2964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2966
      return
2967
    oprot.writeStructBegin('getAllPickupStores_args')
2968
    oprot.writeFieldStop()
2969
    oprot.writeStructEnd()
2970
 
2971
  def validate(self):
2972
    return
2973
 
2974
 
2975
  def __repr__(self):
2976
    L = ['%s=%r' % (key, value)
2977
      for key, value in self.__dict__.iteritems()]
2978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2979
 
2980
  def __eq__(self, other):
2981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2982
 
2983
  def __ne__(self, other):
2984
    return not (self == other)
2985
 
2986
class getAllPickupStores_result:
2987
  """
2988
  Attributes:
2989
   - success
2990
  """
2991
 
2992
  thrift_spec = (
2993
    (0, TType.LIST, 'success', (TType.STRUCT,(PickupStore, PickupStore.thrift_spec)), None, ), # 0
2994
  )
2995
 
2996
  def __init__(self, success=None,):
2997
    self.success = success
2998
 
2999
  def read(self, iprot):
3000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3002
      return
3003
    iprot.readStructBegin()
3004
    while True:
3005
      (fname, ftype, fid) = iprot.readFieldBegin()
3006
      if ftype == TType.STOP:
3007
        break
3008
      if fid == 0:
3009
        if ftype == TType.LIST:
3010
          self.success = []
3011
          (_etype40, _size37) = iprot.readListBegin()
3012
          for _i41 in xrange(_size37):
3013
            _elem42 = PickupStore()
3014
            _elem42.read(iprot)
3015
            self.success.append(_elem42)
3016
          iprot.readListEnd()
3017
        else:
3018
          iprot.skip(ftype)
3019
      else:
3020
        iprot.skip(ftype)
3021
      iprot.readFieldEnd()
3022
    iprot.readStructEnd()
3023
 
3024
  def write(self, oprot):
3025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3027
      return
3028
    oprot.writeStructBegin('getAllPickupStores_result')
3029
    if self.success is not None:
3030
      oprot.writeFieldBegin('success', TType.LIST, 0)
3031
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3032
      for iter43 in self.success:
3033
        iter43.write(oprot)
3034
      oprot.writeListEnd()
3035
      oprot.writeFieldEnd()
3036
    oprot.writeFieldStop()
3037
    oprot.writeStructEnd()
3038
 
3039
  def validate(self):
3040
    return
3041
 
3042
 
3043
  def __repr__(self):
3044
    L = ['%s=%r' % (key, value)
3045
      for key, value in self.__dict__.iteritems()]
3046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3047
 
3048
  def __eq__(self, other):
3049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3050
 
3051
  def __ne__(self, other):
3052
    return not (self == other)
3053
 
3054
class getPickupStore_args:
3055
  """
3056
  Attributes:
3057
   - storeId
3058
  """
3059
 
3060
  thrift_spec = (
3061
    None, # 0
3062
    (1, TType.I64, 'storeId', None, None, ), # 1
3063
  )
3064
 
3065
  def __init__(self, storeId=None,):
3066
    self.storeId = storeId
3067
 
3068
  def read(self, iprot):
3069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3071
      return
3072
    iprot.readStructBegin()
3073
    while True:
3074
      (fname, ftype, fid) = iprot.readFieldBegin()
3075
      if ftype == TType.STOP:
3076
        break
3077
      if fid == 1:
3078
        if ftype == TType.I64:
3079
          self.storeId = iprot.readI64();
3080
        else:
3081
          iprot.skip(ftype)
3082
      else:
3083
        iprot.skip(ftype)
3084
      iprot.readFieldEnd()
3085
    iprot.readStructEnd()
3086
 
3087
  def write(self, oprot):
3088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3090
      return
3091
    oprot.writeStructBegin('getPickupStore_args')
3092
    if self.storeId is not None:
3093
      oprot.writeFieldBegin('storeId', TType.I64, 1)
3094
      oprot.writeI64(self.storeId)
3095
      oprot.writeFieldEnd()
3096
    oprot.writeFieldStop()
3097
    oprot.writeStructEnd()
3098
 
3099
  def validate(self):
3100
    return
3101
 
3102
 
3103
  def __repr__(self):
3104
    L = ['%s=%r' % (key, value)
3105
      for key, value in self.__dict__.iteritems()]
3106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3107
 
3108
  def __eq__(self, other):
3109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3110
 
3111
  def __ne__(self, other):
3112
    return not (self == other)
3113
 
3114
class getPickupStore_result:
3115
  """
3116
  Attributes:
3117
   - success
3118
  """
3119
 
3120
  thrift_spec = (
3121
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
3122
  )
3123
 
3124
  def __init__(self, success=None,):
3125
    self.success = success
3126
 
3127
  def read(self, iprot):
3128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3130
      return
3131
    iprot.readStructBegin()
3132
    while True:
3133
      (fname, ftype, fid) = iprot.readFieldBegin()
3134
      if ftype == TType.STOP:
3135
        break
3136
      if fid == 0:
3137
        if ftype == TType.STRUCT:
3138
          self.success = PickupStore()
3139
          self.success.read(iprot)
3140
        else:
3141
          iprot.skip(ftype)
3142
      else:
3143
        iprot.skip(ftype)
3144
      iprot.readFieldEnd()
3145
    iprot.readStructEnd()
3146
 
3147
  def write(self, oprot):
3148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3150
      return
3151
    oprot.writeStructBegin('getPickupStore_result')
3152
    if self.success is not None:
3153
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3154
      self.success.write(oprot)
3155
      oprot.writeFieldEnd()
3156
    oprot.writeFieldStop()
3157
    oprot.writeStructEnd()
3158
 
3159
  def validate(self):
3160
    return
3161
 
3162
 
3163
  def __repr__(self):
3164
    L = ['%s=%r' % (key, value)
3165
      for key, value in self.__dict__.iteritems()]
3166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3167
 
3168
  def __eq__(self, other):
3169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3170
 
3171
  def __ne__(self, other):
3172
    return not (self == other)
5719 rajveer 3173
 
3174
class getPickupStoreByHotspotId_args:
3175
  """
3176
  Attributes:
3177
   - hotspotId
3178
  """
3179
 
3180
  thrift_spec = (
3181
    None, # 0
3182
    (1, TType.STRING, 'hotspotId', None, None, ), # 1
3183
  )
3184
 
3185
  def __init__(self, hotspotId=None,):
3186
    self.hotspotId = hotspotId
3187
 
3188
  def read(self, iprot):
3189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3191
      return
3192
    iprot.readStructBegin()
3193
    while True:
3194
      (fname, ftype, fid) = iprot.readFieldBegin()
3195
      if ftype == TType.STOP:
3196
        break
3197
      if fid == 1:
3198
        if ftype == TType.STRING:
3199
          self.hotspotId = iprot.readString();
3200
        else:
3201
          iprot.skip(ftype)
3202
      else:
3203
        iprot.skip(ftype)
3204
      iprot.readFieldEnd()
3205
    iprot.readStructEnd()
3206
 
3207
  def write(self, oprot):
3208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3210
      return
3211
    oprot.writeStructBegin('getPickupStoreByHotspotId_args')
3212
    if self.hotspotId is not None:
3213
      oprot.writeFieldBegin('hotspotId', TType.STRING, 1)
3214
      oprot.writeString(self.hotspotId)
3215
      oprot.writeFieldEnd()
3216
    oprot.writeFieldStop()
3217
    oprot.writeStructEnd()
3218
 
3219
  def validate(self):
3220
    return
3221
 
3222
 
3223
  def __repr__(self):
3224
    L = ['%s=%r' % (key, value)
3225
      for key, value in self.__dict__.iteritems()]
3226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3227
 
3228
  def __eq__(self, other):
3229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3230
 
3231
  def __ne__(self, other):
3232
    return not (self == other)
3233
 
3234
class getPickupStoreByHotspotId_result:
3235
  """
3236
  Attributes:
3237
   - success
3238
  """
3239
 
3240
  thrift_spec = (
3241
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
3242
  )
3243
 
3244
  def __init__(self, success=None,):
3245
    self.success = success
3246
 
3247
  def read(self, iprot):
3248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3250
      return
3251
    iprot.readStructBegin()
3252
    while True:
3253
      (fname, ftype, fid) = iprot.readFieldBegin()
3254
      if ftype == TType.STOP:
3255
        break
3256
      if fid == 0:
3257
        if ftype == TType.STRUCT:
3258
          self.success = PickupStore()
3259
          self.success.read(iprot)
3260
        else:
3261
          iprot.skip(ftype)
3262
      else:
3263
        iprot.skip(ftype)
3264
      iprot.readFieldEnd()
3265
    iprot.readStructEnd()
3266
 
3267
  def write(self, oprot):
3268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3270
      return
3271
    oprot.writeStructBegin('getPickupStoreByHotspotId_result')
3272
    if self.success is not None:
3273
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3274
      self.success.write(oprot)
3275
      oprot.writeFieldEnd()
3276
    oprot.writeFieldStop()
3277
    oprot.writeStructEnd()
3278
 
3279
  def validate(self):
3280
    return
3281
 
3282
 
3283
  def __repr__(self):
3284
    L = ['%s=%r' % (key, value)
3285
      for key, value in self.__dict__.iteritems()]
3286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3287
 
3288
  def __eq__(self, other):
3289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3290
 
3291
  def __ne__(self, other):
3292
    return not (self == other)
6322 amar.kumar 3293
 
3294
class addPincode_args:
3295
  """
3296
  Attributes:
3297
   - providerId
3298
   - pincode
3299
   - destCode
3300
   - exp
3301
   - cod
3302
   - stationType
6524 rajveer 3303
   - otgAvailable
6322 amar.kumar 3304
  """
3305
 
3306
  thrift_spec = (
3307
    None, # 0
3308
    (1, TType.I64, 'providerId', None, None, ), # 1
3309
    (2, TType.STRING, 'pincode', None, None, ), # 2
3310
    (3, TType.STRING, 'destCode', None, None, ), # 3
3311
    (4, TType.BOOL, 'exp', None, None, ), # 4
3312
    (5, TType.BOOL, 'cod', None, None, ), # 5
3313
    (6, TType.I32, 'stationType', None, None, ), # 6
6524 rajveer 3314
    (7, TType.BOOL, 'otgAvailable', None, None, ), # 7
6322 amar.kumar 3315
  )
3316
 
6524 rajveer 3317
  def __init__(self, providerId=None, pincode=None, destCode=None, exp=None, cod=None, stationType=None, otgAvailable=None,):
6322 amar.kumar 3318
    self.providerId = providerId
3319
    self.pincode = pincode
3320
    self.destCode = destCode
3321
    self.exp = exp
3322
    self.cod = cod
3323
    self.stationType = stationType
6524 rajveer 3324
    self.otgAvailable = otgAvailable
6322 amar.kumar 3325
 
3326
  def read(self, iprot):
3327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3329
      return
3330
    iprot.readStructBegin()
3331
    while True:
3332
      (fname, ftype, fid) = iprot.readFieldBegin()
3333
      if ftype == TType.STOP:
3334
        break
3335
      if fid == 1:
3336
        if ftype == TType.I64:
3337
          self.providerId = iprot.readI64();
3338
        else:
3339
          iprot.skip(ftype)
3340
      elif fid == 2:
3341
        if ftype == TType.STRING:
3342
          self.pincode = iprot.readString();
3343
        else:
3344
          iprot.skip(ftype)
3345
      elif fid == 3:
3346
        if ftype == TType.STRING:
3347
          self.destCode = iprot.readString();
3348
        else:
3349
          iprot.skip(ftype)
3350
      elif fid == 4:
3351
        if ftype == TType.BOOL:
3352
          self.exp = iprot.readBool();
3353
        else:
3354
          iprot.skip(ftype)
3355
      elif fid == 5:
3356
        if ftype == TType.BOOL:
3357
          self.cod = iprot.readBool();
3358
        else:
3359
          iprot.skip(ftype)
3360
      elif fid == 6:
3361
        if ftype == TType.I32:
3362
          self.stationType = iprot.readI32();
3363
        else:
3364
          iprot.skip(ftype)
6524 rajveer 3365
      elif fid == 7:
3366
        if ftype == TType.BOOL:
3367
          self.otgAvailable = iprot.readBool();
3368
        else:
3369
          iprot.skip(ftype)
6322 amar.kumar 3370
      else:
3371
        iprot.skip(ftype)
3372
      iprot.readFieldEnd()
3373
    iprot.readStructEnd()
3374
 
3375
  def write(self, oprot):
3376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3378
      return
3379
    oprot.writeStructBegin('addPincode_args')
3380
    if self.providerId is not None:
3381
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3382
      oprot.writeI64(self.providerId)
3383
      oprot.writeFieldEnd()
3384
    if self.pincode is not None:
3385
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3386
      oprot.writeString(self.pincode)
3387
      oprot.writeFieldEnd()
3388
    if self.destCode is not None:
3389
      oprot.writeFieldBegin('destCode', TType.STRING, 3)
3390
      oprot.writeString(self.destCode)
3391
      oprot.writeFieldEnd()
3392
    if self.exp is not None:
3393
      oprot.writeFieldBegin('exp', TType.BOOL, 4)
3394
      oprot.writeBool(self.exp)
3395
      oprot.writeFieldEnd()
3396
    if self.cod is not None:
3397
      oprot.writeFieldBegin('cod', TType.BOOL, 5)
3398
      oprot.writeBool(self.cod)
3399
      oprot.writeFieldEnd()
3400
    if self.stationType is not None:
3401
      oprot.writeFieldBegin('stationType', TType.I32, 6)
3402
      oprot.writeI32(self.stationType)
3403
      oprot.writeFieldEnd()
6524 rajveer 3404
    if self.otgAvailable is not None:
3405
      oprot.writeFieldBegin('otgAvailable', TType.BOOL, 7)
3406
      oprot.writeBool(self.otgAvailable)
3407
      oprot.writeFieldEnd()
6322 amar.kumar 3408
    oprot.writeFieldStop()
3409
    oprot.writeStructEnd()
3410
 
3411
  def validate(self):
3412
    return
3413
 
3414
 
3415
  def __repr__(self):
3416
    L = ['%s=%r' % (key, value)
3417
      for key, value in self.__dict__.iteritems()]
3418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3419
 
3420
  def __eq__(self, other):
3421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3422
 
3423
  def __ne__(self, other):
3424
    return not (self == other)
3425
 
3426
class addPincode_result:
3427
 
3428
  thrift_spec = (
3429
  )
3430
 
3431
  def read(self, iprot):
3432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3434
      return
3435
    iprot.readStructBegin()
3436
    while True:
3437
      (fname, ftype, fid) = iprot.readFieldBegin()
3438
      if ftype == TType.STOP:
3439
        break
3440
      else:
3441
        iprot.skip(ftype)
3442
      iprot.readFieldEnd()
3443
    iprot.readStructEnd()
3444
 
3445
  def write(self, oprot):
3446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3448
      return
3449
    oprot.writeStructBegin('addPincode_result')
3450
    oprot.writeFieldStop()
3451
    oprot.writeStructEnd()
3452
 
3453
  def validate(self):
3454
    return
3455
 
3456
 
3457
  def __repr__(self):
3458
    L = ['%s=%r' % (key, value)
3459
      for key, value in self.__dict__.iteritems()]
3460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3461
 
3462
  def __eq__(self, other):
3463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3464
 
3465
  def __ne__(self, other):
3466
    return not (self == other)
3467
 
3468
class updatePincode_args:
3469
  """
3470
  Attributes:
3471
   - providerId
3472
   - pincode
3473
   - exp
3474
   - cod
6524 rajveer 3475
   - otgAvailable
6322 amar.kumar 3476
  """
3477
 
3478
  thrift_spec = (
3479
    None, # 0
3480
    (1, TType.I64, 'providerId', None, None, ), # 1
3481
    (2, TType.STRING, 'pincode', None, None, ), # 2
3482
    (3, TType.BOOL, 'exp', None, None, ), # 3
3483
    (4, TType.BOOL, 'cod', None, None, ), # 4
6524 rajveer 3484
    (5, TType.BOOL, 'otgAvailable', None, None, ), # 5
6322 amar.kumar 3485
  )
3486
 
6524 rajveer 3487
  def __init__(self, providerId=None, pincode=None, exp=None, cod=None, otgAvailable=None,):
6322 amar.kumar 3488
    self.providerId = providerId
3489
    self.pincode = pincode
3490
    self.exp = exp
3491
    self.cod = cod
6524 rajveer 3492
    self.otgAvailable = otgAvailable
6322 amar.kumar 3493
 
3494
  def read(self, iprot):
3495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3497
      return
3498
    iprot.readStructBegin()
3499
    while True:
3500
      (fname, ftype, fid) = iprot.readFieldBegin()
3501
      if ftype == TType.STOP:
3502
        break
3503
      if fid == 1:
3504
        if ftype == TType.I64:
3505
          self.providerId = iprot.readI64();
3506
        else:
3507
          iprot.skip(ftype)
3508
      elif fid == 2:
3509
        if ftype == TType.STRING:
3510
          self.pincode = iprot.readString();
3511
        else:
3512
          iprot.skip(ftype)
3513
      elif fid == 3:
3514
        if ftype == TType.BOOL:
3515
          self.exp = iprot.readBool();
3516
        else:
3517
          iprot.skip(ftype)
3518
      elif fid == 4:
3519
        if ftype == TType.BOOL:
3520
          self.cod = iprot.readBool();
3521
        else:
3522
          iprot.skip(ftype)
6524 rajveer 3523
      elif fid == 5:
3524
        if ftype == TType.BOOL:
3525
          self.otgAvailable = iprot.readBool();
3526
        else:
3527
          iprot.skip(ftype)
6322 amar.kumar 3528
      else:
3529
        iprot.skip(ftype)
3530
      iprot.readFieldEnd()
3531
    iprot.readStructEnd()
3532
 
3533
  def write(self, oprot):
3534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3536
      return
3537
    oprot.writeStructBegin('updatePincode_args')
3538
    if self.providerId is not None:
3539
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3540
      oprot.writeI64(self.providerId)
3541
      oprot.writeFieldEnd()
3542
    if self.pincode is not None:
3543
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3544
      oprot.writeString(self.pincode)
3545
      oprot.writeFieldEnd()
3546
    if self.exp is not None:
3547
      oprot.writeFieldBegin('exp', TType.BOOL, 3)
3548
      oprot.writeBool(self.exp)
3549
      oprot.writeFieldEnd()
3550
    if self.cod is not None:
3551
      oprot.writeFieldBegin('cod', TType.BOOL, 4)
3552
      oprot.writeBool(self.cod)
3553
      oprot.writeFieldEnd()
6524 rajveer 3554
    if self.otgAvailable is not None:
3555
      oprot.writeFieldBegin('otgAvailable', TType.BOOL, 5)
3556
      oprot.writeBool(self.otgAvailable)
3557
      oprot.writeFieldEnd()
6322 amar.kumar 3558
    oprot.writeFieldStop()
3559
    oprot.writeStructEnd()
3560
 
3561
  def validate(self):
3562
    return
3563
 
3564
 
3565
  def __repr__(self):
3566
    L = ['%s=%r' % (key, value)
3567
      for key, value in self.__dict__.iteritems()]
3568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3569
 
3570
  def __eq__(self, other):
3571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3572
 
3573
  def __ne__(self, other):
3574
    return not (self == other)
3575
 
3576
class updatePincode_result:
3577
 
3578
  thrift_spec = (
3579
  )
3580
 
3581
  def read(self, iprot):
3582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3584
      return
3585
    iprot.readStructBegin()
3586
    while True:
3587
      (fname, ftype, fid) = iprot.readFieldBegin()
3588
      if ftype == TType.STOP:
3589
        break
3590
      else:
3591
        iprot.skip(ftype)
3592
      iprot.readFieldEnd()
3593
    iprot.readStructEnd()
3594
 
3595
  def write(self, oprot):
3596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3598
      return
3599
    oprot.writeStructBegin('updatePincode_result')
3600
    oprot.writeFieldStop()
3601
    oprot.writeStructEnd()
3602
 
3603
  def validate(self):
3604
    return
3605
 
3606
 
3607
  def __repr__(self):
3608
    L = ['%s=%r' % (key, value)
3609
      for key, value in self.__dict__.iteritems()]
3610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3611
 
3612
  def __eq__(self, other):
3613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3614
 
3615
  def __ne__(self, other):
3616
    return not (self == other)