Subversion Repositories SmartDukaan

Rev

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

Rev 19416 Rev 22717
Line 687... Line 687...
687
    Parameters:
687
    Parameters:
688
     - bulkInventoryList
688
     - bulkInventoryList
689
    """
689
    """
690
    pass
690
    pass
691
 
691
 
-
 
692
  def getFofoAvailability(self, itemIds):
-
 
693
    """
-
 
694
    Parameters:
-
 
695
     - itemIds
-
 
696
    """
-
 
697
    pass
-
 
698
 
692
  def getItemLocationAvailabilityCache(self, itemLocations):
699
  def getItemLocationAvailabilityCache(self, itemLocations):
693
    """
700
    """
694
    Parameters:
701
    Parameters:
695
     - itemLocations
702
     - itemLocations
696
    """
703
    """
Line 3344... Line 3351...
3344
    self._iprot.readMessageEnd()
3351
    self._iprot.readMessageEnd()
3345
    if result.cex is not None:
3352
    if result.cex is not None:
3346
      raise result.cex
3353
      raise result.cex
3347
    return
3354
    return
3348
 
3355
 
-
 
3356
  def getFofoAvailability(self, itemIds):
-
 
3357
    """
-
 
3358
    Parameters:
-
 
3359
     - itemIds
-
 
3360
    """
-
 
3361
    self.send_getFofoAvailability(itemIds)
-
 
3362
    return self.recv_getFofoAvailability()
-
 
3363
 
-
 
3364
  def send_getFofoAvailability(self, itemIds):
-
 
3365
    self._oprot.writeMessageBegin('getFofoAvailability', TMessageType.CALL, self._seqid)
-
 
3366
    args = getFofoAvailability_args()
-
 
3367
    args.itemIds = itemIds
-
 
3368
    args.write(self._oprot)
-
 
3369
    self._oprot.writeMessageEnd()
-
 
3370
    self._oprot.trans.flush()
-
 
3371
 
-
 
3372
  def recv_getFofoAvailability(self, ):
-
 
3373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3374
    if mtype == TMessageType.EXCEPTION:
-
 
3375
      x = TApplicationException()
-
 
3376
      x.read(self._iprot)
-
 
3377
      self._iprot.readMessageEnd()
-
 
3378
      raise x
-
 
3379
    result = getFofoAvailability_result()
-
 
3380
    result.read(self._iprot)
-
 
3381
    self._iprot.readMessageEnd()
-
 
3382
    if result.success is not None:
-
 
3383
      return result.success
-
 
3384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFofoAvailability failed: unknown result");
-
 
3385
 
3349
  def getItemLocationAvailabilityCache(self, itemLocations):
3386
  def getItemLocationAvailabilityCache(self, itemLocations):
3350
    """
3387
    """
3351
    Parameters:
3388
    Parameters:
3352
     - itemLocations
3389
     - itemLocations
3353
    """
3390
    """
Line 3523... Line 3560...
3523
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3560
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3524
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
3561
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
3525
    self._processMap["updateItemAvailabilityForItemIds"] = Processor.process_updateItemAvailabilityForItemIds
3562
    self._processMap["updateItemAvailabilityForItemIds"] = Processor.process_updateItemAvailabilityForItemIds
3526
    self._processMap["addVendorItemPricingInBulk"] = Processor.process_addVendorItemPricingInBulk
3563
    self._processMap["addVendorItemPricingInBulk"] = Processor.process_addVendorItemPricingInBulk
3527
    self._processMap["addInventoryInBulk"] = Processor.process_addInventoryInBulk
3564
    self._processMap["addInventoryInBulk"] = Processor.process_addInventoryInBulk
-
 
3565
    self._processMap["getFofoAvailability"] = Processor.process_getFofoAvailability
3528
    self._processMap["getItemLocationAvailabilityCache"] = Processor.process_getItemLocationAvailabilityCache
