Subversion Repositories SmartDukaan

Rev

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

Rev 8717 Rev 10120
Line 462... Line 462...
462
     - quantity
462
     - quantity
463
     - billingWarehouseId
463
     - billingWarehouseId
464
    """
464
    """
465
    pass
465
    pass
466
 
466
 
-
 
467
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
-
 
468
    """
-
 
469
    Parameters:
-
 
470
     - transferLotId
-
 
471
     - scanType
-
 
472
    """
-
 
473
    pass
-
 
474
 
-
 
475
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
-
 
476
    """
-
 
477
    Parameters:
-
 
478
     - inventoryItems
-
 
479
     - transferLotId
-
 
480
    """
-
 
481
    pass
-
 
482
 
-
 
483
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
-
 
484
    """
-
 
485
    Parameters:
-
 
486
     - id
-
 
487
     - remoteTransferRefNumber
-
 
488
    """
-
 
489
    pass
-
 
490
 
467
 
491
 
468
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
492
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
469
  def __init__(self, iprot, oprot=None):
493
  def __init__(self, iprot, oprot=None):
470
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
494
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
471
 
495
 
Line 2111... Line 2135...
2111
      return result.success
2135
      return result.success
2112
    if result.wex is not None:
2136
    if result.wex is not None:
2113
      raise result.wex
2137
      raise result.wex
2114
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
2138
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
2115
 
2139
 
-
 
2140
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
-
 
2141
    """
-
 
2142
    Parameters:
-
 
2143
     - transferLotId
-
 
2144
     - scanType
-
 
2145
    """
-
 
2146
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
-
 
2147
    return self.recv_getTransferLotItemsForMarkReceive()
-
 
2148
 
-
 
2149
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
-
 
2150
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
-
 
2151
    args = getTransferLotItemsForMarkReceive_args()
-
 
2152
    args.transferLotId = transferLotId
-
 
2153
    args.scanType = scanType
-
 
2154
    args.write(self._oprot)
-
 
2155
    self._oprot.writeMessageEnd()
-
 
2156
    self._oprot.trans.flush()
-
 
2157
 
-
 
2158
  def recv_getTransferLotItemsForMarkReceive(self, ):
-
 
2159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2160
    if mtype == TMessageType.EXCEPTION:
-
 
2161
      x = TApplicationException()
-
 
2162
      x.read(self._iprot)
-
 
2163
      self._iprot.readMessageEnd()
-
 
2164
      raise x
-
 
2165
    result = getTransferLotItemsForMarkReceive_result()
-
 
2166
    result.read(self._iprot)
-
 
2167
    self._iprot.readMessageEnd()
-
 
2168
    if result.success is not None:
-
 
2169
      return result.success
-
 
2170
    if result.wex is not None:
-
 
2171
      raise result.wex
-
 
2172
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
-
 
2173
 
-
 
2174
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
-
 
2175
    """
-
 
2176
    Parameters:
-
 
2177
     - inventoryItems
-
 
2178
     - transferLotId
-
 
2179
    """
-
 
2180
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
-
 
2181
    self.recv_markItemsAsReceivedForTransferLotPartial()
-
 
2182
 
-
 
2183
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
-
 
2184
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
-
 
2185
    args = markItemsAsReceivedForTransferLotPartial_args()
-
 
2186
    args.inventoryItems = inventoryItems
-
 
2187
    args.transferLotId = transferLotId
-
 
2188
    args.write(self._oprot)
-
 
2189
    self._oprot.writeMessageEnd()
-
 
2190
    self._oprot.trans.flush()
-
 
2191
 
-
 
2192
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
-
 
2193
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2194
    if mtype == TMessageType.EXCEPTION:
-
 
2195
      x = TApplicationException()
-
 
2196
      x.read(self._iprot)
-
 
2197
      self._iprot.readMessageEnd()
-
 
2198
      raise x
-
 
2199
    result = markItemsAsReceivedForTransferLotPartial_result()
-
 
2200
    result.read(self._iprot)
-
 
2201
    self._iprot.readMessageEnd()
-
 
2202
    if result.wex is not None:
-
 
2203
      raise result.wex
-
 
2204
    return
-
 
2205
 
-
 
2206
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
-
 
