Subversion Repositories SmartDukaan

Rev

Rev 19247 | Rev 19416 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19247 Rev 19413
Line 687... Line 687...
687
    Parameters:
687
    Parameters:
688
     - bulkInventoryList
688
     - bulkInventoryList
689
    """
689
    """
690
    pass
690
    pass
691
 
691
 
-
 
692
  def getItemLocationAvailabilityCache(self, itemLocations):
-
 
693
    """
-
 
694
    Parameters:
-
 
695
     - itemLocations
-
 
696
    """
-
 
697
    pass
-
 
698
 
-
 
699
  def getItemLocationAvailabilityCacheByItemId(self, itemIds):
-
 
700
    """
-
 
701
    Parameters:
-
 
702
     - itemIds
-
 
703
    """
-
 
704
    pass
-
 
705
 
-
 
706
  def getItemPincodeAvailability(self, itemIds, pincode):
-
 
707
    """
-
 
708
    Parameters:
-
 
709
     - itemIds
-
 
710
     - pincode
-
 
711
    """
-
 
712
    pass
-
 
713
 
692
 
714
 
693
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
715
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
694
  def __init__(self, iprot, oprot=None):
716
  def __init__(self, iprot, oprot=None):
695
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
717
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
696
 
718
 
Line 3322... Line 3344...
3322
    self._iprot.readMessageEnd()
3344
    self._iprot.readMessageEnd()
3323
    if result.cex is not None:
3345
    if result.cex is not None:
3324
      raise result.cex
3346
      raise result.cex
3325
    return
3347
    return
3326
 
3348
 
-
 
3349
  def getItemLocationAvailabilityCache(self, itemLocations):
-
 
3350
    """
-
 
3351
    Parameters:
-
 
3352
     - itemLocations
-
 
3353
    """
-
 
3354
    self.send_getItemLocationAvailabilityCache(itemLocations)
-
 
3355
    return self.recv_getItemLocationAvailabilityCache()
-
 
3356
 
-
 
3357
  def send_getItemLocationAvailabilityCache(self, itemLocations):
-
 
3358
    self._oprot.writeMessageBegin('getItemLocationAvailabilityCache', TMessageType.CALL, self._seqid)
-
 
3359
    args = getItemLocationAvailabilityCache_args()
-
 
3360
    args.itemLocations = itemLocations
-
 
3361
    args.write(self._oprot)
-
 
3362
    self._oprot.writeMessageEnd()
-
 
3363
    self._oprot.trans.flush()
-
 
3364
 
-
 
3365
  def recv_getItemLocationAvailabilityCache(self, ):
-
 
3366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3367
    if mtype == TMessageType.EXCEPTION:
-
 
3368
      x = TApplicationException()
-
 
3369
      x.read(self._iprot)
-
 
3370
      self._iprot.readMessageEnd()
-
 
3371
      raise x
-
 
3372
    result = getItemLocationAvailabilityCache_result()
-
 
3373
    result.read(self._iprot)
-
 
3374
    self._iprot.readMessageEnd()
-
 
3375
    if result.success is not None:
-
 
3376
      return result.success
-
 
3377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCache failed: unknown result");
-
 
3378
 
-
 
3379
  def getItemLocationAvailabilityCacheByItemId(self, itemIds):
-
 
3380
    """
-
 
3381
    Parameters:
-
 
3382
     - itemIds
-
 
3383
    """
-
 
3384
    self.send_getItemLocationAvailabilityCacheByItemId(itemIds)
-
 
3385
    return self.recv_getItemLocationAvailabilityCacheByItemId()
-
 
3386
 
-
 
3387
  def send_getItemLocationAvailabilityCacheByItemId(self, itemIds):
-
 
3388
    self._oprot.writeMessageBegin('getItemLocationAvailabilityCacheByItemId', TMessageType.CALL, self._seqid)
-
 
3389
    args = getItemLocationAvailabilityCacheByItemId_args()
-
 
3390
    args.itemIds = itemIds
