Subversion Repositories SmartDukaan

Rev

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

Rev 14491 Rev 15045
Line 615... Line 615...
615
    pass
615
    pass
616
 
616
 
617
  def getAllDoaOutInventoryItems(self, ):
617
  def getAllDoaOutInventoryItems(self, ):
618
    pass
618
    pass
619
 
619
 
-
 
620
  def getAllUnCompletedStockShipments(self, source):
-
 
621
    """
-
 
622
    Parameters:
-
 
623
     - source
-
 
624
    """
-
 
625
    pass
-
 
626
 
-
 
627
  def getRemovalStockShipmentReferenceById(self, id):
-
 
628
    """
-
 
629
    Parameters:
-
 
630
     - id
-
 
631
    """
-
 
632
    pass
-
 
633
 
-
 
634
  def createRemovalStockShipmentReference(self, removalStockShipmentReference):
-
 
635
    """
-
 
636
    Parameters:
-
 
637
     - removalStockShipmentReference
-
 
638
    """
-
 
639
    pass
-
 
640
 
-
 
641
  def updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
-
 
642
    """
-
 
643
    Parameters:
-
 
644
     - transferLotId
-
 
645
     - shipmentReferenceId
-
 
646
    """
-
 
647
    pass
-
 
648
 
620
 
649
 
621
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
650
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
622
  def __init__(self, iprot, oprot=None):
651
  def __init__(self, iprot, oprot=None):
623
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
652
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
624
 
653
 
Line 2869... Line 2898...
2869
      return result.success
2898
      return result.success
2870
    if result.ex is not None:
2899
    if result.ex is not None:
2871
      raise result.ex
2900
      raise result.ex
2872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
2901
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
2873
 
2902
 
-
 
2903
  def getAllUnCompletedStockShipments(self, source):
-
 
2904
    """
-
 
2905
    Parameters:
-
 
2906
     - source
-
 
2907
    """
-
 
2908
    self.send_getAllUnCompletedStockShipments(source)
-
 
2909
    return self.recv_getAllUnCompletedStockShipments()
-
 
2910
 
-
 
2911
  def send_getAllUnCompletedStockShipments(self, source):
-
 
2912
    self._oprot.writeMessageBegin('getAllUnCompletedStockShipments', TMessageType.CALL, self._seqid)
-
 
2913
    args = getAllUnCompletedStockShipments_args()
-
 
2914
    args.source = source
-
 
2915
    args.write(self._oprot)
-
 
2916
    self._oprot.writeMessageEnd()
-
 
2917
    self._oprot.trans.flush()
-
 
2918
 
-
 
2919
  def recv_getAllUnCompletedStockShipments(self, ):
-
 
2920
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2921
    if mtype == TMessageType.EXCEPTION:
-
 
2922
      x = TApplicationException()
-
 
2923
      x.read(self._iprot)
-
 
2924
      self._iprot.readMessageEnd()
-
 
2925
      raise x
-
 
2926
    result = getAllUnCompletedStockShipments_result()
-
 
2927
    result.read(self._iprot)
-
 
2928
    self._iprot.readMessageEnd()
-
 
2929
    if result.success is not None:
-
 
2930
      return result.success
-
 
2931
    if result.ex is not None:
-
 
2932
      raise result.ex
-
 
2933
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUnCompletedStockShipments failed: unknown result");
-
 
2934
 
-
 
2935
  def getRemovalStockShipmentReferenceById(self, id):
-
 
2936
    """
-
 
2937
    Parameters:
-
 
2938
     - id
-
 
2939
    """
-
 
2940
    self.send_getRemovalStockShipmentReferenceById(id)
-
 
2941
    return self.recv_getRemovalStockShipmentReferenceById()
-
 
2942
 
-
 
2943
  def send_getRemovalStockShipmentReferenceById(self, id):
-
 
2944
    self._oprot.writeMessageBegin('getRemovalStockShipmentReferenceById', TMessageType.CALL, self._seqid)
-
 
2945
    args = getRemovalStockShipmentReferenceById_args()
-
 
2946
    args.id = id
-
 
2947
    args.write(self._oprot)
-
 
2948
    self._oprot.writeMessageEnd()
-
 
2949
    self._oprot.trans.flush()
-
 
2950
 
-
 
2951
  def recv_getRemovalStockShipmentReferenceById(self, ):
-
 
2952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2953
    if mtype == TMessageType.EXCEPTION:
-
 
2954
      x = TApplicationException()
-
 
2955
      x.read(self._iprot)
