Subversion Repositories SmartDukaan

Rev

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

Rev 6467 Rev 6630
Line 177... Line 177...
177
    """
177
    """
178
    pass
178
    pass
179
 
179
 
180
  def scanForPurchaseReturn(self, saleReturnItems, vendorId):
180
  def scanForPurchaseReturn(self, saleReturnItems, vendorId):
181
    """
181
    """
182
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItem
182
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
183
 
183
 
184
    Parameters:
184
    Parameters:
185
     - saleReturnItems
185
     - saleReturnItems
186
     - vendorId
186
     - vendorId
187
    """
187
    """
188
    pass
188
    pass
189
 
189
 
-
 
190
  def scanForLostItem(self, lostItems, vendorId):
-
 
191
    """
-
 
192
    Inserts scans for lost Items and updates lastScanType in InventoryItems
-
 
193
 
-
 
194
    Parameters:
-
 
195
     - lostItems
-
 
196
     - vendorId
-
 
197
    """
-
 
198
    pass
-
 
199
 
-
 
200
  def getCurrentSerializedInventoryByScans(self, ):
-
 
201
    """
-
 
202
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
203
    """
-
 
204
    pass
-
 
205
 
-
 
206
  def getCurrentNonSerializedInventoryByScans(self, ):
-
 
207
    """
-
 
208
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
209
    """
-
 
210
    pass
-
 
211
 
190
 
212
 
191
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
213
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
192
  def __init__(self, iprot, oprot=None):
214
  def __init__(self, iprot, oprot=None):
193
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
215
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
194
 
216
 
Line 750... Line 772...
750
      return result.success
772
      return result.success
751
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
752
 
774
 
753
  def scanForPurchaseReturn(self, saleReturnItems, vendorId):
775
  def scanForPurchaseReturn(self, saleReturnItems, vendorId):
754
    """
776
    """
755
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItem
777
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
756
 
778
 
757
    Parameters:
779
    Parameters:
758
     - saleReturnItems
780
     - saleReturnItems
759
     - vendorId
781
     - vendorId
760
    """
782
    """
Line 782... Line 804...
782
    self._iprot.readMessageEnd()
804
    self._iprot.readMessageEnd()
783
    if result.ex is not None:
805
    if result.ex is not None:
784
      raise result.ex
806
      raise result.ex
785
    return
807
    return
786
 
808
 
-
 
809
  def scanForLostItem(self, lostItems, vendorId):
-
 
810
    """
-
 
811
    Inserts scans for lost Items and updates lastScanType in InventoryItems
-
 
812
 
-
 
813
    Parameters:
-
 
814
     - lostItems
-
 
815
     - vendorId
-
 
816
    """
-
 
817
    self.send_scanForLostItem(lostItems, vendorId)
-
 
818
    self.recv_scanForLostItem()
-
 
819
 
-
 
820
  def send_scanForLostItem(self, lostItems, vendorId):
-
 
821
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
-
 
822
    args = scanForLostItem_args()
-
 
823
    args.lostItems = lostItems
-
 
824
    args.vendorId = vendorId
-
 
825
    args.write(self._oprot)
-
 
826
    self._oprot.writeMessageEnd()
-
 
827
    self._oprot.trans.flush()
-
 
828
 
-
 
829
  def recv_scanForLostItem(self, ):
-
 
830
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
831
    if mtype == TMessageType.EXCEPTION:
-
 
832
      x = TApplicationException()
-
 
833
      x.read(self._iprot)
-
 
834
      self._iprot.readMessageEnd()
-
 
835
      raise x
-
 
836
    result = scanForLostItem_result()
-
 
837
    result.read(self._iprot)
-
 
838
    self._iprot.readMessageEnd()
-
 
839
    if result.ex is not None:
-
 
840
      raise result.ex
-
 
841
    return
-
 
842
 
-
 
843
  def getCurrentSerializedInventoryByScans(self, ):
-
 
844
    """
-
 
845
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
846
    """
-
 
847
    self.send_getCurrentSerializedInventoryByScans()
-
 
848
    return self.recv_getCurrentSerializedInventoryByScans()
-
 
849
 
-
 
850
  def send_getCurrentSerializedInventoryByScans(self, ):
-
 
851
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
-
 
852
    args = getCurrentSerializedInventoryByScans_args()
-
 
853
    args.write(self._oprot)
-
 
854
    self._oprot.writeMessageEnd()
-
 
855
    self._oprot.trans.flush()
-
 
856
 
-
 
857
  def recv_getCurrentSerializedInventoryByScans(self, ):
-
 
858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
859
    if mtype == TMessageType.EXCEPTION:
-
 
860
      x = TApplicationException()
-
 
861
      x.read(self._iprot)
-
 
862
      self._iprot.readMessageEnd()
-
 
863
      raise x
-
 
864
    result = getCurrentSerializedInventoryByScans_result()
-
 
865
    result.read(self._iprot)
-
 
866
    self._iprot.readMessageEnd()
-
 
867
    if result.success is not None:
-
 
868
      return result.success
-
 
869
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
-
 
870
 
-
 
871
  def getCurrentNonSerializedInventoryByScans(self, ):
-
 
872
    """
-
 
873
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
874
    """
-
 
875
    self.send_getCurrentNonSerializedInventoryByScans()
-
 
876
    return self.recv_getCurrentNonSerializedInventoryByScans()
-
 
877
 
-
 
878
  def send_getCurrentNonSerializedInventoryByScans(self, ):
-
 
879
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
-
 
880
    args = getCurrentNonSerializedInventoryByScans_args()
-
 
881
    args.write(self._oprot)
-
 
882
    self._oprot.writeMessageEnd()
-
 
883
    self._oprot.trans.flush()
-
 
884
 
-
 
885
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
-
 
886
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
887
    if mtype == TMessageType.EXCEPTION:
-
 
888
      x = TApplicationException()
-
 
889
      x.read(self._iprot)
-
 
890
      self._iprot.readMessageEnd()
-
 
891
      raise x
-
 
892
    result = getCurrentNonSerializedInventoryByScans_result()
-
 
893
    result.read(self._iprot)
-
 
894
    self._iprot.readMessageEnd()
-
 
895
    if result.success is not None:
-
 
896
      return result.success
-
 
897
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
-
 
898
 
787
 
899
 
788
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
900
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
789
  def __init__(self, handler):
901
  def __init__(self, handler):
790
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
902
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
791
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
903
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
Line 803... Line 915...
803
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
915
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
804
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
916
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
805
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
917
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
806
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
918
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
807
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
919
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
-
 
920
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
-
 
921
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
-
 
922
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
808
 
923
 
809
  def process(self, iprot, oprot):
924
  def process(self, iprot, oprot):
810
    (name, type, seqid) = iprot.readMessageBegin()
925
    (name, type, seqid) = iprot.readMessageBegin()
811
    if name not in self._processMap:
926
    if name not in self._processMap:
812
      iprot.skip(TType.STRUCT)
927
      iprot.skip(TType.STRUCT)
Line 1033... Line 1148...
1033
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
1148
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
1034
    result.write(oprot)
1149
    result.write(oprot)
1035
    oprot.writeMessageEnd()
1150
    oprot.writeMessageEnd()
1036
    oprot.trans.flush()
1151
    oprot.trans.flush()
1037
 
1152
 
-
 
1153
  def process_scanForLostItem(self, seqid, iprot, oprot):
-
 
1154
    args = scanForLostItem_args()
-
 
1155
    args.read(iprot)
-
 
1156
    iprot.readMessageEnd()
-
 
1157
    result = scanForLostItem_result()
-
 
1158
    try:
-
 
1159
      self._handler.scanForLostItem(args.lostItems, args.vendorId)
-
 
1160
    except WarehouseServiceException, ex:
-
 
1161
      result.ex = ex
-
 
1162
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
-
 
1163
    result.write(oprot)
-
 
1164
    oprot.writeMessageEnd()
-
 
1165
    oprot.trans.flush()
-
 
1166
 
-
 
1167
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
-
 
1168
    args = getCurrentSerializedInventoryByScans_args()
-
 
1169
    args.read(iprot)
-
 
1170
    iprot.readMessageEnd()
-
 
1171
    result = getCurrentSerializedInventoryByScans_result()
-
 
1172
    result.success = self._handler.getCurrentSerializedInventoryByScans()
-
 
1173
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
-
 
1174
    result.write(oprot)
-
 
1175
    oprot.writeMessageEnd()
-
 
1176
    oprot.trans.flush()
-
 
1177
 
-
 
1178
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
-
 
1179
    args = getCurrentNonSerializedInventoryByScans_args()
-
 
1180
    args.read(iprot)
-
 
1181
    iprot.readMessageEnd()
-
 
1182
    result = getCurrentNonSerializedInventoryByScans_result()
-
 
1183
    result.success = self._handler.getCurrentNonSerializedInventoryByScans()
-
 
1184
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
-
 
1185
    result.write(oprot)
-
 
1186
    oprot.writeMessageEnd()
-
 
1187
    oprot.trans.flush()
-
 
1188
 
1038
 