2207
    """
-
 
2208
    Parameters:
-
 
2209
     - id
-
 
2210
     - remoteTransferRefNumber
-
 
2211
    """
-
 
2212
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
-
 
2213
    self.recv_markTransferLotAsReceivedPartial()
-
 
2214
 
-
 
2215
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
-
 
2216
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
-
 
2217
    args = markTransferLotAsReceivedPartial_args()
-
 
2218
    args.id = id
-
 
2219
    args.remoteTransferRefNumber = remoteTransferRefNumber
-
 
2220
    args.write(self._oprot)
-
 
2221
    self._oprot.writeMessageEnd()
-
 
2222
    self._oprot.trans.flush()
-
 
2223
 
-
 
2224
  def recv_markTransferLotAsReceivedPartial(self, ):
-
 
2225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2226
    if mtype == TMessageType.EXCEPTION:
-
 
2227
      x = TApplicationException()
-
 
2228
      x.read(self._iprot)
-
 
2229
      self._iprot.readMessageEnd()
-
 
2230
      raise x
-
 
2231
    result = markTransferLotAsReceivedPartial_result()
-
 
2232
    result.read(self._iprot)
-
 
2233
    self._iprot.readMessageEnd()
-
 
2234
    if result.wex is not None:
-
 
2235
      raise result.wex
-
 
2236
    return
-
 
2237
 
2116
 
2238
 
2117
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2239
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2118
  def __init__(self, handler):
2240
  def __init__(self, handler):
2119
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2241
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2120
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
2242
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
Line 2163... Line 2285...
2163
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
2285
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
2164
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
2286
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
2165
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
2287
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
2166
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
2288
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
2167
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
2289
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
-
 
2290
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
-
 
2291
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
-
 
2292
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
2168
 
2293
 
2169
  def process(self, iprot, oprot):
2294
  def process(self, iprot, oprot):
2170
    (name, type, seqid) = iprot.readMessageBegin()
2295
    (name, type, seqid) = iprot.readMessageBegin()
2171
    if name not in self._processMap:
2296
    if name not in self._processMap:
2172
      iprot.skip(TType.STRUCT)
2297
      iprot.skip(TType.STRUCT)
Line 2788... Line 2913...
2788
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
2913
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
2789
    result.write(oprot)
2914
    result.write(oprot)
2790
    oprot.writeMessageEnd()
2915
    oprot.writeMessageEnd()
2791
    oprot.trans.flush()
2916
    oprot.trans.flush()
2792
 
2917
 
-
 
2918
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
-
 
2919
    args = getTransferLotItemsForMarkReceive_args()
-
 
2920
    args.read(iprot)
-
 
2921
    iprot.readMessageEnd()
-
 
2922
    result = getTransferLotItemsForMarkReceive_result()
-
 
2923
    try:
-
 
2924
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
-
 
2925
    except WarehouseServiceException, wex:
-
 
2926
      result.wex = wex
-
 
2927
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
-
 
2928
    result.write(oprot)
-
 
2929
    oprot.writeMessageEnd()
-
 
2930
    oprot.trans.flush()
-
 
2931
 
-
 
2932
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
-
 
2933
    args = markItemsAsReceivedForTransferLotPartial_args()
-
 
2934
    args.read(iprot)
-
 
2935
    iprot.readMessageEnd()
-
 
2936
    result = markItemsAsReceivedForTransferLotPartial_result()
-
 
2937
    try:
-
 
2938
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
-
 
2939
    except WarehouseServiceException, wex:
-
 
2940
      result.wex = wex
-
 
2941
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
-
 
2942
    result.write(oprot)
-
 
2943
    oprot.writeMessageEnd()
-
 
2944
    oprot.trans.flush()
-
 
2945
 
-
 
2946
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
-
 
2947
    args = markTransferLotAsReceivedPartial_args()
-
 
2948
    args.read(iprot)
-
 
2949
    iprot.readMessageEnd()
-
 
2950
    result = markTransferLotAsReceivedPartial_result()
-
 
2951
    try:
-
 
2952
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
-
 
2953
    except WarehouseServiceException, wex:
-
 
2954
      result.wex = wex
-
 
2955
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
-
 
2956
    result.write(oprot)
-
 
2957
    oprot.writeMessageEnd()
