Subversion Repositories SmartDukaan

Rev

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

Rev 19714 Rev 19735
Line 2405... Line 2405...
2405
    Parameters:
2405
    Parameters:
2406
     - warehouseId
2406
     - warehouseId
2407
    """
2407
    """
2408
    pass
2408
    pass
2409
 
2409
 
2410
  def createReturnTransaction(self, returnTransaction):
2410
  def createReturnTransaction(self, returnTransaction, itemCondition, overrideWarranty):
2411
    """
2411
    """
2412
    Parameters:
2412
    Parameters:
2413
     - returnTransaction
2413
     - returnTransaction
-
 
2414
     - itemCondition
-
 
2415
     - overrideWarranty
2414
    """
2416
    """
2415
    pass
2417
    pass
2416
 
2418
 
2417
  def getReturnTransaction(self, id):
2419
  def getReturnTransaction(self, id):
2418
    """
2420
    """
Line 2570... Line 2572...
2570
    Parameters:
2572
    Parameters:
2571
     - customerId
2573
     - customerId
2572
    """
2574
    """
2573
    pass
2575
    pass
2574
 
2576
 
-
 
2577
  def validateReturnTransaction(self, customerId, returnOrdersMap, itemCondition, overrideWarranty):
-
 
2578
    """
-
 
2579
    Parameters:
-
 
2580
     - customerId
-
 
2581
     - returnOrdersMap
-
 
2582
     - itemCondition
-
 
2583
     - overrideWarranty
-
 
2584
    """
-
 
2585
    pass
-
 
2586
 
2575
 
2587
 
2576
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2588
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2577
  def __init__(self, iprot, oprot=None):
2589
  def __init__(self, iprot, oprot=None):
2578
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2590
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2579
 
2591
 
Line 11615... Line 11627...
11615
    self._iprot.readMessageEnd()
11627
    self._iprot.readMessageEnd()
11616
    if result.success is not None:
11628
    if result.success is not None:
11617
      return result.success
11629
      return result.success
11618
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrdersAsPerWarehouseId failed: unknown result");
11630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrdersAsPerWarehouseId failed: unknown result");
11619
 
11631
 
11620
  def createReturnTransaction(self, returnTransaction):
11632
  def createReturnTransaction(self, returnTransaction, itemCondition, overrideWarranty):
11621
    """
11633
    """
11622
    Parameters:
11634
    Parameters:
11623
     - returnTransaction
11635
     - returnTransaction
-
 
11636
     - itemCondition
-
 
11637
     - overrideWarranty
11624
    """
11638
    """
11625
    self.send_createReturnTransaction(returnTransaction)
11639
    self.send_createReturnTransaction(returnTransaction, itemCondition, overrideWarranty)
11626
    return self.recv_createReturnTransaction()
11640
    return self.recv_createReturnTransaction()
11627
 
11641
 
11628
  def send_createReturnTransaction(self, returnTransaction):
11642
  def send_createReturnTransaction(self, returnTransaction, itemCondition, overrideWarranty):
11629
    self._oprot.writeMessageBegin('createReturnTransaction', TMessageType.CALL, self._seqid)
11643
    self._oprot.writeMessageBegin('createReturnTransaction', TMessageType.CALL, self._seqid)
11630
    args = createReturnTransaction_args()
11644
    args = createReturnTransaction_args()
11631
    args.returnTransaction = returnTransaction
11645
    args.returnTransaction = returnTransaction
-
 
11646
    args.itemCondition = itemCondition
-
 
11647
    args.overrideWarranty = overrideWarranty
11632
    args.write(self._oprot)
11648
    args.write(self._oprot)
11633
    self._oprot.writeMessageEnd()
11649
    self._oprot.writeMessageEnd()
11634
    self._oprot.trans.flush()
11650
    self._oprot.trans.flush()
11635
 
11651
 
11636
  def recv_createReturnTransaction(self, ):
11652
  def recv_createReturnTransaction(self, ):
Line 12287... Line 12303...
12287
    self._iprot.readMessageEnd()
12303
    self._iprot.readMessageEnd()
12288
    if result.success is not None:
12304
    if result.success is not None:
12289
      return result.success
12305
      return result.success
12290
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEligibleReturnOrdersForPickup failed: unknown result");
12306
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEligibleReturnOrdersForPickup failed: unknown result");
12291
 
12307
 
-
 
12308
  def validateReturnTransaction(self, customerId, returnOrdersMap, itemCondition, overrideWarranty):
-
 
