Subversion Repositories SmartDukaan

Rev

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

Rev 7272 Rev 7281
Line 688... Line 688...
688
    Parameters:
688
    Parameters:
689
     - sp
689
     - sp
690
    """
690
    """
691
    pass
691
    pass
692
 
692
 
-
 
693
  def getAllAmazonListedItems(self, ):
-
 
694
    pass
-
 
695
 
-
 
696
  def getAmazonItemDetails(self, itemId):
-
 
697
    """
-
 
698
    Parameters:
-
 
699
     - itemId
-
 
700
    """
-
 
701
    pass
-
 
702
 
-
 
703
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride):
-
 
704
    """
-
 
705
    Parameters:
-
 
706
     - itemId
-
 
707
     - fbaPrice
-
 
708
     - sellingPrice
-
 
709
     - isFba
-
 
710
     - isNonFba
-
 
711
     - isInventoryOverride
-
 
712
    """
-
 
713
    pass
-
 
714
 
-
 
715
  def addAmazonItem(self, amazonlisted):
-
 
716
    """
-
 
717
    Parameters:
-
 
718
     - amazonlisted
-
 
719
    """
-
 
720
    pass
-
 
721
 
693
 
722
 
694
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
723
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
695
  def __init__(self, iprot, oprot=None):
724
  def __init__(self, iprot, oprot=None):
696
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
725
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
697
 
726
 
Line 3481... Line 3510...
3481
    result = updateStorePricing_result()
3510
    result = updateStorePricing_result()
3482
    result.read(self._iprot)
3511
    result.read(self._iprot)
3483
    self._iprot.readMessageEnd()
3512
    self._iprot.readMessageEnd()
3484
    return
3513
    return
3485
 
3514
 
-
 
3515
  def getAllAmazonListedItems(self, ):
-
 
3516
    self.send_getAllAmazonListedItems()
-
 
3517
    return self.recv_getAllAmazonListedItems()
-
 
3518
 
-
 
3519
  def send_getAllAmazonListedItems(self, ):
-
 
3520
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
-
 
3521
    args = getAllAmazonListedItems_args()
-
 
3522
    args.write(self._oprot)
-
 
3523
    self._oprot.writeMessageEnd()
-
 
3524
    self._oprot.trans.flush()
-
 
3525
 
-
 
3526
  def recv_getAllAmazonListedItems(self, ):
-
 
3527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3528
    if mtype == TMessageType.EXCEPTION:
-
 
3529
      x = TApplicationException()
-
 
3530
      x.read(self._iprot)
-
 
3531
      self._iprot.readMessageEnd()
-
 
3532
      raise x
-
 
3533
    result = getAllAmazonListedItems_result()
-
 
3534
    result.read(self._iprot)
-
 
3535
    self._iprot.readMessageEnd()
-
 
3536
    if result.success is not None:
-
 
3537
      return result.success
-
 
3538
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
-
 
3539
 
-
 
3540
  def getAmazonItemDetails(self, itemId):
-
 
3541
    """
-
 
3542
    Parameters:
-
 
3543
     - itemId
-
 
3544
    """
-
 
3545
    self.send_getAmazonItemDetails(itemId)
-
 
3546
    return self.recv_getAmazonItemDetails()
-
 
3547
 
-
 
3548
  def send_getAmazonItemDetails(self, itemId):
-
 
3549
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
-
 
3550
    args = getAmazonItemDetails_args()
-
 
3551
    args.itemId = itemId
-
 
3552
    args.write(self._oprot)
-
 
3553
    self._oprot.writeMessageEnd()
-
 
3554
    self._oprot.trans.flush()
-
 
3555
 
-
 
3556
  def recv_getAmazonItemDetails(self, ):
-
 
3557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3558
    if mtype == TMessageType.EXCEPTION:
-
 
3559
      x = TApplicationException()
-
 
3560
      x.read(self._iprot)
-
 
3561
      self._iprot.readMessageEnd()
-
 
3562
      raise x
-
 
3563
    result = getAmazonItemDetails_result()
-
 
3564
    result.read(self._iprot)
-
 
3565
    self._iprot.readMessageEnd()
-
 
3566
    if result.success is not None:
-
 
3567
      return result.success
-
 
3568
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
-
 
3569
 
-
 
3570
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride):
-
 