1189
 
1039
# HELPER FUNCTIONS AND STRUCTURES
1190
# HELPER FUNCTIONS AND STRUCTURES
1040
 
1191
 
1041
class getInventoryItem_args:
1192
class getInventoryItem_args:
1042
  """
1193
  """
Line 3432... Line 3583...
3432
      oprot.writeFieldEnd()
3583
      oprot.writeFieldEnd()
3433
    oprot.writeFieldStop()
3584
    oprot.writeFieldStop()
3434
    oprot.writeStructEnd()
3585
    oprot.writeStructEnd()
3435
 
3586
 
3436
  def validate(self):
3587
  def validate(self):
-
 
3588
    return
-
 
3589
 
-
 
3590
 
-
 
3591
  def __repr__(self):
-
 
3592
    L = ['%s=%r' % (key, value)
-
 
3593
      for key, value in self.__dict__.iteritems()]
-
 
3594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3595
 
-
 
3596
  def __eq__(self, other):
-
 
3597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3598
 
-
 
3599
  def __ne__(self, other):
-
 
3600
    return not (self == other)
-
 
3601
 
-
 
3602
class scanForLostItem_args:
-
 
3603
  """
-
 
3604
  Attributes:
-
 
3605
   - lostItems
-
 
3606
   - vendorId
-
 
3607
  """
-
 
3608
 
-
 
3609
  thrift_spec = (
-
 
3610
    None, # 0
-
 
3611
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
-
 
3612
    (2, TType.I64, 'vendorId', None, None, ), # 2
-
 
3613
  )
-
 
3614
 
-
 
3615
  def __init__(self, lostItems=None, vendorId=None,):
-
 
3616
    self.lostItems = lostItems
-
 
3617
    self.vendorId = vendorId
-
 
3618
 
-
 
3619
  def read(self, iprot):
-
 
3620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3622
      return
-
 
3623
    iprot.readStructBegin()
-
 
3624
    while True:
-
 
3625
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3626
      if ftype == TType.STOP:
-
 
3627
        break
-
 
3628
      if fid == 1:
-
 
3629
        if ftype == TType.LIST:
-
 
3630
          self.lostItems = []
-
 
3631
          (_etype66, _size63) = iprot.readListBegin()
-
 
3632
          for _i67 in xrange(_size63):
-
 
3633
            _elem68 = InventoryItem()
-
 
3634
            _elem68.read(iprot)
-
 
3635
            self.lostItems.append(_elem68)
-
 
3636
          iprot.readListEnd()
-
 
3637
        else:
-
 
3638
          iprot.skip(ftype)
-
 
3639
      elif fid == 2:
-
 
3640
        if ftype == TType.I64:
-
 
3641
          self.vendorId = iprot.readI64();
-
 
3642
        else:
-
 
3643
          iprot.skip(ftype)
-
 
3644
      else:
-
 
3645
        iprot.skip(ftype)
-
 
3646
      iprot.readFieldEnd()
-
 
3647
    iprot.readStructEnd()
-
 
3648
 
-
 
3649
  def write(self, oprot):
-
 
3650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3652
      return
-
 
3653
    oprot.writeStructBegin('scanForLostItem_args')
-
 
3654
    if self.lostItems is not None:
-
 
3655
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
-
 
3656
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
-
 
3657
      for iter69 in self.lostItems:
-
 
3658
        iter69.write(oprot)
-
 
3659
      oprot.writeListEnd()
-
 
3660
      oprot.writeFieldEnd()
-
 
3661
    if self.vendorId is not None:
-
 
3662
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
-
 
3663
      oprot.writeI64(self.vendorId)
-
 
3664
      oprot.writeFieldEnd()
-
 
3665
    oprot.writeFieldStop()
-
 
3666
    oprot.writeStructEnd()
-
 
3667
 
-
 
3668
  def validate(self):
-
 
3669
    return
-
 
3670
 
-
 
3671
 
-
 
3672
  def __repr__(self):
-
 
3673
    L = ['%s=%r' % (key, value)
-
 
3674
      for key, value in self.__dict__.iteritems()]
-
 
3675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3676
 
-
 
3677
  def __eq__(self, other):
-
 
3678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3679
 
-
 
3680
  def __ne__(self, other):
-
 
3681
    return not (self == other)
-
 
3682
 
-
 
3683
class scanForLostItem_result:
-
 
3684
  """
-
 
3685
  Attributes:
-
 
3686
   - ex
-
 
3687
  """
-
 
3688
 
-
 
3689
  thrift_spec = (
-
 
3690
    None, # 0
-
 
3691
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
3692
  )
-
 
