Subversion Repositories SmartDukaan

Rev

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

Rev 19735 Rev 19817
Line 2582... Line 2582...
2582
     - itemCondition
2582
     - itemCondition
2583
     - overrideWarranty
2583
     - overrideWarranty
2584
    """
2584
    """
2585
    pass
2585
    pass
2586
 
2586
 
-
 
2587
  def markReturnNotRequiredOrdersProcessed(self, returnTransactionId):
-
 
2588
    """
-
 
2589
    Parameters:
-
 
2590
     - returnTransactionId
-
 
2591
    """
-
 
2592
    pass
-
 
2593
 
-
 
2594
  def getReturnPickupRequest(self, returnPickupId):
-
 
2595
    """
-
 
2596
    Parameters:
-
 
2597
     - returnPickupId
-
 
2598
    """
-
 
2599
    pass
-
 
2600
 
2587
 
2601
 
2588
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2602
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2589
  def __init__(self, iprot, oprot=None):
2603
  def __init__(self, iprot, oprot=None):
2590
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2604
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2591
 
2605
 
Line 12339... Line 12353...
12339
    self._iprot.readMessageEnd()
12353
    self._iprot.readMessageEnd()
12340
    if result.success is not None:
12354
    if result.success is not None:
12341
      return result.success
12355
      return result.success
12342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateReturnTransaction failed: unknown result");
12356
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateReturnTransaction failed: unknown result");
12343
 
12357
 
-
 
12358
  def markReturnNotRequiredOrdersProcessed(self, returnTransactionId):
-
 
12359
    """
-
 
12360
    Parameters:
-
 
12361
     - returnTransactionId
-
 
12362
    """
-
 
12363
    self.send_markReturnNotRequiredOrdersProcessed(returnTransactionId)
-
 
12364
    return self.recv_markReturnNotRequiredOrdersProcessed()
-
 
12365
 
-
 
12366
  def send_markReturnNotRequiredOrdersProcessed(self, returnTransactionId):
-
 
12367
    self._oprot.writeMessageBegin('markReturnNotRequiredOrdersProcessed', TMessageType.CALL, self._seqid)
-
 
12368
    args = markReturnNotRequiredOrdersProcessed_args()
-
 
12369
    args.returnTransactionId = returnTransactionId
-
 
12370
    args.write(self._oprot)
-
 
12371
    self._oprot.writeMessageEnd()
-
 
12372
    self._oprot.trans.flush()
-
 
12373
 
-
 
12374
  def recv_markReturnNotRequiredOrdersProcessed(self, ):
-
 
12375
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12376
    if mtype == TMessageType.EXCEPTION:
-
 
12377
      x = TApplicationException()
-
 
12378
      x.read(self._iprot)
-
 
12379
      self._iprot.readMessageEnd()
-
 
12380
      raise x
-
 
12381
    result = markReturnNotRequiredOrdersProcessed_result()
-
 
12382
    result.read(self._iprot)
-
 
12383
    self._iprot.readMessageEnd()
-
 
12384
    if result.success is not None:
-
 
12385
      return result.success
-
 
12386
    if result.ex is not None:
-
 
12387
      raise result.ex
-
 
12388
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markReturnNotRequiredOrdersProcessed failed: unknown result");
-
 
12389
 
-
 
12390
  def getReturnPickupRequest(self, returnPickupId):
-
 
12391
    """
-
 
12392
    Parameters:
-
 
12393
     - returnPickupId
-
 
12394
    """
-
 
12395
    self.send_getReturnPickupRequest(returnPickupId)
-
 
12396
    return self.recv_getReturnPickupRequest()
-
 
12397
 
-
 
12398
  def send_getReturnPickupRequest(self, returnPickupId):
-
 
12399
    self._oprot.writeMessageBegin('getReturnPickupRequest', TMessageType.CALL, self._seqid)
-
 
12400
    args = getReturnPickupRequest_args()
-
 
12401
    args.returnPickupId = returnPickupId
-
 
12402
    args.write(self._oprot)
-
 
12403
    self._oprot.writeMessageEnd()
-
 
12404
    self._oprot.trans.flush()
-
 
12405
 
-
 
12406
  def recv_getReturnPickupRequest(self, ):
-
 