3566
    self._processMap["getItemLocationAvailabilityCache"] = Processor.process_getItemLocationAvailabilityCache
3529
    self._processMap["getItemLocationAvailabilityCacheByItemId"] = Processor.process_getItemLocationAvailabilityCacheByItemId
3567
    self._processMap["getItemLocationAvailabilityCacheByItemId"] = Processor.process_getItemLocationAvailabilityCacheByItemId
3530
    self._processMap["getItemPincodeAvailability"] = Processor.process_getItemPincodeAvailability
3568
    self._processMap["getItemPincodeAvailability"] = Processor.process_getItemPincodeAvailability
3531
 
3569
 
3532
  def process(self, iprot, oprot):
3570
  def process(self, iprot, oprot):
Line 4530... Line 4568...
4530
    oprot.writeMessageBegin("addInventoryInBulk", TMessageType.REPLY, seqid)
4568
    oprot.writeMessageBegin("addInventoryInBulk", TMessageType.REPLY, seqid)
4531
    result.write(oprot)
4569
    result.write(oprot)
4532
    oprot.writeMessageEnd()
4570
    oprot.writeMessageEnd()
4533
    oprot.trans.flush()
4571
    oprot.trans.flush()
4534
 
4572
 
-
 
4573
  def process_getFofoAvailability(self, seqid, iprot, oprot):
-
 
4574
    args = getFofoAvailability_args()
-
 
4575
    args.read(iprot)
-
 
4576
    iprot.readMessageEnd()
-
 
4577
    result = getFofoAvailability_result()
-
 
4578
    result.success = self._handler.getFofoAvailability(args.itemIds)
-
 
4579
    oprot.writeMessageBegin("getFofoAvailability", TMessageType.REPLY, seqid)
-
 
4580
    result.write(oprot)
-
 
4581
    oprot.writeMessageEnd()
-
 
4582
    oprot.trans.flush()
-
 
4583
 
4535
  def process_getItemLocationAvailabilityCache(self, seqid, iprot, oprot):
4584
  def process_getItemLocationAvailabilityCache(self, seqid, iprot, oprot):
4536
    args = getItemLocationAvailabilityCache_args()
4585
    args = getItemLocationAvailabilityCache_args()
4537
    args.read(iprot)
4586
    args.read(iprot)
4538
    iprot.readMessageEnd()
4587
    iprot.readMessageEnd()
4539
    result = getItemLocationAvailabilityCache_result()
4588
    result = getItemLocationAvailabilityCache_result()
Line 15330... Line 15379...
15330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15331
 
15380
 
15332
  def __ne__(self, other):
15381
  def __ne__(self, other):
15333
    return not (self == other)
15382
    return not (self == other)
15334
 
15383
 
-
 
15384
class getFofoAvailability_args:
-
 
15385
  """
-
 
15386
  Attributes:
-
 
15387
   - itemIds
-
 
15388
  """
-
 
15389
 
-
 
15390
  thrift_spec = (
-
 
15391
    None, # 0
-
 
15392
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
-
 
15393
  )
-
 
15394
 
-
 
15395
  def __init__(self, itemIds=None,):
-
 
15396
    self.itemIds = itemIds
-
 
15397
 
-
 
15398
  def read(self, iprot):
-
 
15399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15401
      return
-
 
15402
    iprot.readStructBegin()
-
 
15403
    while True:
-
 
15404
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15405
      if ftype == TType.STOP:
-
 
15406
        break
-
 
15407
      if fid == 1:
-
 
15408
        if ftype == TType.LIST:
-
 
15409
          self.itemIds = []
-
 
15410
          (_etype377, _size374) = iprot.readListBegin()
-
 
15411
          for _i378 in xrange(_size374):
-
 
15412
            _elem379 = iprot.readI64();
-
 
15413
            self.itemIds.append(_elem379)
-
 
15414
          iprot.readListEnd()
-
 
15415
        else:
-
 