-
 
2958
    oprot.trans.flush()
-
 
2959
 
2793
 
2960
 
2794
# HELPER FUNCTIONS AND STRUCTURES
2961
# HELPER FUNCTIONS AND STRUCTURES
2795
 
2962
 
2796
class getInventoryItem_args:
2963
class getInventoryItem_args:
2797
  """
2964
  """
Line 9689... Line 9856...
9689
    if self.wex is not None:
9856
    if self.wex is not None:
9690
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9857
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9691
      self.wex.write(oprot)
9858
      self.wex.write(oprot)
9692
      oprot.writeFieldEnd()
9859
      oprot.writeFieldEnd()
9693
    oprot.writeFieldStop()
9860
    oprot.writeFieldStop()
-
 
9861
    oprot.writeStructEnd()
-
 
9862
 
-
 
9863
  def validate(self):
-
 
9864
    return
-
 
9865
 
-
 
9866
 
-
 
9867
  def __repr__(self):
-
 
9868
    L = ['%s=%r' % (key, value)
-
 
9869
      for key, value in self.__dict__.iteritems()]
-
 
9870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9871
 
-
 
9872
  def __eq__(self, other):
-
 
9873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9874
 
-
 
9875
  def __ne__(self, other):
-
 
9876
    return not (self == other)
-
 
9877
 
-
 
9878
class getTransferLotItemsForMarkReceive_args:
-
 
9879
  """
-
 
9880
  Attributes:
-
 
9881
   - transferLotId
-
 
9882
   - scanType
-
 
9883
  """
-
 
9884
 
-
 
9885
  thrift_spec = (
-
 
9886
    None, # 0
-
 
9887
    (1, TType.I64, 'transferLotId', None, None, ), # 1
-
 
9888
    (2, TType.I32, 'scanType', None, None, ), # 2
-
 
9889
  )
-
 
9890
 
-
 
9891
  def __init__(self, transferLotId=None, scanType=None,):
-
 
9892
    self.transferLotId = transferLotId
-
 
9893
    self.scanType = scanType
-
 
9894
 
-
 
9895
  def read(self, iprot):
-
 
9896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9898
      return
-
 
9899
    iprot.readStructBegin()
-
 
9900
    while True:
-
 
9901
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9902
      if ftype == TType.STOP:
-
 
9903
        break
-
 
9904
      if fid == 1:
-
 
9905
        if ftype == TType.I64:
-
 
9906
          self.transferLotId = iprot.readI64();
-
 
9907
        else:
-
 
9908
          iprot.skip(ftype)
-
 
9909
      elif fid == 2:
-
 
9910
        if ftype == TType.I32:
-
 
9911
          self.scanType = iprot.readI32();
-
 
9912
        else:
-
 
9913
          iprot.skip(ftype)
-
 
9914
      else:
-
 
9915
        iprot.skip(ftype)
-
 
9916
      iprot.readFieldEnd()
-
 
9917
    iprot.readStructEnd()
-
 
9918
 
-
 
9919
  def write(self, oprot):
-
 
9920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9922
      return
-
 
9923
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
-
 
9924
    if self.transferLotId is not None:
-
 
9925
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
-
 
9926
      oprot.writeI64(self.transferLotId)
-
 
9927
      oprot.writeFieldEnd()
-
 
9928
    if self.scanType is not None:
-
 
9929
      oprot.writeFieldBegin('scanType', TType.I32, 2)
-
 
9930
      oprot.writeI32(self.scanType)
-
 
9931
      oprot.writeFieldEnd()
-
 
9932
    oprot.writeFieldStop()
-
 
9933
    oprot.writeStructEnd()
-
 
9934
 
-
 
9935
  def validate(self):
-
 
9936
    return
-
 
9937
 
-
 
9938
 
-
 
9939
  def __repr__(self):
-
 
9940
    L = ['%s=%r' % (key, value)
-
 
9941
      for key, value in self.__dict__.iteritems()]
-
 
9942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9943
 
-
 
9944
  def __eq__(self, other):
-
 
9945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9946
 
-
 
9947
  def __ne__(self, other):
-
 
9948
    return not (self == other)
-
 
9949
 
-
 
9950
class getTransferLotItemsForMarkReceive_result:
-
 
