Subversion Repositories SmartDukaan

Rev

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

Rev 7149 Rev 7281
Line 455... Line 455...
455
    """
455
    """
456
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
456
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
457
    """
457
    """
458
    pass
458
    pass
459
 
459
 
-
 
460
  def getWarehouseName(self, warehouse_id):
-
 
461
    """
-
 
462
    Parameters:
-
 
463
     - warehouse_id
-
 
464
    """
-
 
465
    pass
-
 
466
 
-
 
467
  def getAmazonInventoryForItem(self, item_id):
-
 
468
    """
-
 
469
    Parameters:
-
 
470
     - item_id
-
 
471
    """
-
 
472
    pass
-
 
473
 
-
 
474
  def getAllAmazonInventory(self, ):
-
 
475
    pass
-
 
476
 
-
 
477
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
-
 
478
    """
-
 
479
    Parameters:
-
 
480
     - amazonInventorySnapshot
-
 
481
    """
-
 
482
    pass
-
 
483
 
460
 
484
 
461
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
485
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
462
  def __init__(self, iprot, oprot=None):
486
  def __init__(self, iprot, oprot=None):
463
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
487
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
464
 
488
 
Line 2096... Line 2120...
2096
    self._iprot.readMessageEnd()
2120
    self._iprot.readMessageEnd()
2097
    if result.success is not None:
2121
    if result.success is not None:
2098
      return result.success
2122
      return result.success
2099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2123
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2100
 
2124
 
-
 
2125
  def getWarehouseName(self, warehouse_id):
-
 
2126
    """
-
 
2127
    Parameters:
-
 
2128
     - warehouse_id
-
 
2129
    """
-
 
2130
    self.send_getWarehouseName(warehouse_id)
-
 
2131
    return self.recv_getWarehouseName()
-
 
2132
 
-
 
2133
  def send_getWarehouseName(self, warehouse_id):
-
 
2134
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
-
 
2135
    args = getWarehouseName_args()
-
 
2136
    args.warehouse_id = warehouse_id
-
 
2137
    args.write(self._oprot)
-
 
2138
    self._oprot.writeMessageEnd()
-
 
2139
    self._oprot.trans.flush()
-
 
2140
 
-
 
2141
  def recv_getWarehouseName(self, ):
-
 
2142
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2143
    if mtype == TMessageType.EXCEPTION:
-
 
2144
      x = TApplicationException()
-
 
2145
      x.read(self._iprot)
-
 
2146
      self._iprot.readMessageEnd()
-
 
2147
      raise x
-
 
2148
    result = getWarehouseName_result()
-
 
2149
    result.read(self._iprot)
-
 
2150
    self._iprot.readMessageEnd()
-
 
2151
    if result.success is not None:
-
 
2152
      return result.success
-
 
2153
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
-
 
2154
 
-
 
2155
  def getAmazonInventoryForItem(self, item_id):
-
 
2156
    """
-
 
2157
    Parameters:
-
 
2158
     - item_id
-
 
2159
    """
-
 
2160
    self.send_getAmazonInventoryForItem(item_id)
-
 
2161
    return self.recv_getAmazonInventoryForItem()
-
 
2162
 
-
 
2163
  def send_getAmazonInventoryForItem(self, item_id):
-
 
2164
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
-
 
2165
    args = getAmazonInventoryForItem_args()
-
 
2166
    args.item_id = item_id
-
 
2167
    args.write(self._oprot)
-
 
2168
    self._oprot.writeMessageEnd()
-
 
2169
    self._oprot.trans.flush()
-
 
2170
 
-
 
2171
  def recv_getAmazonInventoryForItem(self, ):
-
 
2172
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2173
    if mtype == TMessageType.EXCEPTION:
-
 
2174
      x = TApplicationException()
-
 
2175
      x.read(self._iprot)
-
 
2176
      self._iprot.readMessageEnd()
-
 
2177
      raise x
-
 
2178
    result = getAmazonInventoryForItem_result()
-
 
2179
    result.read(self._iprot)
-
 
2180
    self._iprot.readMessageEnd()
-
 
2181
    if result.success is not None:
-
 
2182
      return result.success
-
 
2183
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
-
 
2184
 
-
 
2185
  def getAllAmazonInventory(self, ):
-
 
2186
    self.send_getAllAmazonInventory()
-
 
2187
    return self.recv_getAllAmazonInventory()
-
 
2188
 
-
 
