Subversion Repositories SmartDukaan

Rev

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

Rev 6386 Rev 6467
Line 184... Line 184...
184
    Parameters:
184
    Parameters:
185
     - supplier
185
     - supplier
186
    """
186
    """
187
    pass
187
    pass
188
 
188
 
-
 
189
  def createPurchaseReturn(self, purchaseReturn):
-
 
190
    """
-
 
191
    Create a new Purchase Return
-
 
192
 
-
 
193
    Parameters:
-
 
194
     - purchaseReturn
-
 
195
    """
-
 
196
    pass
-
 
197
 
-
 
198
  def settlePurchaseReturn(self, id):
-
 
199
    """
-
 
200
    Create a new Purchase Return
-
 
201
 
-
 
202
    Parameters:
-
 
203
     - id
-
 
204
    """
-
 
205
    pass
-
 
206
 
-
 
207
  def getUnsettledPurchaseReturns(self, ):
-
 
208
    """
-
 
209
    Create a new Purchase Return
-
 
210
    """
-
 
211
    pass
-
 
212
 
189
 
213
 
190
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
214
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
191
  def __init__(self, iprot, oprot=None):
215
  def __init__(self, iprot, oprot=None):
192
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
216
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
193
 
217
 
Line 796... Line 820...
796
    result = updateSupplier_result()
820
    result = updateSupplier_result()
797
    result.read(self._iprot)
821
    result.read(self._iprot)
798
    self._iprot.readMessageEnd()
822
    self._iprot.readMessageEnd()
799
    return
823
    return
800
 
824
 
-
 
825
  def createPurchaseReturn(self, purchaseReturn):
-
 
826
    """
-
 
827
    Create a new Purchase Return
-
 
828
 
-
 
829
    Parameters:
-
 
830
     - purchaseReturn
-
 
831
    """
-
 
832
    self.send_createPurchaseReturn(purchaseReturn)
-
 
833
    return self.recv_createPurchaseReturn()
-
 
834
 
-
 
835
  def send_createPurchaseReturn(self, purchaseReturn):
-
 
836
    self._oprot.writeMessageBegin('createPurchaseReturn', TMessageType.CALL, self._seqid)
-
 
837
    args = createPurchaseReturn_args()
-
 
838
    args.purchaseReturn = purchaseReturn
-
 
839
    args.write(self._oprot)
-
 
840
    self._oprot.writeMessageEnd()
-
 
841
    self._oprot.trans.flush()
-
 
842
 
-
 
843
  def recv_createPurchaseReturn(self, ):
-
 
844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
845
    if mtype == TMessageType.EXCEPTION:
-
 
846
      x = TApplicationException()
-
 
847
      x.read(self._iprot)
-
 
848
      self._iprot.readMessageEnd()
-
 
849
      raise x
-
 
850
    result = createPurchaseReturn_result()
-
 
851
    result.read(self._iprot)
-
 
852
    self._iprot.readMessageEnd()
-
 
853
    if result.success is not None:
-
 
854
      return result.success
-
 
855
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseReturn failed: unknown result");
-
 
856
 
-
 
857
  def settlePurchaseReturn(self, id):
-
 
858
    """
-
 
859
    Create a new Purchase Return
-
 
860
 
-
 
861
    Parameters:
-
 
862
     - id
-
 
863
    """
-
 
864
    self.send_settlePurchaseReturn(id)
-
 
865
    self.recv_settlePurchaseReturn()
-
 
866
 
-
 
867
  def send_settlePurchaseReturn(self, id):
-
 
868
    self._oprot.writeMessageBegin('settlePurchaseReturn', TMessageType.CALL, self._seqid)
-
 
869
    args = settlePurchaseReturn_args()
-
 
870
    args.id = id
-
 
871
    args.write(self._oprot)
-
 
872
    self._oprot.writeMessageEnd()
-
 
873
    self._oprot.trans.flush()
-
 
874
 
-
 
875
  def recv_settlePurchaseReturn(self, ):
-
 
876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
877
    if mtype == TMessageType.EXCEPTION:
-
 
878
      x = TApplicationException()
-
 
879
      x.read(self._iprot)
-
 
880
      self._iprot.readMessageEnd()
-
 
881
      raise x
-
 
882
    result = settlePurchaseReturn_result()
-
 
883
    result.read(self._iprot)
-
 
884
    self._iprot.readMessageEnd()
-
 
885
    return
-
 
886
 
-
 
887
  def getUnsettledPurchaseReturns(self, ):