12309
    """
-
 
12310
    Parameters:
-
 
12311
     - customerId
-
 
12312
     - returnOrdersMap
-
 
12313
     - itemCondition
-
 
12314
     - overrideWarranty
-
 
12315
    """
-
 
12316
    self.send_validateReturnTransaction(customerId, returnOrdersMap, itemCondition, overrideWarranty)
-
 
12317
    return self.recv_validateReturnTransaction()
-
 
12318
 
-
 
12319
  def send_validateReturnTransaction(self, customerId, returnOrdersMap, itemCondition, overrideWarranty):
-
 
12320
    self._oprot.writeMessageBegin('validateReturnTransaction', TMessageType.CALL, self._seqid)
-
 
12321
    args = validateReturnTransaction_args()
-
 
12322
    args.customerId = customerId
-
 
12323
    args.returnOrdersMap = returnOrdersMap
-
 
12324
    args.itemCondition = itemCondition
-
 
12325
    args.overrideWarranty = overrideWarranty
-
 
12326
    args.write(self._oprot)
-
 
12327
    self._oprot.writeMessageEnd()
-
 
12328
    self._oprot.trans.flush()
-
 
12329
 
-
 
12330
  def recv_validateReturnTransaction(self, ):
-
 
12331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12332
    if mtype == TMessageType.EXCEPTION:
-
 
12333
      x = TApplicationException()
-
 
12334
      x.read(self._iprot)
-
 
12335
      self._iprot.readMessageEnd()
-
 
12336
      raise x
-
 
12337
    result = validateReturnTransaction_result()
-
 
12338
    result.read(self._iprot)
-
 
12339
    self._iprot.readMessageEnd()
-
 
12340
    if result.success is not None:
-
 
12341
      return result.success
-
 
12342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateReturnTransaction failed: unknown result");
-
 
12343
 
12292
 
12344
 
12293
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12345
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12294
  def __init__(self, handler):
12346
  def __init__(self, handler):
12295
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12347
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12296
    self._processMap["createTransaction"] = Processor.process_createTransaction
12348
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 12583... Line 12635...
12583
    self._processMap["setOrderAttributeForMasterOrderId"] = Processor.process_setOrderAttributeForMasterOrderId
12635
    self._processMap["setOrderAttributeForMasterOrderId"] = Processor.process_setOrderAttributeForMasterOrderId
12584
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
12636
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
12585
    self._processMap["addOrUpdateShipmentLogisticsCostDetails"] = Processor.process_addOrUpdateShipmentLogisticsCostDetails
12637
    self._processMap["addOrUpdateShipmentLogisticsCostDetails"] = Processor.process_addOrUpdateShipmentLogisticsCostDetails
12586
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
12638
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
12587
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12639
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
-
 
12640
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
12588
 
12641
 
12589
  def process(self, iprot, oprot):
12642
  def process(self, iprot, oprot):
12590
    (name, type, seqid) = iprot.readMessageBegin()
12643
    (name, type, seqid) = iprot.readMessageBegin()
12591
    if name not in self._processMap:
12644
    if name not in self._processMap:
12592
      iprot.skip(TType.STRUCT)
12645
      iprot.skip(TType.STRUCT)
Line 15966... Line 16019...
15966
    args = createReturnTransaction_args()
16019
    args = createReturnTransaction_args()
15967
    args.read(iprot)
16020
    args.read(iprot)
15968
    iprot.readMessageEnd()
16021
    iprot.readMessageEnd()
15969
    result = createReturnTransaction_result()
16022
    result = createReturnTransaction_result()
15970
    try:
16023
    try:
15971
      result.success = self._handler.createReturnTransaction(args.returnTransaction)
16024
      result.success = self._handler.createReturnTransaction(args.returnTransaction, args.itemCondition, args.overrideWarranty)
15972
    except TransactionServiceException, ex:
16025
    except TransactionServiceException, ex:
15973
      result.ex = ex
16026
      result.ex = ex
15974
    oprot.writeMessageBegin("createReturnTransaction", TMessageType.REPLY, seqid)
16027
    oprot.writeMessageBegin("createReturnTransaction", TMessageType.REPLY, seqid)
15975
    result.write(oprot)
16028
    result.write(oprot)
15976
    oprot.writeMessageEnd()
16029
    oprot.writeMessageEnd()
Line 16225... Line 16278...
16225
    oprot.writeMessageBegin("getEligibleReturnOrdersForPickup", TMessageType.REPLY, seqid)
16278
    oprot.writeMessageBegin("getEligibleReturnOrdersForPickup", TMessageType.REPLY, seqid)