3571
    """
-
 
3572
    Parameters:
-
 
3573
     - itemId
-
 
3574
     - fbaPrice
-
 
3575
     - sellingPrice
-
 
3576
     - isFba
-
 
3577
     - isNonFba
-
 
3578
     - isInventoryOverride
-
 
3579
    """
-
 
3580
    self.send_updateAmazonItemDetails(itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride)
-
 
3581
    self.recv_updateAmazonItemDetails()
-
 
3582
 
-
 
3583
  def send_updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride):
-
 
3584
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
-
 
3585
    args = updateAmazonItemDetails_args()
-
 
3586
    args.itemId = itemId
-
 
3587
    args.fbaPrice = fbaPrice
-
 
3588
    args.sellingPrice = sellingPrice
-
 
3589
    args.isFba = isFba
-
 
3590
    args.isNonFba = isNonFba
-
 
3591
    args.isInventoryOverride = isInventoryOverride
-
 
3592
    args.write(self._oprot)
-
 
3593
    self._oprot.writeMessageEnd()
-
 
3594
    self._oprot.trans.flush()
-
 
3595
 
-
 
3596
  def recv_updateAmazonItemDetails(self, ):
-
 
3597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3598
    if mtype == TMessageType.EXCEPTION:
-
 
3599
      x = TApplicationException()
-
 
3600
      x.read(self._iprot)
-
 
3601
      self._iprot.readMessageEnd()
-
 
3602
      raise x
-
 
3603
    result = updateAmazonItemDetails_result()
-
 
3604
    result.read(self._iprot)
-
 
3605
    self._iprot.readMessageEnd()
-
 
3606
    return
-
 
3607
 
-
 
3608
  def addAmazonItem(self, amazonlisted):
-
 
3609
    """
-
 
3610
    Parameters:
-
 
3611
     - amazonlisted
-
 
3612
    """
-
 
3613
    self.send_addAmazonItem(amazonlisted)
-
 
3614
    self.recv_addAmazonItem()
-
 
3615
 
-
 
3616
  def send_addAmazonItem(self, amazonlisted):
-
 
3617
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
-
 
3618
    args = addAmazonItem_args()
-
 
3619
    args.amazonlisted = amazonlisted
-
 
3620
    args.write(self._oprot)
-
 
3621
    self._oprot.writeMessageEnd()
-
 
3622
    self._oprot.trans.flush()
-
 
3623
 
-
 
3624
  def recv_addAmazonItem(self, ):
-
 
3625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3626
    if mtype == TMessageType.EXCEPTION:
-
 
3627
      x = TApplicationException()
-
 
3628
      x.read(self._iprot)
-
 
3629
      self._iprot.readMessageEnd()
-
 
3630
      raise x
-
 
3631
    result = addAmazonItem_result()
-
 
3632
    result.read(self._iprot)
-
 
3633
    self._iprot.readMessageEnd()
-
 
3634
    return
-
 
3635
 
3486
 
3636
 
3487
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3637
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3488
  def __init__(self, handler):
3638
  def __init__(self, handler):
3489
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3639
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3490
    self._processMap["addItem"] = Processor.process_addItem
3640
    self._processMap["addItem"] = Processor.process_addItem
Line 3573... Line 3723...
3573
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
3723
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
3574
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
3724
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
3575
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
3725
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
3576
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
3726
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
3577
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
3727
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
-
 
3728
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
-
 
3729
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
-
 
3730
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
-
 
3731
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
3578
 
3732
 
3579
  def process(self, iprot, oprot):
3733
  def process(self, iprot, oprot):
3580
    (name, type, seqid) = iprot.readMessageBegin()
3734
    (name, type, seqid) = iprot.readMessageBegin()
3581
    if name not in self._processMap:
3735
    if name not in self._processMap:
3582
      iprot.skip(TType.STRUCT)
3736
      iprot.skip(TType.STRUCT)
Line 4665... Line 4819...
4665
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
4819
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
4666
    result.write(oprot)
4820
    result.write(oprot)
4667
    oprot.writeMessageEnd()
4821
    oprot.writeMessageEnd()
4668
    oprot.trans.flush()
4822
    oprot.trans.flush()
4669
 
4823
 
-
 
4824
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
-
 
4825
    args = getAllAmazonListedItems_args()
-
 
4826
    args.read(iprot)
-
 
4827
    iprot.readMessageEnd()
-
 
4828
    result = getAllAmazonListedItems_result()
-
 