15416
          iprot.skip(ftype)
-
 
15417
      else:
-
 
15418
        iprot.skip(ftype)
-
 
15419
      iprot.readFieldEnd()
-
 
15420
    iprot.readStructEnd()
-
 
15421
 
-
 
15422
  def write(self, oprot):
-
 
15423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15425
      return
-
 
15426
    oprot.writeStructBegin('getFofoAvailability_args')
-
 
15427
    if self.itemIds is not None:
-
 
15428
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
-
 
15429
      oprot.writeListBegin(TType.I64, len(self.itemIds))
-
 
15430
      for iter380 in self.itemIds:
-
 
15431
        oprot.writeI64(iter380)
-
 
15432
      oprot.writeListEnd()
-
 
15433
      oprot.writeFieldEnd()
-
 
15434
    oprot.writeFieldStop()
-
 
15435
    oprot.writeStructEnd()
-
 
15436
 
-
 
15437
  def validate(self):
-
 
15438
    return
-
 
15439
 
-
 
15440
 
-
 
15441
  def __repr__(self):
-
 
15442
    L = ['%s=%r' % (key, value)
-
 
15443
      for key, value in self.__dict__.iteritems()]
-
 
15444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15445
 
-
 
15446
  def __eq__(self, other):
-
 
15447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15448
 
-
 
15449
  def __ne__(self, other):
-
 
15450
    return not (self == other)
-
 
15451
 
-
 
15452
class getFofoAvailability_result:
-
 
15453
  """
-
 
15454
  Attributes:
-
 
15455
   - success
-
 
15456
  """
-
 
15457
 
-
 
15458
  thrift_spec = (
-
 
15459
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
-
 
15460
  )
-
 
15461
 
-
 
15462
  def __init__(self, success=None,):
-
 
15463
    self.success = success
-
 
15464
 
-
 
15465
  def read(self, iprot):
-
 
15466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15468
      return
-
 
15469
    iprot.readStructBegin()
-
 
15470
    while True:
-
 
15471
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15472
      if ftype == TType.STOP:
-
 
15473
        break
-
 
15474
      if fid == 0:
-
 
15475
        if ftype == TType.MAP:
-
 
15476
          self.success = {}
-
 
15477
          (_ktype382, _vtype383, _size381 ) = iprot.readMapBegin() 
-
 
15478
          for _i385 in xrange(_size381):
-
 
15479
            _key386 = iprot.readI64();
-
 
15480
            _val387 = iprot.readI64();
-
 
15481
            self.success[_key386] = _val387
-
 
15482
          iprot.readMapEnd()
-
 
15483
        else:
-
 
15484
          iprot.skip(ftype)
-
 
15485
      else:
-
 
15486
        iprot.skip(ftype)
-
 
15487
      iprot.readFieldEnd()
-
 
15488
    iprot.readStructEnd()
-
 
15489
 
-
 
15490
  def write(self, oprot):
-
 
15491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15493
      return
-
 
15494
    oprot.writeStructBegin('getFofoAvailability_result')
-
 
15495
    if self.success is not None:
-
 
15496
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
15497
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
-
 
15498
      for kiter388,viter389 in self.success.items():
-
 
15499
        oprot.writeI64(kiter388)
-
 
15500
        oprot.writeI64(viter389)
-
 
15501
      oprot.writeMapEnd()
-
 
15502
      oprot.writeFieldEnd()
-
 
15503
    oprot.writeFieldStop()
-
 
15504
    oprot.writeStructEnd()
-
 
15505
 
-
 
15506
  def validate(self):
-
 
15507
    return
-
 
15508
 
-
 
15509
 
-
 
15510
  def __repr__(self):
-
 
15511
    L = ['%s=%r' % (key, value)
-
 
15512
      for key, value in self.__dict__.iteritems()]
-
 
15513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15514
 
-
 
15515
  def __eq__(self, other):
-
 
15516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15517
 
