Subversion Repositories SmartDukaan

Rev

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

Rev 6531 Rev 6821
Line 414... Line 414...
414
     - offset
414
     - offset
415
     - limit
415
     - limit
416
    """
416
    """
417
    pass
417
    pass
418
 
418
 
-
 
419
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
-
 
420
    """
-
 
421
    Parameters:
-
 
422
     - item_id
-
 
423
     - numOfDaysStock
-
 
424
     - minStockLevel
-
 
425
    """
-
 
426
    pass
-
 
427
 
-
 
428
  def getItemStockPurchaseParams(self, itemId):
-
 
429
    """
-
 
430
    Parameters:
-
 
431
     - itemId
-
 
432
    """
-
 
433
    pass
-
 
434
 
-
 
435
  def addOosStatusForItem(self, oosStatusMap, date):
-
 
436
    """
-
 
437
    Parameters:
-
 
438
     - oosStatusMap
-
 
439
     - date
-
 
440
    """
-
 
441
    pass
-
 
442
 
419
 
443
 
420
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
444
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
421
  def __init__(self, iprot, oprot=None):
445
  def __init__(self, iprot, oprot=None):
422
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
446
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
423
 
447
 
Line 1878... Line 1902...
1878
    self._iprot.readMessageEnd()
1902
    self._iprot.readMessageEnd()
1879
    if result.success is not None:
1903
    if result.success is not None:
1880
      return result.success
1904
      return result.success
1881
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1905
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1882
 
1906
 
-
 
1907
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
-
 
1908
    """
-
 
1909
    Parameters:
-
 
1910
     - item_id
-
 
1911
     - numOfDaysStock
-
 
1912
     - minStockLevel
-
 
1913
    """
-
 
1914
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
-
 
1915
    self.recv_updateItemStockPurchaseParams()
-
 
1916
 
-
 
1917
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
-
 
1918
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
-
 
1919
    args = updateItemStockPurchaseParams_args()
-
 
1920
    args.item_id = item_id
-
 
1921
    args.numOfDaysStock = numOfDaysStock
-
 
1922
    args.minStockLevel = minStockLevel
-
 
1923
    args.write(self._oprot)
-
 
1924
    self._oprot.writeMessageEnd()
-
 
1925
    self._oprot.trans.flush()
-
 
1926
 
-
 
1927
  def recv_updateItemStockPurchaseParams(self, ):
-
 
1928
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1929
    if mtype == TMessageType.EXCEPTION:
-
 
1930
      x = TApplicationException()
-
 
1931
      x.read(self._iprot)
-
 
1932
      self._iprot.readMessageEnd()
-
 
1933
      raise x
-
 
1934
    result = updateItemStockPurchaseParams_result()
-
 
1935
    result.read(self._iprot)
-
 
1936
    self._iprot.readMessageEnd()
-
 
1937
    return
-
 
1938
 
-
 
1939
  def getItemStockPurchaseParams(self, itemId):
-
 
1940
    """
-
 
1941
    Parameters:
-
 
1942
     - itemId
-
 
1943
    """
-
 
1944
    self.send_getItemStockPurchaseParams(itemId)
-
 
1945
    return self.recv_getItemStockPurchaseParams()
-
 
1946
 
-
 
1947
  def send_getItemStockPurchaseParams(self, itemId):
-
 
1948
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
-
 
1949
    args = getItemStockPurchaseParams_args()
-
 
1950
    args.itemId = itemId
-
 
1951
    args.write(self._oprot)
-
 
1952
    self._oprot.writeMessageEnd()
-
 
1953
    self._oprot.trans.flush()
-
 
1954
 
-
 
1955
  def recv_getItemStockPurchaseParams(self, ):
-
 
1956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1957
    if mtype == TMessageType.EXCEPTION:
-
 
1958
      x = TApplicationException()
-
 
1959
      x.read(self._iprot)
-
 
1960
      self._iprot.readMessageEnd()
-
 
1961
      raise x
-
 
1962
    result = getItemStockPurchaseParams_result()
-
 
1963
    result.read(self._iprot)
-
 
1964
    self._iprot.readMessageEnd()
-
 
1965
    if result.success is not None:
-
 
1966
      return result.success
-
 
1967
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
-
 
1968
 
-
 
1969
  def addOosStatusForItem(self, oosStatusMap, date):
-
 
1970
    """
-
 
1971
    Parameters:
-
 
1972
     - oosStatusMap
-
 
1973
     - date
-
 
1974
    """
-
 