4829
    result.success = self._handler.getAllAmazonListedItems()
-
 
4830
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
-
 
4831
    result.write(oprot)
-
 
4832
    oprot.writeMessageEnd()
-
 
4833
    oprot.trans.flush()
-
 
4834
 
-
 
4835
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
-
 
4836
    args = getAmazonItemDetails_args()
-
 
4837
    args.read(iprot)
-
 
4838
    iprot.readMessageEnd()
-
 
4839
    result = getAmazonItemDetails_result()
-
 
4840
    result.success = self._handler.getAmazonItemDetails(args.itemId)
-
 
4841
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
-
 
4842
    result.write(oprot)
-
 
4843
    oprot.writeMessageEnd()
-
 
4844
    oprot.trans.flush()
-
 
4845
 
-
 
4846
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
-
 
4847
    args = updateAmazonItemDetails_args()
-
 
4848
    args.read(iprot)
-
 
4849
    iprot.readMessageEnd()
-
 
4850
    result = updateAmazonItemDetails_result()
-
 
4851
    self._handler.updateAmazonItemDetails(args.itemId, args.fbaPrice, args.sellingPrice, args.isFba, args.isNonFba, args.isInventoryOverride)
-
 
4852
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
-
 
4853
    result.write(oprot)
-
 
4854
    oprot.writeMessageEnd()
-
 
4855
    oprot.trans.flush()
-
 
4856
 
-
 
4857
  def process_addAmazonItem(self, seqid, iprot, oprot):
-
 
4858
    args = addAmazonItem_args()
-
 
4859
    args.read(iprot)
-
 
4860
    iprot.readMessageEnd()
-
 
4861
    result = addAmazonItem_result()
-
 
4862
    self._handler.addAmazonItem(args.amazonlisted)
-
 
4863
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
-
 
4864
    result.write(oprot)
-
 
4865
    oprot.writeMessageEnd()
-
 
4866
    oprot.trans.flush()
-
 
4867
 
4670
 
4868
 
4671
# HELPER FUNCTIONS AND STRUCTURES
4869
# HELPER FUNCTIONS AND STRUCTURES
4672
 
4870
 
4673
class addItem_args:
4871
class addItem_args:
4674
  """
4872
  """
Line 16160... Line 16358...
16160
    oprot.writeFieldStop()
16358
    oprot.writeFieldStop()
16161
    oprot.writeStructEnd()
16359
    oprot.writeStructEnd()
16162
 
16360
 
16163
  def validate(self):
16361
  def validate(self):
16164
    return
16362
    return
-
 
16363
 
-
 
16364
 
-
 
16365
  def __repr__(self):
-
 
16366
    L = ['%s=%r' % (key, value)
-
 
16367
      for key, value in self.__dict__.iteritems()]
-
 
16368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16369
 
-
 
16370
  def __eq__(self, other):
-
 
16371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16372
 
-
 
16373
  def __ne__(self, other):
-
 
16374
    return not (self == other)
-
 
16375
 
-
 
16376
class getAllAmazonListedItems_args:
-
 
16377
 
-
 
16378
  thrift_spec = (
-
 
16379
  )
-
 
16380
 
-
 
16381
  def read(self, iprot):
-
 
16382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16384
      return
-
 
16385
    iprot.readStructBegin()
-
 
16386
    while True:
-
 
16387
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16388
      if ftype == TType.STOP:
-
 
16389
        break
-
 
16390
      else:
-
 
16391
        iprot.skip(ftype)
-
 
16392
      iprot.readFieldEnd()
-
 
16393
    iprot.readStructEnd()
-
 
16394
 
-
 
16395
  def write(self, oprot):
-
 
16396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16398
      return
-
 
16399
    oprot.writeStructBegin('getAllAmazonListedItems_args')
-
 
16400
    oprot.writeFieldStop()
-
 
16401
    oprot.writeStructEnd()
-
 
16402
 
-
 
16403
  def validate(self):
-
 
16404
    return
-
 
16405
 
-
 
16406
 
-
 
16407
  def __repr__(self):
-
 
16408
    L = ['%s=%r' % (key, value)
-
 
16409
      for key, value in self.__dict__.iteritems()]
-
 
16410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16411
 
-
 
16412
  def __eq__(self, other):
-
 
16413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16414
 
-
 
16415
  def __ne__(self, other):
-
 
16416
    return not (self == other)
-
 
16417
 
-
 