-
 
888
    """
-
 
889
    Create a new Purchase Return
-
 
890
    """
-
 
891
    self.send_getUnsettledPurchaseReturns()
-
 
892
    return self.recv_getUnsettledPurchaseReturns()
-
 
893
 
-
 
894
  def send_getUnsettledPurchaseReturns(self, ):
-
 
895
    self._oprot.writeMessageBegin('getUnsettledPurchaseReturns', TMessageType.CALL, self._seqid)
-
 
896
    args = getUnsettledPurchaseReturns_args()
-
 
897
    args.write(self._oprot)
-
 
898
    self._oprot.writeMessageEnd()
-
 
899
    self._oprot.trans.flush()
-
 
900
 
-
 
901
  def recv_getUnsettledPurchaseReturns(self, ):
-
 
902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
903
    if mtype == TMessageType.EXCEPTION:
-
 
904
      x = TApplicationException()
-
 
905
      x.read(self._iprot)
-
 
906
      self._iprot.readMessageEnd()
-
 
907
      raise x
-
 
908
    result = getUnsettledPurchaseReturns_result()
-
 
909
    result.read(self._iprot)
-
 
910
    self._iprot.readMessageEnd()
-
 
911
    if result.success is not None:
-
 
912
      return result.success
-
 
913
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnsettledPurchaseReturns failed: unknown result");
-
 
914
 
801
 
915
 
802
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
916
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
803
  def __init__(self, handler):
917
  def __init__(self, handler):
804
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
918
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
805
    self._processMap["createPurchaseOrder"] = Processor.process_createPurchaseOrder
919
    self._processMap["createPurchaseOrder"] = Processor.process_createPurchaseOrder
Line 818... Line 932...
818
    self._processMap["unFulfillPO"] = Processor.process_unFulfillPO
932
    self._processMap["unFulfillPO"] = Processor.process_unFulfillPO
819
    self._processMap["getInvoices"] = Processor.process_getInvoices
933
    self._processMap["getInvoices"] = Processor.process_getInvoices
820
    self._processMap["createInvoice"] = Processor.process_createInvoice
934
    self._processMap["createInvoice"] = Processor.process_createInvoice
821
    self._processMap["addSupplier"] = Processor.process_addSupplier
935
    self._processMap["addSupplier"] = Processor.process_addSupplier
822
    self._processMap["updateSupplier"] = Processor.process_updateSupplier
936
    self._processMap["updateSupplier"] = Processor.process_updateSupplier
-
 
937
    self._processMap["createPurchaseReturn"] = Processor.process_createPurchaseReturn
-
 
938
    self._processMap["settlePurchaseReturn"] = Processor.process_settlePurchaseReturn
-
 
939
    self._processMap["getUnsettledPurchaseReturns"] = Processor.process_getUnsettledPurchaseReturns
823
 
940
 
824
  def process(self, iprot, oprot):
941
  def process(self, iprot, oprot):
825
    (name, type, seqid) = iprot.readMessageBegin()
942
    (name, type, seqid) = iprot.readMessageBegin()
826
    if name not in self._processMap:
943
    if name not in self._processMap:
827
      iprot.skip(TType.STRUCT)
944
      iprot.skip(TType.STRUCT)
Line 1074... Line 1191...
1074
    oprot.writeMessageBegin("updateSupplier", TMessageType.REPLY, seqid)
1191
    oprot.writeMessageBegin("updateSupplier", TMessageType.REPLY, seqid)
1075
    result.write(oprot)
1192
    result.write(oprot)
1076
    oprot.writeMessageEnd()
1193
    oprot.writeMessageEnd()
1077
    oprot.trans.flush()
1194
    oprot.trans.flush()
1078
 
1195
 
-
 
1196
  def process_createPurchaseReturn(self, seqid, iprot, oprot):
-
 
1197
    args = createPurchaseReturn_args()
-
 
1198
    args.read(iprot)
-
 
1199
    iprot.readMessageEnd()
-
 
1200
    result = createPurchaseReturn_result()
-
 
1201
    result.success = self._handler.createPurchaseReturn(args.purchaseReturn)
-
 
1202
    oprot.writeMessageBegin("createPurchaseReturn", TMessageType.REPLY, seqid)
-
 
1203
    result.write(oprot)
-
 
1204
    oprot.writeMessageEnd()
-
 
1205
    oprot.trans.flush()
-
 
1206
 
-
 
1207
  def process_settlePurchaseReturn(self, seqid, iprot, oprot):