3693
 
-
 
3694
  def __init__(self, ex=None,):
-
 
3695
    self.ex = ex
-
 
3696
 
-
 
3697
  def read(self, iprot):
-
 
3698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3700
      return
-
 
3701
    iprot.readStructBegin()
-
 
3702
    while True:
-
 
3703
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3704
      if ftype == TType.STOP:
-
 
3705
        break
-
 
3706
      if fid == 1:
-
 
3707
        if ftype == TType.STRUCT:
-
 
3708
          self.ex = WarehouseServiceException()
-
 
3709
          self.ex.read(iprot)
-
 
3710
        else:
-
 
3711
          iprot.skip(ftype)
-
 
3712
      else:
-
 
3713
        iprot.skip(ftype)
-
 
3714
      iprot.readFieldEnd()
-
 
3715
    iprot.readStructEnd()
-
 
3716
 
-
 
3717
  def write(self, oprot):
-
 
3718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3720
      return
-
 
3721
    oprot.writeStructBegin('scanForLostItem_result')
-
 
3722
    if self.ex is not None:
-
 
3723
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
3724
      self.ex.write(oprot)
-
 
3725
      oprot.writeFieldEnd()
-
 
3726
    oprot.writeFieldStop()
-
 
3727
    oprot.writeStructEnd()
-
 
3728
 
-
 
3729
  def validate(self):
-
 
3730
    return
-
 
3731
 
-
 
3732
 
-
 
3733
  def __repr__(self):
-
 
3734
    L = ['%s=%r' % (key, value)
-
 
3735
      for key, value in self.__dict__.iteritems()]
-
 
3736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3737
 
-
 
3738
  def __eq__(self, other):
-
 
3739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3740
 
-
 
3741
  def __ne__(self, other):
-
 
3742
    return not (self == other)
-
 
3743
 
-
 
3744
class getCurrentSerializedInventoryByScans_args:
-
 
3745
 
-
 
3746
  thrift_spec = (
-
 
3747
  )
-
 
3748
 
-
 
3749
  def read(self, iprot):
-
 
3750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3752
      return
-
 
3753
    iprot.readStructBegin()
-
 
3754
    while True:
-
 
3755
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3756
      if ftype == TType.STOP:
-
 
3757
        break
-
 
3758
      else:
-
 
3759
        iprot.skip(ftype)
-
 
3760
      iprot.readFieldEnd()
-
 
3761
    iprot.readStructEnd()
-
 
3762
 
-
 
3763
  def write(self, oprot):
-
 
3764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3766
      return
-
 
3767
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
-
 
3768
    oprot.writeFieldStop()
-
 
3769
    oprot.writeStructEnd()
-
 
3770
 
-
 
3771
  def validate(self):
-
 
3772
    return
-
 
3773
 
-
 
3774
 
-
 
3775
  def __repr__(self):
-
 
3776
    L = ['%s=%r' % (key, value)
-
 
3777
      for key, value in self.__dict__.iteritems()]
-
 
3778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3779
 
-
 
3780
  def __eq__(self, other):
-
 
3781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3782
 
-
 
3783
  def __ne__(self, other):
-
 
3784
    return not (self == other)
-
 
3785
 
-
 
3786
class getCurrentSerializedInventoryByScans_result:
-
 
3787
  """
-
 
3788
  Attributes:
-
 
3789
   - success
-
 
3790
  """
-
 
3791
 
-
 
3792
  thrift_spec = (
-
 
3793
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
-
 
3794
  )
-
 
3795
 
-
 
3796
  def __init__(self, success=None,):
-
 
3797
    self.success = success
-
 
3798
 
-
 
3799
  def read(self, iprot):
-
 
3800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3802
      return
-
 
3803
    iprot.readStructBegin()
-
 
3804
    while True:
-
 
3805
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3806
      if ftype == TType.STOP:
-
 
3807
        break
-
 
3808
      if fid == 0:
-
 
3809
        if ftype == TType.LIST:
-
 
3810
          self.success = []
-
 
3811
          (_etype73, _size70) = iprot.readListBegin()
-
 
3812
          for _i74 in xrange(_size70):
-
 
3813
            _elem75 = InventoryAvailability()
-
 
3814
            _elem75.read(iprot)
-
 
3815
            self.success.append(_elem75)
-
 
3816
          iprot.readListEnd()
-
 
3817
        else:
-
 
3818
          iprot.skip(ftype)
-
 
3819
      else:
-
 
3820
        iprot.skip(ftype)
-
 
3821
      iprot.readFieldEnd()
-
 
3822
    iprot.readStructEnd()
-
 