16418
class getAllAmazonListedItems_result:
-
 
16419
  """
-
 
16420
  Attributes:
-
 
16421
   - success
-
 
16422
  """
-
 
16423
 
-
 
16424
  thrift_spec = (
-
 
16425
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
16426
  )
-
 
16427
 
-
 
16428
  def __init__(self, success=None,):
-
 
16429
    self.success = success
-
 
16430
 
-
 
16431
  def read(self, iprot):
-
 
16432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16434
      return
-
 
16435
    iprot.readStructBegin()
-
 
16436
    while True:
-
 
16437
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16438
      if ftype == TType.STOP:
-
 
16439
        break
-
 
16440
      if fid == 0:
-
 
16441
        if ftype == TType.LIST:
-
 
16442
          self.success = []
-
 
16443
          (_etype310, _size307) = iprot.readListBegin()
-
 
16444
          for _i311 in xrange(_size307):
-
 
16445
            _elem312 = Amazonlisted()
-
 
16446
            _elem312.read(iprot)
-
 
16447
            self.success.append(_elem312)
-
 
16448
          iprot.readListEnd()
-
 
16449
        else:
-
 
16450
          iprot.skip(ftype)
-
 
16451
      else:
-
 
16452
        iprot.skip(ftype)
-
 
16453
      iprot.readFieldEnd()
-
 
16454
    iprot.readStructEnd()
-
 
16455
 
-
 
16456
  def write(self, oprot):
-
 
16457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16459
      return
-
 
16460
    oprot.writeStructBegin('getAllAmazonListedItems_result')
-
 
16461
    if self.success is not None:
-
 
16462
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
16463
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
16464
      for iter313 in self.success:
-
 
16465
        iter313.write(oprot)
-
 
16466
      oprot.writeListEnd()
-
 
16467
      oprot.writeFieldEnd()
-
 
16468
    oprot.writeFieldStop()
-
 
16469
    oprot.writeStructEnd()
-
 
16470
 
-
 
16471
  def validate(self):
-
 
16472
    return
-
 
16473
 
-
 
16474
 
-
 
16475
  def __repr__(self):
-
 
16476
    L = ['%s=%r' % (key, value)
-
 
16477
      for key, value in self.__dict__.iteritems()]
-
 
16478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16479
 
-
 
16480
  def __eq__(self, other):
-
 
16481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16482
 
-
 
16483
  def __ne__(self, other):
-
 
16484
    return not (self == other)
-
 
16485
 
-
 
16486
class getAmazonItemDetails_args:
-
 
16487
  """
-
 
16488
  Attributes:
-
 
16489
   - itemId
-
 
16490
  """
-
 
16491
 
-
 
16492
  thrift_spec = (
-
 
16493
    None, # 0
-
 
16494
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
16495
  )
-
 
16496
 
-
 
16497
  def __init__(self, itemId=None,):
-
 
16498
    self.itemId = itemId
-
 
16499
 
-
 
16500
  def read(self, iprot):
-
 
16501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16503
      return
-
 
16504
    iprot.readStructBegin()
-
 
16505
    while True:
-
 
16506
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16507
      if ftype == TType.STOP:
-
 
16508
        break
-
 
16509
      if fid == 1:
-
 
16510
        if ftype == TType.I64:
-
 
16511
          self.itemId = iprot.readI64();
-
 
16512
        else:
-
 
16513
          iprot.skip(ftype)
-
 
16514
      else:
-
 
16515
        iprot.skip(ftype)
-
 
16516
      iprot.readFieldEnd()
-
 
16517
    iprot.readStructEnd()
-
 
16518
 
-
 
16519
  def write(self, oprot):
-
 
16520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16522
      return
-
 
16523
    oprot.writeStructBegin('getAmazonItemDetails_args')
-
 
16524
    if self.itemId is not None:
-
 
16525
      oprot.writeFieldBegin('itemId', TType.I64, 1)
-
 
16526
      oprot.writeI64(self.itemId)
-
 
16527
      oprot.writeFieldEnd()
-
 
16528
    oprot.writeFieldStop()
-
 
16529
    oprot.writeStructEnd()
-
 
16530
 
-
 
16531
  def validate(self):
-
 
16532
    return
-
 
16533
 
-
 
16534
 
-
 
16535
  def __repr__(self):
-
 
16536
    L = ['%s=%r' % (key, value)
-
 
16537
      for key, value in self.__dict__.iteritems()]