-
 
1208
    args = settlePurchaseReturn_args()
-
 
1209
    args.read(iprot)
-
 
1210
    iprot.readMessageEnd()
-
 
1211
    result = settlePurchaseReturn_result()
-
 
1212
    self._handler.settlePurchaseReturn(args.id)
-
 
1213
    oprot.writeMessageBegin("settlePurchaseReturn", TMessageType.REPLY, seqid)
-
 
1214
    result.write(oprot)
-
 
1215
    oprot.writeMessageEnd()
-
 
1216
    oprot.trans.flush()
-
 
1217
 
-
 
1218
  def process_getUnsettledPurchaseReturns(self, seqid, iprot, oprot):
-
 
1219
    args = getUnsettledPurchaseReturns_args()
-
 
1220
    args.read(iprot)
-
 
1221
    iprot.readMessageEnd()
-
 
1222
    result = getUnsettledPurchaseReturns_result()
-
 
1223
    result.success = self._handler.getUnsettledPurchaseReturns()
-
 
1224
    oprot.writeMessageBegin("getUnsettledPurchaseReturns", TMessageType.REPLY, seqid)
-
 
1225
    result.write(oprot)
-
 
1226
    oprot.writeMessageEnd()
-
 
1227
    oprot.trans.flush()
-
 
1228
 
1079
 
1229
 
1080
# HELPER FUNCTIONS AND STRUCTURES
1230
# HELPER FUNCTIONS AND STRUCTURES
1081
 
1231
 
1082
class createPurchaseOrder_args:
1232
class createPurchaseOrder_args:
1083
  """
1233
  """
Line 3456... Line 3606...
3456
    oprot.writeFieldStop()
3606
    oprot.writeFieldStop()
3457
    oprot.writeStructEnd()
3607
    oprot.writeStructEnd()
3458
 
3608
 
3459
  def validate(self):
3609
  def validate(self):
3460
    return
3610
    return
-
 
3611
 
-
 
3612
 
-
 
3613
  def __repr__(self):
-
 
3614
    L = ['%s=%r' % (key, value)
-
 
3615
      for key, value in self.__dict__.iteritems()]
-
 
3616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3617
 
-
 
3618
  def __eq__(self, other):
-
 
3619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3620
 
-
 
3621
  def __ne__(self, other):
-
 
3622
    return not (self == other)
-
 
3623
 
-
 
3624
class createPurchaseReturn_args:
-
 
3625
  """
-
 
3626
  Attributes:
-
 
3627
   - purchaseReturn
-
 
3628
  """
-
 
3629
 
-
 
3630
  thrift_spec = (
-
 
3631
    None, # 0
-
 
3632
    (1, TType.STRUCT, 'purchaseReturn', (PurchaseReturn, PurchaseReturn.thrift_spec), None, ), # 1
-
 
3633
  )
-
 
3634
 
-
 
3635
  def __init__(self, purchaseReturn=None,):
-
 
3636
    self.purchaseReturn = purchaseReturn
-
 
3637
 
-
 
3638
  def read(self, iprot):
-
 
3639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3641
      return
-
 
3642
    iprot.readStructBegin()
-
 
3643
    while True:
-
 
3644
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3645
      if ftype == TType.STOP:
-
 
3646
        break
-
 
3647
      if fid == 1:
-
 
3648
        if ftype == TType.STRUCT:
-
 
3649
          self.purchaseReturn = PurchaseReturn()
-
 
3650
          self.purchaseReturn.read(iprot)
-
 
3651
        else:
-
 
3652
          iprot.skip(ftype)
-
 
3653
      else:
-
 
3654
        iprot.skip(ftype)
-
 
3655
      iprot.readFieldEnd()
-
 
3656
    iprot.readStructEnd()
-
 
3657
 
-
 
3658
  def write(self, oprot):
-
 
3659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3661
      return
-
 
3662
    oprot.writeStructBegin('createPurchaseReturn_args')
-
 
3663
    if self.purchaseReturn is not None:
-
 
3664
      oprot.writeFieldBegin('purchaseReturn', TType.STRUCT, 1)
-
 
3665
      self.purchaseReturn.write(oprot)
-
 
3666
      oprot.writeFieldEnd()
-
 
3667
    oprot.writeFieldStop()
-
 
3668
    oprot.writeStructEnd()
-
 
3669
 
-
 
3670
  def validate(self):
-
 
3671
    return
-
 
3672
 
-
 