2189
  def send_getAllAmazonInventory(self, ):
-
 
2190
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
-
 
2191
    args = getAllAmazonInventory_args()
-
 
2192
    args.write(self._oprot)
-
 
2193
    self._oprot.writeMessageEnd()
-
 
2194
    self._oprot.trans.flush()
-
 
2195
 
-
 
2196
  def recv_getAllAmazonInventory(self, ):
-
 
2197
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2198
    if mtype == TMessageType.EXCEPTION:
-
 
2199
      x = TApplicationException()
-
 
2200
      x.read(self._iprot)
-
 
2201
      self._iprot.readMessageEnd()
-
 
2202
      raise x
-
 
2203
    result = getAllAmazonInventory_result()
-
 
2204
    result.read(self._iprot)
-
 
2205
    self._iprot.readMessageEnd()
-
 
2206
    if result.success is not None:
-
 
2207
      return result.success
-
 
2208
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
-
 
2209
 
-
 
2210
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
-
 
2211
    """
-
 
2212
    Parameters:
-
 
2213
     - amazonInventorySnapshot
-
 
2214
    """
-
 
2215
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot)
-
 
2216
    self.recv_addOrUpdateAmazonInventoryForItem()
-
 
2217
 
-
 
2218
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
-
 
2219
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
-
 
2220
    args = addOrUpdateAmazonInventoryForItem_args()
-
 
2221
    args.amazonInventorySnapshot = amazonInventorySnapshot
-
 
2222
    args.write(self._oprot)
-
 
2223
    self._oprot.writeMessageEnd()
-
 
2224
    self._oprot.trans.flush()
-
 
2225
 
-
 
2226
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
-
 
2227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2228
    if mtype == TMessageType.EXCEPTION:
-
 
2229
      x = TApplicationException()
-
 
2230
      x.read(self._iprot)
-
 
2231
      self._iprot.readMessageEnd()
-
 
2232
      raise x
-
 
2233
    result = addOrUpdateAmazonInventoryForItem_result()
-
 
2234
    result.read(self._iprot)
-
 
2235
    self._iprot.readMessageEnd()
-
 
2236
    return
-
 
2237
 
2101
 
2238
 
2102
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2239
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2103
  def __init__(self, handler):
2240
  def __init__(self, handler):
2104
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2241
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2105
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2242
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
Line 2150... Line 2287...
2150
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
2287
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
2151
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
2288
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
2152
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
2289
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
2153
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
2290
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
2154
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
2291
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
-
 
2292
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
-
 
2293
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
-
 
2294
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
-
 
2295
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
2155
 
2296
 
2156
  def process(self, iprot, oprot):
2297
  def process(self, iprot, oprot):
2157
    (name, type, seqid) = iprot.readMessageBegin()
2298
    (name, type, seqid) = iprot.readMessageBegin()
2158
    if name not in self._processMap:
2299
    if name not in self._processMap:
2159
      iprot.skip(TType.STRUCT)
2300
      iprot.skip(TType.STRUCT)
Line 2782... Line 2923...
2782
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
2923
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
2783
    result.write(oprot)
2924
    result.write(oprot)
2784
    oprot.writeMessageEnd()
2925
    oprot.writeMessageEnd()
2785
    oprot.trans.flush()
2926
    oprot.trans.flush()
2786
 
2927
 
-
 
2928
  def process_getWarehouseName(self, seqid, iprot, oprot):
-
 
2929
    args = getWarehouseName_args()
-
 
2930
    args.read(iprot)
-
 
2931
    iprot.readMessageEnd()
-
 
2932
    result = getWarehouseName_result()
-
 
2933
    result.success = self._handler.getWarehouseName(args.warehouse_id)
-
 
2934
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
-
 
2935
    result.write(oprot)
-
 
2936
    oprot.writeMessageEnd()
-
 
2937
    oprot.trans.flush()
-
 
2938
 
-
 
2939
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
-
 
2940
    args = getAmazonInventoryForItem_args()
-
 
2941
    args.read(iprot)
-
 
2942
    iprot.readMessageEnd()
-
 
2943
    result = getAmazonInventoryForItem_result()
-
 
2944
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
-
 
2945
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
-
 
2946
    result.write(oprot)
-
 
2947
    oprot.writeMessageEnd()
-
 
2948
    oprot.trans.flush()
-
 
2949
 
-
 
2950
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
-
 
2951
    args = getAllAmazonInventory_args()
