Subversion Repositories SmartDukaan

Rev

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

Rev 7340 Rev 7367
Line 706... Line 706...
706
    Parameters:
706
    Parameters:
707
     - itemId
707
     - itemId
708
    """
708
    """
709
    pass
709
    pass
710
 
710
 
711
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride):
711
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime):
712
    """
712
    """
713
    Parameters:
713
    Parameters:
714
     - itemId
714
     - itemId
715
     - fbaPrice
715
     - fbaPrice
716
     - sellingPrice
716
     - sellingPrice
717
     - isFba
717
     - isFba
718
     - isNonFba
718
     - isNonFba
719
     - isInventoryOverride
719
     - isInventoryOverride
-
 
720
     - handlingTime
-
 
721
     - isCustomTime
720
    """
722
    """
721
    pass
723
    pass
722
 
724
 
723
  def addAmazonItem(self, amazonlisted):
725
  def addAmazonItem(self, amazonlisted):
724
    """
726
    """
Line 3616... Line 3618...
3616
    self._iprot.readMessageEnd()
3618
    self._iprot.readMessageEnd()
3617
    if result.success is not None:
3619
    if result.success is not None:
3618
      return result.success
3620
      return result.success
3619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
3621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
3620
 
3622
 
3621
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride):
3623
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime):
3622
    """
3624
    """
3623
    Parameters:
3625
    Parameters:
3624
     - itemId
3626
     - itemId
3625
     - fbaPrice
3627
     - fbaPrice
3626
     - sellingPrice
3628
     - sellingPrice
3627
     - isFba
3629
     - isFba
3628
     - isNonFba
3630
     - isNonFba
3629
     - isInventoryOverride
3631
     - isInventoryOverride
-
 
3632
     - handlingTime
-
 
3633
     - isCustomTime
3630
    """
3634
    """
3631
    self.send_updateAmazonItemDetails(itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride)
3635
    self.send_updateAmazonItemDetails(itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime)
3632
    self.recv_updateAmazonItemDetails()
3636
    self.recv_updateAmazonItemDetails()
3633
 
3637
 
3634
  def send_updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride):
3638
  def send_updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime):
3635
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
3639
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
3636
    args = updateAmazonItemDetails_args()
3640
    args = updateAmazonItemDetails_args()
3637
    args.itemId = itemId
3641
    args.itemId = itemId
3638
    args.fbaPrice = fbaPrice
3642
    args.fbaPrice = fbaPrice
3639
    args.sellingPrice = sellingPrice
3643
    args.sellingPrice = sellingPrice
3640
    args.isFba = isFba
3644
    args.isFba = isFba
3641
    args.isNonFba = isNonFba
3645
    args.isNonFba = isNonFba
3642
    args.isInventoryOverride = isInventoryOverride
3646
    args.isInventoryOverride = isInventoryOverride
-
 
3647
    args.handlingTime = handlingTime
-
 
3648
    args.isCustomTime = isCustomTime
3643
    args.write(self._oprot)
3649
    args.write(self._oprot)
3644
    self._oprot.writeMessageEnd()
3650
    self._oprot.writeMessageEnd()
3645
    self._oprot.trans.flush()
3651
    self._oprot.trans.flush()
3646
 
3652
 
3647
  def recv_updateAmazonItemDetails(self, ):
3653
  def recv_updateAmazonItemDetails(self, ):
Line 4990... Line 4996...
4990
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
4996
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
4991
    args = updateAmazonItemDetails_args()
4997
    args = updateAmazonItemDetails_args()
4992
    args.read(iprot)
4998
    args.read(iprot)
4993
    iprot.readMessageEnd()
4999
    iprot.readMessageEnd()
4994
    result = updateAmazonItemDetails_result()
5000
    result = updateAmazonItemDetails_result()
4995
    self._handler.updateAmazonItemDetails(args.itemId, args.fbaPrice, args.sellingPrice, args.isFba, args.isNonFba, args.isInventoryOverride)
5001
    self._handler.updateAmazonItemDetails(args.itemId, args.fbaPrice, args.sellingPrice, args.isFba, args.isNonFba, args.isInventoryOverride, args.handlingTime, args.isCustomTime)
4996
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
5002
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
4997
    result.write(oprot)
5003
    result.write(oprot)
4998
    oprot.writeMessageEnd()
5004
    oprot.writeMessageEnd()
4999
    oprot.trans.flush()
5005
    oprot.trans.flush()
5000
 
5006
 
Line 16948... Line 16954...
16948
   - fbaPrice
16954
   - fbaPrice
16949
   - sellingPrice
16955
   - sellingPrice
16950
   - isFba
16956
   - isFba
16951
   - isNonFba
16957
   - isNonFba
16952
   - isInventoryOverride
16958
   - isInventoryOverride
-
 
16959
   - handlingTime
-
 
16960
   - isCustomTime
16953
  """
16961
  """
16954
 
16962
 
