Subversion Repositories SmartDukaan

Rev

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

Rev 8241 Rev 8282
Line 1871... Line 1871...
1871
     - splitOrderItemId
1871
     - splitOrderItemId
1872
     - usePowerShip
1872
     - usePowerShip
1873
    """
1873
    """
1874
    pass
1874
    pass
1875
 
1875
 
-
 
1876
  def addOrUpdateAmazonFbaSalesSnapshot(self, amazonfbasalessnapshot):
-
 
1877
    """
-
 
1878
    Parameters:
-
 
1879
     - amazonfbasalessnapshot
-
 
1880
    """
-
 
1881
    pass
-
 
1882
 
-
 
1883
  def getAmazonFbaSalesSnapshotForDays(self, days):
-
 
1884
    """
-
 
1885
    Parameters:
-
 
1886
     - days
-
 
1887
    """
-
 
1888
    pass
-
 
1889
 
-
 
1890
  def getAmazonFbaSalesLatestSnapshotForItem(self, item_id):
-
 
1891
    """
-
 
1892
    Parameters:
-
 
1893
     - item_id
-
 
1894
    """
-
 
1895
    pass
-
 
1896
 
1876
 
1897
 
1877
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1898
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1878
  def __init__(self, iprot, oprot=None):
1899
  def __init__(self, iprot, oprot=None):
1879
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1900
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1880
 
1901
 
Line 8755... Line 8776...
8755
    self._iprot.readMessageEnd()
8776
    self._iprot.readMessageEnd()
8756
    if result.success is not None:
8777
    if result.success is not None:
8757
      return result.success
8778
      return result.success
8758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "splitEbayOrder failed: unknown result");
8779
    raise TApplicationException(TApplicationException.MISSING_RESULT, "splitEbayOrder failed: unknown result");
8759
 
8780
 
-
 
8781
  def addOrUpdateAmazonFbaSalesSnapshot(self, amazonfbasalessnapshot):
-
 
8782
    """
-
 
8783
    Parameters:
-
 
8784
     - amazonfbasalessnapshot
-
 
8785
    """
-
 
8786
    self.send_addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot)
-
 
8787
    self.recv_addOrUpdateAmazonFbaSalesSnapshot()
-
 
8788
 
-
 
8789
  def send_addOrUpdateAmazonFbaSalesSnapshot(self, amazonfbasalessnapshot):
-
 
8790
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaSalesSnapshot', TMessageType.CALL, self._seqid)
-
 
8791
    args = addOrUpdateAmazonFbaSalesSnapshot_args()
-
 
8792
    args.amazonfbasalessnapshot = amazonfbasalessnapshot
-
 
8793
    args.write(self._oprot)
-
 
8794
    self._oprot.writeMessageEnd()
-
 
8795
    self._oprot.trans.flush()
-
 
8796
 
-
 
8797
  def recv_addOrUpdateAmazonFbaSalesSnapshot(self, ):
-
 
8798
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
8799
    if mtype == TMessageType.EXCEPTION:
-
 
8800
      x = TApplicationException()
-
 
8801
      x.read(self._iprot)
-
 
8802
      self._iprot.readMessageEnd()
-
 
8803
      raise x
-
 
8804
    result = addOrUpdateAmazonFbaSalesSnapshot_result()
-
 
8805
    result.read(self._iprot)
-
 
8806
    self._iprot.readMessageEnd()
-
 
8807
    return
-
 
8808
 
-
 
8809
  def getAmazonFbaSalesSnapshotForDays(self, days):
-
 
8810
    """
-
 
8811
    Parameters:
-
 
8812
     - days
-
 
8813
    """
-
 
8814
    self.send_getAmazonFbaSalesSnapshotForDays(days)
-
 
8815
    return self.recv_getAmazonFbaSalesSnapshotForDays()
-
 
8816
 
-
 
8817
  def send_getAmazonFbaSalesSnapshotForDays(self, days):
-
 
8818
    self._oprot.writeMessageBegin('getAmazonFbaSalesSnapshotForDays', TMessageType.CALL, self._seqid)
-
 
8819
    args = getAmazonFbaSalesSnapshotForDays_args()
-
 
8820
    args.days = days
-
 
8821
    args.write(self._oprot)
-
 
8822
    self._oprot.writeMessageEnd()
-
 
8823
    self._oprot.trans.flush()
-
 
8824
 
-
 