3823
 
-
 
3824
  def write(self, oprot):
-
 
3825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3827
      return
-
 
3828
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
-
 
3829
    if self.success is not None:
-
 
3830
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
3831
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
3832
      for iter76 in self.success:
-
 
3833
        iter76.write(oprot)
-
 
3834
      oprot.writeListEnd()
-
 
3835
      oprot.writeFieldEnd()
-
 
3836
    oprot.writeFieldStop()
-
 
3837
    oprot.writeStructEnd()
-
 
3838
 
-
 
3839
  def validate(self):
-
 
3840
    return
-
 
3841
 
-
 
3842
 
-
 
3843
  def __repr__(self):
-
 
3844
    L = ['%s=%r' % (key, value)
-
 
3845
      for key, value in self.__dict__.iteritems()]
-
 
3846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3847
 
-
 
3848
  def __eq__(self, other):
-
 
3849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3850
 
-
 
3851
  def __ne__(self, other):
-
 
3852
    return not (self == other)
-
 
3853
 
-
 
3854
class getCurrentNonSerializedInventoryByScans_args:
-
 
3855
 
-
 
3856
  thrift_spec = (
-
 
3857
  )
-
 
3858
 
-
 
3859
  def read(self, iprot):
-
 
3860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3862
      return
-
 
3863
    iprot.readStructBegin()
-
 
3864
    while True:
-
 
3865
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3866
      if ftype == TType.STOP:
-
 
3867
        break
-
 
3868
      else:
-
 
3869
        iprot.skip(ftype)
-
 
3870
      iprot.readFieldEnd()
-
 
3871
    iprot.readStructEnd()
-
 
3872
 
-
 
3873
  def write(self, oprot):
-
 
3874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3876
      return
-
 
3877
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
-
 
3878
    oprot.writeFieldStop()
-
 
3879
    oprot.writeStructEnd()
-
 
3880
 
-
 
3881
  def validate(self):
-
 
3882
    return
-
 
3883
 
-
 
3884
 
-
 
3885
  def __repr__(self):
-
 
3886
    L = ['%s=%r' % (key, value)
-
 
3887
      for key, value in self.__dict__.iteritems()]
-
 
3888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3889
 
-
 
3890
  def __eq__(self, other):
-
 
3891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3892
 
-
 
3893
  def __ne__(self, other):
-
 
3894
    return not (self == other)
-
 
3895
 
-
 
3896
class getCurrentNonSerializedInventoryByScans_result:
-
 
3897
  """
-
 
3898
  Attributes:
-
 
3899
   - success
-
 
3900
  """
-
 
3901
 
-
 
3902
  thrift_spec = (
-
 
3903
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
-
 
3904
  )
-
 
3905
 
-
 
3906
  def __init__(self, success=None,):
-
 
3907
    self.success = success
-
 
3908
 
-
 
3909
  def read(self, iprot):
-
 
3910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3912
      return
-
 
3913
    iprot.readStructBegin()
-
 
3914
    while True:
-
 
3915
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3916
      if ftype == TType.STOP:
-
 
3917
        break
-
 
3918
      if fid == 0:
-
 
3919
        if ftype == TType.LIST:
-
 
3920
          self.success = []
-
 
3921
          (_etype80, _size77) = iprot.readListBegin()
-
 
3922
          for _i81 in xrange(_size77):
-
 
3923
            _elem82 = InventoryAvailability()
-
 
3924
            _elem82.read(iprot)
-
 
3925
            self.success.append(_elem82)
-
 
3926
          iprot.readListEnd()
-
 
3927
        else:
-
 
3928
          iprot.skip(ftype)
-
 
3929
      else:
-
 
3930
        iprot.skip(ftype)
-
 
3931
      iprot.readFieldEnd()
-
 
3932
    iprot.readStructEnd()
-
 
3933
 
-
 
3934
  def write(self, oprot):
-
 
3935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3937
      return
-
 
3938
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
-
 
3939
    if self.success is not None:
-
 
3940
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
3941
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
3942
      for iter83 in self.success:
-
 
3943
        iter83.write(oprot)
-
 
3944
      oprot.writeListEnd()
-
 
3945
      oprot.writeFieldEnd()
-
 
3946
    oprot.writeFieldStop()
-
 
3947
    oprot.writeStructEnd()
-
 
3948
 
-
 
3949
  def validate(self):
3437
    return
3950
    return
3438
 
3951
 
3439
 
3952
 
3440
  def __repr__(self):
3953
  def __repr__(self):
3441
    L = ['%s=%r' % (key, value)
3954
    L = ['%s=%r' % (key, value)