-
 
2952
    args.read(iprot)
-
 
2953
    iprot.readMessageEnd()
-
 
2954
    result = getAllAmazonInventory_result()
-
 
2955
    result.success = self._handler.getAllAmazonInventory()
-
 
2956
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
-
 
2957
    result.write(oprot)
-
 
2958
    oprot.writeMessageEnd()
-
 
2959
    oprot.trans.flush()
-
 
2960
 
-
 
2961
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
-
 
2962
    args = addOrUpdateAmazonInventoryForItem_args()
-
 
2963
    args.read(iprot)
-
 
2964
    iprot.readMessageEnd()
-
 
2965
    result = addOrUpdateAmazonInventoryForItem_result()
-
 
2966
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot)
-
 
2967
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
-
 
2968
    result.write(oprot)
-
 
2969
    oprot.writeMessageEnd()
-
 
2970
    oprot.trans.flush()
-
 
2971
 
2787
 
2972
 
2788
# HELPER FUNCTIONS AND STRUCTURES
2973
# HELPER FUNCTIONS AND STRUCTURES
2789
 
2974
 
2790
class addWarehouse_args:
2975
class addWarehouse_args:
2791
  """
2976
  """
Line 9381... Line 9566...
9381
    oprot.writeFieldStop()
9566
    oprot.writeFieldStop()
9382
    oprot.writeStructEnd()
9567
    oprot.writeStructEnd()
9383
 
9568
 
9384
  def validate(self):
9569
  def validate(self):
9385
    return
9570
    return
-
 
9571
 
-
 
9572
 
-
 
9573
  def __repr__(self):
-
 
9574
    L = ['%s=%r' % (key, value)
-
 
9575
      for key, value in self.__dict__.iteritems()]
-
 
9576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9577
 
-
 
9578
  def __eq__(self, other):
-
 
9579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9580
 
-
 
9581
  def __ne__(self, other):
-
 
9582
    return not (self == other)
-
 
9583
 
-
 
9584
class getWarehouseName_args:
-
 
9585
  """
-
 
9586
  Attributes:
-
 
9587
   - warehouse_id
-
 
9588
  """
-
 
9589
 
-
 
9590
  thrift_spec = (
-
 
9591
    None, # 0
-
 
9592
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
-
 
9593
  )
-
 
9594
 
-
 
9595
  def __init__(self, warehouse_id=None,):
-
 
9596
    self.warehouse_id = warehouse_id
-
 
9597
 
-
 
9598
  def read(self, iprot):
-
 
9599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9601
      return
-
 
9602
    iprot.readStructBegin()
-
 
9603
    while True:
-
 
9604
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9605
      if ftype == TType.STOP:
-
 
9606
        break
-
 
9607
      if fid == 1:
-
 
9608
        if ftype == TType.I64:
-
 
9609
          self.warehouse_id = iprot.readI64();
-
 
9610
        else:
-
 
9611
          iprot.skip(ftype)
-
 
9612
      else:
-
 
9613
        iprot.skip(ftype)
-
 
9614
      iprot.readFieldEnd()
-
 
9615
    iprot.readStructEnd()
-
 
9616
 
-
 
9617
  def write(self, oprot):
-
 
9618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9620
      return
-
 
9621
    oprot.writeStructBegin('getWarehouseName_args')
-
 
9622
    if self.warehouse_id is not None:
-
 
9623
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
-
 
9624
      oprot.writeI64(self.warehouse_id)
-
 
9625
      oprot.writeFieldEnd()
-
 
9626
    oprot.writeFieldStop()
-
 
9627
    oprot.writeStructEnd()
-
 
9628
 
-
 
9629
  def validate(self):
-
 
9630
    return
-
 
9631
 
-
 
9632
 
-
 
9633
  def __repr__(self):
-
 
9634
    L = ['%s=%r' % (key, value)
-
 
9635
      for key, value in self.__dict__.iteritems()]
-
 
9636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9637
 
-
 
9638
  def __eq__(self, other):
-
 
9639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9640
 
-
 
9641
  def __ne__(self, other):
-
 
9642
    return not (self == other)
-
 
9643
 
-
 
9644
class getWarehouseName_result:
-
 
9645
  """
-
 
9646
  Attributes:
-
 
9647
   - success
-
 
9648
  """
-
 
9649
 
-
 
9650
  thrift_spec = (
-
 
9651
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
9652
  )
-
 
9653
 