-
 
2956
      self._iprot.readMessageEnd()
-
 
2957
      raise x
-
 
2958
    result = getRemovalStockShipmentReferenceById_result()
-
 
2959
    result.read(self._iprot)
-
 
2960
    self._iprot.readMessageEnd()
-
 
2961
    if result.success is not None:
-
 
2962
      return result.success
-
 
2963
    if result.ex is not None:
-
 
2964
      raise result.ex
-
 
2965
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRemovalStockShipmentReferenceById failed: unknown result");
-
 
2966
 
-
 
2967
  def createRemovalStockShipmentReference(self, removalStockShipmentReference):
-
 
2968
    """
-
 
2969
    Parameters:
-
 
2970
     - removalStockShipmentReference
-
 
2971
    """
-
 
2972
    self.send_createRemovalStockShipmentReference(removalStockShipmentReference)
-
 
2973
    return self.recv_createRemovalStockShipmentReference()
-
 
2974
 
-
 
2975
  def send_createRemovalStockShipmentReference(self, removalStockShipmentReference):
-
 
2976
    self._oprot.writeMessageBegin('createRemovalStockShipmentReference', TMessageType.CALL, self._seqid)
-
 
2977
    args = createRemovalStockShipmentReference_args()
-
 
2978
    args.removalStockShipmentReference = removalStockShipmentReference
-
 
2979
    args.write(self._oprot)
-
 
2980
    self._oprot.writeMessageEnd()
-
 
2981
    self._oprot.trans.flush()
-
 
2982
 
-
 
2983
  def recv_createRemovalStockShipmentReference(self, ):
-
 
2984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2985
    if mtype == TMessageType.EXCEPTION:
-
 
2986
      x = TApplicationException()
-
 
2987
      x.read(self._iprot)
-
 
2988
      self._iprot.readMessageEnd()
-
 
2989
      raise x
-
 
2990
    result = createRemovalStockShipmentReference_result()
-
 
2991
    result.read(self._iprot)
-
 
2992
    self._iprot.readMessageEnd()
-
 
2993
    if result.success is not None:
-
 
2994
      return result.success
-
 
2995
    if result.ex is not None:
-
 
2996
      raise result.ex
-
 
2997
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRemovalStockShipmentReference failed: unknown result");
-
 
2998
 
-
 
2999
  def updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
-
 
3000
    """
-
 
3001
    Parameters:
-
 
3002
     - transferLotId
-
 
3003
     - shipmentReferenceId
-
 
3004
    """
-
 
3005
    self.send_updateShipmentReferenceTransferLot(transferLotId, shipmentReferenceId)
-
 
3006
    self.recv_updateShipmentReferenceTransferLot()
-
 
3007
 
-
 
3008
  def send_updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
-
 
3009
    self._oprot.writeMessageBegin('updateShipmentReferenceTransferLot', TMessageType.CALL, self._seqid)
-
 
3010
    args = updateShipmentReferenceTransferLot_args()
-
 
3011
    args.transferLotId = transferLotId
-
 
3012
    args.shipmentReferenceId = shipmentReferenceId
-
 
3013
    args.write(self._oprot)
-
 
3014
    self._oprot.writeMessageEnd()
-
 
3015
    self._oprot.trans.flush()
-
 
3016
 
-
 
3017
  def recv_updateShipmentReferenceTransferLot(self, ):
-
 
3018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3019
    if mtype == TMessageType.EXCEPTION:
-
 
3020
      x = TApplicationException()
-
 
3021
      x.read(self._iprot)
-
 
3022
      self._iprot.readMessageEnd()
-
 
3023
      raise x
-
 
3024
    result = updateShipmentReferenceTransferLot_result()
-
 
3025
    result.read(self._iprot)
-
 
3026
    self._iprot.readMessageEnd()
-
 
3027
    if result.ex is not None:
-
 
3028
      raise result.ex
-
 
3029
    return
-
 
3030
 
2874
 
3031
 
2875
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3032
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2876
  def __init__(self, handler):
3033
  def __init__(self, handler):
2877
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3034
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2878
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
3035
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
Line 2939... Line 3096...
2939
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
3096
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
2940
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
3097
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
2941
    self._processMap["getInventoryAgeConsideredItems"] = Processor.process_getInventoryAgeConsideredItems
3098
    self._processMap["getInventoryAgeConsideredItems"] = Processor.process_getInventoryAgeConsideredItems
2942
    self._processMap["getCompleteMovementForThirdPartyWarehouse"] = Processor.process_getCompleteMovementForThirdPartyWarehouse