-
 
16538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16539
 
-
 
16540
  def __eq__(self, other):
-
 
16541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16542
 
-
 
16543
  def __ne__(self, other):
-
 
16544
    return not (self == other)
-
 
16545
 
-
 
16546
class getAmazonItemDetails_result:
-
 
16547
  """
-
 
16548
  Attributes:
-
 
16549
   - success
-
 
16550
  """
-
 
16551
 
-
 
16552
  thrift_spec = (
-
 
16553
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
-
 
16554
  )
-
 
16555
 
-
 
16556
  def __init__(self, success=None,):
-
 
16557
    self.success = success
-
 
16558
 
-
 
16559
  def read(self, iprot):
-
 
16560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16562
      return
-
 
16563
    iprot.readStructBegin()
-
 
16564
    while True:
-
 
16565
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16566
      if ftype == TType.STOP:
-
 
16567
        break
-
 
16568
      if fid == 0:
-
 
16569
        if ftype == TType.STRUCT:
-
 
16570
          self.success = Amazonlisted()
-
 
16571
          self.success.read(iprot)
-
 
16572
        else:
-
 
16573
          iprot.skip(ftype)
-
 
16574
      else:
-
 
16575
        iprot.skip(ftype)
-
 
16576
      iprot.readFieldEnd()
-
 
16577
    iprot.readStructEnd()
-
 
16578
 
-
 
16579
  def write(self, oprot):
-
 
16580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16582
      return
-
 
16583
    oprot.writeStructBegin('getAmazonItemDetails_result')
-
 
16584
    if self.success is not None:
-
 
16585
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
16586
      self.success.write(oprot)
-
 
16587
      oprot.writeFieldEnd()
-
 
16588
    oprot.writeFieldStop()
-
 
16589
    oprot.writeStructEnd()
-
 
16590
 
-
 
16591
  def validate(self):
-
 
16592
    return
-
 
16593
 
-
 
16594
 
-
 
16595
  def __repr__(self):
-
 
16596
    L = ['%s=%r' % (key, value)
-
 
16597
      for key, value in self.__dict__.iteritems()]
-
 
16598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16599
 
-
 
16600
  def __eq__(self, other):
-
 
16601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16602
 
-
 
16603
  def __ne__(self, other):
-
 
16604
    return not (self == other)
-
 
16605
 
-
 
16606
class updateAmazonItemDetails_args:
-
 
16607
  """
-
 
16608
  Attributes:
-
 
16609
   - itemId
-
 
16610
   - fbaPrice
-
 
16611
   - sellingPrice
-
 
16612
   - isFba
-
 
16613
   - isNonFba
-
 
16614
   - isInventoryOverride
-
 
16615
  """
-
 
16616
 
-
 
16617
  thrift_spec = (
-
 
16618
    None, # 0
-
 
16619
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
16620
    (2, TType.DOUBLE, 'fbaPrice', None, None, ), # 2
-
 
16621
    (3, TType.DOUBLE, 'sellingPrice', None, None, ), # 3
-
 
16622
    (4, TType.BOOL, 'isFba', None, None, ), # 4
-
 
16623
    (5, TType.BOOL, 'isNonFba', None, None, ), # 5
-
 
16624
    (6, TType.BOOL, 'isInventoryOverride', None, None, ), # 6
-
 
16625
  )
-
 
16626
 
-
 
16627
  def __init__(self, itemId=None, fbaPrice=None, sellingPrice=None, isFba=None, isNonFba=None, isInventoryOverride=None,):
-
 
16628
    self.itemId = itemId
-
 
16629
    self.fbaPrice = fbaPrice
-
 
16630
    self.sellingPrice = sellingPrice
-
 
16631
    self.isFba = isFba
-
 
16632
    self.isNonFba = isNonFba
-
 
16633
    self.isInventoryOverride = isInventoryOverride
-
 
16634
 
-
 
16635
  def read(self, iprot):
-
 
16636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16638
      return
-
 
16639
    iprot.readStructBegin()
-
 
16640
    while True:
-
 
16641
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16642
      if ftype == TType.STOP:
-
 
16643
        break
-
 
16644
      if fid == 1:
-
 
16645
        if ftype == TType.I64:
-
 
16646
          self.itemId = iprot.readI64();
-
 
16647
        else:
-
 
16648
          iprot.skip(ftype)
-
 
16649
      elif fid == 2:
-
 
16650
        if ftype == TType.DOUBLE:
-
 
16651
          self.fbaPrice = iprot.readDouble();
-
 
16652
        else:
-
 
16653
          iprot.skip(ftype)
-
 
16654
      elif fid == 3:
-
 
16655
        if ftype == TType.DOUBLE:
-
 
16656
          self.sellingPrice = iprot.readDouble();
-
 
16657
        else:
-
 
16658
          iprot.skip(ftype)
-
 
16659
      elif fid == 4:
-
 
16660
        if ftype == TType.BOOL:
-
 
16661
          self.isFba = iprot.readBool();
-
 
16662
        else:
-
 
16663
          iprot.skip(ftype)
-
 
16664
      elif fid == 5:
-
 
16665
        if ftype == TType.BOOL:
-
 
16666
          self.isNonFba = iprot.readBool();
-
 
16667
        else:
-
 
16668
          iprot.skip(ftype)
-
 
16669
      elif fid == 6:
-
 
16670
        if ftype == TType.BOOL:
-
 
16671
          self.isInventoryOverride = iprot.readBool();
-
 
16672
        else:
-
 
16673
          iprot.skip(ftype)
-
 
16674
      else:
-
 
16675
        iprot.skip(ftype)
-
 
16676
      iprot.readFieldEnd()
-
 
16677
    iprot.readStructEnd()
-
 
16678
 
-
 
16679
  def write(self, oprot):
-
 
16680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16682
      return
-
 
16683
    oprot.writeStructBegin('updateAmazonItemDetails_args')
-
 
16684
    if self.itemId is not None:
-
 
16685
      oprot.writeFieldBegin('itemId', TType.I64, 1)
-
 
16686
      oprot.writeI64(self.itemId)
-
 
16687
      oprot.writeFieldEnd()
-
 
16688
    if self.fbaPrice is not None:
-
 
16689
      oprot.writeFieldBegin('fbaPrice', TType.DOUBLE, 2)
-
 
16690
      oprot.writeDouble(self.fbaPrice)
-
 
16691
      oprot.writeFieldEnd()
-
 
16692
    if self.sellingPrice is not None:
-
 
16693
      oprot.writeFieldBegin('sellingPrice', TType.DOUBLE, 3)
-
 
16694
      oprot.writeDouble(self.sellingPrice)
-
 
16695
      oprot.writeFieldEnd()
-
 
16696
    if self.isFba is not None:
-
 
16697
      oprot.writeFieldBegin('isFba', TType.BOOL, 4)
-
 
16698
      oprot.writeBool(self.isFba)
-
 
16699
      oprot.writeFieldEnd()
-
 
16700
    if self.isNonFba is not None:
-
 
16701
      oprot.writeFieldBegin('isNonFba', TType.BOOL, 5)
-
 
16702
      oprot.writeBool(self.isNonFba)
-
 
16703
      oprot.writeFieldEnd()
-
 
16704
    if self.isInventoryOverride is not None:
-
 
16705
      oprot.writeFieldBegin('isInventoryOverride', TType.BOOL, 6)
-
 
16706
      oprot.writeBool(self.isInventoryOverride)
-
 
16707
      oprot.writeFieldEnd()
-
 
16708
    oprot.writeFieldStop()
-
 
16709
    oprot.writeStructEnd()
-
 
16710
 
-
 
16711
  def validate(self):
-
 
16712
    return
-
 
16713
 
-
 
16714
 
-
 
16715
  def __repr__(self):
-
 
16716
    L = ['%s=%r' % (key, value)
-
 
16717
      for key, value in self.__dict__.iteritems()]
-
 
16718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16719
 
-
 
16720
  def __eq__(self, other):
-
 
16721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16722
 
-
 
16723
  def __ne__(self, other):
-
 
16724
    return not (self == other)
-
 
16725
 
-
 
16726
class updateAmazonItemDetails_result:
-
 
16727
 
-
 
16728
  thrift_spec = (
-
 
16729
  )
-
 
16730
 
-
 
16731
  def read(self, iprot):
-
 
16732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16734
      return
-
 
16735
    iprot.readStructBegin()
-
 
16736
    while True:
-
 
16737
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16738
      if ftype == TType.STOP:
-
 
16739
        break
-
 
16740
      else:
-
 
16741
        iprot.skip(ftype)
-
 
16742
      iprot.readFieldEnd()