12407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12408
    if mtype == TMessageType.EXCEPTION:
-
 
12409
      x = TApplicationException()
-
 
12410
      x.read(self._iprot)
-
 
12411
      self._iprot.readMessageEnd()
-
 
12412
      raise x
-
 
12413
    result = getReturnPickupRequest_result()
-
 
12414
    result.read(self._iprot)
-
 
12415
    self._iprot.readMessageEnd()
-
 
12416
    if result.success is not None:
-
 
12417
      return result.success
-
 
12418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnPickupRequest failed: unknown result");
-
 
12419
 
12344
 
12420
 
12345
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12421
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12346
  def __init__(self, handler):
12422
  def __init__(self, handler):
12347
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12423
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12348
    self._processMap["createTransaction"] = Processor.process_createTransaction
12424
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 12636... Line 12712...
12636
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
12712
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
12637
    self._processMap["addOrUpdateShipmentLogisticsCostDetails"] = Processor.process_addOrUpdateShipmentLogisticsCostDetails
12713
    self._processMap["addOrUpdateShipmentLogisticsCostDetails"] = Processor.process_addOrUpdateShipmentLogisticsCostDetails
12638
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
12714
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
12639
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12715
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12640
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
12716
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
-
 
12717
    self._processMap["markReturnNotRequiredOrdersProcessed"] = Processor.process_markReturnNotRequiredOrdersProcessed
-
 
12718
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
12641
 
12719
 
12642
  def process(self, iprot, oprot):
12720
  def process(self, iprot, oprot):
12643
    (name, type, seqid) = iprot.readMessageBegin()
12721
    (name, type, seqid) = iprot.readMessageBegin()
12644
    if name not in self._processMap:
12722
    if name not in self._processMap:
12645
      iprot.skip(TType.STRUCT)
12723
      iprot.skip(TType.STRUCT)
Line 16289... Line 16367...
16289
    oprot.writeMessageBegin("validateReturnTransaction", TMessageType.REPLY, seqid)
16367
    oprot.writeMessageBegin("validateReturnTransaction", TMessageType.REPLY, seqid)
16290
    result.write(oprot)
16368
    result.write(oprot)
16291
    oprot.writeMessageEnd()
16369
    oprot.writeMessageEnd()
16292
    oprot.trans.flush()
16370
    oprot.trans.flush()
16293
 
16371
 
-
 
16372
  def process_markReturnNotRequiredOrdersProcessed(self, seqid, iprot, oprot):
-
 
16373
    args = markReturnNotRequiredOrdersProcessed_args()
-
 
16374
    args.read(iprot)
-
 
16375
    iprot.readMessageEnd()
-
 
16376
    result = markReturnNotRequiredOrdersProcessed_result()
-
 
16377
    try:
-
 
16378
      result.success = self._handler.markReturnNotRequiredOrdersProcessed(args.returnTransactionId)
-
 
16379
    except TransactionServiceException, ex:
-
 
16380
      result.ex = ex
-
 
16381
    oprot.writeMessageBegin("markReturnNotRequiredOrdersProcessed", TMessageType.REPLY, seqid)
-
 
16382
    result.write(oprot)
-
 
16383
    oprot.writeMessageEnd()
-
 
16384
    oprot.trans.flush()
-
 
16385
 
-
 
16386
  def process_getReturnPickupRequest(self, seqid, iprot, oprot):
-
 
16387
    args = getReturnPickupRequest_args()
-
 
16388
    args.read(iprot)
-
 
16389
    iprot.readMessageEnd()
-
 
16390
    result = getReturnPickupRequest_result()
-
 
16391
    result.success = self._handler.getReturnPickupRequest(args.returnPickupId)
-
 
16392
    oprot.writeMessageBegin("getReturnPickupRequest", TMessageType.REPLY, seqid)
-
 
16393
    result.write(oprot)
-
 
16394
    oprot.writeMessageEnd()
-
 
16395
    oprot.trans.flush()
-
 
16396
 
16294
 
16397
 
16295
# HELPER FUNCTIONS AND STRUCTURES
16398
# HELPER FUNCTIONS AND STRUCTURES
16296
 
16399
 
16297
class createTransaction_args:
16400
class createTransaction_args:
16298
  """
16401
  """
Line 54054... Line 54157...
54054
   - success
