Subversion Repositories SmartDukaan

Rev

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

Rev 8488 Rev 8532
Line 1917... Line 1917...
1917
    Parameters:
1917
    Parameters:
1918
     - subOrderId
1918
     - subOrderId
1919
    """
1919
    """
1920
    pass
1920
    pass
1921
 
1921
 
-
 
1922
  def updateLatestFbaPricesForItem(self, fbaitemprices):
-
 
1923
    """
-
 
1924
    Parameters:
-
 
1925
     - fbaitemprices
-
 
1926
    """
-
 
1927
    pass
-
 
1928
 
1922
 
1929
 
1923
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1930
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1924
  def __init__(self, iprot, oprot=None):
1931
  def __init__(self, iprot, oprot=None):
1925
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1932
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1926
 
1933
 
Line 8985... Line 8992...
8985
    self._iprot.readMessageEnd()
8992
    self._iprot.readMessageEnd()
8986
    if result.success is not None:
8993
    if result.success is not None:
8987
      return result.success
8994
      return result.success
8988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "snapdealOrderExists failed: unknown result");
8995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "snapdealOrderExists failed: unknown result");
8989
 
8996
 
-
 
8997
  def updateLatestFbaPricesForItem(self, fbaitemprices):
-
 
8998
    """
-
 
8999
    Parameters:
-
 
9000
     - fbaitemprices
-
 
9001
    """
-
 
9002
    self.send_updateLatestFbaPricesForItem(fbaitemprices)
-
 
9003
    self.recv_updateLatestFbaPricesForItem()
-
 
9004
 
-
 
9005
  def send_updateLatestFbaPricesForItem(self, fbaitemprices):
-
 
9006
    self._oprot.writeMessageBegin('updateLatestFbaPricesForItem', TMessageType.CALL, self._seqid)
-
 
9007
    args = updateLatestFbaPricesForItem_args()
-
 
9008
    args.fbaitemprices = fbaitemprices
-
 
9009
    args.write(self._oprot)
-
 
9010
    self._oprot.writeMessageEnd()
-
 
9011
    self._oprot.trans.flush()
-
 
9012
 
-
 
9013
  def recv_updateLatestFbaPricesForItem(self, ):
-
 
9014
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9015
    if mtype == TMessageType.EXCEPTION:
-
 
9016
      x = TApplicationException()
-
 
9017
      x.read(self._iprot)
-
 
9018
      self._iprot.readMessageEnd()
-
 
9019
      raise x
-
 
9020
    result = updateLatestFbaPricesForItem_result()
-
 
9021
    result.read(self._iprot)
-
 
9022
    self._iprot.readMessageEnd()
-
 
9023
    return
-
 
9024
 
8990
 
9025
 
8991
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9026
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8992
  def __init__(self, handler):
9027
  def __init__(self, handler):
8993
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9028
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8994
    self._processMap["createTransaction"] = Processor.process_createTransaction
9029
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 9200... Line 9235...
9200
    self._processMap["getAmazonFbaSalesSnapshotForDays"] = Processor.process_getAmazonFbaSalesSnapshotForDays
9235
    self._processMap["getAmazonFbaSalesSnapshotForDays"] = Processor.process_getAmazonFbaSalesSnapshotForDays
9201
    self._processMap["getAmazonFbaSalesLatestSnapshotForItem"] = Processor.process_getAmazonFbaSalesLatestSnapshotForItem
9236
    self._processMap["getAmazonFbaSalesLatestSnapshotForItem"] = Processor.process_getAmazonFbaSalesLatestSnapshotForItem
9202
    self._processMap["createSnapdealOrder"] = Processor.process_createSnapdealOrder
9237
    self._processMap["createSnapdealOrder"] = Processor.process_createSnapdealOrder
9203
    self._processMap["getSnapdealOrder"] = Processor.process_getSnapdealOrder
9238
    self._processMap["getSnapdealOrder"] = Processor.process_getSnapdealOrder
9204
    self._processMap["snapdealOrderExists"] = Processor.process_snapdealOrderExists
9239
    self._processMap["snapdealOrderExists"] = Processor.process_snapdealOrderExists
-
 
9240
    self._processMap["updateLatestFbaPricesForItem"] = Processor.process_updateLatestFbaPricesForItem
9205
 
9241
 
9206
  def process(self, iprot, oprot):
9242
  def process(self, iprot, oprot):
9207
    (name, type, seqid) = iprot.readMessageBegin()
9243
    (name, type, seqid) = iprot.readMessageBegin()
9208
    if name not in self._processMap:
9244
    if name not in self._processMap:
9209
      iprot.skip(TType.STRUCT)
9245
      iprot.skip(TType.STRUCT)
Line 11837... Line 11873...
11837
    oprot.writeMessageBegin("snapdealOrderExists", TMessageType.REPLY, seqid)
11873
    oprot.writeMessageBegin("snapdealOrderExists", TMessageType.REPLY, seqid)
11838
    result.write(oprot)
11874
    result.write(oprot)
11839
    oprot.writeMessageEnd()
11875
    oprot.writeMessageEnd()
11840
    oprot.trans.flush()
11876
    oprot.trans.flush()
11841
 
11877
 
-
 
11878
  def process_updateLatestFbaPricesForItem(self, seqid, iprot, oprot):
-
 
11879
    args = updateLatestFbaPricesForItem_args()
-
 
11880
    args.read(iprot)
-
 