3099
    self._processMap["getCompleteMovementForThirdPartyWarehouse"] = Processor.process_getCompleteMovementForThirdPartyWarehouse
2943
    self._processMap["getAllDoaOutInventoryItems"] = Processor.process_getAllDoaOutInventoryItems
3100
    self._processMap["getAllDoaOutInventoryItems"] = Processor.process_getAllDoaOutInventoryItems
-
 
3101
    self._processMap["getAllUnCompletedStockShipments"] = Processor.process_getAllUnCompletedStockShipments
-
 
3102
    self._processMap["getRemovalStockShipmentReferenceById"] = Processor.process_getRemovalStockShipmentReferenceById
-
 
3103
    self._processMap["createRemovalStockShipmentReference"] = Processor.process_createRemovalStockShipmentReference
-
 
3104
    self._processMap["updateShipmentReferenceTransferLot"] = Processor.process_updateShipmentReferenceTransferLot
2944
 
3105
 
2945
  def process(self, iprot, oprot):
3106
  def process(self, iprot, oprot):
2946
    (name, type, seqid) = iprot.readMessageBegin()
3107
    (name, type, seqid) = iprot.readMessageBegin()
2947
    if name not in self._processMap:
3108
    if name not in self._processMap:
2948
      iprot.skip(TType.STRUCT)
3109
      iprot.skip(TType.STRUCT)
Line 3804... Line 3965...
3804
    oprot.writeMessageBegin("getAllDoaOutInventoryItems", TMessageType.REPLY, seqid)
3965
    oprot.writeMessageBegin("getAllDoaOutInventoryItems", TMessageType.REPLY, seqid)
3805
    result.write(oprot)
3966
    result.write(oprot)
3806
    oprot.writeMessageEnd()
3967
    oprot.writeMessageEnd()
3807
    oprot.trans.flush()
3968
    oprot.trans.flush()
3808
 
3969
 
-
 
3970
  def process_getAllUnCompletedStockShipments(self, seqid, iprot, oprot):
-
 
3971
    args = getAllUnCompletedStockShipments_args()
-
 
3972
    args.read(iprot)
-
 
3973
    iprot.readMessageEnd()
-
 
3974
    result = getAllUnCompletedStockShipments_result()
-
 
3975
    try:
-
 
3976
      result.success = self._handler.getAllUnCompletedStockShipments(args.source)
-
 
3977
    except WarehouseServiceException, ex:
-
 
3978
      result.ex = ex
-
 
3979
    oprot.writeMessageBegin("getAllUnCompletedStockShipments", TMessageType.REPLY, seqid)
-
 
3980
    result.write(oprot)
-
 
3981
    oprot.writeMessageEnd()
-
 
3982
    oprot.trans.flush()
-
 
3983
 
-
 
3984
  def process_getRemovalStockShipmentReferenceById(self, seqid, iprot, oprot):
-
 
3985
    args = getRemovalStockShipmentReferenceById_args()
-
 
3986
    args.read(iprot)
-
 
3987
    iprot.readMessageEnd()
-
 
3988
    result = getRemovalStockShipmentReferenceById_result()
-
 
3989
    try:
-
 
3990
      result.success = self._handler.getRemovalStockShipmentReferenceById(args.id)
-
 
3991
    except WarehouseServiceException, ex:
-
 
3992
      result.ex = ex
-
 
3993
    oprot.writeMessageBegin("getRemovalStockShipmentReferenceById", TMessageType.REPLY, seqid)
-
 
3994
    result.write(oprot)
-
 
3995
    oprot.writeMessageEnd()
-
 
3996
    oprot.trans.flush()
-
 
3997
 
-
 
3998
  def process_createRemovalStockShipmentReference(self, seqid, iprot, oprot):
-
 
3999
    args = createRemovalStockShipmentReference_args()
-
 
4000
    args.read(iprot)
-
 
4001
    iprot.readMessageEnd()
-
 
4002
    result = createRemovalStockShipmentReference_result()
-
 
4003
    try:
-
 
4004
      result.success = self._handler.createRemovalStockShipmentReference(args.removalStockShipmentReference)
-
 
4005
    except WarehouseServiceException, ex:
-
 
4006
      result.ex = ex
-
 
4007
    oprot.writeMessageBegin("createRemovalStockShipmentReference", TMessageType.REPLY, seqid)
-
 
4008
    result.write(oprot)
-
 
4009
    oprot.writeMessageEnd()
-
 
4010
    oprot.trans.flush()