-
 
9654
  def __init__(self, success=None,):
-
 
9655
    self.success = success
-
 
9656
 
-
 
9657
  def read(self, iprot):
-
 
9658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9660
      return
-
 
9661
    iprot.readStructBegin()
-
 
9662
    while True:
-
 
9663
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9664
      if ftype == TType.STOP:
-
 
9665
        break
-
 
9666
      if fid == 0:
-
 
9667
        if ftype == TType.STRING:
-
 
9668
          self.success = iprot.readString();
-
 
9669
        else:
-
 
9670
          iprot.skip(ftype)
-
 
9671
      else:
-
 
9672
        iprot.skip(ftype)
-
 
9673
      iprot.readFieldEnd()
-
 
9674
    iprot.readStructEnd()
-
 
9675
 
-
 
9676
  def write(self, oprot):
-
 
9677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9679
      return
-
 
9680
    oprot.writeStructBegin('getWarehouseName_result')
-
 
9681
    if self.success is not None:
-
 
9682
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
9683
      oprot.writeString(self.success)
-
 
9684
      oprot.writeFieldEnd()
-
 
9685
    oprot.writeFieldStop()
-
 
9686
    oprot.writeStructEnd()
-
 
9687
 
-
 
9688
  def validate(self):
-
 
9689
    return
-
 
9690
 
-
 
9691
 
-
 
9692
  def __repr__(self):
-
 
9693
    L = ['%s=%r' % (key, value)
-
 
9694
      for key, value in self.__dict__.iteritems()]
-
 
9695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9696
 
-
 
9697
  def __eq__(self, other):
-
 
9698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9699
 
-
 
9700
  def __ne__(self, other):
-
 
9701
    return not (self == other)
-
 
9702
 
-
 
9703
class getAmazonInventoryForItem_args:
-
 
9704
  """
-
 
9705
  Attributes:
-
 
9706
   - item_id
-
 
9707
  """
-
 
9708
 
-
 
9709
  thrift_spec = (
-
 
9710
    None, # 0
-
 
9711
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
9712
  )
-
 
9713
 
-
 
9714
  def __init__(self, item_id=None,):
-
 
9715
    self.item_id = item_id
-
 
9716
 
-
 
9717
  def read(self, iprot):
-
 
9718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9720
      return
-
 
9721
    iprot.readStructBegin()
-
 
9722
    while True:
-
 
9723
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9724
      if ftype == TType.STOP:
-
 
9725
        break
-
 
9726
      if fid == 1:
-
 
9727
        if ftype == TType.I64:
-
 
9728
          self.item_id = iprot.readI64();
-
 
9729
        else:
-
 
9730
          iprot.skip(ftype)
-
 
9731
      else:
-
 
9732
        iprot.skip(ftype)
-
 
9733
      iprot.readFieldEnd()
-
 
9734
    iprot.readStructEnd()
-
 
9735
 
-
 
9736
  def write(self, oprot):
-
 
9737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9739
      return
-
 
9740
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
-
 
9741
    if self.item_id is not None:
-
 
9742
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
9743
      oprot.writeI64(self.item_id)
-
 
9744
      oprot.writeFieldEnd()
-
 
9745
    oprot.writeFieldStop()
-
 
9746
    oprot.writeStructEnd()
-
 
9747
 
-
 
9748
  def validate(self):
-
 
9749
    return
-
 
9750
 
-
 
9751
 
-
 
9752
  def __repr__(self):
-
 
9753
    L = ['%s=%r' % (key, value)
-
 
9754
      for key, value in self.__dict__.iteritems()]
-
 
9755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9756
 
-
 
9757
  def __eq__(self, other):
-
 
9758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9759
 
-
 
9760
  def __ne__(self, other):
-
 
9761
    return not (self == other)
-
 
9762
 
-
 
9763
class getAmazonInventoryForItem_result:
-
 
9764
  """
-
 
9765
  Attributes:
-
 
9766
   - success
-
 
9767
  """
-
 
9768
 
-
 
9769
  thrift_spec = (
-
 
9770
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
-
 
9771
  )
-
 
9772
 
-
 
9773
  def __init__(self, success=None,):
-
 
9774
    self.success = success
-
 
9775
 
-
 
9776
  def read(self, iprot):
-
 
9777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9779
      return
-
 
9780
    iprot.readStructBegin()
-
 
9781
    while True:
-
 
9782
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9783
      if ftype == TType.STOP:
-
 
9784
        break
-
 
9785
      if fid == 0:
-
 
9786
        if ftype == TType.STRUCT:
-
 
9787
          self.success = AmazonInventorySnapshot()
-
 
9788
          self.success.read(iprot)
-
 
9789
        else:
-
 
9790
          iprot.skip(ftype)
-
 
9791
      else:
-
 
9792
        iprot.skip(ftype)
-
 
9793
      iprot.readFieldEnd()
-
 
9794
    iprot.readStructEnd()
-
 
9795
 
-
 
9796
  def write(self, oprot):
-
 
9797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9799
      return
-
 
9800
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
-
 
9801
    if self.success is not None:
-
 
9802
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
9803
      self.success.write(oprot)
-
 
9804
      oprot.writeFieldEnd()
-
 
9805
    oprot.writeFieldStop()
-
 
9806
    oprot.writeStructEnd()
-
 
9807
 
-
 
9808
  def validate(self):
-
 
9809
    return
-
 
9810
 
-
 
9811
 
-
 
9812
  def __repr__(self):
-
 
9813
    L = ['%s=%r' % (key, value)
-
 
9814
      for key, value in self.__dict__.iteritems()]
-
 
9815
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9816
 
-
 
9817
  def __eq__(self, other):
-
 
9818
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9819
 
-
 
9820
  def __ne__(self, other):
-
 
9821
    return not (self == other)
-
 
9822
 
-
 
9823
class getAllAmazonInventory_args:
-
 
9824
 
-
 
9825
  thrift_spec = (
-
 
9826
  )
-
 
9827
 
-
 
9828
  def read(self, iprot):
-
 
9829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9831
      return
-
 
9832
    iprot.readStructBegin()
-
 
9833
    while True:
-
 
9834
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9835
      if ftype == TType.STOP:
-
 
9836
        break
-
 
9837
      else:
-
 
9838
        iprot.skip(ftype)
-
 
9839
      iprot.readFieldEnd()
-
 
9840
    iprot.readStructEnd()
-
 
9841
 
-
 
9842
  def write(self, oprot):
-
 
9843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9845
      return
-
 
9846
    oprot.writeStructBegin('getAllAmazonInventory_args')
-
 
9847
    oprot.writeFieldStop()
-
 
9848
    oprot.writeStructEnd()
-
 
9849
 
-
 
9850
  def validate(self):
-
 
9851
    return
-
 
9852
 
-
 
9853
 
-
 
9854
  def __repr__(self):
-
 
9855
    L = ['%s=%r' % (key, value)
-
 
9856
      for key, value in self.__dict__.iteritems()]
-
 
9857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9858
 
-
 
9859
  def __eq__(self, other):
-
 
9860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9861
 
-
 
9862
  def __ne__(self, other):
-
 
9863
    return not (self == other)
-
 
9864
 
-
 
9865
class getAllAmazonInventory_result:
-
 
9866
  """
-
 
9867
  Attributes:
-
 
9868
   - success
-
 
9869
  """
-
 
9870
 
-
 
9871
  thrift_spec = (
-
 
9872
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
-
 
9873
  )
-
 
9874
 
-
 
9875
  def __init__(self, success=None,):
-
 
9876
    self.success = success
-
 
9877
 
-
 
9878
  def read(self, iprot):
-
 
9879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9881
      return
-
 
9882
    iprot.readStructBegin()
-
 
9883
    while True:
-
 
9884
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9885
      if ftype == TType.STOP:
-
 
9886
        break
-
 
9887
      if fid == 0:
-
 
9888
        if ftype == TType.LIST:
-
 
9889
          self.success = []
-
 
9890
          (_etype217, _size214) = iprot.readListBegin()
-
 
9891
          for _i218 in xrange(_size214):
-
 
9892
            _elem219 = AmazonInventorySnapshot()
-
 
9893
            _elem219.read(iprot)
-
 
9894
            self.success.append(_elem219)
-
 
9895
          iprot.readListEnd()
-
 
9896
        else:
-
 
9897
          iprot.skip(ftype)
-
 
9898
      else:
-
 
9899
        iprot.skip(ftype)
-
 
9900
      iprot.readFieldEnd()
-
 
9901
    iprot.readStructEnd()
-
 
9902
 
-
 
9903
  def write(self, oprot):
-
 
9904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9906
      return
-
 
9907
    oprot.writeStructBegin('getAllAmazonInventory_result')