16226
    result.write(oprot)
16279
    result.write(oprot)
16227
    oprot.writeMessageEnd()
16280
    oprot.writeMessageEnd()
16228
    oprot.trans.flush()
16281
    oprot.trans.flush()
16229
 
16282
 
-
 
16283
  def process_validateReturnTransaction(self, seqid, iprot, oprot):
-
 
16284
    args = validateReturnTransaction_args()
-
 
16285
    args.read(iprot)
-
 
16286
    iprot.readMessageEnd()
-
 
16287
    result = validateReturnTransaction_result()
-
 
16288
    result.success = self._handler.validateReturnTransaction(args.customerId, args.returnOrdersMap, args.itemCondition, args.overrideWarranty)
-
 
16289
    oprot.writeMessageBegin("validateReturnTransaction", TMessageType.REPLY, seqid)
-
 
16290
    result.write(oprot)
-
 
16291
    oprot.writeMessageEnd()
-
 
16292
    oprot.trans.flush()
-
 
16293
 
16230
 
16294
 
16231
# HELPER FUNCTIONS AND STRUCTURES
16295
# HELPER FUNCTIONS AND STRUCTURES
16232
 
16296
 
16233
class createTransaction_args:
16297
class createTransaction_args:
16234
  """
16298
  """
Line 53901... Line 53965...
53901
 
53965
 
53902
class createReturnTransaction_args:
53966
class createReturnTransaction_args:
53903
  """
53967
  """
53904
  Attributes:
53968
  Attributes:
53905
   - returnTransaction
53969
   - returnTransaction
-
 
53970
   - itemCondition
-
 
53971
   - overrideWarranty
53906
  """
53972
  """
53907
 
53973
 
53908
  thrift_spec = (
53974
  thrift_spec = (
53909
    None, # 0
53975
    None, # 0
53910
    (1, TType.STRUCT, 'returnTransaction', (ReturnTransaction, ReturnTransaction.thrift_spec), None, ), # 1
53976
    (1, TType.STRUCT, 'returnTransaction', (ReturnTransaction, ReturnTransaction.thrift_spec), None, ), # 1
-
 
53977
    (2, TType.STRING, 'itemCondition', None, None, ), # 2
-
 
53978
    (3, TType.BOOL, 'overrideWarranty', None, None, ), # 3
53911
  )
53979
  )
53912
 
53980
 
53913
  def __init__(self, returnTransaction=None,):
53981
  def __init__(self, returnTransaction=None, itemCondition=None, overrideWarranty=None,):
53914
    self.returnTransaction = returnTransaction
53982
    self.returnTransaction = returnTransaction
-
 
53983
    self.itemCondition = itemCondition
-
 
53984
    self.overrideWarranty = overrideWarranty
53915
 
53985
 
53916
  def read(self, iprot):
53986
  def read(self, iprot):
53917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
53987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
53918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
53988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
53919
      return
53989
      return
Line 53926... Line 53996...
53926
        if ftype == TType.STRUCT:
53996
        if ftype == TType.STRUCT:
53927
          self.returnTransaction = ReturnTransaction()
53997
          self.returnTransaction = ReturnTransaction()
53928
          self.returnTransaction.read(iprot)
53998
          self.returnTransaction.read(iprot)
53929
        else:
53999
        else:
53930
          iprot.skip(ftype)
54000
          iprot.skip(ftype)
-
 
54001
      elif fid == 2:
-
 
54002
        if ftype == TType.STRING:
-
 
54003
          self.itemCondition = iprot.readString();
-
 
54004
        else:
-
 
54005
          iprot.skip(ftype)
-
 
54006
      elif fid == 3:
-
 
54007
        if ftype == TType.BOOL:
-
 
54008
          self.overrideWarranty = iprot.readBool();
-
 
54009
        else:
-
 
54010
          iprot.skip(ftype)
53931
      else:
54011
      else:
53932
        iprot.skip(ftype)
54012
        iprot.skip(ftype)
53933
      iprot.readFieldEnd()
54013
      iprot.readFieldEnd()
53934
    iprot.readStructEnd()
54014
    iprot.readStructEnd()
53935
 
54015
 
Line 53940... Line 54020...
53940
    oprot.writeStructBegin('createReturnTransaction_args')
54020
    oprot.writeStructBegin('createReturnTransaction_args')
53941
    if self.returnTransaction is not None:
54021
    if self.returnTransaction is not None:
53942
      oprot.writeFieldBegin('returnTransaction', TType.STRUCT, 1)