54157
   - success
54055
   - ex
54158
   - ex
54056
  """
54159
  """
54057
 
54160
 
54058
  thrift_spec = (
54161
  thrift_spec = (
54059
    (0, TType.I64, 'success', None, None, ), # 0
54162
    (0, TType.STRUCT, 'success', (ReturnTransaction, ReturnTransaction.thrift_spec), None, ), # 0
54060
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
54163
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
54061
  )
54164
  )
54062
 
54165
 
54063
  def __init__(self, success=None, ex=None,):
54166
  def __init__(self, success=None, ex=None,):
54064
    self.success = success
54167
    self.success = success
Line 54072... Line 54175...
54072
    while True:
54175
    while True:
54073
      (fname, ftype, fid) = iprot.readFieldBegin()
54176
      (fname, ftype, fid) = iprot.readFieldBegin()
54074
      if ftype == TType.STOP:
54177
      if ftype == TType.STOP:
54075
        break
54178
        break
54076
      if fid == 0:
54179
      if fid == 0:
54077
        if ftype == TType.I64:
54180
        if ftype == TType.STRUCT:
54078
          self.success = iprot.readI64();
54181
          self.success = ReturnTransaction()
-
 
54182
          self.success.read(iprot)
54079
        else:
54183
        else:
54080
          iprot.skip(ftype)
54184
          iprot.skip(ftype)
54081
      elif fid == 1:
54185
      elif fid == 1:
54082
        if ftype == TType.STRUCT:
54186
        if ftype == TType.STRUCT:
54083
          self.ex = TransactionServiceException()
54187
          self.ex = TransactionServiceException()
Line 54093... Line 54197...
54093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
54197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
54094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
54198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
54095
      return
54199
      return
54096
    oprot.writeStructBegin('createReturnTransaction_result')
54200
    oprot.writeStructBegin('createReturnTransaction_result')
54097
    if self.success is not None:
54201
    if self.success is not None:
54098
      oprot.writeFieldBegin('success', TType.I64, 0)
54202
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
54099
      oprot.writeI64(self.success)
54203
      self.success.write(oprot)
54100
      oprot.writeFieldEnd()
54204
      oprot.writeFieldEnd()
54101
    if self.ex is not None:
54205
    if self.ex is not None:
54102
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
54206
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
54103
      self.ex.write(oprot)
54207
      self.ex.write(oprot)
54104
      oprot.writeFieldEnd()
54208
      oprot.writeFieldEnd()
Line 57099... Line 57203...
57099
      oprot.writeFieldEnd()
57203
      oprot.writeFieldEnd()
57100
    oprot.writeFieldStop()
57204
    oprot.writeFieldStop()
57101
    oprot.writeStructEnd()
57205
    oprot.writeStructEnd()
57102
 
57206
 
57103
  def validate(self):
57207
  def validate(self):
-
 
57208
    return
-
 
57209
 
-
 
57210
 
-
 
57211
  def __repr__(self):
-
 
57212
    L = ['%s=%r' % (key, value)
-
 
57213
      for key, value in self.__dict__.iteritems()]
-
 
57214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
57215
 
-
 
57216
  def __eq__(self, other):
-
 
57217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
57218
 
-
 
57219
  def __ne__(self, other):
-
 
57220
    return not (self == other)
-
 
57221
 
-
 
57222
class markReturnNotRequiredOrdersProcessed_args:
-
 
57223
  """
-
 
57224
  Attributes:
-
 
57225
   - returnTransactionId
-
 
57226
  """
-
 
57227
 
-
 
57228
  thrift_spec = (
-
 
57229
    None, # 0
-
 
57230
    (1, TType.I64, 'returnTransactionId', None, None, ), # 1
-
 
57231
  )
-
 
57232
 
-
 
57233
  def __init__(self, returnTransactionId=None,):
-
 
57234
    self.returnTransactionId = returnTransactionId
-
 
57235
 
-
 
57236
  def read(self, iprot):
-
 
57237
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
57238
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
57239
      return
-
 
57240
    iprot.readStructBegin()
-
 
57241
    while True:
-
 
57242
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
57243
      if ftype == TType.STOP:
-
 
57244
        break
-
 
57245
      if fid == 1:
-
 
57246
        if ftype == TType.I64:
-
 
57247
          self.returnTransactionId = iprot.readI64();
-
 
57248
        else:
-
 
57249
          iprot.skip(ftype)
-
 
57250
      else:
-
 
57251
        iprot.skip(ftype)
-
 
57252
      iprot.readFieldEnd()
-
 
57253
    iprot.readStructEnd()
-
 
57254
 
-
 
57255
  def write(self, oprot):
-
 
57256
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57257
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57258
      return
-
 
57259
    oprot.writeStructBegin('markReturnNotRequiredOrdersProcessed_args')
-
 
57260
    if self.returnTransactionId is not None:
-
 
57261
      oprot.writeFieldBegin('returnTransactionId', TType.I64, 1)
-
 
57262
      oprot.writeI64(self.returnTransactionId)
-
 
57263
      oprot.writeFieldEnd()
-
 
57264
    oprot.writeFieldStop()
-
 
57265
    oprot.writeStructEnd()
-
 
57266
 
-
 
57267
  def validate(self):
-
 
57268
    return
-
 
57269
 
-
 
57270
 
-
 
57271
  def __repr__(self):
-
 
57272
    L = ['%s=%r' % (key, value)
-
 
57273
      for key, value in self.__dict__.iteritems()]
-
 
57274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
57275
 
-
 
57276
  def __eq__(self, other):
-
 
57277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
57278
 
-
 
57279
  def __ne__(self, other):
-
 
57280
    return not (self == other)
-
 
57281
 
-
 
57282
class markReturnNotRequiredOrdersProcessed_result:
-
 
57283
  """
-
 
57284
  Attributes:
-
 
57285
   - success
-
 
57286
   - ex
-
 
57287
  """
-
 
57288
 
-
 
57289
  thrift_spec = (
-
 
57290
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
57291
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
57292
  )
-
 
57293
 
-
 
57294
  def __init__(self, success=None, ex=None,):
-
 
57295
    self.success = success
-
 
57296
    self.ex = ex
-
 
57297
 
-
 
57298
  def read(self, iprot):
-
 
57299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
57300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
57301
      return
-
 
57302
    iprot.readStructBegin()
-
 
57303
    while True:
-
 
57304
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
57305
      if ftype == TType.STOP:
-
 
57306
        break
-
 
57307
      if fid == 0:
-
 
57308
        if ftype == TType.BOOL:
-
 
57309
          self.success = iprot.readBool();
-
 
57310
        else:
-
 
57311
          iprot.skip(ftype)
-
 
57312
      elif fid == 1:
-
 
57313
        if ftype == TType.STRUCT:
-
 
57314
          self.ex = TransactionServiceException()
-
 
57315
          self.ex.read(iprot)
-
 
57316
        else:
-
 
57317
          iprot.skip(ftype)
-
 
57318
      else:
-
 
57319
        iprot.skip(ftype)
-
 
57320
      iprot.readFieldEnd()
-
 
57321
    iprot.readStructEnd()
-
 
57322
 
-
 
57323
  def write(self, oprot):
-
 
57324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57326
      return
-
 
57327
    oprot.writeStructBegin('markReturnNotRequiredOrdersProcessed_result')
-
 
57328
    if self.success is not None:
-
 
57329
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
57330
      oprot.writeBool(self.success)
-
 
57331
      oprot.writeFieldEnd()
-
 
57332
    if self.ex is not None:
-
 
57333
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
57334
      self.ex.write(oprot)
-
 
57335
      oprot.writeFieldEnd()
-
 
57336
    oprot.writeFieldStop()
-
 
57337
    oprot.writeStructEnd()
-
 
57338
 
-
 
57339
  def validate(self):
-
 
57340
    return
-
 
57341
 
-
 
57342
 
-
 
57343
  def __repr__(self):
-
 
57344
    L = ['%s=%r' % (key, value)
-
 
57345
      for key, value in self.__dict__.iteritems()]
-
 
57346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
57347
 
-
 
57348
  def __eq__(self, other):
-
 
57349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
57350
 
-
 
57351
  def __ne__(self, other):
-
 
57352
    return not (self == other)
-
 
57353
 
-
 
57354
class getReturnPickupRequest_args:
-
 
57355
  """
-
 
57356
  Attributes:
-
 
57357
   - returnPickupId
-
 
57358
  """