-
 
4011
 
-
 
4012
  def process_updateShipmentReferenceTransferLot(self, seqid, iprot, oprot):
-
 
4013
    args = updateShipmentReferenceTransferLot_args()
-
 
4014
    args.read(iprot)
-
 
4015
    iprot.readMessageEnd()
-
 
4016
    result = updateShipmentReferenceTransferLot_result()
-
 
4017
    try:
-
 
4018
      self._handler.updateShipmentReferenceTransferLot(args.transferLotId, args.shipmentReferenceId)
-
 
4019
    except WarehouseServiceException, ex:
-
 
4020
      result.ex = ex
-
 
4021
    oprot.writeMessageBegin("updateShipmentReferenceTransferLot", TMessageType.REPLY, seqid)
-
 
4022
    result.write(oprot)
-
 
4023
    oprot.writeMessageEnd()
-
 
4024
    oprot.trans.flush()
-
 
4025
 
3809
 
4026
 
3810
# HELPER FUNCTIONS AND STRUCTURES
4027
# HELPER FUNCTIONS AND STRUCTURES
3811
 
4028
 
3812
class getInventoryItem_args:
4029
class getInventoryItem_args:
3813
  """
4030
  """
Line 13329... Line 13546...
13329
    if self.ex is not None:
13546
    if self.ex is not None:
13330
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13547
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13331
      self.ex.write(oprot)
13548
      self.ex.write(oprot)
13332
      oprot.writeFieldEnd()
13549
      oprot.writeFieldEnd()
13333
    oprot.writeFieldStop()
13550
    oprot.writeFieldStop()
-
 
13551
    oprot.writeStructEnd()
-
 
13552
 
-
 
13553
  def validate(self):
-
 
13554
    return
-
 
13555
 
-
 
13556
 
-
 
13557
  def __repr__(self):
-
 
13558
    L = ['%s=%r' % (key, value)
-
 
13559
      for key, value in self.__dict__.iteritems()]
-
 
13560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13561
 
-
 
13562
  def __eq__(self, other):
-
 
13563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13564
 
-
 
13565
  def __ne__(self, other):
-
 
13566
    return not (self == other)
-
 
13567
 
-
 
13568
class getAllUnCompletedStockShipments_args:
-
 
13569
  """
-
 
13570
  Attributes:
-
 
13571
   - source
-
 
13572
  """
-
 
13573
 
-
 
13574
  thrift_spec = (
-
 
13575
    None, # 0
-
 
13576
    (1, TType.STRING, 'source', None, None, ), # 1
-
 
13577
  )
-
 
13578
 
-
 
13579
  def __init__(self, source=None,):
-
 
13580
    self.source = source
-
 
13581
 
-
 
13582
  def read(self, iprot):
-
 
13583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13585
      return
-
 
13586
    iprot.readStructBegin()
-
 
13587
    while True:
-
 
13588
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13589
      if ftype == TType.STOP:
-
 
13590
        break
-
 
13591
      if fid == 1:
-
 
13592
        if ftype == TType.STRING:
-
 
13593
          self.source = iprot.readString();
-
 
13594
        else:
-
 
13595
          iprot.skip(ftype)
-
 
13596
      else:
-
 
13597
        iprot.skip(ftype)
-
 
13598
      iprot.readFieldEnd()
-
 
13599
    iprot.readStructEnd()
-
 
13600
 
-
 
13601
  def write(self, oprot):
-
 
13602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13604
      return
-
 
13605
    oprot.writeStructBegin('getAllUnCompletedStockShipments_args')
-
 
13606
    if self.source is not None:
-
 
13607
      oprot.writeFieldBegin('source', TType.STRING, 1)
-
 
13608
      oprot.writeString(self.source)
-
 
13609
      oprot.writeFieldEnd()
-
 
13610
    oprot.writeFieldStop()
-
 
13611
    oprot.writeStructEnd()
-
 
13612
 
-
 
13613
  def validate(self):
-
 
13614
    return
-
 
13615
 
-
 
13616
 
-
 
13617
  def __repr__(self):
-
 
13618
    L = ['%s=%r' % (key, value)
-
 
13619
      for key, value in self.__dict__.iteritems()]
-
 
13620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13621
 
-
 
13622
  def __eq__(self, other):
-
 
13623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13624
 
-
 
13625
  def __ne__(self, other):
-
 
13626
    return not (self == other)
-
 
13627
 
-
 
13628
class getAllUnCompletedStockShipments_result:
-
 
