Subversion Repositories SmartDukaan

Rev

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

Rev 11801 Rev 13600
Line 299... Line 299...
299
    Parameters:
299
    Parameters:
300
     - id
300
     - id
301
    """
301
    """
302
    pass
302
    pass
303
 
303
 
-
 
304
  def markPurchasereturnSettled(self, id, settlementType, documentNumber, settlementBy, settledAmount):
-
 
305
    """
-
 
306
    Parameters:
-
 
307
     - id
-
 
308
     - settlementType
-
 
309
     - documentNumber
-
 
310
     - settlementBy
-
 
311
     - settledAmount
-
 
312
    """
-
 
313
    pass
-
 
314
 
-
 
315
  def getPrSettlementsForPurchaseReturn(self, purchaseReturnId):
-
 
316
    """
-
 
317
    Parameters:
-
 
318
     - purchaseReturnId
-
 
319
    """
-
 
320
    pass
-
 
321
 
-
 
322
  def updatePurchaseReturn(self, purchaseReturn):
-
 
323
    """
-
 
324
    Parameters:
-
 
325
     - purchaseReturn
-
 
326
    """
-
 
327
    pass
-
 
328
 
304
 
329
 
305
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
330
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
306
  def __init__(self, iprot, oprot=None):
331
  def __init__(self, iprot, oprot=None):
307
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
332
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
308
 
333
 
Line 1310... Line 1335...
1310
      return result.success
1335
      return result.success
1311
    if result.e is not None:
1336
    if result.e is not None:
1312
      raise result.e
1337
      raise result.e
1313
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseReturn failed: unknown result");
1338
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseReturn failed: unknown result");
1314
 
1339
 
-
 
1340
  def markPurchasereturnSettled(self, id, settlementType, documentNumber, settlementBy, settledAmount):
-
 
1341
    """
-
 
1342
    Parameters:
-
 
1343
     - id
-
 
1344
     - settlementType
-
 
1345
     - documentNumber
-
 
1346
     - settlementBy
-
 
1347
     - settledAmount
-
 
1348
    """
-
 
1349
    self.send_markPurchasereturnSettled(id, settlementType, documentNumber, settlementBy, settledAmount)
-
 
1350
    return self.recv_markPurchasereturnSettled()
-
 
1351
 
-
 
1352
  def send_markPurchasereturnSettled(self, id, settlementType, documentNumber, settlementBy, settledAmount):
-
 
1353
    self._oprot.writeMessageBegin('markPurchasereturnSettled', TMessageType.CALL, self._seqid)
-
 
1354
    args = markPurchasereturnSettled_args()
-
 
1355
    args.id = id
-
 
1356
    args.settlementType = settlementType
-
 
1357
    args.documentNumber = documentNumber
-
 
1358
    args.settlementBy = settlementBy
-
 
1359
    args.settledAmount = settledAmount
-
 
1360
    args.write(self._oprot)
-
 
1361
    self._oprot.writeMessageEnd()
-
 
1362
    self._oprot.trans.flush()
-
 
1363
 
-
 
1364
  def recv_markPurchasereturnSettled(self, ):
-
 
1365
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1366
    if mtype == TMessageType.EXCEPTION:
-
 
1367
      x = TApplicationException()
-
 
1368
      x.read(self._iprot)
-
 
1369
      self._iprot.readMessageEnd()
-
 
1370
      raise x
-
 
1371
    result = markPurchasereturnSettled_result()
-
 
1372
    result.read(self._iprot)
-
 
1373
    self._iprot.readMessageEnd()
-
 
1374
    if result.success is not None:
-
 
1375
      return result.success
-
 
1376
    if result.e is not None:
-
 
1377
      raise result.e
-
 
1378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPurchasereturnSettled failed: unknown result");
-
 
1379
 
-
 
1380
  def getPrSettlementsForPurchaseReturn(self, purchaseReturnId):
-
 
1381
    """
-
 
1382
    Parameters:
-
 
1383
     - purchaseReturnId
-
 
1384
    """
-
 
1385
    self.send_getPrSettlementsForPurchaseReturn(purchaseReturnId)
-
 
1386
    return self.recv_getPrSettlementsForPurchaseReturn()
-
 
1387
 
-
 
1388
  def send_getPrSettlementsForPurchaseReturn(self, purchaseReturnId):
-
 
1389
    self._oprot.writeMessageBegin('getPrSettlementsForPurchaseReturn', TMessageType.CALL, self._seqid)