-
 
15518
  def __ne__(self, other):
-
 
15519
    return not (self == other)
-
 
15520
 
15335
class getItemLocationAvailabilityCache_args:
15521
class getItemLocationAvailabilityCache_args:
15336
  """
15522
  """
15337
  Attributes:
15523
  Attributes:
15338
   - itemLocations
15524
   - itemLocations
15339
  """
15525
  """
Line 15356... Line 15542...
15356
      if ftype == TType.STOP:
15542
      if ftype == TType.STOP:
15357
        break
15543
        break
15358
      if fid == 1:
15544
      if fid == 1:
15359
        if ftype == TType.LIST:
15545
        if ftype == TType.LIST:
15360
          self.itemLocations = []
15546
          self.itemLocations = []
15361
          (_etype377, _size374) = iprot.readListBegin()
15547
          (_etype393, _size390) = iprot.readListBegin()
15362
          for _i378 in xrange(_size374):
15548
          for _i394 in xrange(_size390):
15363
            _elem379 = ItemLocationAvailability()
15549
            _elem395 = ItemLocationAvailability()
15364
            _elem379.read(iprot)
15550
            _elem395.read(iprot)
15365
            self.itemLocations.append(_elem379)
15551
            self.itemLocations.append(_elem395)
15366
          iprot.readListEnd()
15552
          iprot.readListEnd()
15367
        else:
15553
        else:
15368
          iprot.skip(ftype)
15554
          iprot.skip(ftype)
15369
      else:
15555
      else:
15370
        iprot.skip(ftype)
15556
        iprot.skip(ftype)
Line 15377... Line 15563...
15377
      return
15563
      return
15378
    oprot.writeStructBegin('getItemLocationAvailabilityCache_args')
15564
    oprot.writeStructBegin('getItemLocationAvailabilityCache_args')
15379
    if self.itemLocations is not None:
15565
    if self.itemLocations is not None:
15380
      oprot.writeFieldBegin('itemLocations', TType.LIST, 1)
15566
      oprot.writeFieldBegin('itemLocations', TType.LIST, 1)
15381
      oprot.writeListBegin(TType.STRUCT, len(self.itemLocations))
15567
      oprot.writeListBegin(TType.STRUCT, len(self.itemLocations))
15382
      for iter380 in self.itemLocations:
15568
      for iter396 in self.itemLocations:
15383
        iter380.write(oprot)
15569
        iter396.write(oprot)
15384
      oprot.writeListEnd()
15570
      oprot.writeListEnd()
15385
      oprot.writeFieldEnd()
15571
      oprot.writeFieldEnd()
15386
    oprot.writeFieldStop()
15572
    oprot.writeFieldStop()
15387
    oprot.writeStructEnd()
15573
    oprot.writeStructEnd()
15388
 
15574
 
Line 15424... Line 15610...
15424
      if ftype == TType.STOP:
15610
      if ftype == TType.STOP:
15425
        break
15611
        break
15426
      if fid == 0:
15612
      if fid == 0:
15427
        if ftype == TType.LIST:
15613
        if ftype == TType.LIST:
15428
          self.success = []
15614
          self.success = []
15429
          (_etype384, _size381) = iprot.readListBegin()
15615
          (_etype400, _size397) = iprot.readListBegin()
15430
          for _i385 in xrange(_size381):
15616
          for _i401 in xrange(_size397):
15431
            _elem386 = ItemLocationAvailability()
15617
            _elem402 = ItemLocationAvailability()
15432
            _elem386.read(iprot)
15618
            _elem402.read(iprot)
15433
            self.success.append(_elem386)
15619
            self.success.append(_elem402)
15434
          iprot.readListEnd()
15620
          iprot.readListEnd()
15435
        else:
15621
        else:
15436
          iprot.skip(ftype)
15622
          iprot.skip(ftype)
15437
      else:
15623
      else:
15438
        iprot.skip(ftype)