13629
  """
-
 
13630
  Attributes:
-
 
13631
   - success
-
 
13632
   - ex
-
 
13633
  """
-
 
13634
 
-
 
13635
  thrift_spec = (
-
 
13636
    (0, TType.LIST, 'success', (TType.STRUCT,(RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec)), None, ), # 0
-
 
13637
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
13638
  )
-
 
13639
 
-
 
13640
  def __init__(self, success=None, ex=None,):
-
 
13641
    self.success = success
-
 
13642
    self.ex = ex
-
 
13643
 
-
 
13644
  def read(self, iprot):
-
 
13645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13647
      return
-
 
13648
    iprot.readStructBegin()
-
 
13649
    while True:
-
 
13650
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13651
      if ftype == TType.STOP:
-
 
13652
        break
-
 
13653
      if fid == 0:
-
 
13654
        if ftype == TType.LIST:
-
 
13655
          self.success = []
-
 
13656
          (_etype322, _size319) = iprot.readListBegin()
-
 
13657
          for _i323 in xrange(_size319):
-
 
13658
            _elem324 = RemovalStockShipmentReference()
-
 
13659
            _elem324.read(iprot)
-
 
13660
            self.success.append(_elem324)
-
 
13661
          iprot.readListEnd()
-
 
13662
        else:
-
 
13663
          iprot.skip(ftype)
-
 
13664
      elif fid == 1:
-
 
13665
        if ftype == TType.STRUCT:
-
 
13666
          self.ex = WarehouseServiceException()
-
 
13667
          self.ex.read(iprot)
-
 
13668
        else:
-
 
13669
          iprot.skip(ftype)
-
 
13670
      else:
-
 
13671
        iprot.skip(ftype)
-
 
13672
      iprot.readFieldEnd()
-
 
13673
    iprot.readStructEnd()
-
 
13674
 
-
 
13675
  def write(self, oprot):
-
 
13676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13678
      return
-
 
13679
    oprot.writeStructBegin('getAllUnCompletedStockShipments_result')
-
 
13680
    if self.success is not None:
-
 
13681
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
13682
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
13683
      for iter325 in self.success:
-
 
13684
        iter325.write(oprot)
-
 
13685
      oprot.writeListEnd()
-
 
13686
      oprot.writeFieldEnd()
-
 
13687
    if self.ex is not None:
-
 
13688
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
13689
      self.ex.write(oprot)
-
 
13690
      oprot.writeFieldEnd()
-
 
13691
    oprot.writeFieldStop()
-
 
13692
    oprot.writeStructEnd()
-
 
13693
 
-
 
13694
  def validate(self):
-
 
13695
    return
-
 
13696
 
-
 
13697
 
-
 
13698
  def __repr__(self):
-
 
13699
    L = ['%s=%r' % (key, value)
-
 
13700
      for key, value in self.__dict__.iteritems()]
-
 
13701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13702
 
-
 
13703
  def __eq__(self, other):
-
 
13704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13705
 
-
 
13706
  def __ne__(self, other):
-
 
13707
    return not (self == other)
-
 
13708
 
-
 
13709
class getRemovalStockShipmentReferenceById_args:
-
 
13710
  """
-
 
13711
  Attributes:
-
 
13712
   - id
-
 
13713
  """
-
 
13714
 
-
 
13715
  thrift_spec = (
-
 
13716
    None, # 0
-
 
13717
    (1, TType.I64, 'id', None, None, ), # 1
-
 
13718
  )
-
 
13719
 
-
 
13720
  def __init__(self, id=None,):
-
 
13721
    self.id = id
-
 
13722
 
-
 
13723
  def read(self, iprot):
-
 
13724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13726
      return
-
 
13727
    iprot.readStructBegin()
-
 
13728
    while True:
-
 
13729
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13730
      if ftype == TType.STOP:
-
 
13731
        break
-
 
13732
      if fid == 1:
-
 
13733
        if ftype == TType.I64:
-
 
13734
          self.id = iprot.readI64();
-
 
13735
        else:
-
 
13736
          iprot.skip(ftype)
-
 
13737
      else:
-
 
13738
        iprot.skip(ftype)
-
 
13739
      iprot.readFieldEnd()
-
 
13740
    iprot.readStructEnd()
-
 
13741
 
-
 
13742
  def write(self, oprot):
-
 
13743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13745
      return
-
 
13746
    oprot.writeStructBegin('getRemovalStockShipmentReferenceById_args')
-
 
13747
    if self.id is not None:
-
 