-
 
1390
    args = getPrSettlementsForPurchaseReturn_args()
-
 
1391
    args.purchaseReturnId = purchaseReturnId
-
 
1392
    args.write(self._oprot)
-
 
1393
    self._oprot.writeMessageEnd()
-
 
1394
    self._oprot.trans.flush()
-
 
1395
 
-
 
1396
  def recv_getPrSettlementsForPurchaseReturn(self, ):
-
 
1397
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1398
    if mtype == TMessageType.EXCEPTION:
-
 
1399
      x = TApplicationException()
-
 
1400
      x.read(self._iprot)
-
 
1401
      self._iprot.readMessageEnd()
-
 
1402
      raise x
-
 
1403
    result = getPrSettlementsForPurchaseReturn_result()
-
 
1404
    result.read(self._iprot)
-
 
1405
    self._iprot.readMessageEnd()
-
 
1406
    if result.success is not None:
-
 
1407
      return result.success
-
 
1408
    if result.e is not None:
-
 
1409
      raise result.e
-
 
1410
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrSettlementsForPurchaseReturn failed: unknown result");
-
 
1411
 
-
 
1412
  def updatePurchaseReturn(self, purchaseReturn):
-
 
1413
    """
-
 
1414
    Parameters:
-
 
1415
     - purchaseReturn
-
 
1416
    """
-
 
1417
    self.send_updatePurchaseReturn(purchaseReturn)
-
 
1418
    self.recv_updatePurchaseReturn()
-
 
1419
 
-
 
1420
  def send_updatePurchaseReturn(self, purchaseReturn):
-
 
1421
    self._oprot.writeMessageBegin('updatePurchaseReturn', TMessageType.CALL, self._seqid)
-
 
1422
    args = updatePurchaseReturn_args()
-
 
1423
    args.purchaseReturn = purchaseReturn
-
 
1424
    args.write(self._oprot)
-
 
1425
    self._oprot.writeMessageEnd()
-
 
1426
    self._oprot.trans.flush()
-
 
1427
 
-
 
1428
  def recv_updatePurchaseReturn(self, ):
-
 
1429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1430
    if mtype == TMessageType.EXCEPTION:
-
 
1431
      x = TApplicationException()
-
 
1432
      x.read(self._iprot)
-
 
1433
      self._iprot.readMessageEnd()
-
 
1434
      raise x
-
 
1435
    result = updatePurchaseReturn_result()
-
 
1436
    result.read(self._iprot)
-
 
1437
    self._iprot.readMessageEnd()
-
 
1438
    if result.e is not None:
-
 
1439
      raise result.e
-
 
1440
    return
-
 
1441
 
1315
 
1442
 
1316
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1443
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1317
  def __init__(self, handler):
1444
  def __init__(self, handler):
1318
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1445
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1319
    self._processMap["createPurchaseOrder"] = Processor.process_createPurchaseOrder
1446
    self._processMap["createPurchaseOrder"] = Processor.process_createPurchaseOrder
Line 1344... Line 1471...
1344
    self._processMap["closePO"] = Processor.process_closePO
1471
    self._processMap["closePO"] = Processor.process_closePO
1345
    self._processMap["isInvoiceReceived"] = Processor.process_isInvoiceReceived
1472
    self._processMap["isInvoiceReceived"] = Processor.process_isInvoiceReceived
1346
    self._processMap["changeWarehouseForPO"] = Processor.process_changeWarehouseForPO
1473
    self._processMap["changeWarehouseForPO"] = Processor.process_changeWarehouseForPO
1347
    self._processMap["changePOStatus"] = Processor.process_changePOStatus
1474
    self._processMap["changePOStatus"] = Processor.process_changePOStatus
1348
    self._processMap["getPurchaseReturn"] = Processor.process_getPurchaseReturn
1475
    self._processMap["getPurchaseReturn"] = Processor.process_getPurchaseReturn
-
 
1476
    self._processMap["markPurchasereturnSettled"] = Processor.process_markPurchasereturnSettled
-
 
1477
    self._processMap["getPrSettlementsForPurchaseReturn"] = Processor.process_getPrSettlementsForPurchaseReturn
-
 
1478
    self._processMap["updatePurchaseReturn"] = Processor.process_updatePurchaseReturn
1349
 
1479
 
1350
  def process(self, iprot, oprot):