1975
    self.send_addOosStatusForItem(oosStatusMap, date)
-
 
1976
    self.recv_addOosStatusForItem()
-
 
1977
 
-
 
1978
  def send_addOosStatusForItem(self, oosStatusMap, date):
-
 
1979
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
-
 
1980
    args = addOosStatusForItem_args()
-
 
1981
    args.oosStatusMap = oosStatusMap
-
 
1982
    args.date = date
-
 
1983
    args.write(self._oprot)
-
 
1984
    self._oprot.writeMessageEnd()
-
 
1985
    self._oprot.trans.flush()
-
 
1986
 
-
 
1987
  def recv_addOosStatusForItem(self, ):
-
 
1988
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1989
    if mtype == TMessageType.EXCEPTION:
-
 
1990
      x = TApplicationException()
-
 
1991
      x.read(self._iprot)
-
 
1992
      self._iprot.readMessageEnd()
-
 
1993
      raise x
-
 
1994
    result = addOosStatusForItem_result()
-
 
1995
    result.read(self._iprot)
-
 
1996
    self._iprot.readMessageEnd()
-
 
1997
    return
-
 
1998
 
1883
 
1999
 
1884
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2000
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1885
  def __init__(self, handler):
2001
  def __init__(self, handler):
1886
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2002
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1887
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2003
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
Line 1926... Line 2042...
1926
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
2042
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
1927
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
2043
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
1928
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
2044
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
1929
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
2045
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
1930
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
2046
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
-
 
2047
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
-
 
2048
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
-
 
2049
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
1931
 
2050
 
1932
  def process(self, iprot, oprot):
2051
  def process(self, iprot, oprot):
1933
    (name, type, seqid) = iprot.readMessageBegin()
2052
    (name, type, seqid) = iprot.readMessageBegin()
1934
    if name not in self._processMap:
2053
    if name not in self._processMap:
1935
      iprot.skip(TType.STRUCT)
2054
      iprot.skip(TType.STRUCT)
Line 2492... Line 2611...
2492
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
2611
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
2493
    result.write(oprot)
2612
    result.write(oprot)
2494
    oprot.writeMessageEnd()
2613
    oprot.writeMessageEnd()
2495
    oprot.trans.flush()
2614
    oprot.trans.flush()
2496
 
2615
 
-
 
2616
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
-
 
2617
    args = updateItemStockPurchaseParams_args()
-
 
2618
    args.read(iprot)
-
 
2619
    iprot.readMessageEnd()
-
 
2620
    result = updateItemStockPurchaseParams_result()
-
 
2621
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
-
 
2622
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
-
 
2623
    result.write(oprot)
-
 
2624
    oprot.writeMessageEnd()
-
 
2625
    oprot.trans.flush()
-
 
2626
 
-
 
2627
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
-
 
2628
    args = getItemStockPurchaseParams_args()
-
 
2629
    args.read(iprot)
-
 
2630
    iprot.readMessageEnd()
-
 
2631
    result = getItemStockPurchaseParams_result()
-
 
2632
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
-
 
2633
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
-
 
2634
    result.write(oprot)
-
 
2635
    oprot.writeMessageEnd()
-
 
2636
    oprot.trans.flush()
-
 
2637
 
-
 
2638
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
-
 
2639
    args = addOosStatusForItem_args()
-
 
2640
    args.read(iprot)
-
 
2641
    iprot.readMessageEnd()
-
 
2642
    result = addOosStatusForItem_result()
-
 
2643
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
-
 
2644
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
-
 
2645
    result.write(oprot)
-
 
2646
    oprot.writeMessageEnd()
-
 
2647
    oprot.trans.flush()
-
 
2648
 
2497
 
2649
 
2498
# HELPER FUNCTIONS AND STRUCTURES
2650
# HELPER FUNCTIONS AND STRUCTURES
2499
 
2651
 
2500
class addWarehouse_args:
2652
class addWarehouse_args:
2501
  """
2653
  """
Line 8361... Line 8513...
8361
    oprot.writeFieldStop()
8513
    oprot.writeFieldStop()
8362
    oprot.writeStructEnd()
8514
    oprot.writeStructEnd()
8363
 
8515
 
8364
  def validate(self):
8516
  def validate(self):
8365
    return
8517
    return
-
 
8518
 
-
 
8519
 
-
 
8520
  def __repr__(self):
-
 
8521
    L = ['%s=%r' % (key, value)
-
 
8522
      for key, value in self.__dict__.iteritems()]
-
 
8523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8524
 
-
 
8525
  def __eq__(self, other):