8825
  def recv_getAmazonFbaSalesSnapshotForDays(self, ):
-
 
8826
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
8827
    if mtype == TMessageType.EXCEPTION:
-
 
8828
      x = TApplicationException()
-
 
8829
      x.read(self._iprot)
-
 
8830
      self._iprot.readMessageEnd()
-
 
8831
      raise x
-
 
8832
    result = getAmazonFbaSalesSnapshotForDays_result()
-
 
8833
    result.read(self._iprot)
-
 
8834
    self._iprot.readMessageEnd()
-
 
8835
    if result.success is not None:
-
 
8836
      return result.success
-
 
8837
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaSalesSnapshotForDays failed: unknown result");
-
 
8838
 
-
 
8839
  def getAmazonFbaSalesLatestSnapshotForItem(self, item_id):
-
 
8840
    """
-
 
8841
    Parameters:
-
 
8842
     - item_id
-
 
8843
    """
-
 
8844
    self.send_getAmazonFbaSalesLatestSnapshotForItem(item_id)
-
 
8845
    return self.recv_getAmazonFbaSalesLatestSnapshotForItem()
-
 
8846
 
-
 
8847
  def send_getAmazonFbaSalesLatestSnapshotForItem(self, item_id):
-
 
8848
    self._oprot.writeMessageBegin('getAmazonFbaSalesLatestSnapshotForItem', TMessageType.CALL, self._seqid)
-
 
8849
    args = getAmazonFbaSalesLatestSnapshotForItem_args()
-
 
8850
    args.item_id = item_id
-
 
8851
    args.write(self._oprot)
-
 
8852
    self._oprot.writeMessageEnd()
-
 
8853
    self._oprot.trans.flush()
-
 
8854
 
-
 
8855
  def recv_getAmazonFbaSalesLatestSnapshotForItem(self, ):
-
 
8856
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
8857
    if mtype == TMessageType.EXCEPTION:
-
 
8858
      x = TApplicationException()
-
 
8859
      x.read(self._iprot)
-
 
8860
      self._iprot.readMessageEnd()
-
 
8861
      raise x
-
 
8862
    result = getAmazonFbaSalesLatestSnapshotForItem_result()
-
 
8863
    result.read(self._iprot)
-
 
8864
    self._iprot.readMessageEnd()
-
 
8865
    if result.success is not None:
-
 
8866
      return result.success
-
 
8867
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaSalesLatestSnapshotForItem failed: unknown result");
-
 
8868
 
8760
 
8869
 
8761
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8870
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8762
  def __init__(self, handler):
8871
  def __init__(self, handler):
8763
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8872
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8764
    self._processMap["createTransaction"] = Processor.process_createTransaction
8873
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 8964... Line 9073...
8964
    self._processMap["getEbayOrder"] = Processor.process_getEbayOrder
9073
    self._processMap["getEbayOrder"] = Processor.process_getEbayOrder
8965
    self._processMap["updateEbayOrder"] = Processor.process_updateEbayOrder
9074
    self._processMap["updateEbayOrder"] = Processor.process_updateEbayOrder
8966
    self._processMap["ebayOrderExists"] = Processor.process_ebayOrderExists
9075
    self._processMap["ebayOrderExists"] = Processor.process_ebayOrderExists
8967
    self._processMap["updateOrderForEbay"] = Processor.process_updateOrderForEbay
9076
    self._processMap["updateOrderForEbay"] = Processor.process_updateOrderForEbay
8968
    self._processMap["splitEbayOrder"] = Processor.process_splitEbayOrder
9077
    self._processMap["splitEbayOrder"] = Processor.process_splitEbayOrder
-
 
9078
    self._processMap["addOrUpdateAmazonFbaSalesSnapshot"] = Processor.process_addOrUpdateAmazonFbaSalesSnapshot
-
 
9079
    self._processMap["getAmazonFbaSalesSnapshotForDays"] = Processor.process_getAmazonFbaSalesSnapshotForDays
-
 
9080
    self._processMap["getAmazonFbaSalesLatestSnapshotForItem"] = Processor.process_getAmazonFbaSalesLatestSnapshotForItem
8969
 
9081
 
8970
  def process(self, iprot, oprot):
9082
  def process(self, iprot, oprot):
8971
    (name, type, seqid) = iprot.readMessageBegin()
9083
    (name, type, seqid) = iprot.readMessageBegin()
8972
    if name not in self._processMap:
9084
    if name not in self._processMap:
8973
      iprot.skip(TType.STRUCT)
9085
      iprot.skip(TType.STRUCT)
Line 11535... Line 11647...
11535
    oprot.writeMessageBegin("splitEbayOrder", TMessageType.REPLY, seqid)
11647
    oprot.writeMessageBegin("splitEbayOrder", TMessageType.REPLY, seqid)
11536
    result.write(oprot)
11648
    result.write(oprot)
11537
    oprot.writeMessageEnd()
11649
    oprot.writeMessageEnd()
11538
    oprot.trans.flush()
11650
    oprot.trans.flush()
11539
 
11651
 
-
 
11652
  def process_addOrUpdateAmazonFbaSalesSnapshot(self, seqid, iprot, oprot):
-
 
11653
    args = addOrUpdateAmazonFbaSalesSnapshot_args()
-
 
11654
    args.read(iprot)
-
 
11655
    iprot.readMessageEnd()
-
 
11656
    result = addOrUpdateAmazonFbaSalesSnapshot_result()
-
 
11657
    self._handler.addOrUpdateAmazonFbaSalesSnapshot(args.amazonfbasalessnapshot)
-
 
11658
    oprot.writeMessageBegin("addOrUpdateAmazonFbaSalesSnapshot", TMessageType.REPLY, seqid)
-
 
11659
    result.write(oprot)
-
 
11660
    oprot.writeMessageEnd()
-
 
11661
    oprot.trans.flush()
-
 
11662
 
-
 
11663
  def process_getAmazonFbaSalesSnapshotForDays(self, seqid, iprot, oprot):
-
 
11664
    args = getAmazonFbaSalesSnapshotForDays_args()
-
 
11665
    args.read(iprot)
-
 
11666
    iprot.readMessageEnd()
-
 
11667
    result = getAmazonFbaSalesSnapshotForDays_result()
-
 
11668
    result.success = self._handler.getAmazonFbaSalesSnapshotForDays(args.days)
-
 
11669
    oprot.writeMessageBegin("getAmazonFbaSalesSnapshotForDays", TMessageType.REPLY, seqid)
-
 
11670
    result.write(oprot)
-
 
11671
    oprot.writeMessageEnd()
-
 
11672
    oprot.trans.flush()
-
 
11673
 
-
 
11674
  def process_getAmazonFbaSalesLatestSnapshotForItem(self, seqid, iprot, oprot):
-
 
11675
    args = getAmazonFbaSalesLatestSnapshotForItem_args()
-
 
11676
    args.read(iprot)
-
 
11677
    iprot.readMessageEnd()
-
 
11678
    result = getAmazonFbaSalesLatestSnapshotForItem_result()
-
 
11679
    result.success = self._handler.getAmazonFbaSalesLatestSnapshotForItem(args.item_id)
-
 
11680
    oprot.writeMessageBegin("getAmazonFbaSalesLatestSnapshotForItem", TMessageType.REPLY, seqid)
-
 
11681
    result.write(oprot)
-
 
11682
    oprot.writeMessageEnd()
-
 
11683
    oprot.trans.flush()
-
 
11684
 
11540
 
11685
 
11541
# HELPER FUNCTIONS AND STRUCTURES
11686
# HELPER FUNCTIONS AND STRUCTURES
11542
 
11687
 
11543
class createTransaction_args:
11688
class createTransaction_args:
11544
  """
11689
  """
Line 39858... Line 40003...
39858
    if self.success is not None:
40003
    if self.success is not None:
39859
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
40004
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
39860
      self.success.write(oprot)
40005
      self.success.write(oprot)
39861
      oprot.writeFieldEnd()
40006
      oprot.writeFieldEnd()
39862
    oprot.writeFieldStop()
40007
    oprot.writeFieldStop()
-
 
40008
    oprot.writeStructEnd()
-
 
40009
 
-
 
40010
  def validate(self):
-
 
40011
    return
-
 
40012
 
-
 
40013
 
-
 
40014
  def __repr__(self):
-
 
40015
    L = ['%s=%r' % (key, value)
-
 
40016
      for key, value in self.__dict__.iteritems()]
-
 
40017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40018
 
-
 
40019
  def __eq__(self, other):
-
 
40020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40021
 
-
 
40022
  def __ne__(self, other):
-
 
40023
    return not (self == other)
-
 
40024
 
-
 