1480
  def process(self, iprot, oprot):
1351
    (name, type, seqid) = iprot.readMessageBegin()
1481
    (name, type, seqid) = iprot.readMessageBegin()
1352
    if name not in self._processMap:
1482
    if name not in self._processMap:
1353
      iprot.skip(TType.STRUCT)
1483
      iprot.skip(TType.STRUCT)
Line 1744... Line 1874...
1744
    oprot.writeMessageBegin("getPurchaseReturn", TMessageType.REPLY, seqid)
1874
    oprot.writeMessageBegin("getPurchaseReturn", TMessageType.REPLY, seqid)
1745
    result.write(oprot)
1875
    result.write(oprot)
1746
    oprot.writeMessageEnd()
1876
    oprot.writeMessageEnd()
1747
    oprot.trans.flush()
1877
    oprot.trans.flush()
1748
 
1878
 
-
 
1879
  def process_markPurchasereturnSettled(self, seqid, iprot, oprot):
-
 
1880
    args = markPurchasereturnSettled_args()
-
 
1881
    args.read(iprot)
-
 
1882
    iprot.readMessageEnd()
-
 
1883
    result = markPurchasereturnSettled_result()
-
 
1884
    try:
-
 
1885
      result.success = self._handler.markPurchasereturnSettled(args.id, args.settlementType, args.documentNumber, args.settlementBy, args.settledAmount)
-
 
1886
    except PurchaseServiceException, e:
-
 
1887
      result.e = e
-
 
1888
    oprot.writeMessageBegin("markPurchasereturnSettled", TMessageType.REPLY, seqid)
-
 
1889
    result.write(oprot)
-
 
1890
    oprot.writeMessageEnd()
-
 
1891
    oprot.trans.flush()
-
 
1892
 
-
 
1893
  def process_getPrSettlementsForPurchaseReturn(self, seqid, iprot, oprot):
-
 
1894
    args = getPrSettlementsForPurchaseReturn_args()
-
 
1895
    args.read(iprot)
-
 
1896
    iprot.readMessageEnd()
-
 
1897
    result = getPrSettlementsForPurchaseReturn_result()
-
 
1898
    try:
-
 
1899
      result.success = self._handler.getPrSettlementsForPurchaseReturn(args.purchaseReturnId)
-
 
1900
    except PurchaseServiceException, e:
-
 
1901
      result.e = e
-
 
1902
    oprot.writeMessageBegin("getPrSettlementsForPurchaseReturn", TMessageType.REPLY, seqid)
-
 
1903
    result.write(oprot)
-
 
1904
    oprot.writeMessageEnd()
-
 
1905
    oprot.trans.flush()
-
 
1906
 
-
 
1907
  def process_updatePurchaseReturn(self, seqid, iprot, oprot):
-
 
1908
    args = updatePurchaseReturn_args()
-
 
1909
    args.read(iprot)
-
 
1910
    iprot.readMessageEnd()
-
 
1911
    result = updatePurchaseReturn_result()
-
 
1912
    try:
-
 
1913
      self._handler.updatePurchaseReturn(args.purchaseReturn)
-
 
1914
    except PurchaseServiceException, e:
-
 
1915
      result.e = e
-
 
1916
    oprot.writeMessageBegin("updatePurchaseReturn", TMessageType.REPLY, seqid)
-
 
1917
    result.write(oprot)
-
 
1918
    oprot.writeMessageEnd()
-
 
1919
    oprot.trans.flush()
-
 
1920
 
1749
 
1921
 
1750
# HELPER FUNCTIONS AND STRUCTURES
1922
# HELPER FUNCTIONS AND STRUCTURES
1751
 
1923
 
1752
class createPurchaseOrder_args:
1924
class createPurchaseOrder_args:
1753
  """
1925
  """
Line 5678... Line 5850...
5678
    if self.e is not None:
5850
    if self.e is not None:
5679
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
5851
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
5680
      self.e.write(oprot)
5852
      self.e.write(oprot)
5681
      oprot.writeFieldEnd()
5853
      oprot.writeFieldEnd()
5682
    oprot.writeFieldStop()
5854
    oprot.writeFieldStop()
-
 
5855
    oprot.writeStructEnd()
-
 
5856
 
-
 
5857
  def validate(self):
-
 
5858
    return
-
 
5859
 
-
 
5860
 
-
 
5861
  def __repr__(self):
-
 