3673
 
-
 
3674
  def __repr__(self):
-
 
3675
    L = ['%s=%r' % (key, value)
-
 
3676
      for key, value in self.__dict__.iteritems()]
-
 
3677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3678
 
-
 
3679
  def __eq__(self, other):
-
 
3680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3681
 
-
 
3682
  def __ne__(self, other):
-
 
3683
    return not (self == other)
-
 
3684
 
-
 
3685
class createPurchaseReturn_result:
-
 
3686
  """
-
 
3687
  Attributes:
-
 
3688
   - success
-
 
3689
  """
-
 
3690
 
-
 
3691
  thrift_spec = (
-
 
3692
    (0, TType.I64, 'success', None, None, ), # 0
-
 
3693
  )
-
 
3694
 
-
 
3695
  def __init__(self, success=None,):
-
 
3696
    self.success = success
-
 
3697
 
-
 
3698
  def read(self, iprot):
-
 
3699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3701
      return
-
 
3702
    iprot.readStructBegin()
-
 
3703
    while True:
-
 
3704
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3705
      if ftype == TType.STOP:
-
 
3706
        break
-
 
3707
      if fid == 0:
-
 
3708
        if ftype == TType.I64:
-
 
3709
          self.success = iprot.readI64();
-
 
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('createPurchaseReturn_result')
-
 
3722
    if self.success is not None:
-
 
3723
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
3724
      oprot.writeI64(self.success)
-
 
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 settlePurchaseReturn_args:
-
 
3745
  """
-
 
3746
  Attributes:
-
 
3747
   - id
-
 
3748
  """
-
 
3749
 
-
 
3750
  thrift_spec = (
-
 
3751
    None, # 0
-
 
3752
    (1, TType.I64, 'id', None, None, ), # 1
-
 
3753
  )
-
 
3754
 
-
 
3755
  def __init__(self, id=None,):
-
 
3756
    self.id = id
-
 
3757
 
-
 
3758
  def read(self, iprot):
-
 
3759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3761
      return
-
 
3762
    iprot.readStructBegin()
-
 
3763
    while True:
-
 
3764
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3765
      if ftype == TType.STOP:
-
 
3766
        break
-
 
3767
      if fid == 1:
-
 
3768
        if ftype == TType.I64:
-
 
3769
          self.id = iprot.readI64();
-
 
3770
        else:
-
 
3771
          iprot.skip(ftype)
-
 
3772
      else:
-
 
3773
        iprot.skip(ftype)
-
 
3774
      iprot.readFieldEnd()
-
 
3775
    iprot.readStructEnd()
-
 
3776
 
-
 
3777
  def write(self, oprot):
-
 
3778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3780
      return
-
 
3781
    oprot.writeStructBegin('settlePurchaseReturn_args')
-
 
3782
    if self.id is not None:
-
 
3783
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
3784
      oprot.writeI64(self.id)
-
 
3785
      oprot.writeFieldEnd()
-
 
3786
    oprot.writeFieldStop()
-
 
3787
    oprot.writeStructEnd()
-
 
3788
 
-
 
3789
  def validate(self):
-
 
3790
    return
-
 
3791
 
-
 
3792
 
-
 
3793
  def __repr__(self):
-
 
3794
    L = ['%s=%r' % (key, value)
-
 
3795
      for key, value in self.__dict__.iteritems()]
-
 
3796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3797
 
-
 
3798
  def __eq__(self, other):
-
 
3799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3800
 
-
 
3801
  def __ne__(self, other):
-
 
3802
    return not (self == other)
-
 
3803
 
-
 
3804
class settlePurchaseReturn_result:
-
 
3805
 
-
 
3806
  thrift_spec = (
-
 
3807
  )
-
 
3808
 
-
 
3809
  def read(self, iprot):
-
 
3810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3812
      return
-
 
3813
    iprot.readStructBegin()
-
 
3814
    while True:
-
 
3815
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3816
      if ftype == TType.STOP:
-
 
3817
        break
-
 
3818
      else:
-
 
3819
        iprot.skip(ftype)
-
 
3820
      iprot.readFieldEnd()
-
 
3821
    iprot.readStructEnd()
-
 
3822
 
-
 
3823
  def write(self, oprot):
-
 
3824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3826
      return
-
 
3827
    oprot.writeStructBegin('settlePurchaseReturn_result')
-
 
3828
    oprot.writeFieldStop()
-
 
3829
    oprot.writeStructEnd()
-
 
3830
 
-
 