40025
class addOrUpdateAmazonFbaSalesSnapshot_args:
-
 
40026
  """
-
 
40027
  Attributes:
-
 
40028
   - amazonfbasalessnapshot
-
 
40029
  """
-
 
40030
 
-
 
40031
  thrift_spec = (
-
 
40032
    None, # 0
-
 
40033
    (1, TType.STRUCT, 'amazonfbasalessnapshot', (AmazonFbaSalesSnapshot, AmazonFbaSalesSnapshot.thrift_spec), None, ), # 1
-
 
40034
  )
-
 
40035
 
-
 
40036
  def __init__(self, amazonfbasalessnapshot=None,):
-
 
40037
    self.amazonfbasalessnapshot = amazonfbasalessnapshot
-
 
40038
 
-
 
40039
  def read(self, iprot):
-
 
40040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40042
      return
-
 
40043
    iprot.readStructBegin()
-
 
40044
    while True:
-
 
40045
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40046
      if ftype == TType.STOP:
-
 
40047
        break
-
 
40048
      if fid == 1:
-
 
40049
        if ftype == TType.STRUCT:
-
 
40050
          self.amazonfbasalessnapshot = AmazonFbaSalesSnapshot()
-
 
40051
          self.amazonfbasalessnapshot.read(iprot)
-
 
40052
        else:
-
 
40053
          iprot.skip(ftype)
-
 
40054
      else:
-
 
40055
        iprot.skip(ftype)
-
 
40056
      iprot.readFieldEnd()
-
 
40057
    iprot.readStructEnd()
-
 
40058
 
-
 
40059
  def write(self, oprot):
-
 
40060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40062
      return
-
 
40063
    oprot.writeStructBegin('addOrUpdateAmazonFbaSalesSnapshot_args')
-
 
40064
    if self.amazonfbasalessnapshot is not None:
-
 
40065
      oprot.writeFieldBegin('amazonfbasalessnapshot', TType.STRUCT, 1)
-
 
40066
      self.amazonfbasalessnapshot.write(oprot)
-
 
40067
      oprot.writeFieldEnd()
-
 
40068
    oprot.writeFieldStop()
-
 
40069
    oprot.writeStructEnd()
-
 
40070
 
-
 
40071
  def validate(self):
-
 
40072
    return
-
 
40073
 
-
 
40074
 
-
 
40075
  def __repr__(self):
-
 
40076
    L = ['%s=%r' % (key, value)
-
 
40077
      for key, value in self.__dict__.iteritems()]
-
 
40078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40079
 
-
 
40080
  def __eq__(self, other):
-
 
40081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40082
 
-
 
40083
  def __ne__(self, other):
-
 
40084
    return not (self == other)
-
 
40085
 
-
 
40086
class addOrUpdateAmazonFbaSalesSnapshot_result:
-
 
40087
 
-
 
40088
  thrift_spec = (
-
 
40089
  )
-
 
40090
 
-
 
40091
  def read(self, iprot):
-
 
40092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40094
      return
-
 
40095
    iprot.readStructBegin()
-
 
40096
    while True:
-
 
40097
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40098
      if ftype == TType.STOP:
-
 
40099
        break
-
 
40100
      else:
-
 
40101
        iprot.skip(ftype)
-
 
40102
      iprot.readFieldEnd()
-
 
40103
    iprot.readStructEnd()
-
 
40104
 
-
 
40105
  def write(self, oprot):
-
 
40106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40108
      return
-
 
40109
    oprot.writeStructBegin('addOrUpdateAmazonFbaSalesSnapshot_result')
-
 
40110
    oprot.writeFieldStop()
-
 
40111
    oprot.writeStructEnd()
-
 
40112
 
-
 
40113
  def validate(self):
-
 
40114
    return
-
 
40115
 
-
 
40116
 
-
 
40117
  def __repr__(self):
-
 
40118
    L = ['%s=%r' % (key, value)
-
 
40119
      for key, value in self.__dict__.iteritems()]
-
 
40120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40121
 
-
 
40122
  def __eq__(self, other):
-
 
40123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40124
 
-
 
40125
  def __ne__(self, other):
-
 
40126
    return not (self == other)
-
 
40127
 
-
 
40128
class getAmazonFbaSalesSnapshotForDays_args:
-
 
40129
  """
-
 
40130
  Attributes:
-
 
40131
   - days
-
 
40132
  """
-
 
40133
 
-
 