-
 
3391
    args.write(self._oprot)
-
 
3392
    self._oprot.writeMessageEnd()
-
 
3393
    self._oprot.trans.flush()
-
 
3394
 
-
 
3395
  def recv_getItemLocationAvailabilityCacheByItemId(self, ):
-
 
3396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3397
    if mtype == TMessageType.EXCEPTION:
-
 
3398
      x = TApplicationException()
-
 
3399
      x.read(self._iprot)
-
 
3400
      self._iprot.readMessageEnd()
-
 
3401
      raise x
-
 
3402
    result = getItemLocationAvailabilityCacheByItemId_result()
-
 
3403
    result.read(self._iprot)
-
 
3404
    self._iprot.readMessageEnd()
-
 
3405
    if result.success is not None:
-
 
3406
      return result.success
-
 
3407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCacheByItemId failed: unknown result");
-
 
3408
 
-
 
3409
  def getItemPincodeAvailability(self, itemIds, pincode):
-
 
3410
    """
-
 
3411
    Parameters:
-
 
3412
     - itemIds
-
 
3413
     - pincode
-
 
3414
    """
-
 
3415
    self.send_getItemPincodeAvailability(itemIds, pincode)
-
 
3416
    return self.recv_getItemPincodeAvailability()
-
 
3417
 
-
 
3418
  def send_getItemPincodeAvailability(self, itemIds, pincode):
-
 
3419
    self._oprot.writeMessageBegin('getItemPincodeAvailability', TMessageType.CALL, self._seqid)
-
 
3420
    args = getItemPincodeAvailability_args()
-
 
3421
    args.itemIds = itemIds
-
 
3422
    args.pincode = pincode
-
 
3423
    args.write(self._oprot)
-
 
3424
    self._oprot.writeMessageEnd()
-
 
3425
    self._oprot.trans.flush()
-
 
3426
 
-
 
3427
  def recv_getItemPincodeAvailability(self, ):
-
 
3428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3429
    if mtype == TMessageType.EXCEPTION:
-
 
3430
      x = TApplicationException()
-
 
3431
      x.read(self._iprot)
-
 
3432
      self._iprot.readMessageEnd()
-
 
3433
      raise x
-
 
3434
    result = getItemPincodeAvailability_result()
-
 
3435
    result.read(self._iprot)
-
 
3436
    self._iprot.readMessageEnd()
-
 
3437
    if result.success is not None:
-
 
3438
      return result.success
-
 
3439
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPincodeAvailability failed: unknown result");
-
 
3440
 
3327
 
3441
 
3328
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3442
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3329
  def __init__(self, handler):
3443
  def __init__(self, handler):
3330
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3444
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3331
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3445
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
Line 3409... Line 3523...
3409
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3523
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3410
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
3524
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
3411
    self._processMap["updateItemAvailabilityForItemIds"] = Processor.process_updateItemAvailabilityForItemIds
3525
    self._processMap["updateItemAvailabilityForItemIds"] = Processor.process_updateItemAvailabilityForItemIds
3412
    self._processMap["addVendorItemPricingInBulk"] = Processor.process_addVendorItemPricingInBulk
3526
    self._processMap["addVendorItemPricingInBulk"] = Processor.process_addVendorItemPricingInBulk
3413
    self._processMap["addInventoryInBulk"] = Processor.process_addInventoryInBulk
3527
    self._processMap["addInventoryInBulk"] = Processor.process_addInventoryInBulk
-
 
3528
    self._processMap["getItemLocationAvailabilityCache"] = Processor.process_getItemLocationAvailabilityCache
-
 
3529
    self._processMap["getItemLocationAvailabilityCacheByItemId"] = Processor.process_getItemLocationAvailabilityCacheByItemId
-
 
3530
    self._processMap["getItemPincodeAvailability"] = Processor.process_getItemPincodeAvailability
3414
 
3531
 
3415
  def process(self, iprot, oprot):
3532
  def process(self, iprot, oprot):