15624
        iprot.skip(ftype)
Line 15445... Line 15631...
15445
      return
15631
      return
15446
    oprot.writeStructBegin('getItemLocationAvailabilityCache_result')
15632
    oprot.writeStructBegin('getItemLocationAvailabilityCache_result')
15447
    if self.success is not None:
15633
    if self.success is not None:
15448
      oprot.writeFieldBegin('success', TType.LIST, 0)
15634
      oprot.writeFieldBegin('success', TType.LIST, 0)
15449
      oprot.writeListBegin(TType.STRUCT, len(self.success))
15635
      oprot.writeListBegin(TType.STRUCT, len(self.success))
15450
      for iter387 in self.success:
15636
      for iter403 in self.success:
15451
        iter387.write(oprot)
15637
        iter403.write(oprot)
15452
      oprot.writeListEnd()
15638
      oprot.writeListEnd()
15453
      oprot.writeFieldEnd()
15639
      oprot.writeFieldEnd()
15454
    oprot.writeFieldStop()
15640
    oprot.writeFieldStop()
15455
    oprot.writeStructEnd()
15641
    oprot.writeStructEnd()
15456
 
15642
 
Line 15493... Line 15679...
15493
      if ftype == TType.STOP:
15679
      if ftype == TType.STOP:
15494
        break
15680
        break
15495
      if fid == 1:
15681
      if fid == 1:
15496
        if ftype == TType.LIST:
15682
        if ftype == TType.LIST:
15497
          self.itemIds = []
15683
          self.itemIds = []
15498
          (_etype391, _size388) = iprot.readListBegin()
15684
          (_etype407, _size404) = iprot.readListBegin()
15499
          for _i392 in xrange(_size388):
15685
          for _i408 in xrange(_size404):
15500
            _elem393 = iprot.readI64();
15686
            _elem409 = iprot.readI64();
15501
            self.itemIds.append(_elem393)
15687
            self.itemIds.append(_elem409)
15502
          iprot.readListEnd()
15688
          iprot.readListEnd()
15503
        else:
15689
        else:
15504
          iprot.skip(ftype)
15690
          iprot.skip(ftype)
15505
      else:
15691
      else:
15506
        iprot.skip(ftype)
15692
        iprot.skip(ftype)
Line 15513... Line 15699...
15513
      return
15699
      return
15514
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_args')
15700
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_args')
15515
    if self.itemIds is not None:
15701
    if self.itemIds is not None:
15516
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
15702
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
15517
      oprot.writeListBegin(TType.I64, len(self.itemIds))
15703
      oprot.writeListBegin(TType.I64, len(self.itemIds))
15518
      for iter394 in self.itemIds:
15704
      for iter410 in self.itemIds:
15519
        oprot.writeI64(iter394)
15705
        oprot.writeI64(iter410)
15520
      oprot.writeListEnd()
15706
      oprot.writeListEnd()
15521
      oprot.writeFieldEnd()
15707
      oprot.writeFieldEnd()
15522
    oprot.writeFieldStop()
15708
    oprot.writeFieldStop()
15523
    oprot.writeStructEnd()
15709
    oprot.writeStructEnd()
15524
 
15710
 
Line 15560... Line 15746...
15560
      if ftype == TType.STOP:
15746
      if ftype == TType.STOP:
15561
        break
15747
        break
15562
      if fid == 0:
15748
      if fid == 0:
15563
        if ftype == TType.LIST:
15749
        if ftype == TType.LIST:
15564
          self.success = []
15750
          self.success = []
15565
          (_etype398, _size395) = iprot.readListBegin()
15751
          (_etype414, _size411) = iprot.readListBegin()
15566
          for _i399 in xrange(_size395):
15752
          for _i415 in xrange(_size411):
15567
            _elem400 = ItemLocationAvailability()
15753
            _elem416 = ItemLocationAvailability()
15568
            _elem400.read(iprot)