5862
    L = ['%s=%r' % (key, value)
-
 
5863
      for key, value in self.__dict__.iteritems()]
-
 
5864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5865
 
-
 
5866
  def __eq__(self, other):
-
 
5867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5868
 
-
 
5869
  def __ne__(self, other):
-
 
5870
    return not (self == other)
-
 
5871
 
-
 
5872
class markPurchasereturnSettled_args:
-
 
5873
  """
-
 
5874
  Attributes:
-
 
5875
   - id
-
 
5876
   - settlementType
-
 
5877
   - documentNumber
-
 
5878
   - settlementBy
-
 
5879
   - settledAmount
-
 
5880
  """
-
 
5881
 
-
 
5882
  thrift_spec = (
-
 
5883
    None, # 0
-
 
5884
    (1, TType.I64, 'id', None, None, ), # 1
-
 
5885
    (2, TType.I32, 'settlementType', None, None, ), # 2
-
 
5886
    (3, TType.STRING, 'documentNumber', None, None, ), # 3
-
 
5887
    (4, TType.STRING, 'settlementBy', None, None, ), # 4
-
 
5888
    (5, TType.I64, 'settledAmount', None, None, ), # 5
-
 
5889
  )
-
 
5890
 
-
 
5891
  def __init__(self, id=None, settlementType=None, documentNumber=None, settlementBy=None, settledAmount=None,):
-
 
5892
    self.id = id
-
 
5893
    self.settlementType = settlementType
-
 
5894
    self.documentNumber = documentNumber
-
 
5895
    self.settlementBy = settlementBy
-
 
5896
    self.settledAmount = settledAmount
-
 
5897
 
-
 
5898
  def read(self, iprot):
-
 
5899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5901
      return
-
 
5902
    iprot.readStructBegin()
-
 
5903
    while True:
-
 
5904
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5905
      if ftype == TType.STOP:
-
 
5906
        break
-
 
5907
      if fid == 1:
-
 
5908
        if ftype == TType.I64:
-
 
5909
          self.id = iprot.readI64();
-
 
5910
        else:
-
 
5911
          iprot.skip(ftype)
-
 
5912
      elif fid == 2:
-
 
5913
        if ftype == TType.I32:
-
 
5914
          self.settlementType = iprot.readI32();
-
 
5915
        else:
-
 
5916
          iprot.skip(ftype)
-
 
5917
      elif fid == 3:
-
 
5918
        if ftype == TType.STRING:
-
 
5919
          self.documentNumber = iprot.readString();
-
 
5920
        else:
-
 
5921
          iprot.skip(ftype)
-
 
5922
      elif fid == 4:
-
 
5923
        if ftype == TType.STRING:
-
 
5924
          self.settlementBy = iprot.readString();
-
 
5925
        else:
-
 
5926
          iprot.skip(ftype)
-
 
5927
      elif fid == 5:
-
 
5928
        if ftype == TType.I64:
-
 
5929
          self.settledAmount = iprot.readI64();
-
 
5930
        else:
-
 
5931
          iprot.skip(ftype)
-
 
5932
      else:
-
 
5933
        iprot.skip(ftype)
-
 
5934
      iprot.readFieldEnd()
-
 
5935
    iprot.readStructEnd()
-
 
5936
 
-
 
5937
  def write(self, oprot):
-
 
5938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5940
      return
-
 
5941
    oprot.writeStructBegin('markPurchasereturnSettled_args')
-
 
5942
    if self.id is not None:
-
 
5943
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
5944
      oprot.writeI64(self.id)
-
 
5945
      oprot.writeFieldEnd()
-
 
5946
    if self.settlementType is not None:
-
 
5947
      oprot.writeFieldBegin('settlementType', TType.I32, 2)
-
 
5948
      oprot.writeI32(self.settlementType)
-
 
5949
      oprot.writeFieldEnd()
-
 
5950
    if self.documentNumber is not None:
-
 
5951
      oprot.writeFieldBegin('documentNumber', TType.STRING, 3)
-
 
5952
      oprot.writeString(self.documentNumber)
-
 
5953
      oprot.writeFieldEnd()
-
 
5954
    if self.settlementBy is not None:
-
 
5955
      oprot.writeFieldBegin('settlementBy', TType.STRING, 4)
-
 
5956
      oprot.writeString(self.settlementBy)
-
 
5957
      oprot.writeFieldEnd()
-
 
5958
    if self.settledAmount is not None:
-
 