3416
    (name, type, seqid) = iprot.readMessageBegin()
3533
    (name, type, seqid) = iprot.readMessageBegin()
3417
    if name not in self._processMap:
3534
    if name not in self._processMap:
3418
      iprot.skip(TType.STRUCT)
3535
      iprot.skip(TType.STRUCT)
Line 4413... Line 4530...
4413
    oprot.writeMessageBegin("addInventoryInBulk", TMessageType.REPLY, seqid)
4530
    oprot.writeMessageBegin("addInventoryInBulk", TMessageType.REPLY, seqid)
4414
    result.write(oprot)
4531
    result.write(oprot)
4415
    oprot.writeMessageEnd()
4532
    oprot.writeMessageEnd()
4416
    oprot.trans.flush()
4533
    oprot.trans.flush()
4417
 
4534
 
-
 
4535
  def process_getItemLocationAvailabilityCache(self, seqid, iprot, oprot):
-
 
4536
    args = getItemLocationAvailabilityCache_args()
-
 
4537
    args.read(iprot)
-
 
4538
    iprot.readMessageEnd()
-
 
4539
    result = getItemLocationAvailabilityCache_result()
-
 
4540
    result.success = self._handler.getItemLocationAvailabilityCache(args.itemLocations)
-
 
4541
    oprot.writeMessageBegin("getItemLocationAvailabilityCache", TMessageType.REPLY, seqid)
-
 
4542
    result.write(oprot)
-
 
4543
    oprot.writeMessageEnd()
-
 
4544
    oprot.trans.flush()
-
 
4545
 
-
 
4546
  def process_getItemLocationAvailabilityCacheByItemId(self, seqid, iprot, oprot):
-
 
4547
    args = getItemLocationAvailabilityCacheByItemId_args()
-
 
4548
    args.read(iprot)
-
 
4549
    iprot.readMessageEnd()
-
 
4550
    result = getItemLocationAvailabilityCacheByItemId_result()
-
 
4551
    result.success = self._handler.getItemLocationAvailabilityCacheByItemId(args.itemIds)
-
 
4552
    oprot.writeMessageBegin("getItemLocationAvailabilityCacheByItemId", TMessageType.REPLY, seqid)
-
 
4553
    result.write(oprot)
-
 
4554
    oprot.writeMessageEnd()
-
 
4555
    oprot.trans.flush()
-
 
4556
 
-
 
4557
  def process_getItemPincodeAvailability(self, seqid, iprot, oprot):
-
 
4558
    args = getItemPincodeAvailability_args()
-
 
4559
    args.read(iprot)
-
 
4560
    iprot.readMessageEnd()
-
 
4561
    result = getItemPincodeAvailability_result()
-
 
4562
    result.success = self._handler.getItemPincodeAvailability(args.itemIds, args.pincode)
-
 
4563
    oprot.writeMessageBegin("getItemPincodeAvailability", TMessageType.REPLY, seqid)
-
 
4564
    result.write(oprot)
-
 
4565
    oprot.writeMessageEnd()
-
 
4566
    oprot.trans.flush()
-
 
4567
 
4418
 
4568
 
4419
# HELPER FUNCTIONS AND STRUCTURES
4569
# HELPER FUNCTIONS AND STRUCTURES
4420
 
4570
 
4421
class addWarehouse_args:
4571
class addWarehouse_args:
4422
  """
4572
  """
Line 15166... Line 15316...
15166
      oprot.writeFieldEnd()
15316
      oprot.writeFieldEnd()
15167
    oprot.writeFieldStop()
15317
    oprot.writeFieldStop()
15168
    oprot.writeStructEnd()
15318
    oprot.writeStructEnd()
15169
 
15319
 
15170
  def validate(self):
15320
  def validate(self):
-
 
15321
    return
-
 
15322
 
-
 
15323
 
-
 
15324
  def __repr__(self):
-
 
15325
    L = ['%s=%r' % (key, value)
-
 
15326
      for key, value in self.__dict__.iteritems()]
-
 