-
 
9908
    if self.success is not None:
-
 
9909
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
9910
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
9911
      for iter220 in self.success:
-
 
9912
        iter220.write(oprot)
-
 
9913
      oprot.writeListEnd()
-
 
9914
      oprot.writeFieldEnd()
-
 
9915
    oprot.writeFieldStop()
-
 
9916
    oprot.writeStructEnd()
-
 
9917
 
-
 
9918
  def validate(self):
-
 
9919
    return
-
 
9920
 
-
 
9921
 
-
 
9922
  def __repr__(self):
-
 
9923
    L = ['%s=%r' % (key, value)
-
 
9924
      for key, value in self.__dict__.iteritems()]
-
 
9925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9926
 
-
 
9927
  def __eq__(self, other):
-
 
9928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9929
 
-
 
9930
  def __ne__(self, other):
-
 
9931
    return not (self == other)
-
 
9932
 
-
 
9933
class addOrUpdateAmazonInventoryForItem_args:
-
 
9934
  """
-
 
9935
  Attributes:
-
 
9936
   - amazonInventorySnapshot
-
 
9937
  """
-
 
9938
 
-
 
9939
  thrift_spec = (
-
 
9940
    None, # 0
-
 
9941
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
-
 
9942
  )
-
 
9943
 
-
 
9944
  def __init__(self, amazonInventorySnapshot=None,):
-
 
9945
    self.amazonInventorySnapshot = amazonInventorySnapshot
-
 
9946
 
-
 
9947
  def read(self, iprot):
-
 
9948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9950
      return
-
 
9951
    iprot.readStructBegin()
-
 
9952
    while True:
-
 
9953
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9954
      if ftype == TType.STOP:
-
 
9955
        break
-
 
9956
      if fid == 1:
-
 
9957
        if ftype == TType.STRUCT:
-
 
9958
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
-
 
9959
          self.amazonInventorySnapshot.read(iprot)
-
 
9960
        else:
-
 
9961
          iprot.skip(ftype)
-
 
9962
      else:
-
 
9963
        iprot.skip(ftype)
-
 
9964
      iprot.readFieldEnd()
-
 
9965
    iprot.readStructEnd()
-
 
9966
 
-
 
9967
  def write(self, oprot):
-
 
9968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9970
      return
-
 
9971
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
-
 
9972
    if self.amazonInventorySnapshot is not None:
-
 
9973
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
-
 
9974
      self.amazonInventorySnapshot.write(oprot)
-
 
9975
      oprot.writeFieldEnd()
-
 
9976
    oprot.writeFieldStop()
-
 
9977
    oprot.writeStructEnd()
-
 
9978
 
-
 
9979
  def validate(self):
-
 
9980
    return
-
 
9981
 
-
 
9982
 
-
 
9983
  def __repr__(self):
-
 
9984
    L = ['%s=%r' % (key, value)
-
 
9985
      for key, value in self.__dict__.iteritems()]
-
 
9986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9987
 
-
 
9988
  def __eq__(self, other):
-
 
9989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9990
 
-
 
9991
  def __ne__(self, other):
-
 
9992
    return not (self == other)
-
 
9993
 
-
 
9994
class addOrUpdateAmazonInventoryForItem_result:
-
 
9995
 
-
 
9996
  thrift_spec = (
-
 
9997
  )
-
 
9998
 
-
 
9999
  def read(self, iprot):
-
 
10000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10002
      return
-
 
10003
    iprot.readStructBegin()
-
 
10004
    while True:
-
 
10005
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10006
      if ftype == TType.STOP:
-
 
10007
        break
-
 
10008
      else:
-
 
10009
        iprot.skip(ftype)
-
 
10010
      iprot.readFieldEnd()
-
 
10011
    iprot.readStructEnd()
-
 
10012
 
-
 
10013
  def write(self, oprot):
-
 
10014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10016
      return
-
 
10017
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
-
 
10018
    oprot.writeFieldStop()
-
 
10019
    oprot.writeStructEnd()
-
 
10020
 
-
 
10021
  def validate(self):
-
 
10022
    return
9386
 
10023
 
9387
 
10024
 
9388
  def __repr__(self):
10025
  def __repr__(self):
9389
    L = ['%s=%r' % (key, value)
10026
    L = ['%s=%r' % (key, value)
9390
      for key, value in self.__dict__.iteritems()]
10027
      for key, value in self.__dict__.iteritems()]