-
 
8526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8527
 
-
 
8528
  def __ne__(self, other):
-
 
8529
    return not (self == other)
-
 
8530
 
-
 
8531
class updateItemStockPurchaseParams_args:
-
 
8532
  """
-
 
8533
  Attributes:
-
 
8534
   - item_id
-
 
8535
   - numOfDaysStock
-
 
8536
   - minStockLevel
-
 
8537
  """
-
 
8538
 
-
 
8539
  thrift_spec = (
-
 
8540
    None, # 0
-
 
8541
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
8542
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
-
 
8543
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
-
 
8544
  )
-
 
8545
 
-
 
8546
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
-
 
8547
    self.item_id = item_id
-
 
8548
    self.numOfDaysStock = numOfDaysStock
-
 
8549
    self.minStockLevel = minStockLevel
-
 
8550
 
-
 
8551
  def read(self, iprot):
-
 
8552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8554
      return
-
 
8555
    iprot.readStructBegin()
-
 
8556
    while True:
-
 
8557
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8558
      if ftype == TType.STOP:
-
 
8559
        break
-
 
8560
      if fid == 1:
-
 
8561
        if ftype == TType.I64:
-
 
8562
          self.item_id = iprot.readI64();
-
 
8563
        else:
-
 
8564
          iprot.skip(ftype)
-
 
8565
      elif fid == 2:
-
 
8566
        if ftype == TType.I32:
-
 
8567
          self.numOfDaysStock = iprot.readI32();
-
 
8568
        else:
-
 
8569
          iprot.skip(ftype)
-
 
8570
      elif fid == 3:
-
 
8571
        if ftype == TType.I64:
-
 
8572
          self.minStockLevel = iprot.readI64();
-
 
8573
        else:
-
 
8574
          iprot.skip(ftype)
-
 
8575
      else:
-
 
8576
        iprot.skip(ftype)
-
 
8577
      iprot.readFieldEnd()
-
 
8578
    iprot.readStructEnd()
-
 
8579
 
-
 
8580
  def write(self, oprot):
-
 
8581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8583
      return
-
 
8584
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
-
 
8585
    if self.item_id is not None:
-
 
8586
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
8587
      oprot.writeI64(self.item_id)
-
 
8588
      oprot.writeFieldEnd()
-
 
8589
    if self.numOfDaysStock is not None:
-
 
8590
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
-
 
8591
      oprot.writeI32(self.numOfDaysStock)
-
 
8592
      oprot.writeFieldEnd()
-
 
8593
    if self.minStockLevel is not None:
-
 
8594
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
-
 
8595
      oprot.writeI64(self.minStockLevel)
-
 
8596
      oprot.writeFieldEnd()
-
 
8597
    oprot.writeFieldStop()
-
 
8598
    oprot.writeStructEnd()
-
 
8599
 
-
 
8600
  def validate(self):
-
 
8601
    return
-
 
8602
 
-
 
8603
 
-
 
8604
  def __repr__(self):
-
 
8605
    L = ['%s=%r' % (key, value)
-
 
8606
      for key, value in self.__dict__.iteritems()]
-
 
8607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8608
 
-
 
8609
  def __eq__(self, other):
-
 
8610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8611
 
-
 
8612
  def __ne__(self, other):
-
 
8613
    return not (self == other)
-
 
8614
 
-
 
8615
class updateItemStockPurchaseParams_result:
-
 
8616
 
-
 
8617
  thrift_spec = (
-
 
8618
  )
-
 
8619
 
-
 
8620
  def read(self, iprot):
-
 
8621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8623
      return
-
 
8624
    iprot.readStructBegin()
-
 
8625
    while True:
-
 
8626
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8627
      if ftype == TType.STOP:
-
 
8628
        break
-
 
8629
      else:
-
 
8630
        iprot.skip(ftype)
-
 
8631
      iprot.readFieldEnd()
-
 
8632
    iprot.readStructEnd()
-
 
8633
 
-
 
8634
  def write(self, oprot):
-
 
8635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8637
      return
-
 
8638
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
-
 
8639
    oprot.writeFieldStop()
-
 
8640
    oprot.writeStructEnd()
-
 
8641
 
-
 
8642
  def validate(self):
-
 
8643
    return
-
 
8644
 
-
 
8645
 
-
 
8646
  def __repr__(self):
-
 
8647
    L = ['%s=%r' % (key, value)
-
 
8648
      for key, value in self.__dict__.iteritems()]
-
 
8649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8650
 
-
 