15327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15328
 
-
 
15329
  def __eq__(self, other):
-
 
15330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15331
 
-
 
15332
  def __ne__(self, other):
-
 
15333
    return not (self == other)
-
 
15334
 
-
 
15335
class getItemLocationAvailabilityCache_args:
-
 
15336
  """
-
 
15337
  Attributes:
-
 
15338
   - itemLocations
-
 
15339
  """
-
 
15340
 
-
 
15341
  thrift_spec = (
-
 
15342
    None, # 0
-
 
15343
    (1, TType.LIST, 'itemLocations', (TType.STRUCT,(ItemLocationAvailability, ItemLocationAvailability.thrift_spec)), None, ), # 1
-
 
15344
  )
-
 
15345
 
-
 
15346
  def __init__(self, itemLocations=None,):
-
 
15347
    self.itemLocations = itemLocations
-
 
15348
 
-
 
15349
  def read(self, iprot):
-
 
15350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15352
      return
-
 
15353
    iprot.readStructBegin()
-
 
15354
    while True:
-
 
15355
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15356
      if ftype == TType.STOP:
-
 
15357
        break
-
 
15358
      if fid == 1:
-
 
15359
        if ftype == TType.LIST:
-
 
15360
          self.itemLocations = []
-
 
15361
          (_etype377, _size374) = iprot.readListBegin()
-
 
15362
          for _i378 in xrange(_size374):
-
 
15363
            _elem379 = ItemLocationAvailability()
-
 
15364
            _elem379.read(iprot)
-
 
15365
            self.itemLocations.append(_elem379)
-
 
15366
          iprot.readListEnd()
-
 
15367
        else:
-
 
15368
          iprot.skip(ftype)
-
 
15369
      else:
-
 
15370
        iprot.skip(ftype)
-
 
15371
      iprot.readFieldEnd()
-
 
15372
    iprot.readStructEnd()
-
 
15373
 
-
 
15374
  def write(self, oprot):
-
 
15375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15377
      return
-
 
15378
    oprot.writeStructBegin('getItemLocationAvailabilityCache_args')
-
 
15379
    if self.itemLocations is not None:
-
 
15380
      oprot.writeFieldBegin('itemLocations', TType.LIST, 1)
-
 
15381
      oprot.writeListBegin(TType.STRUCT, len(self.itemLocations))
-
 
15382
      for iter380 in self.itemLocations:
-
 
15383
        iter380.write(oprot)
-
 
15384
      oprot.writeListEnd()
-
 
15385
      oprot.writeFieldEnd()
-
 
15386
    oprot.writeFieldStop()
-
 
15387
    oprot.writeStructEnd()
-
 
15388
 
-
 
15389
  def validate(self):
-
 
15390
    return
-
 
15391
 
-
 
15392
 
-
 
15393
  def __repr__(self):
-
 
15394
    L = ['%s=%r' % (key, value)
-
 
15395
      for key, value in self.__dict__.iteritems()]
-
 
15396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15397
 
-
 
15398
  def __eq__(self, other):
-
 
15399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15400
 
-
 
15401
  def __ne__(self, other):
-
 
15402
    return not (self == other)
-
 
15403
 
-
 
15404
class getItemLocationAvailabilityCache_result:
-
 
15405
  """
-
 
15406
  Attributes:
-
 
15407
   - success
-
 
15408
  """
-
 
15409
 
-
 
15410
  thrift_spec = (
-
 
15411
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemLocationAvailability, ItemLocationAvailability.thrift_spec)), None, ), # 0
-
 
15412
  )
-
 
15413
 
-
 
15414
  def __init__(self, success=None,):
-
 
15415
    self.success = success
-
 
15416
 
-
 
15417
  def read(self, iprot):
-
 
15418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15420
      return
-
 
15421
    iprot.readStructBegin()
-
 
15422
    while True:
-
 
15423
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15424
      if ftype == TType.STOP:
-
 
15425
        break
-
 
15426
      if fid == 0:
-
 
