Subversion Repositories SmartDukaan

Rev

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