8651
  def __eq__(self, other):
-
 
8652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8653
 
-
 
8654
  def __ne__(self, other):
-
 
8655
    return not (self == other)
-
 
8656
 
-
 
8657
class getItemStockPurchaseParams_args:
-
 
8658
  """
-
 
8659
  Attributes:
-
 
8660
   - itemId
-
 
8661
  """
-
 
8662
 
-
 
8663
  thrift_spec = (
-
 
8664
    None, # 0
-
 
8665
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
8666
  )
-
 
8667
 
-
 
8668
  def __init__(self, itemId=None,):
-
 
8669
    self.itemId = itemId
-
 
8670
 
-
 
8671
  def read(self, iprot):
-
 
8672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8674
      return
-
 
8675
    iprot.readStructBegin()
-
 
8676
    while True:
-
 
8677
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8678
      if ftype == TType.STOP:
-
 
8679
        break
-
 
8680
      if fid == 1:
-
 
8681
        if ftype == TType.I64:
-
 
8682
          self.itemId = iprot.readI64();
-
 
8683
        else:
-
 
8684
          iprot.skip(ftype)
-
 
8685
      else:
-
 
8686
        iprot.skip(ftype)
-
 
8687
      iprot.readFieldEnd()
-
 
8688
    iprot.readStructEnd()
-
 
8689
 
-
 
8690
  def write(self, oprot):
-
 
8691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8693
      return
-
 
8694
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
-
 
8695
    if self.itemId is not None:
-
 
8696
      oprot.writeFieldBegin('itemId', TType.I64, 1)
-
 
8697
      oprot.writeI64(self.itemId)
-
 
8698
      oprot.writeFieldEnd()
-
 
8699
    oprot.writeFieldStop()
-
 
8700
    oprot.writeStructEnd()
-
 
8701
 
-
 
8702
  def validate(self):
-
 
8703
    return
-
 
8704
 
-
 
8705
 
-
 
8706
  def __repr__(self):
-
 
8707
    L = ['%s=%r' % (key, value)
-
 
8708
      for key, value in self.__dict__.iteritems()]
-
 
8709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8710
 
-
 
8711
  def __eq__(self, other):
-
 
8712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8713
 
-
 
8714
  def __ne__(self, other):
-
 
8715
    return not (self == other)
-
 
8716
 
-
 
8717
class getItemStockPurchaseParams_result:
-
 
8718
  """
-
 
8719
  Attributes:
-
 
8720
   - success
-
 
8721
  """
-
 
8722
 
-
 
8723
  thrift_spec = (
-
 
8724
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
-
 
8725
  )
-
 
8726
 
-
 
8727
  def __init__(self, success=None,):
-
 
8728
    self.success = success
-
 
8729
 
-
 
8730
  def read(self, iprot):
-
 
8731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8733
      return
-
 
8734
    iprot.readStructBegin()
-
 
8735
    while True:
-
 
8736
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8737
      if ftype == TType.STOP:
-
 
8738
        break
-
 
8739
      if fid == 0:
-
 
8740
        if ftype == TType.STRUCT:
-
 
8741
          self.success = ItemStockPurchaseParams()
-
 
8742
          self.success.read(iprot)
-
 
8743
        else:
-
 
8744
          iprot.skip(ftype)
-
 
8745
      else:
-
 
8746
        iprot.skip(ftype)
-
 
8747
      iprot.readFieldEnd()
-
 
8748
    iprot.readStructEnd()
-
 
8749
 
-
 
8750
  def write(self, oprot):
-
 
8751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8753
      return
-
 
8754
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
-
 
8755
    if self.success is not None:
-
 
8756
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
8757
      self.success.write(oprot)
-
 
8758
      oprot.writeFieldEnd()
-
 
8759
    oprot.writeFieldStop()
-
 
8760
    oprot.writeStructEnd()
-
 
8761
 
-
 
8762
  def validate(self):
-
 
8763
    return
-
 
8764
 
-
 
8765
 
-
 
8766
  def __repr__(self):
-
 
8767
    L = ['%s=%r' % (key, value)
-
 
8768
      for key, value in self.__dict__.iteritems()]
-
 
8769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8770
 
-
 
8771
  def __eq__(self, other):
-
 
8772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8773
 
-
 
8774
  def __ne__(self, other):
-
 
8775
    return not (self == other)
-
 
8776
 
-
 
8777
class addOosStatusForItem_args:
-
 
8778
  """
-
 
8779
  Attributes:
-
 
8780
   - oosStatusMap
-
 
8781
   - date
-
 
8782
  """