3831
  def validate(self):
-
 
3832
    return
-
 
3833
 
-
 
3834
 
-
 
3835
  def __repr__(self):
-
 
3836
    L = ['%s=%r' % (key, value)
-
 
3837
      for key, value in self.__dict__.iteritems()]
-
 
3838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3839
 
-
 
3840
  def __eq__(self, other):
-
 
3841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3842
 
-
 
3843
  def __ne__(self, other):
-
 
3844
    return not (self == other)
-
 
3845
 
-
 
3846
class getUnsettledPurchaseReturns_args:
-
 
3847
 
-
 
3848
  thrift_spec = (
-
 
3849
  )
-
 
3850
 
-
 
3851
  def read(self, iprot):
-
 
3852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3854
      return
-
 
3855
    iprot.readStructBegin()
-
 
3856
    while True:
-
 
3857
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3858
      if ftype == TType.STOP:
-
 
3859
        break
-
 
3860
      else:
-
 
3861
        iprot.skip(ftype)
-
 
3862
      iprot.readFieldEnd()
-
 
3863
    iprot.readStructEnd()
-
 
3864
 
-
 
3865
  def write(self, oprot):
-
 
3866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3868
      return
-
 
3869
    oprot.writeStructBegin('getUnsettledPurchaseReturns_args')
-
 
3870
    oprot.writeFieldStop()
-
 
3871
    oprot.writeStructEnd()
-
 
3872
 
-
 
3873
  def validate(self):
-
 
3874
    return
-
 
3875
 
-
 
3876
 
-
 
3877
  def __repr__(self):
-
 
3878
    L = ['%s=%r' % (key, value)
-
 
3879
      for key, value in self.__dict__.iteritems()]
-
 
3880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3881
 
-
 
3882
  def __eq__(self, other):
-
 
3883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3884
 
-
 
3885
  def __ne__(self, other):
-
 
3886
    return not (self == other)
-
 
3887
 
-
 
3888
class getUnsettledPurchaseReturns_result:
-
 
3889
  """
-
 
3890
  Attributes:
-
 
3891
   - success
-
 
3892
  """
-
 
3893
 
-
 
3894
  thrift_spec = (
-
 
3895
    (0, TType.LIST, 'success', (TType.STRUCT,(PurchaseReturn, PurchaseReturn.thrift_spec)), None, ), # 0
-
 
3896
  )
-
 
3897
 
-
 
3898
  def __init__(self, success=None,):
-
 
3899
    self.success = success
-
 
3900
 
-
 
3901
  def read(self, iprot):
-
 
3902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3904
      return
-
 
3905
    iprot.readStructBegin()
-
 
3906
    while True:
-
 
3907
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3908
      if ftype == TType.STOP:
-
 
3909
        break
-
 
3910
      if fid == 0:
-
 
3911
        if ftype == TType.LIST:
-
 
3912
          self.success = []
-
 
3913
          (_etype52, _size49) = iprot.readListBegin()
-
 
3914
          for _i53 in xrange(_size49):
-
 
3915
            _elem54 = PurchaseReturn()
-
 
3916
            _elem54.read(iprot)
-
 
3917
            self.success.append(_elem54)
-
 
3918
          iprot.readListEnd()
-
 
3919
        else:
-
 
3920
          iprot.skip(ftype)
-
 
3921
      else:
-
 
3922
        iprot.skip(ftype)
-
 
3923
      iprot.readFieldEnd()
-
 
3924
    iprot.readStructEnd()
-
 
3925
 
-
 
3926
  def write(self, oprot):
-
 
3927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3929
      return
-
 
3930
    oprot.writeStructBegin('getUnsettledPurchaseReturns_result')
-
 
3931
    if self.success is not None:
-
 
3932
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
3933
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
3934
      for iter55 in self.success:
-
 
3935
        iter55.write(oprot)
-
 
3936
      oprot.writeListEnd()
-
 
3937
      oprot.writeFieldEnd()
-
 
3938
    oprot.writeFieldStop()
-
 
3939
    oprot.writeStructEnd()
-
 
3940
 
-
 
3941
  def validate(self):
-
 
3942
    return
3461
 
3943
 
3462
 
3944
 
3463
  def __repr__(self):
3945
  def __repr__(self):
3464
    L = ['%s=%r' % (key, value)
3946
    L = ['%s=%r' % (key, value)
3465
      for key, value in self.__dict__.iteritems()]
3947
      for key, value in self.__dict__.iteritems()]