15427
        if ftype == TType.LIST:
-
 
15428
          self.success = []
-
 
15429
          (_etype384, _size381) = iprot.readListBegin()
-
 
15430
          for _i385 in xrange(_size381):
-
 
15431
            _elem386 = ItemLocationAvailability()
-
 
15432
            _elem386.read(iprot)
-
 
15433
            self.success.append(_elem386)
-
 
15434
          iprot.readListEnd()
-
 
15435
        else:
-
 
15436
          iprot.skip(ftype)
-
 
15437
      else:
-
 
15438
        iprot.skip(ftype)
-
 
15439
      iprot.readFieldEnd()
-
 
15440
    iprot.readStructEnd()
-
 
15441
 
-
 
15442
  def write(self, oprot):
-
 
15443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15445
      return
-
 
15446
    oprot.writeStructBegin('getItemLocationAvailabilityCache_result')
-
 
15447
    if self.success is not None:
-
 
15448
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
15449
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
15450
      for iter387 in self.success:
-
 
15451
        iter387.write(oprot)
-
 
15452
      oprot.writeListEnd()
-
 
15453
      oprot.writeFieldEnd()
-
 
15454
    oprot.writeFieldStop()
-
 
15455
    oprot.writeStructEnd()
-
 
15456
 
-
 
15457
  def validate(self):
-
 
15458
    return
-
 
15459
 
-
 
15460
 
-
 
15461
  def __repr__(self):
-
 
15462
    L = ['%s=%r' % (key, value)
-
 
15463
      for key, value in self.__dict__.iteritems()]
-
 
15464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15465
 
-
 
15466
  def __eq__(self, other):
-
 
15467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15468
 
-
 
15469
  def __ne__(self, other):
-
 
15470
    return not (self == other)
-
 
15471
 
-
 
15472
class getItemLocationAvailabilityCacheByItemId_args:
-
 
15473
  """
-
 
15474
  Attributes:
-
 
15475
   - itemIds
-
 
15476
  """
-
 
15477
 
-
 
15478
  thrift_spec = (
-
 
15479
    None, # 0
-
 
15480
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
-
 
15481
  )
-
 
15482
 
-
 
15483
  def __init__(self, itemIds=None,):
-
 
15484
    self.itemIds = itemIds
-
 
15485
 
-
 
15486
  def read(self, iprot):
-
 
15487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15489
      return
-
 
15490
    iprot.readStructBegin()
-
 
15491
    while True:
-
 
15492
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15493
      if ftype == TType.STOP:
-
 
15494
        break
-
 
15495
      if fid == 1:
-
 
15496
        if ftype == TType.LIST:
-
 
15497
          self.itemIds = []
-
 
15498
          (_etype391, _size388) = iprot.readListBegin()
-
 
15499
          for _i392 in xrange(_size388):
-
 
15500
            _elem393 = iprot.readI64();
-
 
15501
            self.itemIds.append(_elem393)
-
 
15502
          iprot.readListEnd()
-
 
15503
        else:
-
 
15504
          iprot.skip(ftype)
-
 
15505
      else:
-
 
15506
        iprot.skip(ftype)
-
 
15507
      iprot.readFieldEnd()
-
 
15508
    iprot.readStructEnd()
-
 
15509
 
-
 
15510
  def write(self, oprot):
-
 
15511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15513
      return
-
 
15514
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_args')
-
 
15515
    if self.itemIds is not None:
-
 
15516
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
-
 
15517
      oprot.writeListBegin(TType.I64, len(self.itemIds))
-
 
15518
      for iter394 in self.itemIds:
-
 
15519
        oprot.writeI64(iter394)
-
 
15520
      oprot.writeListEnd()
-
 
15521
      oprot.writeFieldEnd()
-
 
15522
    oprot.writeFieldStop()
-
 
15523
    oprot.writeStructEnd()
-
 
15524
 
-
 
15525
  def validate(self):
-
 
15526
    return
-
 
15527
 
-
 
15528
 
-
 