5959
      oprot.writeFieldBegin('settledAmount', TType.I64, 5)
-
 
5960
      oprot.writeI64(self.settledAmount)
-
 
5961
      oprot.writeFieldEnd()
-
 
5962
    oprot.writeFieldStop()
-
 
5963
    oprot.writeStructEnd()
-
 
5964
 
-
 
5965
  def validate(self):
-
 
5966
    return
-
 
5967
 
-
 
5968
 
-
 
5969
  def __repr__(self):
-
 
5970
    L = ['%s=%r' % (key, value)
-
 
5971
      for key, value in self.__dict__.iteritems()]
-
 
5972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5973
 
-
 
5974
  def __eq__(self, other):
-
 
5975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5976
 
-
 
5977
  def __ne__(self, other):
-
 
5978
    return not (self == other)
-
 
5979
 
-
 
5980
class markPurchasereturnSettled_result:
-
 
5981
  """
-
 
5982
  Attributes:
-
 
5983
   - success
-
 
5984
   - e
-
 
5985
  """
-
 
5986
 
-
 
5987
  thrift_spec = (
-
 
5988
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
5989
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
-
 
5990
  )
-
 
5991
 
-
 
5992
  def __init__(self, success=None, e=None,):
-
 
5993
    self.success = success
-
 
5994
    self.e = e
-
 
5995
 
-
 
5996
  def read(self, iprot):
-
 
5997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5999
      return
-
 
6000
    iprot.readStructBegin()
-
 
6001
    while True:
-
 
6002
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6003
      if ftype == TType.STOP:
-
 
6004
        break
-
 
6005
      if fid == 0:
-
 
6006
        if ftype == TType.BOOL:
-
 
6007
          self.success = iprot.readBool();
-
 
6008
        else:
-
 
6009
          iprot.skip(ftype)
-
 
6010
      elif fid == 1:
-
 
6011
        if ftype == TType.STRUCT:
-
 
6012
          self.e = PurchaseServiceException()
-
 
6013
          self.e.read(iprot)
-
 
6014
        else:
-
 
6015
          iprot.skip(ftype)
-
 
6016
      else:
-
 
6017
        iprot.skip(ftype)
-
 
6018
      iprot.readFieldEnd()
-
 
6019
    iprot.readStructEnd()
-
 
6020
 
-
 
6021
  def write(self, oprot):
-
 
6022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6024
      return
-
 
6025
    oprot.writeStructBegin('markPurchasereturnSettled_result')
-
 
6026
    if self.success is not None:
-
 
6027
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
6028
      oprot.writeBool(self.success)
-
 
6029
      oprot.writeFieldEnd()
-
 
6030
    if self.e is not None:
-
 
6031
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
-
 
6032
      self.e.write(oprot)
-
 
6033
      oprot.writeFieldEnd()
-
 
6034
    oprot.writeFieldStop()
-
 
6035
    oprot.writeStructEnd()
-
 
6036
 
-
 
6037
  def validate(self):
-
 
6038
    return
-
 
6039
 
-
 
6040
 
-
 
6041
  def __repr__(self):
-
 
6042
    L = ['%s=%r' % (key, value)
-
 
6043
      for key, value in self.__dict__.iteritems()]
-
 
6044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6045
 
-
 
6046
  def __eq__(self, other):
-
 
6047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6048
 
-
 
6049
  def __ne__(self, other):
-
 
6050
    return not (self == other)
-
 
6051
 
-
 
6052
class getPrSettlementsForPurchaseReturn_args:
-
 
6053
  """
-
 
6054
  Attributes:
-
 
6055
   - purchaseReturnId
-
 
6056
  """
-
 
6057
 
-
 
6058
  thrift_spec = (
-
 
6059
    None, # 0
-
 
6060
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
-
 
6061
  )
-
 
6062
 
-
 
6063
  def __init__(self, purchaseReturnId=None,):
-
 
6064
    self.purchaseReturnId = purchaseReturnId
-
 
6065
 
-
 
6066
  def read(self, iprot):
-
 
6067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6069
      return
-
 
6070
    iprot.readStructBegin()
-
 
6071
    while True:
-
 
6072
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6073
      if ftype == TType.STOP:
-
 
6074
        break
-
 
6075
      if fid == 1:
-
 
6076
        if ftype == TType.I64:
-
 
6077
          self.purchaseReturnId = iprot.readI64();
-
 
6078
        else:
-
 
6079
          iprot.skip(ftype)
-
 
6080
      else:
-
 
6081
        iprot.skip(ftype)
-
 
6082
      iprot.readFieldEnd()
-
 
6083
    iprot.readStructEnd()
-
 
6084
 
-
 
6085
  def write(self, oprot):
-
 
6086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6088
      return
-
 
6089
    oprot.writeStructBegin('getPrSettlementsForPurchaseReturn_args')
-
 
6090
    if self.purchaseReturnId is not None:
-
 
6091
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
-
 
6092
      oprot.writeI64(self.purchaseReturnId)
-
 
6093
      oprot.writeFieldEnd()
-
 
6094
    oprot.writeFieldStop()
-
 
6095
    oprot.writeStructEnd()
-
 
6096
 
-
 
6097
  def validate(self):
-
 
6098
    return
-
 
6099
 
-
 
6100
 
-
 
6101
  def __repr__(self):
-
 
6102
    L = ['%s=%r' % (key, value)
-
 
6103
      for key, value in self.__dict__.iteritems()]
-
 
6104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6105
 
-
 
6106
  def __eq__(self, other):
-
 
6107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6108
 
-
 
6109
  def __ne__(self, other):
-
 
6110
    return not (self == other)
-
 
6111
 
-
 
6112
class getPrSettlementsForPurchaseReturn_result:
-
 
6113
  """
-
 
6114
  Attributes:
-
 
6115
   - success
-
 
6116
   - e
-
 
6117
  """
-
 
6118
 
-
 
6119
  thrift_spec = (
-
 
6120
    (0, TType.LIST, 'success', (TType.STRUCT,(PurchaseReturnSettlement, PurchaseReturnSettlement.thrift_spec)), None, ), # 0
-
 
6121
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
-
 
6122
  )
-
 
6123
 
-
 
6124
  def __init__(self, success=None, e=None,):
-
 
6125
    self.success = success
-
 
6126
    self.e = e
-
 
6127
 
-
 
6128
  def read(self, iprot):
-
 
6129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6131
      return
-
 
6132
    iprot.readStructBegin()
-
 
6133
    while True:
-
 
6134
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6135
      if ftype == TType.STOP:
-
 
6136
        break
-
 
6137
      if fid == 0:
-
 
6138
        if ftype == TType.LIST:
-
 
6139
          self.success = []
-
 
6140
          (_etype73, _size70) = iprot.readListBegin()
-
 
6141
          for _i74 in xrange(_size70):
-
 
6142
            _elem75 = PurchaseReturnSettlement()
-
 
6143
            _elem75.read(iprot)
-
 
6144
            self.success.append(_elem75)
-
 
6145
          iprot.readListEnd()
-
 
6146
        else:
-
 
6147
          iprot.skip(ftype)
-
 
6148
      elif fid == 1:
-
 
6149
        if ftype == TType.STRUCT:
-
 
6150
          self.e = PurchaseServiceException()
-
 
6151
          self.e.read(iprot)
-
 
6152
        else:
-
 
6153
          iprot.skip(ftype)
-
 
6154
      else:
-
 
6155
        iprot.skip(ftype)
-
 
6156
      iprot.readFieldEnd()
-
 
6157
    iprot.readStructEnd()
-
 
6158
 
-
 
6159
  def write(self, oprot):
-
 
6160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6162
      return
-
 
6163
    oprot.writeStructBegin('getPrSettlementsForPurchaseReturn_result')
-
 
6164
    if self.success is not None:
-
 
6165
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
6166
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
6167
      for iter76 in self.success:
-
 
6168
        iter76.write(oprot)
-
 
6169
      oprot.writeListEnd()
-
 
6170
      oprot.writeFieldEnd()
-
 
6171
    if self.e is not None:
-
 
6172
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
-
 
6173
      self.e.write(oprot)
-
 
6174
      oprot.writeFieldEnd()
-
 
6175
    oprot.writeFieldStop()
-
 
6176
    oprot.writeStructEnd()
-
 
6177
 
-
 
6178
  def validate(self):
-
 
6179
    return
-
 
6180
 
-
 
6181
 
-
 
6182
  def __repr__(self):
-
 
6183
    L = ['%s=%r' % (key, value)
-
 
6184
      for key, value in self.__dict__.iteritems()]
-
 
6185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6186
 
-
 
6187
  def __eq__(self, other):
-
 
6188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6189
 