15754
            _elem416.read(iprot)
15569
            self.success.append(_elem400)
15755
            self.success.append(_elem416)
15570
          iprot.readListEnd()
15756
          iprot.readListEnd()
15571
        else:
15757
        else:
15572
          iprot.skip(ftype)
15758
          iprot.skip(ftype)
15573
      else:
15759
      else:
15574
        iprot.skip(ftype)
15760
        iprot.skip(ftype)
Line 15581... Line 15767...
15581
      return
15767
      return
15582
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_result')
15768
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_result')
15583
    if self.success is not None:
15769
    if self.success is not None:
15584
      oprot.writeFieldBegin('success', TType.LIST, 0)
15770
      oprot.writeFieldBegin('success', TType.LIST, 0)
15585
      oprot.writeListBegin(TType.STRUCT, len(self.success))
15771
      oprot.writeListBegin(TType.STRUCT, len(self.success))
15586
      for iter401 in self.success:
15772
      for iter417 in self.success:
15587
        iter401.write(oprot)
15773
        iter417.write(oprot)
15588
      oprot.writeListEnd()
15774
      oprot.writeListEnd()
15589
      oprot.writeFieldEnd()
15775
      oprot.writeFieldEnd()
15590
    oprot.writeFieldStop()
15776
    oprot.writeFieldStop()
15591
    oprot.writeStructEnd()
15777
    oprot.writeStructEnd()
15592
 
15778
 
Line 15632... Line 15818...
15632
      if ftype == TType.STOP:
15818
      if ftype == TType.STOP:
15633
        break
15819
        break
15634
      if fid == 1:
15820
      if fid == 1:
15635
        if ftype == TType.MAP:
15821
        if ftype == TType.MAP:
15636
          self.itempricing = {}
15822
          self.itempricing = {}
15637
          (_ktype403, _vtype404, _size402 ) = iprot.readMapBegin() 
15823
          (_ktype419, _vtype420, _size418 ) = iprot.readMapBegin() 
15638
          for _i406 in xrange(_size402):
15824
          for _i422 in xrange(_size418):
15639
            _key407 = iprot.readI64();
15825
            _key423 = iprot.readI64();
15640
            _val408 = iprot.readI64();
15826
            _val424 = iprot.readI64();
15641
            self.itempricing[_key407] = _val408
15827
            self.itempricing[_key423] = _val424
15642
          iprot.readMapEnd()
15828
          iprot.readMapEnd()
15643
        else:
15829
        else:
15644
          iprot.skip(ftype)
15830
          iprot.skip(ftype)
15645
      elif fid == 2:
15831
      elif fid == 2:
15646
        if ftype == TType.STRING:
15832
        if ftype == TType.STRING:
Line 15658... Line 15844...
15658
      return
15844
      return
15659
    oprot.writeStructBegin('getItemPincodeAvailability_args')
15845
    oprot.writeStructBegin('getItemPincodeAvailability_args')
15660
    if self.itempricing is not None:
15846
    if self.itempricing is not None:
15661
      oprot.writeFieldBegin('itempricing', TType.MAP, 1)
15847
      oprot.writeFieldBegin('itempricing', TType.MAP, 1)
15662
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itempricing))
15848
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itempricing))
15663
      for kiter409,viter410 in self.itempricing.items():
15849
      for kiter425,viter426 in self.itempricing.items():
15664
        oprot.writeI64(kiter409)
15850
        oprot.writeI64(kiter425)
15665
        oprot.writeI64(viter410)
15851
        oprot.writeI64(viter426)
15666
      oprot.writeMapEnd()
15852
      oprot.writeMapEnd()
15667
      oprot.writeFieldEnd()
15853
      oprot.writeFieldEnd()
15668
    if self.pincode is not None:
15854
    if self.pincode is not None:
15669
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
15855
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
15670
      oprot.writeString(self.pincode)
15856
      oprot.writeString(self.pincode)