13748
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
13749
      oprot.writeI64(self.id)
-
 
13750
      oprot.writeFieldEnd()
-
 
13751
    oprot.writeFieldStop()
-
 
13752
    oprot.writeStructEnd()
-
 
13753
 
-
 
13754
  def validate(self):
-
 
13755
    return
-
 
13756
 
-
 
13757
 
-
 
13758
  def __repr__(self):
-
 
13759
    L = ['%s=%r' % (key, value)
-
 
13760
      for key, value in self.__dict__.iteritems()]
-
 
13761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13762
 
-
 
13763
  def __eq__(self, other):
-
 
13764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13765
 
-
 
13766
  def __ne__(self, other):
-
 
13767
    return not (self == other)
-
 
13768
 
-
 
13769
class getRemovalStockShipmentReferenceById_result:
-
 
13770
  """
-
 
13771
  Attributes:
-
 
13772
   - success
-
 
13773
   - ex
-
 
13774
  """
-
 
13775
 
-
 
13776
  thrift_spec = (
-
 
13777
    (0, TType.STRUCT, 'success', (RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec), None, ), # 0
-
 
13778
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
13779
  )
-
 
13780
 
-
 
13781
  def __init__(self, success=None, ex=None,):
-
 
13782
    self.success = success
-
 
13783
    self.ex = ex
-
 
13784
 
-
 
13785
  def read(self, iprot):
-
 
13786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13788
      return
-
 
13789
    iprot.readStructBegin()
-
 
13790
    while True:
-
 
13791
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13792
      if ftype == TType.STOP:
-
 
13793
        break
-
 
13794
      if fid == 0:
-
 
13795
        if ftype == TType.STRUCT:
-
 
13796
          self.success = RemovalStockShipmentReference()
-
 
13797
          self.success.read(iprot)
-
 
13798
        else:
-
 
13799
          iprot.skip(ftype)
-
 
13800
      elif fid == 1:
-
 
13801
        if ftype == TType.STRUCT:
-
 
13802
          self.ex = WarehouseServiceException()
-
 
13803
          self.ex.read(iprot)
-
 
13804
        else:
-
 
13805
          iprot.skip(ftype)
-
 
13806
      else:
-
 
13807
        iprot.skip(ftype)
-
 
13808
      iprot.readFieldEnd()
-
 
13809
    iprot.readStructEnd()
-
 
13810
 
-
 
13811
  def write(self, oprot):
-
 
13812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13814
      return
-
 
13815
    oprot.writeStructBegin('getRemovalStockShipmentReferenceById_result')
-
 
13816
    if self.success is not None:
-
 
13817
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
13818
      self.success.write(oprot)
-
 
13819
      oprot.writeFieldEnd()
-
 
13820
    if self.ex is not None:
-
 
13821
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
13822
      self.ex.write(oprot)
-
 
13823
      oprot.writeFieldEnd()
-
 
13824
    oprot.writeFieldStop()
-
 
13825
    oprot.writeStructEnd()
-
 
13826
 
-
 
13827
  def validate(self):
-
 
13828
    return
-
 
13829
 
-
 
13830
 
-
 
13831
  def __repr__(self):
-
 
13832
    L = ['%s=%r' % (key, value)
-
 
13833
      for key, value in self.__dict__.iteritems()]
-
 
13834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13835
 
-
 
13836
  def __eq__(self, other):
-
 
13837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13838
 
-
 
13839
  def __ne__(self, other):
-
 
13840
    return not (self == other)
-
 
13841
 
-
 
13842
class createRemovalStockShipmentReference_args:
-
 
13843
  """
-
 
13844
  Attributes:
-
 
13845
   - removalStockShipmentReference
-
 
13846
  """
-
 
13847
 
-
 
13848
  thrift_spec = (
-
 
13849
    None, # 0
-
 
13850
    (1, TType.STRUCT, 'removalStockShipmentReference', (RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec), None, ), # 1
-
 
13851
  )
-
 
13852
 
-
 
13853
  def __init__(self, removalStockShipmentReference=None,):
-
 
13854
    self.removalStockShipmentReference = removalStockShipmentReference
-
 
13855
 
-
 
13856
  def read(self, iprot):
-
 
13857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13859
      return
-
 
13860
    iprot.readStructBegin()
-
 
13861
    while True:
-
 
13862
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13863
      if ftype == TType.STOP:
-
 
13864
        break
-
 
13865
      if fid == 1:
-
 
13866
        if ftype == TType.STRUCT:
-
 