-
 
16743
    iprot.readStructEnd()
-
 
16744
 
-
 
16745
  def write(self, oprot):
-
 
16746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16748
      return
-
 
16749
    oprot.writeStructBegin('updateAmazonItemDetails_result')
-
 
16750
    oprot.writeFieldStop()
-
 
16751
    oprot.writeStructEnd()
-
 
16752
 
-
 
16753
  def validate(self):
-
 
16754
    return
-
 
16755
 
-
 
16756
 
-
 
16757
  def __repr__(self):
-
 
16758
    L = ['%s=%r' % (key, value)
-
 
16759
      for key, value in self.__dict__.iteritems()]
-
 
16760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16761
 
-
 
16762
  def __eq__(self, other):
-
 
16763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16764
 
-
 
16765
  def __ne__(self, other):
-
 
16766
    return not (self == other)
-
 
16767
 
-
 
16768
class addAmazonItem_args:
-
 
16769
  """
-
 
16770
  Attributes:
-
 
16771
   - amazonlisted
-
 
16772
  """
-
 
16773
 
-
 
16774
  thrift_spec = (
-
 
16775
    None, # 0
-
 
16776
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
-
 
16777
  )
-
 
16778
 
-
 
16779
  def __init__(self, amazonlisted=None,):
-
 
16780
    self.amazonlisted = amazonlisted
-
 
16781
 
-
 
16782
  def read(self, iprot):
-
 
16783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16785
      return
-
 
16786
    iprot.readStructBegin()
-
 
16787
    while True:
-
 
16788
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16789
      if ftype == TType.STOP:
-
 
16790
        break
-
 
16791
      if fid == 1:
-
 
16792
        if ftype == TType.STRUCT:
-
 
16793
          self.amazonlisted = Amazonlisted()
-
 
16794
          self.amazonlisted.read(iprot)
-
 
16795
        else:
-
 
16796
          iprot.skip(ftype)
-
 
16797
      else:
-
 
16798
        iprot.skip(ftype)
-
 
16799
      iprot.readFieldEnd()
-
 
16800
    iprot.readStructEnd()
-
 
16801
 
-
 
16802
  def write(self, oprot):
-
 
16803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16805
      return
-
 
16806
    oprot.writeStructBegin('addAmazonItem_args')
-
 
16807
    if self.amazonlisted is not None:
-
 
16808
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
-
 
16809
      self.amazonlisted.write(oprot)
-
 
16810
      oprot.writeFieldEnd()
-
 
16811
    oprot.writeFieldStop()
-
 
16812
    oprot.writeStructEnd()
-
 
16813
 
-
 
16814
  def validate(self):
-
 
16815
    return
-
 
16816
 
-
 
16817
 
-
 
16818
  def __repr__(self):
-
 
16819
    L = ['%s=%r' % (key, value)
-
 
16820
      for key, value in self.__dict__.iteritems()]
-
 
16821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16822
 
-
 
16823
  def __eq__(self, other):
-
 
16824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16825
 
-
 
16826
  def __ne__(self, other):
-
 
16827
    return not (self == other)
-
 
16828
 
-
 
16829
class addAmazonItem_result:
-
 
16830
 
-
 
16831
  thrift_spec = (
-
 
16832
  )
-
 
16833
 
-
 
16834
  def read(self, iprot):
-
 
16835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16837
      return
-
 
16838
    iprot.readStructBegin()
-
 
16839
    while True:
-
 
16840
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16841
      if ftype == TType.STOP:
-
 
16842
        break
-
 
16843
      else:
-
 
16844
        iprot.skip(ftype)
-
 
16845
      iprot.readFieldEnd()
-
 
16846
    iprot.readStructEnd()
-
 
16847
 
-
 
16848
  def write(self, oprot):
-
 
16849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16851
      return
-
 
16852
    oprot.writeStructBegin('addAmazonItem_result')
-
 
16853
    oprot.writeFieldStop()
-
 
16854
    oprot.writeStructEnd()
-
 
16855
 
-
 
16856
  def validate(self):
-
 
16857
    return
16165
 
16858
 
16166
 
16859
 
16167
  def __repr__(self):
16860
  def __repr__(self):
16168
    L = ['%s=%r' % (key, value)
16861
    L = ['%s=%r' % (key, value)
16169
      for key, value in self.__dict__.iteritems()]
16862
      for key, value in self.__dict__.iteritems()]