54022
      oprot.writeFieldBegin('returnTransaction', TType.STRUCT, 1)
53943
      self.returnTransaction.write(oprot)
54023
      self.returnTransaction.write(oprot)
53944
      oprot.writeFieldEnd()
54024
      oprot.writeFieldEnd()
-
 
54025
    if self.itemCondition is not None:
-
 
54026
      oprot.writeFieldBegin('itemCondition', TType.STRING, 2)
-
 
54027
      oprot.writeString(self.itemCondition)
-
 
54028
      oprot.writeFieldEnd()
-
 
54029
    if self.overrideWarranty is not None:
-
 
54030
      oprot.writeFieldBegin('overrideWarranty', TType.BOOL, 3)
-
 
54031
      oprot.writeBool(self.overrideWarranty)
-
 
54032
      oprot.writeFieldEnd()
53945
    oprot.writeFieldStop()
54033
    oprot.writeFieldStop()
53946
    oprot.writeStructEnd()
54034
    oprot.writeStructEnd()
53947
 
54035
 
53948
  def validate(self):
54036
  def validate(self):
53949
    return
54037
    return
Line 56846... Line 56934...
56846
      oprot.writeFieldEnd()
56934
      oprot.writeFieldEnd()
56847
    oprot.writeFieldStop()
56935
    oprot.writeFieldStop()
56848
    oprot.writeStructEnd()
56936
    oprot.writeStructEnd()
56849
 
56937
 
56850
  def validate(self):
56938
  def validate(self):
-
 
56939
    return
-
 
56940
 
-
 
56941
 
-
 
56942
  def __repr__(self):
-
 
56943
    L = ['%s=%r' % (key, value)
-
 
56944
      for key, value in self.__dict__.iteritems()]
-
 
56945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
56946
 
-
 
56947
  def __eq__(self, other):
-
 
56948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
56949
 
-
 
56950
  def __ne__(self, other):
-
 
56951
    return not (self == other)
-
 
56952
 
-
 
56953
class validateReturnTransaction_args:
-
 
56954
  """
-
 
56955
  Attributes:
-
 
56956
   - customerId
-
 
56957
   - returnOrdersMap
-
 
56958
   - itemCondition
-
 
56959
   - overrideWarranty
-
 
56960
  """
-
 
56961
 
-
 
56962
  thrift_spec = (
-
 
56963
    None, # 0
-
 
56964
    (1, TType.I64, 'customerId', None, None, ), # 1
-
 
56965
    (2, TType.MAP, 'returnOrdersMap', (TType.I64,None,TType.I64,None), None, ), # 2
-
 
56966
    (3, TType.STRING, 'itemCondition', None, None, ), # 3
-
 
56967
    (4, TType.BOOL, 'overrideWarranty', None, None, ), # 4
-
 
56968
  )
-
 
56969
 
-
 
56970
  def __init__(self, customerId=None, returnOrdersMap=None, itemCondition=None, overrideWarranty=None,):
-
 
56971
    self.customerId = customerId
-
 
56972
    self.returnOrdersMap = returnOrdersMap
-
 
56973
    self.itemCondition = itemCondition
-
 
56974
    self.overrideWarranty = overrideWarranty
-
 
56975
 
-
 
56976
  def read(self, iprot):
-
 
56977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
56978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
56979
      return
-
 
56980
    iprot.readStructBegin()
-
 
56981
    while True:
-
 
56982
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
56983
      if ftype == TType.STOP:
-
 
56984
        break
-
 
56985
      if fid == 1:
-
 
56986
        if ftype == TType.I64:
-
 
56987
          self.customerId = iprot.readI64();
-
 
56988
        else:
-
 
56989
          iprot.skip(ftype)
-
 
56990
      elif fid == 2:
-
 
56991
        if ftype == TType.MAP:
-
 
56992
          self.returnOrdersMap = {}
-
 
56993
          (_ktype1452, _vtype1453, _size1451 ) = iprot.readMapBegin() 
-
 
56994
          for _i1455 in xrange(_size1451):
-
 
56995
            _key1456 = iprot.readI64();
-
 
56996
            _val1457 = iprot.readI64();
-
 
56997
            self.returnOrdersMap[_key1456] = _val1457
-
 
56998
          iprot.readMapEnd()
-
 
56999
        else:
-
 
57000
          iprot.skip(ftype)
-
 
57001
      elif fid == 3:
-
 
57002
        if ftype == TType.STRING:
-
 
57003
          self.itemCondition = iprot.readString();