16955
  thrift_spec = (
16963
  thrift_spec = (
16956
    None, # 0
16964
    None, # 0
16957
    (1, TType.I64, 'itemId', None, None, ), # 1
16965
    (1, TType.I64, 'itemId', None, None, ), # 1
16958
    (2, TType.DOUBLE, 'fbaPrice', None, None, ), # 2
16966
    (2, TType.DOUBLE, 'fbaPrice', None, None, ), # 2
16959
    (3, TType.DOUBLE, 'sellingPrice', None, None, ), # 3
16967
    (3, TType.DOUBLE, 'sellingPrice', None, None, ), # 3
16960
    (4, TType.BOOL, 'isFba', None, None, ), # 4
16968
    (4, TType.BOOL, 'isFba', None, None, ), # 4
16961
    (5, TType.BOOL, 'isNonFba', None, None, ), # 5
16969
    (5, TType.BOOL, 'isNonFba', None, None, ), # 5
16962
    (6, TType.BOOL, 'isInventoryOverride', None, None, ), # 6
16970
    (6, TType.BOOL, 'isInventoryOverride', None, None, ), # 6
-
 
16971
    (7, TType.I64, 'handlingTime', None, None, ), # 7
-
 
16972
    (8, TType.BOOL, 'isCustomTime', None, None, ), # 8
16963
  )
16973
  )
16964
 
16974
 
16965
  def __init__(self, itemId=None, fbaPrice=None, sellingPrice=None, isFba=None, isNonFba=None, isInventoryOverride=None,):
16975
  def __init__(self, itemId=None, fbaPrice=None, sellingPrice=None, isFba=None, isNonFba=None, isInventoryOverride=None, handlingTime=None, isCustomTime=None,):
16966
    self.itemId = itemId
16976
    self.itemId = itemId
16967
    self.fbaPrice = fbaPrice
16977
    self.fbaPrice = fbaPrice
16968
    self.sellingPrice = sellingPrice
16978
    self.sellingPrice = sellingPrice
16969
    self.isFba = isFba
16979
    self.isFba = isFba
16970
    self.isNonFba = isNonFba
16980
    self.isNonFba = isNonFba
16971
    self.isInventoryOverride = isInventoryOverride
16981
    self.isInventoryOverride = isInventoryOverride
-
 
16982
    self.handlingTime = handlingTime
-
 
16983
    self.isCustomTime = isCustomTime
16972
 
16984
 
16973
  def read(self, iprot):
16985
  def read(self, iprot):
16974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16976
      return
16988
      return
Line 17007... Line 17019...
17007
      elif fid == 6:
17019
      elif fid == 6:
17008
        if ftype == TType.BOOL:
17020
        if ftype == TType.BOOL:
17009
          self.isInventoryOverride = iprot.readBool();
17021
          self.isInventoryOverride = iprot.readBool();
17010
        else:
17022
        else:
17011
          iprot.skip(ftype)
17023
          iprot.skip(ftype)
-
 
17024
      elif fid == 7:
-
 
17025
        if ftype == TType.I64:
-
 
17026
          self.handlingTime = iprot.readI64();
-
 
17027
        else:
-
 
17028
          iprot.skip(ftype)
-
 
17029
      elif fid == 8:
-
 
17030
        if ftype == TType.BOOL:
-
 
17031
          self.isCustomTime = iprot.readBool();
-
 
17032
        else:
-
 
17033
          iprot.skip(ftype)
17012
      else:
17034
      else:
17013
        iprot.skip(ftype)
17035
        iprot.skip(ftype)
17014
      iprot.readFieldEnd()
17036
      iprot.readFieldEnd()
17015
    iprot.readStructEnd()
17037
    iprot.readStructEnd()
17016
 
17038
 
Line 17041... Line 17063...
17041
      oprot.writeFieldEnd()
17063
      oprot.writeFieldEnd()
17042
    if self.isInventoryOverride is not None:
17064
    if self.isInventoryOverride is not None:
17043
      oprot.writeFieldBegin('isInventoryOverride', TType.BOOL, 6)
17065
      oprot.writeFieldBegin('isInventoryOverride', TType.BOOL, 6)
17044
      oprot.writeBool(self.isInventoryOverride)
17066
      oprot.writeBool(self.isInventoryOverride)
17045
      oprot.writeFieldEnd()
17067
      oprot.writeFieldEnd()
-
 
17068
    if self.handlingTime is not None:
-
 
17069
      oprot.writeFieldBegin('handlingTime', TType.I64, 7)
-
 
17070
      oprot.writeI64(self.handlingTime)
-
 
17071
      oprot.writeFieldEnd()
-
 
17072
    if self.isCustomTime is not None:
-
 
17073
      oprot.writeFieldBegin('isCustomTime', TType.BOOL, 8)
-
 
17074
      oprot.writeBool(self.isCustomTime)
-
 
17075
      oprot.writeFieldEnd()
17046
    oprot.writeFieldStop()
17076
    oprot.writeFieldStop()
17047
    oprot.writeStructEnd()
17077
    oprot.writeStructEnd()
17048
 
17078
 
17049
  def validate(self):
17079
  def validate(self):
17050
    return
17080
    return