40134
  thrift_spec = (
-
 
40135
    None, # 0
-
 
40136
    (1, TType.I32, 'days', None, None, ), # 1
-
 
40137
  )
-
 
40138
 
-
 
40139
  def __init__(self, days=None,):
-
 
40140
    self.days = days
-
 
40141
 
-
 
40142
  def read(self, iprot):
-
 
40143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40145
      return
-
 
40146
    iprot.readStructBegin()
-
 
40147
    while True:
-
 
40148
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40149
      if ftype == TType.STOP:
-
 
40150
        break
-
 
40151
      if fid == 1:
-
 
40152
        if ftype == TType.I32:
-
 
40153
          self.days = iprot.readI32();
-
 
40154
        else:
-
 
40155
          iprot.skip(ftype)
-
 
40156
      else:
-
 
40157
        iprot.skip(ftype)
-
 
40158
      iprot.readFieldEnd()
-
 
40159
    iprot.readStructEnd()
-
 
40160
 
-
 
40161
  def write(self, oprot):
-
 
40162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40164
      return
-
 
40165
    oprot.writeStructBegin('getAmazonFbaSalesSnapshotForDays_args')
-
 
40166
    if self.days is not None:
-
 
40167
      oprot.writeFieldBegin('days', TType.I32, 1)
-
 
40168
      oprot.writeI32(self.days)
-
 
40169
      oprot.writeFieldEnd()
-
 
40170
    oprot.writeFieldStop()
-
 
40171
    oprot.writeStructEnd()
-
 
40172
 
-
 
40173
  def validate(self):
-
 
40174
    return
-
 
40175
 
-
 
40176
 
-
 
40177
  def __repr__(self):
-
 
40178
    L = ['%s=%r' % (key, value)
-
 
40179
      for key, value in self.__dict__.iteritems()]
-
 
40180
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40181
 
-
 
40182
  def __eq__(self, other):
-
 
40183
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40184
 
-
 
40185
  def __ne__(self, other):
-
 
40186
    return not (self == other)
-
 
40187
 
-
 
40188
class getAmazonFbaSalesSnapshotForDays_result:
-
 
40189
  """
-
 
40190
  Attributes:
-
 
40191
   - success
-
 
40192
  """
-
 
40193
 
-
 
40194
  thrift_spec = (
-
 
40195
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaSalesSnapshot, AmazonFbaSalesSnapshot.thrift_spec)), None, ), # 0
-
 
40196
  )
-
 
40197
 
-
 
40198
  def __init__(self, success=None,):
-
 
40199
    self.success = success
-
 
40200
 
-
 
40201
  def read(self, iprot):
-
 
40202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40204
      return
-
 
40205
    iprot.readStructBegin()
-
 
40206
    while True:
-
 
40207
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40208
      if ftype == TType.STOP:
-
 
40209
        break
-
 
40210
      if fid == 0:
-
 
40211
        if ftype == TType.LIST:
-
 
40212
          self.success = []
-
 
40213
          (_etype905, _size902) = iprot.readListBegin()
-
 
40214
          for _i906 in xrange(_size902):
-
 
40215
            _elem907 = AmazonFbaSalesSnapshot()
-
 
40216
            _elem907.read(iprot)
-
 
40217
            self.success.append(_elem907)
-
 
40218
          iprot.readListEnd()
-
 
40219
        else:
-
 
40220
          iprot.skip(ftype)
-
 
40221
      else:
-
 
40222
        iprot.skip(ftype)
-
 
40223
      iprot.readFieldEnd()
-
 
40224
    iprot.readStructEnd()
-
 
40225
 
-
 
40226
  def write(self, oprot):
-
 
40227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40229
      return
-
 
40230
    oprot.writeStructBegin('getAmazonFbaSalesSnapshotForDays_result')
-
 
40231
    if self.success is not None:
-
 
40232
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
40233
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
40234
      for iter908 in self.success:
-
 
40235
        iter908.write(oprot)
-
 
40236
      oprot.writeListEnd()
-
 
40237
      oprot.writeFieldEnd()
-
 
40238
    oprot.writeFieldStop()
-
 
40239
    oprot.writeStructEnd()
-
 
40240
 
-
 
40241
  def validate(self):
-
 
40242
    return
-
 
40243
 
-
 
40244
 
-
 
40245
  def __repr__(self):
-
 
40246
    L = ['%s=%r' % (key, value)
-
 
40247
      for key, value in self.__dict__.iteritems()]