11881
    iprot.readMessageEnd()
-
 
11882
    result = updateLatestFbaPricesForItem_result()
-
 
11883
    self._handler.updateLatestFbaPricesForItem(args.fbaitemprices)
-
 
11884
    oprot.writeMessageBegin("updateLatestFbaPricesForItem", TMessageType.REPLY, seqid)
-
 
11885
    result.write(oprot)
-
 
11886
    oprot.writeMessageEnd()
-
 
11887
    oprot.trans.flush()
-
 
11888
 
11842
 
11889
 
11843
# HELPER FUNCTIONS AND STRUCTURES
11890
# HELPER FUNCTIONS AND STRUCTURES
11844
 
11891
 
11845
class createTransaction_args:
11892
class createTransaction_args:
11846
  """
11893
  """
Line 40905... Line 40952...
40905
    oprot.writeFieldStop()
40952
    oprot.writeFieldStop()
40906
    oprot.writeStructEnd()
40953
    oprot.writeStructEnd()
40907
 
40954
 
40908
  def validate(self):
40955
  def validate(self):
40909
    return
40956
    return
-
 
40957
 
-
 
40958
 
-
 
40959
  def __repr__(self):
-
 
40960
    L = ['%s=%r' % (key, value)
-
 
40961
      for key, value in self.__dict__.iteritems()]
-
 
40962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40963
 
-
 
40964
  def __eq__(self, other):
-
 
40965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40966
 
-
 
40967
  def __ne__(self, other):
-
 
40968
    return not (self == other)
-
 
40969
 
-
 
40970
class updateLatestFbaPricesForItem_args:
-
 
40971
  """
-
 
40972
  Attributes:
-
 
40973
   - fbaitemprices
-
 
40974
  """
-
 
40975
 
-
 
40976
  thrift_spec = (
-
 
40977
    None, # 0
-
 
40978
    (1, TType.STRUCT, 'fbaitemprices', (FbaItemPrices, FbaItemPrices.thrift_spec), None, ), # 1
-
 
40979
  )
-
 
40980
 
-
 
40981
  def __init__(self, fbaitemprices=None,):
-
 
40982
    self.fbaitemprices = fbaitemprices
-
 
40983
 
-
 
40984
  def read(self, iprot):
-
 
40985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40987
      return
-
 
40988
    iprot.readStructBegin()
-
 
40989
    while True:
-
 
40990
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40991
      if ftype == TType.STOP:
-
 
40992
        break
-
 
40993
      if fid == 1:
-
 
40994
        if ftype == TType.STRUCT:
-
 
40995
          self.fbaitemprices = FbaItemPrices()
-
 
40996
          self.fbaitemprices.read(iprot)
-
 
40997
        else:
-
 
40998
          iprot.skip(ftype)
-
 
40999
      else:
-
 
41000
        iprot.skip(ftype)
-
 
41001
      iprot.readFieldEnd()
-
 
41002
    iprot.readStructEnd()
-
 
41003
 
-
 
41004
  def write(self, oprot):
-
 
41005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
41006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
41007
      return
-
 
41008
    oprot.writeStructBegin('updateLatestFbaPricesForItem_args')
-
 
41009
    if self.fbaitemprices is not None:
-
 
41010
      oprot.writeFieldBegin('fbaitemprices', TType.STRUCT, 1)
-
 
41011
      self.fbaitemprices.write(oprot)
-
 
41012
      oprot.writeFieldEnd()
-
 
41013
    oprot.writeFieldStop()
-
 
41014
    oprot.writeStructEnd()
-
 
41015
 
-
 
41016
  def validate(self):
-
 
41017
    return
-
 
41018
 
-
 
41019
 
-
 
41020
  def __repr__(self):
-
 
41021
    L = ['%s=%r' % (key, value)
-
 
41022
      for key, value in self.__dict__.iteritems()]
-
 
41023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
41024
 
-
 
41025
  def __eq__(self, other):
-
 
41026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
41027
 
-
 
41028
  def __ne__(self, other):
-
 
41029
    return not (self == other)
-
 
41030
 
-
 
41031
class updateLatestFbaPricesForItem_result:
-
 
41032
 
-
 
41033
  thrift_spec = (
-
 
41034
  )
-
 
41035
 
-
 
41036
  def read(self, iprot):
-
 
41037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
41038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
41039
      return
-
 
41040
    iprot.readStructBegin()
-
 
41041
    while True:
-
 
41042
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
41043
      if ftype == TType.STOP:
-
 
41044
        break
-
 
41045
      else:
-
 
41046
        iprot.skip(ftype)
-
 
41047
      iprot.readFieldEnd()
-
 
41048
    iprot.readStructEnd()
-
 
41049
 
-
 
41050
  def write(self, oprot):
-
 
41051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
41052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
41053
      return
-
 
41054
    oprot.writeStructBegin('updateLatestFbaPricesForItem_result')
-
 
41055
    oprot.writeFieldStop()
-
 
41056
    oprot.writeStructEnd()
-
 
41057
 
-
 
41058
  def validate(self):
-
 
41059
    return
40910
 
41060
 
40911
 
41061
 
40912
  def __repr__(self):
41062
  def __repr__(self):
40913
    L = ['%s=%r' % (key, value)
41063
    L = ['%s=%r' % (key, value)
40914
      for key, value in self.__dict__.iteritems()]
41064
      for key, value in self.__dict__.iteritems()]