9951
  """
-
 
9952
  Attributes:
-
 
9953
   - success
-
 
9954
   - wex
-
 
9955
  """
-
 
9956
 
-
 
9957
  thrift_spec = (
-
 
9958
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
-
 
9959
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
9960
  )
-
 
9961
 
-
 
9962
  def __init__(self, success=None, wex=None,):
-
 
9963
    self.success = success
-
 
9964
    self.wex = wex
-
 
9965
 
-
 
9966
  def read(self, iprot):
-
 
9967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9969
      return
-
 
9970
    iprot.readStructBegin()
-
 
9971
    while True:
-
 
9972
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9973
      if ftype == TType.STOP:
-
 
9974
        break
-
 
9975
      if fid == 0:
-
 
9976
        if ftype == TType.LIST:
-
 
9977
          self.success = []
-
 
9978
          (_etype194, _size191) = iprot.readListBegin()
-
 
9979
          for _i195 in xrange(_size191):
-
 
9980
            _elem196 = InventoryItem()
-
 
9981
            _elem196.read(iprot)
-
 
9982
            self.success.append(_elem196)
-
 
9983
          iprot.readListEnd()
-
 
9984
        else:
-
 
9985
          iprot.skip(ftype)
-
 
9986
      elif fid == 1:
-
 
9987
        if ftype == TType.STRUCT:
-
 
9988
          self.wex = WarehouseServiceException()
-
 
9989
          self.wex.read(iprot)
-
 
9990
        else:
-
 
9991
          iprot.skip(ftype)
-
 
9992
      else:
-
 
9993
        iprot.skip(ftype)
-
 
9994
      iprot.readFieldEnd()
-
 
9995
    iprot.readStructEnd()
-
 
9996
 
-
 
9997
  def write(self, oprot):
-
 
9998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10000
      return
-
 
10001
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
-
 
10002
    if self.success is not None:
-
 
10003
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
10004
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
10005
      for iter197 in self.success:
-
 
10006
        iter197.write(oprot)
-
 
10007
      oprot.writeListEnd()
-
 
10008
      oprot.writeFieldEnd()
-
 
10009
    if self.wex is not None:
-
 
10010
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
10011
      self.wex.write(oprot)
-
 
10012
      oprot.writeFieldEnd()
-
 
10013
    oprot.writeFieldStop()
-
 
10014
    oprot.writeStructEnd()
-
 
10015
 
-
 
10016
  def validate(self):
-
 
10017
    return
-
 
10018
 
-
 
10019
 
-
 
10020
  def __repr__(self):
-
 
10021
    L = ['%s=%r' % (key, value)
-
 
10022
      for key, value in self.__dict__.iteritems()]
-
 
10023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10024
 
-
 
10025
  def __eq__(self, other):
-
 
10026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10027
 
-
 
10028
  def __ne__(self, other):
-
 
10029
    return not (self == other)
-
 
10030
 
-
 
10031
class markItemsAsReceivedForTransferLotPartial_args:
-
 
10032
  """
-
 
10033
  Attributes:
-
 
10034
   - inventoryItems
-
 
10035
   - transferLotId
-
 
10036
  """
-
 
10037
 
-
 
10038
  thrift_spec = (
-
 
10039
    None, # 0
-
 
10040
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
-
 
10041
    (2, TType.I64, 'transferLotId', None, None, ), # 2
-
 
10042
  )
-
 
10043
 
-
 
10044
  def __init__(self, inventoryItems=None, transferLotId=None,):
-
 
10045
    self.inventoryItems = inventoryItems
-
 
10046
    self.transferLotId = transferLotId
-
 
10047
 
-
 
10048
  def read(self, iprot):
-
 
10049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10051
      return
-
 
10052
    iprot.readStructBegin()
-
 
10053
    while True:
-
 
10054
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10055
      if ftype == TType.STOP:
-
 
10056
        break
-
 
10057
      if fid == 1:
-
 
10058
        if ftype == TType.LIST:
-
 
10059
          self.inventoryItems = []
-
 
10060
          (_etype201, _size198) = iprot.readListBegin()
-
 
10061
          for _i202 in xrange(_size198):
-
 
10062
            _elem203 = InventoryItem()
-
 
10063
            _elem203.read(iprot)