-
 
57359
 
-
 
57360
  thrift_spec = (
-
 
57361
    None, # 0
-
 
57362
    (1, TType.I64, 'returnPickupId', None, None, ), # 1
-
 
57363
  )
-
 
57364
 
-
 
57365
  def __init__(self, returnPickupId=None,):
-
 
57366
    self.returnPickupId = returnPickupId
-
 
57367
 
-
 
57368
  def read(self, iprot):
-
 
57369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
57370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
57371
      return
-
 
57372
    iprot.readStructBegin()
-
 
57373
    while True:
-
 
57374
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
57375
      if ftype == TType.STOP:
-
 
57376
        break
-
 
57377
      if fid == 1:
-
 
57378
        if ftype == TType.I64:
-
 
57379
          self.returnPickupId = iprot.readI64();
-
 
57380
        else:
-
 
57381
          iprot.skip(ftype)
-
 
57382
      else:
-
 
57383
        iprot.skip(ftype)
-
 
57384
      iprot.readFieldEnd()
-
 
57385
    iprot.readStructEnd()
-
 
57386
 
-
 
57387
  def write(self, oprot):
-
 
57388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57390
      return
-
 
57391
    oprot.writeStructBegin('getReturnPickupRequest_args')
-
 
57392
    if self.returnPickupId is not None:
-
 
57393
      oprot.writeFieldBegin('returnPickupId', TType.I64, 1)
-
 
57394
      oprot.writeI64(self.returnPickupId)
-
 
57395
      oprot.writeFieldEnd()
-
 
57396
    oprot.writeFieldStop()
-
 
57397
    oprot.writeStructEnd()
-
 
57398
 
-
 
57399
  def validate(self):
-
 
57400
    return
-
 
57401
 
-
 
57402
 
-
 
57403
  def __repr__(self):
-
 
57404
    L = ['%s=%r' % (key, value)
-
 
57405
      for key, value in self.__dict__.iteritems()]
-
 
57406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
57407
 
-
 
57408
  def __eq__(self, other):
-
 
57409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
57410
 
-
 
57411
  def __ne__(self, other):
-
 
57412
    return not (self == other)
-
 
57413
 
-
 
57414
class getReturnPickupRequest_result:
-
 
57415
  """
-
 
57416
  Attributes:
-
 
57417
   - success
-
 
57418
  """
-
 
57419
 
-
 
57420
  thrift_spec = (
-
 
57421
    (0, TType.STRUCT, 'success', (ReturnPickupRequest, ReturnPickupRequest.thrift_spec), None, ), # 0
-
 
57422
  )
-
 
57423
 
-
 
57424
  def __init__(self, success=None,):
-
 
57425
    self.success = success
-
 
57426
 
-
 
57427
  def read(self, iprot):
-
 
57428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
57429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
57430
      return
-
 
57431
    iprot.readStructBegin()
-
 
57432
    while True:
-
 
57433
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
57434
      if ftype == TType.STOP:
-
 
57435
        break
-
 
57436
      if fid == 0:
-
 
57437
        if ftype == TType.STRUCT:
-
 
57438
          self.success = ReturnPickupRequest()
-
 
57439
          self.success.read(iprot)
-
 
57440
        else:
-
 
57441
          iprot.skip(ftype)
-
 
57442
      else:
-
 
57443
        iprot.skip(ftype)
-
 
57444
      iprot.readFieldEnd()
-
 
57445
    iprot.readStructEnd()
-
 
57446
 
-
 
57447
  def write(self, oprot):
-
 
57448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57450
      return
-
 
57451
    oprot.writeStructBegin('getReturnPickupRequest_result')
-
 
57452
    if self.success is not None:
-
 
57453
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
57454
      self.success.write(oprot)
-
 
57455
      oprot.writeFieldEnd()
-
 
57456
    oprot.writeFieldStop()
-
 
57457
    oprot.writeStructEnd()
-
 
57458
 
-
 
57459
  def validate(self):
57104
    return
57460
    return
57105
 
57461
 
57106
 
57462
 
57107
  def __repr__(self):
57463
  def __repr__(self):
57108
    L = ['%s=%r' % (key, value)
57464
    L = ['%s=%r' % (key, value)