-
 
6190
  def __ne__(self, other):
-
 
6191
    return not (self == other)
-
 
6192
 
-
 
6193
class updatePurchaseReturn_args:
-
 
6194
  """
-
 
6195
  Attributes:
-
 
6196
   - purchaseReturn
-
 
6197
  """
-
 
6198
 
-
 
6199
  thrift_spec = (
-
 
6200
    None, # 0
-
 
6201
    (1, TType.STRUCT, 'purchaseReturn', (PurchaseReturn, PurchaseReturn.thrift_spec), None, ), # 1
-
 
6202
  )
-
 
6203
 
-
 
6204
  def __init__(self, purchaseReturn=None,):
-
 
6205
    self.purchaseReturn = purchaseReturn
-
 
6206
 
-
 
6207
  def read(self, iprot):
-
 
6208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6210
      return
-
 
6211
    iprot.readStructBegin()
-
 
6212
    while True:
-
 
6213
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6214
      if ftype == TType.STOP:
-
 
6215
        break
-
 
6216
      if fid == 1:
-
 
6217
        if ftype == TType.STRUCT:
-
 
6218
          self.purchaseReturn = PurchaseReturn()
-
 
6219
          self.purchaseReturn.read(iprot)
-
 
6220
        else:
-
 
6221
          iprot.skip(ftype)
-
 
6222
      else:
-
 
6223
        iprot.skip(ftype)
-
 
6224
      iprot.readFieldEnd()
-
 
6225
    iprot.readStructEnd()
-
 
6226
 
-
 
6227
  def write(self, oprot):
-
 
6228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6230
      return
-
 
6231
    oprot.writeStructBegin('updatePurchaseReturn_args')
-
 
6232
    if self.purchaseReturn is not None:
-
 
6233
      oprot.writeFieldBegin('purchaseReturn', TType.STRUCT, 1)
-
 
6234
      self.purchaseReturn.write(oprot)
-
 
6235
      oprot.writeFieldEnd()
-
 
6236
    oprot.writeFieldStop()
-
 
6237
    oprot.writeStructEnd()
-
 
6238
 
-
 
6239
  def validate(self):
-
 
6240
    return
-
 
6241
 
-
 
6242
 
-
 
6243
  def __repr__(self):
-
 
6244
    L = ['%s=%r' % (key, value)
-
 
6245
      for key, value in self.__dict__.iteritems()]
-
 
6246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6247
 
-
 
6248
  def __eq__(self, other):
-
 
6249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6250
 
-
 
6251
  def __ne__(self, other):
-
 
6252
    return not (self == other)
-
 
6253
 
-
 
6254
class updatePurchaseReturn_result:
-
 
6255
  """
-
 
6256
  Attributes:
-
 
6257
   - e
-
 
6258
  """
-
 
6259
 
-
 
6260
  thrift_spec = (
-
 
6261
    None, # 0
-
 
6262
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
-
 
6263
  )
-
 
6264
 
-
 
6265
  def __init__(self, e=None,):
-
 
6266
    self.e = e
-
 
6267
 
-
 
6268
  def read(self, iprot):
-
 
6269
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6270
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6271
      return
-
 
6272
    iprot.readStructBegin()
-
 
6273
    while True:
-
 
6274
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6275
      if ftype == TType.STOP:
-
 
6276
        break
-
 
6277
      if fid == 1:
-
 
6278
        if ftype == TType.STRUCT:
-
 
6279
          self.e = PurchaseServiceException()
-
 
6280
          self.e.read(iprot)
-
 
6281
        else:
-
 
6282
          iprot.skip(ftype)
-
 
6283
      else:
-
 
6284
        iprot.skip(ftype)
-
 
6285
      iprot.readFieldEnd()
-
 
6286
    iprot.readStructEnd()
-
 
6287
 
-
 
6288
  def write(self, oprot):
-
 
6289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6291
      return
-
 
6292
    oprot.writeStructBegin('updatePurchaseReturn_result')
-
 
6293
    if self.e is not None:
-
 
6294
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
-
 
6295
      self.e.write(oprot)
-
 
6296
      oprot.writeFieldEnd()
-
 
6297
    oprot.writeFieldStop()
5683
    oprot.writeStructEnd()
6298
    oprot.writeStructEnd()
5684
 
6299
 
5685
  def validate(self):
6300
  def validate(self):
5686
    return
6301
    return
5687
 
6302