13867
          self.removalStockShipmentReference = RemovalStockShipmentReference()
-
 
13868
          self.removalStockShipmentReference.read(iprot)
-
 
13869
        else:
-
 
13870
          iprot.skip(ftype)
-
 
13871
      else:
-
 
13872
        iprot.skip(ftype)
-
 
13873
      iprot.readFieldEnd()
-
 
13874
    iprot.readStructEnd()
-
 
13875
 
-
 
13876
  def write(self, oprot):
-
 
13877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13879
      return
-
 
13880
    oprot.writeStructBegin('createRemovalStockShipmentReference_args')
-
 
13881
    if self.removalStockShipmentReference is not None:
-
 
13882
      oprot.writeFieldBegin('removalStockShipmentReference', TType.STRUCT, 1)
-
 
13883
      self.removalStockShipmentReference.write(oprot)
-
 
13884
      oprot.writeFieldEnd()
-
 
13885
    oprot.writeFieldStop()
-
 
13886
    oprot.writeStructEnd()
-
 
13887
 
-
 
13888
  def validate(self):
-
 
13889
    return
-
 
13890
 
-
 
13891
 
-
 
13892
  def __repr__(self):
-
 
13893
    L = ['%s=%r' % (key, value)
-
 
13894
      for key, value in self.__dict__.iteritems()]
-
 
13895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13896
 
-
 
13897
  def __eq__(self, other):
-
 
13898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13899
 
-
 
13900
  def __ne__(self, other):
-
 
13901
    return not (self == other)
-
 
13902
 
-
 
13903
class createRemovalStockShipmentReference_result:
-
 
13904
  """
-
 
13905
  Attributes:
-
 
13906
   - success
-
 
13907
   - ex
-
 
13908
  """
-
 
13909
 
-
 
13910
  thrift_spec = (
-
 
13911
    (0, TType.I64, 'success', None, None, ), # 0
-
 
13912
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
13913
  )
-
 
13914
 
-
 
13915
  def __init__(self, success=None, ex=None,):
-
 
13916
    self.success = success
-
 
13917
    self.ex = ex
-
 
13918
 
-
 
13919
  def read(self, iprot):
-
 
13920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13922
      return
-
 
13923
    iprot.readStructBegin()
-
 
13924
    while True:
-
 
13925
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13926
      if ftype == TType.STOP:
-
 
13927
        break
-
 
13928
      if fid == 0:
-
 
13929
        if ftype == TType.I64:
-
 
13930
          self.success = iprot.readI64();
-
 
13931
        else:
-
 
13932
          iprot.skip(ftype)
-
 
13933
      elif fid == 1:
-
 
13934
        if ftype == TType.STRUCT:
-
 
13935
          self.ex = WarehouseServiceException()
-
 
13936
          self.ex.read(iprot)
-
 
13937
        else:
-
 
13938
          iprot.skip(ftype)
-
 
13939
      else:
-
 
13940
        iprot.skip(ftype)
-
 
13941
      iprot.readFieldEnd()
-
 
13942
    iprot.readStructEnd()
-
 
13943
 
-
 
13944
  def write(self, oprot):
-
 
13945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13947
      return
-
 
13948
    oprot.writeStructBegin('createRemovalStockShipmentReference_result')
-
 
13949
    if self.success is not None:
-
 
13950
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
13951
      oprot.writeI64(self.success)
-
 
13952
      oprot.writeFieldEnd()
-
 
13953
    if self.ex is not None:
-
 
13954
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
13955
      self.ex.write(oprot)
-
 
13956
      oprot.writeFieldEnd()
-
 
13957
    oprot.writeFieldStop()
-
 
13958
    oprot.writeStructEnd()
-
 
13959
 
-
 
13960
  def validate(self):
-
 
13961
    return
-
 
13962
 
-
 
13963
 
-
 
13964
  def __repr__(self):
-
 
13965
    L = ['%s=%r' % (key, value)
-
 
13966
      for key, value in self.__dict__.iteritems()]
-
 
13967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13968
 
-
 
13969
  def __eq__(self, other):
-
 
13970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13971
 
-
 
13972
  def __ne__(self, other):
-
 
13973
    return not (self == other)
-
 
13974
 
-
 
13975
class updateShipmentReferenceTransferLot_args:
-
 
13976
  """
-
 
13977
  Attributes:
-
 
13978
   - transferLotId
-
 
13979
   - shipmentReferenceId
-
 
13980
  """
-
 
13981
 
-
 