-
 
57004
        else:
-
 
57005
          iprot.skip(ftype)
-
 
57006
      elif fid == 4:
-
 
57007
        if ftype == TType.BOOL:
-
 
57008
          self.overrideWarranty = iprot.readBool();
-
 
57009
        else:
-
 
57010
          iprot.skip(ftype)
-
 
57011
      else:
-
 
57012
        iprot.skip(ftype)
-
 
57013
      iprot.readFieldEnd()
-
 
57014
    iprot.readStructEnd()
-
 
57015
 
-
 
57016
  def write(self, oprot):
-
 
57017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57019
      return
-
 
57020
    oprot.writeStructBegin('validateReturnTransaction_args')
-
 
57021
    if self.customerId is not None:
-
 
57022
      oprot.writeFieldBegin('customerId', TType.I64, 1)
-
 
57023
      oprot.writeI64(self.customerId)
-
 
57024
      oprot.writeFieldEnd()
-
 
57025
    if self.returnOrdersMap is not None:
-
 
57026
      oprot.writeFieldBegin('returnOrdersMap', TType.MAP, 2)
-
 
57027
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.returnOrdersMap))
-
 
57028
      for kiter1458,viter1459 in self.returnOrdersMap.items():
-
 
57029
        oprot.writeI64(kiter1458)
-
 
57030
        oprot.writeI64(viter1459)
-
 
57031
      oprot.writeMapEnd()
-
 
57032
      oprot.writeFieldEnd()
-
 
57033
    if self.itemCondition is not None:
-
 
57034
      oprot.writeFieldBegin('itemCondition', TType.STRING, 3)
-
 
57035
      oprot.writeString(self.itemCondition)
-
 
57036
      oprot.writeFieldEnd()
-
 
57037
    if self.overrideWarranty is not None:
-
 
57038
      oprot.writeFieldBegin('overrideWarranty', TType.BOOL, 4)
-
 
57039
      oprot.writeBool(self.overrideWarranty)
-
 
57040
      oprot.writeFieldEnd()
-
 
57041
    oprot.writeFieldStop()
-
 
57042
    oprot.writeStructEnd()
-
 
57043
 
-
 
57044
  def validate(self):
-
 
57045
    return
-
 
57046
 
-
 
57047
 
-
 
57048
  def __repr__(self):
-
 
57049
    L = ['%s=%r' % (key, value)
-
 
57050
      for key, value in self.__dict__.iteritems()]
-
 
57051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
57052
 
-
 
57053
  def __eq__(self, other):
-
 
57054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
57055
 
-
 
57056
  def __ne__(self, other):
-
 
57057
    return not (self == other)
-
 
57058
 
-
 
57059
class validateReturnTransaction_result:
-
 
57060
  """
-
 
57061
  Attributes:
-
 
57062
   - success
-
 
57063
  """
-
 
57064
 
-
 
57065
  thrift_spec = (
-
 
57066
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
57067
  )
-
 
57068
 
-
 
57069
  def __init__(self, success=None,):
-
 
57070
    self.success = success
-
 
57071
 
-
 
57072
  def read(self, iprot):
-
 
57073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
57074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
57075
      return
-
 
57076
    iprot.readStructBegin()
-
 
57077
    while True:
-
 
57078
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
57079
      if ftype == TType.STOP:
-
 
57080
        break
-
 
57081
      if fid == 0:
-
 
57082
        if ftype == TType.BOOL:
-
 
57083
          self.success = iprot.readBool();
-
 
57084
        else:
-
 
57085
          iprot.skip(ftype)
-
 
57086
      else:
-
 
57087
        iprot.skip(ftype)
-
 
57088
      iprot.readFieldEnd()
-
 
57089
    iprot.readStructEnd()
-
 
57090
 
-
 
57091
  def write(self, oprot):
-
 
57092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57094
      return
-
 
57095
    oprot.writeStructBegin('validateReturnTransaction_result')
-
 
57096
    if self.success is not None:
-
 
57097
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
57098
      oprot.writeBool(self.success)
-
 
57099
      oprot.writeFieldEnd()
-
 
57100
    oprot.writeFieldStop()
-
 
57101
    oprot.writeStructEnd()
-
 
57102
 
-
 
57103
  def validate(self):
56851
    return
57104
    return
56852
 
57105
 
56853
 
57106
 
56854
  def __repr__(self):
57107
  def __repr__(self):
56855
    L = ['%s=%r' % (key, value)
57108
    L = ['%s=%r' % (key, value)