-
 
10064
            self.inventoryItems.append(_elem203)
-
 
10065
          iprot.readListEnd()
-
 
10066
        else:
-
 
10067
          iprot.skip(ftype)
-
 
10068
      elif fid == 2:
-
 
10069
        if ftype == TType.I64:
-
 
10070
          self.transferLotId = iprot.readI64();
-
 
10071
        else:
-
 
10072
          iprot.skip(ftype)
-
 
10073
      else:
-
 
10074
        iprot.skip(ftype)
-
 
10075
      iprot.readFieldEnd()
-
 
10076
    iprot.readStructEnd()
-
 
10077
 
-
 
10078
  def write(self, oprot):
-
 
10079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10081
      return
-
 
10082
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
-
 
10083
    if self.inventoryItems is not None:
-
 
10084
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
-
 
10085
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
-
 
10086
      for iter204 in self.inventoryItems:
-
 
10087
        iter204.write(oprot)
-
 
10088
      oprot.writeListEnd()
-
 
10089
      oprot.writeFieldEnd()
-
 
10090
    if self.transferLotId is not None:
-
 
10091
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
-
 
10092
      oprot.writeI64(self.transferLotId)
-
 
10093
      oprot.writeFieldEnd()
-
 
10094
    oprot.writeFieldStop()
-
 
10095
    oprot.writeStructEnd()
-
 
10096
 
-
 
10097
  def validate(self):
-
 
10098
    return
-
 
10099
 
-
 
10100
 
-
 
10101
  def __repr__(self):
-
 
10102
    L = ['%s=%r' % (key, value)
-
 
10103
      for key, value in self.__dict__.iteritems()]
-
 
10104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10105
 
-
 
10106
  def __eq__(self, other):
-
 
10107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10108
 
-
 
10109
  def __ne__(self, other):
-
 
10110
    return not (self == other)
-
 
10111
 
-
 
10112
class markItemsAsReceivedForTransferLotPartial_result:
-
 
10113
  """
-
 
10114
  Attributes:
-
 
10115
   - wex
-
 
10116
  """
-
 
10117
 
-
 
10118
  thrift_spec = (
-
 
10119
    None, # 0
-
 
10120
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
10121
  )
-
 
10122
 
-
 
10123
  def __init__(self, wex=None,):
-
 
10124
    self.wex = wex
-
 
10125
 
-
 
10126
  def read(self, iprot):
-
 
10127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10129
      return
-
 
10130
    iprot.readStructBegin()
-
 
10131
    while True:
-
 
10132
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10133
      if ftype == TType.STOP:
-
 
10134
        break
-
 
10135
      if fid == 1:
-
 
10136
        if ftype == TType.STRUCT:
-
 
10137
          self.wex = WarehouseServiceException()
-
 
10138
          self.wex.read(iprot)
-
 
10139
        else:
-
 
10140
          iprot.skip(ftype)
-
 
10141
      else:
-
 
10142
        iprot.skip(ftype)
-
 
10143
      iprot.readFieldEnd()
-
 
10144
    iprot.readStructEnd()
-
 
10145
 
-
 
10146
  def write(self, oprot):
-
 
10147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10149
      return
-
 
10150
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
-
 
10151
    if self.wex is not None:
-
 
10152
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
10153
      self.wex.write(oprot)
-
 
10154
      oprot.writeFieldEnd()
-
 
10155
    oprot.writeFieldStop()
-
 
10156
    oprot.writeStructEnd()
-
 
10157
 
-
 
10158
  def validate(self):
-
 
10159
    return
-
 
10160
 
-
 
10161
 
-
 
10162
  def __repr__(self):
-
 
10163
    L = ['%s=%r' % (key, value)
-
 
10164
      for key, value in self.__dict__.iteritems()]
-
 
10165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10166
 
-
 
10167
  def __eq__(self, other):
-
 
10168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10169
 
-
 
10170
  def __ne__(self, other):
-
 
10171
    return not (self == other)
-
 
10172
 
-
 
10173
class markTransferLotAsReceivedPartial_args:
-
 
10174
  """
-
 
10175
  Attributes:
-
 
10176
   - id
-
 
10177
   - remoteTransferRefNumber
-
 
10178
  """
-
 
10179
 