13982
  thrift_spec = (
-
 
13983
    None, # 0
-
 
13984
    (1, TType.I64, 'transferLotId', None, None, ), # 1
-
 
13985
    (2, TType.I64, 'shipmentReferenceId', None, None, ), # 2
-
 
13986
  )
-
 
13987
 
-
 
13988
  def __init__(self, transferLotId=None, shipmentReferenceId=None,):
-
 
13989
    self.transferLotId = transferLotId
-
 
13990
    self.shipmentReferenceId = shipmentReferenceId
-
 
13991
 
-
 
13992
  def read(self, iprot):
-
 
13993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13995
      return
-
 
13996
    iprot.readStructBegin()
-
 
13997
    while True:
-
 
13998
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13999
      if ftype == TType.STOP:
-
 
14000
        break
-
 
14001
      if fid == 1:
-
 
14002
        if ftype == TType.I64:
-
 
14003
          self.transferLotId = iprot.readI64();
-
 
14004
        else:
-
 
14005
          iprot.skip(ftype)
-
 
14006
      elif fid == 2:
-
 
14007
        if ftype == TType.I64:
-
 
14008
          self.shipmentReferenceId = iprot.readI64();
-
 
14009
        else:
-
 
14010
          iprot.skip(ftype)
-
 
14011
      else:
-
 
14012
        iprot.skip(ftype)
-
 
14013
      iprot.readFieldEnd()
-
 
14014
    iprot.readStructEnd()
-
 
14015
 
-
 
14016
  def write(self, oprot):
-
 
14017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14019
      return
-
 
14020
    oprot.writeStructBegin('updateShipmentReferenceTransferLot_args')
-
 
14021
    if self.transferLotId is not None:
-
 
14022
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
-
 
14023
      oprot.writeI64(self.transferLotId)
-
 
14024
      oprot.writeFieldEnd()
-
 
14025
    if self.shipmentReferenceId is not None:
-
 
14026
      oprot.writeFieldBegin('shipmentReferenceId', TType.I64, 2)
-
 
14027
      oprot.writeI64(self.shipmentReferenceId)
-
 
14028
      oprot.writeFieldEnd()
-
 
14029
    oprot.writeFieldStop()
-
 
14030
    oprot.writeStructEnd()
-
 
14031
 
-
 
14032
  def validate(self):
-
 
14033
    return
-
 
14034
 
-
 
14035
 
-
 
14036
  def __repr__(self):
-
 
14037
    L = ['%s=%r' % (key, value)
-
 
14038
      for key, value in self.__dict__.iteritems()]
-
 
14039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14040
 
-
 
14041
  def __eq__(self, other):
-
 
14042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14043
 
-
 
14044
  def __ne__(self, other):
-
 
14045
    return not (self == other)
-
 
14046
 
-
 
14047
class updateShipmentReferenceTransferLot_result:
-
 
14048
  """
-
 
14049
  Attributes:
-
 
14050
   - ex
-
 
14051
  """
-
 
14052
 
-
 
14053
  thrift_spec = (
-
 
14054
    None, # 0
-
 
14055
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
14056
  )
-
 
14057
 
-
 
14058
  def __init__(self, ex=None,):
-
 
14059
    self.ex = ex
-
 
14060
 
-
 
14061
  def read(self, iprot):
-
 
14062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14064
      return
-
 
14065
    iprot.readStructBegin()
-
 
14066
    while True:
-
 
14067
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14068
      if ftype == TType.STOP:
-
 
14069
        break
-
 
14070
      if fid == 1:
-
 
14071
        if ftype == TType.STRUCT:
-
 
14072
          self.ex = WarehouseServiceException()
-
 
14073
          self.ex.read(iprot)
-
 
14074
        else:
-
 
14075
          iprot.skip(ftype)
-
 
14076
      else:
-
 
14077
        iprot.skip(ftype)
-
 
14078
      iprot.readFieldEnd()
-
 
14079
    iprot.readStructEnd()
-
 
14080
 
-
 
14081
  def write(self, oprot):
-
 
14082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14084
      return
-
 
14085
    oprot.writeStructBegin('updateShipmentReferenceTransferLot_result')
-
 
14086
    if self.ex is not None:
-
 
14087
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
14088
      self.ex.write(oprot)
-
 
14089
      oprot.writeFieldEnd()
-
 
14090
    oprot.writeFieldStop()
13334
    oprot.writeStructEnd()
14091
    oprot.writeStructEnd()
13335
 
14092
 
13336
  def validate(self):
14093
  def validate(self):
13337
    return
14094
    return
13338
 
14095