15529
  def __repr__(self):
-
 
15530
    L = ['%s=%r' % (key, value)
-
 
15531
      for key, value in self.__dict__.iteritems()]
-
 
15532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15533
 
-
 
15534
  def __eq__(self, other):
-
 
15535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15536
 
-
 
15537
  def __ne__(self, other):
-
 
15538
    return not (self == other)
-
 
15539
 
-
 
15540
class getItemLocationAvailabilityCacheByItemId_result:
-
 
15541
  """
-
 
15542
  Attributes:
-
 
15543
   - success
-
 
15544
  """
-
 
15545
 
-
 
15546
  thrift_spec = (
-
 
15547
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemLocationAvailability, ItemLocationAvailability.thrift_spec)), None, ), # 0
-
 
15548
  )
-
 
15549
 
-
 
15550
  def __init__(self, success=None,):
-
 
15551
    self.success = success
-
 
15552
 
-
 
15553
  def read(self, iprot):
-
 
15554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15556
      return
-
 
15557
    iprot.readStructBegin()
-
 
15558
    while True:
-
 
15559
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15560
      if ftype == TType.STOP:
-
 
15561
        break
-
 
15562
      if fid == 0:
-
 
15563
        if ftype == TType.LIST:
-
 
15564
          self.success = []
-
 
15565
          (_etype398, _size395) = iprot.readListBegin()
-
 
15566
          for _i399 in xrange(_size395):
-
 
15567
            _elem400 = ItemLocationAvailability()
-
 
15568
            _elem400.read(iprot)
-
 
15569
            self.success.append(_elem400)
-
 
15570
          iprot.readListEnd()
-
 
15571
        else:
-
 
15572
          iprot.skip(ftype)
-
 
15573
      else:
-
 
15574
        iprot.skip(ftype)
-
 
15575
      iprot.readFieldEnd()
-
 
15576
    iprot.readStructEnd()
-
 
15577
 
-
 
15578
  def write(self, oprot):
-
 
15579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15581
      return
-
 
15582
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_result')
-
 
15583
    if self.success is not None:
-
 
15584
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
15585
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
15586
      for iter401 in self.success:
-
 
15587
        iter401.write(oprot)
-
 
15588
      oprot.writeListEnd()
-
 
15589
      oprot.writeFieldEnd()
-
 
15590
    oprot.writeFieldStop()
-
 
15591
    oprot.writeStructEnd()
-
 
15592
 
-
 
15593
  def validate(self):
-
 
15594
    return
-
 
15595
 
-
 
15596
 
-
 
15597
  def __repr__(self):
-
 
15598
    L = ['%s=%r' % (key, value)
-
 
15599
      for key, value in self.__dict__.iteritems()]
-
 
15600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15601
 
-
 
15602
  def __eq__(self, other):
-
 
15603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15604
 
-
 
15605
  def __ne__(self, other):
-
 
15606
    return not (self == other)
-
 
15607
 
-
 
15608
class getItemPincodeAvailability_args:
-
 
15609
  """
-
 
15610
  Attributes:
-
 
15611
   - itemIds
-
 
15612
   - pincode
-
 
15613
  """
-
 
15614
 
-
 
15615
  thrift_spec = (
-
 
15616
    None, # 0
-
 
15617
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
-
 
15618
    (2, TType.STRING, 'pincode', None, None, ), # 2
-
 
15619
  )
-
 
15620
 
-
 
15621
  def __init__(self, itemIds=None, pincode=None,):
-
 
15622
    self.itemIds = itemIds
-
 
15623
    self.pincode = pincode
-
 
15624
 
-
 
15625
  def read(self, iprot):
-
 
15626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15628
      return
-
 
15629
    iprot.readStructBegin()
-
 
15630
    while True:
-
 
15631
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15632
      if ftype == TType.STOP:
-
 
15633
        break
-
 
15634
      if fid == 1:
-
 
15635
        if ftype == TType.LIST:
-
 
15636
          self.itemIds = []
-
 