-
 
10180
  thrift_spec = (
-
 
10181
    None, # 0
-
 
10182
    (1, TType.I64, 'id', None, None, ), # 1
-
 
10183
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
-
 
10184
  )
-
 
10185
 
-
 
10186
  def __init__(self, id=None, remoteTransferRefNumber=None,):
-
 
10187
    self.id = id
-
 
10188
    self.remoteTransferRefNumber = remoteTransferRefNumber
-
 
10189
 
-
 
10190
  def read(self, iprot):
-
 
10191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10193
      return
-
 
10194
    iprot.readStructBegin()
-
 
10195
    while True:
-
 
10196
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10197
      if ftype == TType.STOP:
-
 
10198
        break
-
 
10199
      if fid == 1:
-
 
10200
        if ftype == TType.I64:
-
 
10201
          self.id = iprot.readI64();
-
 
10202
        else:
-
 
10203
          iprot.skip(ftype)
-
 
10204
      elif fid == 2:
-
 
10205
        if ftype == TType.STRING:
-
 
10206
          self.remoteTransferRefNumber = iprot.readString();
-
 
10207
        else:
-
 
10208
          iprot.skip(ftype)
-
 
10209
      else:
-
 
10210
        iprot.skip(ftype)
-
 
10211
      iprot.readFieldEnd()
-
 
10212
    iprot.readStructEnd()
-
 
10213
 
-
 
10214
  def write(self, oprot):
-
 
10215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10217
      return
-
 
10218
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
-
 
10219
    if self.id is not None:
-
 
10220
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
10221
      oprot.writeI64(self.id)
-
 
10222
      oprot.writeFieldEnd()
-
 
10223
    if self.remoteTransferRefNumber is not None:
-
 
10224
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
-
 
10225
      oprot.writeString(self.remoteTransferRefNumber)
-
 
10226
      oprot.writeFieldEnd()
-
 
10227
    oprot.writeFieldStop()
-
 
10228
    oprot.writeStructEnd()
-
 
10229
 
-
 
10230
  def validate(self):
-
 
10231
    return
-
 
10232
 
-
 
10233
 
-
 
10234
  def __repr__(self):
-
 
10235
    L = ['%s=%r' % (key, value)
-
 
10236
      for key, value in self.__dict__.iteritems()]
-
 
10237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10238
 
-
 
10239
  def __eq__(self, other):
-
 
10240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10241
 
-
 
10242
  def __ne__(self, other):
-
 
10243
    return not (self == other)
-
 
10244
 
-
 
10245
class markTransferLotAsReceivedPartial_result:
-
 
10246
  """
-
 
10247
  Attributes:
-
 
10248
   - wex
-
 
10249
  """
-
 
10250
 
-
 
10251
  thrift_spec = (
-
 
10252
    None, # 0
-
 
10253
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
10254
  )
-
 
10255
 
-
 
10256
  def __init__(self, wex=None,):
-
 
10257
    self.wex = wex
-
 
10258
 
-
 
10259
  def read(self, iprot):
-
 
10260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10262
      return
-
 
10263
    iprot.readStructBegin()
-
 
10264
    while True:
-
 
10265
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10266
      if ftype == TType.STOP:
-
 
10267
        break
-
 
10268
      if fid == 1:
-
 
10269
        if ftype == TType.STRUCT:
-
 
10270
          self.wex = WarehouseServiceException()
-
 
10271
          self.wex.read(iprot)
-
 
10272
        else:
-
 
10273
          iprot.skip(ftype)
-
 
10274
      else:
-
 
10275
        iprot.skip(ftype)
-
 
10276
      iprot.readFieldEnd()
-
 
10277
    iprot.readStructEnd()
-
 
10278
 
-
 
10279
  def write(self, oprot):
-
 
10280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10282
      return
-
 
10283
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_result')
-
 
10284
    if self.wex is not None:
-
 
10285
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
10286
      self.wex.write(oprot)
-
 
10287
      oprot.writeFieldEnd()
-
 
10288
    oprot.writeFieldStop()
9694
    oprot.writeStructEnd()
10289
    oprot.writeStructEnd()
9695
 
10290
 
9696
  def validate(self):
10291
  def validate(self):
9697
    return
10292
    return
9698
 
10293