-
 
8783
 
-
 
8784
  thrift_spec = (
-
 
8785
    None, # 0
-
 
8786
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
-
 
8787
    (2, TType.I64, 'date', None, None, ), # 2
-
 
8788
  )
-
 
8789
 
-
 
8790
  def __init__(self, oosStatusMap=None, date=None,):
-
 
8791
    self.oosStatusMap = oosStatusMap
-
 
8792
    self.date = date
-
 
8793
 
-
 
8794
  def read(self, iprot):
-
 
8795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8797
      return
-
 
8798
    iprot.readStructBegin()
-
 
8799
    while True:
-
 
8800
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8801
      if ftype == TType.STOP:
-
 
8802
        break
-
 
8803
      if fid == 1:
-
 
8804
        if ftype == TType.MAP:
-
 
8805
          self.oosStatusMap = {}
-
 
8806
          (_ktype185, _vtype186, _size184 ) = iprot.readMapBegin() 
-
 
8807
          for _i188 in xrange(_size184):
-
 
8808
            _key189 = iprot.readI64();
-
 
8809
            _val190 = iprot.readBool();
-
 
8810
            self.oosStatusMap[_key189] = _val190
-
 
8811
          iprot.readMapEnd()
-
 
8812
        else:
-
 
8813
          iprot.skip(ftype)
-
 
8814
      elif fid == 2:
-
 
8815
        if ftype == TType.I64:
-
 
8816
          self.date = iprot.readI64();
-
 
8817
        else:
-
 
8818
          iprot.skip(ftype)
-
 
8819
      else:
-
 
8820
        iprot.skip(ftype)
-
 
8821
      iprot.readFieldEnd()
-
 
8822
    iprot.readStructEnd()
-
 
8823
 
-
 
8824
  def write(self, oprot):
-
 
8825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8827
      return
-
 
8828
    oprot.writeStructBegin('addOosStatusForItem_args')
-
 
8829
    if self.oosStatusMap is not None:
-
 
8830
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
-
 
8831
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
-
 
8832
      for kiter191,viter192 in self.oosStatusMap.items():
-
 
8833
        oprot.writeI64(kiter191)
-
 
8834
        oprot.writeBool(viter192)
-
 
8835
      oprot.writeMapEnd()
-
 
8836
      oprot.writeFieldEnd()
-
 
8837
    if self.date is not None:
-
 
8838
      oprot.writeFieldBegin('date', TType.I64, 2)
-
 
8839
      oprot.writeI64(self.date)
-
 
8840
      oprot.writeFieldEnd()
-
 
8841
    oprot.writeFieldStop()
-
 
8842
    oprot.writeStructEnd()
-
 
8843
 
-
 
8844
  def validate(self):
-
 
8845
    return
-
 
8846
 
-
 
8847
 
-
 
8848
  def __repr__(self):
-
 
8849
    L = ['%s=%r' % (key, value)
-
 
8850
      for key, value in self.__dict__.iteritems()]
-
 
8851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8852
 
-
 
8853
  def __eq__(self, other):
-
 
8854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8855
 
-
 
8856
  def __ne__(self, other):
-
 
8857
    return not (self == other)
-
 
8858
 
-
 
8859
class addOosStatusForItem_result:
-
 
8860
 
-
 
8861
  thrift_spec = (
-
 
8862
  )
-
 
8863
 
-
 
8864
  def read(self, iprot):
-
 
8865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8867
      return
-
 
8868
    iprot.readStructBegin()
-
 
8869
    while True:
-
 
8870
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8871
      if ftype == TType.STOP:
-
 
8872
        break
-
 
8873
      else:
-
 
8874
        iprot.skip(ftype)
-
 
8875
      iprot.readFieldEnd()
-
 
8876
    iprot.readStructEnd()
-
 
8877
 
-
 
8878
  def write(self, oprot):
-
 
8879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8881
      return
-
 
8882
    oprot.writeStructBegin('addOosStatusForItem_result')
-
 
8883
    oprot.writeFieldStop()
-
 
8884
    oprot.writeStructEnd()
-
 
8885
 
-
 
8886
  def validate(self):
-
 
8887
    return
8366
 
8888
 
8367
 
8889
 
8368
  def __repr__(self):
8890
  def __repr__(self):
8369
    L = ['%s=%r' % (key, value)
8891
    L = ['%s=%r' % (key, value)
8370
      for key, value in self.__dict__.iteritems()]
8892
      for key, value in self.__dict__.iteritems()]