-
 
40248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40249
 
-
 
40250
  def __eq__(self, other):
-
 
40251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40252
 
-
 
40253
  def __ne__(self, other):
-
 
40254
    return not (self == other)
-
 
40255
 
-
 
40256
class getAmazonFbaSalesLatestSnapshotForItem_args:
-
 
40257
  """
-
 
40258
  Attributes:
-
 
40259
   - item_id
-
 
40260
  """
-
 
40261
 
-
 
40262
  thrift_spec = (
-
 
40263
    None, # 0
-
 
40264
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
40265
  )
-
 
40266
 
-
 
40267
  def __init__(self, item_id=None,):
-
 
40268
    self.item_id = item_id
-
 
40269
 
-
 
40270
  def read(self, iprot):
-
 
40271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40273
      return
-
 
40274
    iprot.readStructBegin()
-
 
40275
    while True:
-
 
40276
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40277
      if ftype == TType.STOP:
-
 
40278
        break
-
 
40279
      if fid == 1:
-
 
40280
        if ftype == TType.I64:
-
 
40281
          self.item_id = iprot.readI64();
-
 
40282
        else:
-
 
40283
          iprot.skip(ftype)
-
 
40284
      else:
-
 
40285
        iprot.skip(ftype)
-
 
40286
      iprot.readFieldEnd()
-
 
40287
    iprot.readStructEnd()
-
 
40288
 
-
 
40289
  def write(self, oprot):
-
 
40290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40292
      return
-
 
40293
    oprot.writeStructBegin('getAmazonFbaSalesLatestSnapshotForItem_args')
-
 
40294
    if self.item_id is not None:
-
 
40295
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
40296
      oprot.writeI64(self.item_id)
-
 
40297
      oprot.writeFieldEnd()
-
 
40298
    oprot.writeFieldStop()
-
 
40299
    oprot.writeStructEnd()
-
 
40300
 
-
 
40301
  def validate(self):
-
 
40302
    return
-
 
40303
 
-
 
40304
 
-
 
40305
  def __repr__(self):
-
 
40306
    L = ['%s=%r' % (key, value)
-
 
40307
      for key, value in self.__dict__.iteritems()]
-
 
40308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40309
 
-
 
40310
  def __eq__(self, other):
-
 
40311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40312
 
-
 
40313
  def __ne__(self, other):
-
 
40314
    return not (self == other)
-
 
40315
 
-
 
40316
class getAmazonFbaSalesLatestSnapshotForItem_result:
-
 
40317
  """
-
 
40318
  Attributes:
-
 
40319
   - success
-
 
40320
  """
-
 
40321
 
-
 
40322
  thrift_spec = (
-
 
40323
    (0, TType.STRUCT, 'success', (AmazonFbaSalesSnapshot, AmazonFbaSalesSnapshot.thrift_spec), None, ), # 0
-
 
40324
  )
-
 
40325
 
-
 
40326
  def __init__(self, success=None,):
-
 
40327
    self.success = success
-
 
40328
 
-
 
40329
  def read(self, iprot):
-
 
40330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40332
      return
-
 
40333
    iprot.readStructBegin()
-
 
40334
    while True:
-
 
40335
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40336
      if ftype == TType.STOP:
-
 
40337
        break
-
 
40338
      if fid == 0:
-
 
40339
        if ftype == TType.STRUCT:
-
 
40340
          self.success = AmazonFbaSalesSnapshot()
-
 
40341
          self.success.read(iprot)
-
 
40342
        else:
-
 
40343
          iprot.skip(ftype)
-
 
40344
      else:
-
 
40345
        iprot.skip(ftype)
-
 
40346
      iprot.readFieldEnd()
-
 
40347
    iprot.readStructEnd()
-
 
40348
 
-
 
40349
  def write(self, oprot):
-
 
40350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40352
      return
-
 
40353
    oprot.writeStructBegin('getAmazonFbaSalesLatestSnapshotForItem_result')
-
 
40354
    if self.success is not None:
-
 
40355
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
40356
      self.success.write(oprot)
-
 
40357
      oprot.writeFieldEnd()
-
 
40358
    oprot.writeFieldStop()
39863
    oprot.writeStructEnd()
40359
    oprot.writeStructEnd()
39864
 
40360
 
39865
  def validate(self):
40361
  def validate(self):
39866
    return
40362
    return
39867
 
40363