15637
          (_etype405, _size402) = iprot.readListBegin()
-
 
15638
          for _i406 in xrange(_size402):
-
 
15639
            _elem407 = iprot.readI64();
-
 
15640
            self.itemIds.append(_elem407)
-
 
15641
          iprot.readListEnd()
-
 
15642
        else:
-
 
15643
          iprot.skip(ftype)
-
 
15644
      elif fid == 2:
-
 
15645
        if ftype == TType.STRING:
-
 
15646
          self.pincode = iprot.readString();
-
 
15647
        else:
-
 
15648
          iprot.skip(ftype)
-
 
15649
      else:
-
 
15650
        iprot.skip(ftype)
-
 
15651
      iprot.readFieldEnd()
-
 
15652
    iprot.readStructEnd()
-
 
15653
 
-
 
15654
  def write(self, oprot):
-
 
15655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15657
      return
-
 
15658
    oprot.writeStructBegin('getItemPincodeAvailability_args')
-
 
15659
    if self.itemIds is not None:
-
 
15660
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
-
 
15661
      oprot.writeListBegin(TType.I64, len(self.itemIds))
-
 
15662
      for iter408 in self.itemIds:
-
 
15663
        oprot.writeI64(iter408)
-
 
15664
      oprot.writeListEnd()
-
 
15665
      oprot.writeFieldEnd()
-
 
15666
    if self.pincode is not None:
-
 
15667
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
-
 
15668
      oprot.writeString(self.pincode)
-
 
15669
      oprot.writeFieldEnd()
-
 
15670
    oprot.writeFieldStop()
-
 
15671
    oprot.writeStructEnd()
-
 
15672
 
-
 
15673
  def validate(self):
-
 
15674
    return
-
 
15675
 
-
 
15676
 
-
 
15677
  def __repr__(self):
-
 
15678
    L = ['%s=%r' % (key, value)
-
 
15679
      for key, value in self.__dict__.iteritems()]
-
 
15680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15681
 
-
 
15682
  def __eq__(self, other):
-
 
15683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15684
 
-
 
15685
  def __ne__(self, other):
-
 
15686
    return not (self == other)
-
 
15687
 
-
 
15688
class getItemPincodeAvailability_result:
-
 
15689
  """
-
 
15690
  Attributes:
-
 
15691
   - success
-
 
15692
  """
-
 
15693
 
-
 
15694
  thrift_spec = (
-
 
15695
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
15696
  )
-
 
15697
 
-
 
15698
  def __init__(self, success=None,):
-
 
15699
    self.success = success
-
 
15700
 
-
 
15701
  def read(self, iprot):
-
 
15702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15704
      return
-
 
15705
    iprot.readStructBegin()
-
 
15706
    while True:
-
 
15707
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15708
      if ftype == TType.STOP:
-
 
15709
        break
-
 
15710
      if fid == 0:
-
 
15711
        if ftype == TType.STRING:
-
 
15712
          self.success = iprot.readString();
-
 
15713
        else:
-
 
15714
          iprot.skip(ftype)
-
 
15715
      else:
-
 
15716
        iprot.skip(ftype)
-
 
15717
      iprot.readFieldEnd()
-
 
15718
    iprot.readStructEnd()
-
 
15719
 
-
 
15720
  def write(self, oprot):
-
 
15721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15723
      return
-
 
15724
    oprot.writeStructBegin('getItemPincodeAvailability_result')
-
 
15725
    if self.success is not None:
-
 
15726
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
15727
      oprot.writeString(self.success)
-
 
15728
      oprot.writeFieldEnd()
-
 
15729
    oprot.writeFieldStop()
-
 
15730
    oprot.writeStructEnd()
-
 
15731
 
-
 
15732
  def validate(self):
15171
    return
15733
    return
15172
 
15734
 
15173
 
15735
 
15174
  def __repr__(self):
15736
  def __repr__(self):
15175
    L = ['%s=%r' % (key, value)
15737
    L = ['%s=%r' % (key, value)