Subversion Repositories SmartDukaan

Rev

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

Rev 7322 Rev 7343
Line 1642... Line 1642...
1642
    Parameters:
1642
    Parameters:
1643
     - orderId
1643
     - orderId
1644
    """
1644
    """
1645
    pass
1645
    pass
1646
 
1646
 
-
 
1647
  def getOrdersForStore(self, id, storeId, startDate, endDate, statuses):
-
 
1648
    """
-
 
1649
    Parameters:
-
 
1650
     - id
-
 
1651
     - storeId
-
 
1652
     - startDate
-
 
1653
     - endDate
-
 
1654
     - statuses
-
 
1655
    """
-
 
1656
    pass
-
 
1657
 
-
 
1658
  def getStoreOrderAdvanceInvoice(self, orderId):
-
 
1659
    """
-
 
1660
    Parameters:
-
 
1661
     - orderId
-
 
1662
    """
-
 
1663
    pass
-
 
1664
 
1647
 
1665
 
1648
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1666
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1649
  def __init__(self, iprot, oprot=None):
1667
  def __init__(self, iprot, oprot=None):
1650
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1668
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1651
 
1669
 
Line 7561... Line 7579...
7561
    self._iprot.readMessageEnd()
7579
    self._iprot.readMessageEnd()
7562
    if result.success is not None:
7580
    if result.success is not None:
7563
      return result.success
7581
      return result.success
7564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOrder failed: unknown result");
7582
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOrder failed: unknown result");
7565
 
7583
 
-
 
7584
  def getOrdersForStore(self, id, storeId, startDate, endDate, statuses):
-
 
7585
    """
-
 
7586
    Parameters:
-
 
7587
     - id
-
 
7588
     - storeId
-
 
7589
     - startDate
-
 
7590
     - endDate
-
 
7591
     - statuses
-
 
7592
    """
-
 
7593
    self.send_getOrdersForStore(id, storeId, startDate, endDate, statuses)
-
 
7594
    return self.recv_getOrdersForStore()
-
 
7595
 
-
 
7596
  def send_getOrdersForStore(self, id, storeId, startDate, endDate, statuses):
-
 
7597
    self._oprot.writeMessageBegin('getOrdersForStore', TMessageType.CALL, self._seqid)
-
 
7598
    args = getOrdersForStore_args()
-
 
7599
    args.id = id
-
 
7600
    args.storeId = storeId
-
 
7601
    args.startDate = startDate
-
 
7602
    args.endDate = endDate
-
 
7603
    args.statuses = statuses
-
 
7604
    args.write(self._oprot)
-
 
7605
    self._oprot.writeMessageEnd()
-
 
7606
    self._oprot.trans.flush()
-
 
7607
 
-
 
7608
  def recv_getOrdersForStore(self, ):
-
 
7609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7610
    if mtype == TMessageType.EXCEPTION:
-
 
7611
      x = TApplicationException()
-
 
7612
      x.read(self._iprot)
-
 
7613
      self._iprot.readMessageEnd()
-
 
7614
      raise x
-
 
7615
    result = getOrdersForStore_result()
-
 
7616
    result.read(self._iprot)
-
 
7617
    self._iprot.readMessageEnd()
-
 
7618
    if result.success is not None:
-
 
7619
      return result.success
-
 
7620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForStore failed: unknown result");
-
 
7621
 
-
 
7622
  def getStoreOrderAdvanceInvoice(self, orderId):
-
 
7623
    """
-
 
7624
    Parameters:
-
 
7625
     - orderId
-
 
7626
    """
-
 
7627
    self.send_getStoreOrderAdvanceInvoice(orderId)
-
 
7628
    return self.recv_getStoreOrderAdvanceInvoice()
-
 
7629
 
-
 
7630
  def send_getStoreOrderAdvanceInvoice(self, orderId):
-
 
7631
    self._oprot.writeMessageBegin('getStoreOrderAdvanceInvoice', TMessageType.CALL, self._seqid)
-
 
7632
    args = getStoreOrderAdvanceInvoice_args()
-
 
7633
    args.orderId = orderId
-
 
7634
    args.write(self._oprot)
-
 
7635
    self._oprot.writeMessageEnd()
-
 
7636
    self._oprot.trans.flush()
-
 
7637
 
-
 
7638
  def recv_getStoreOrderAdvanceInvoice(self, ):
-
 
7639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7640
    if mtype == TMessageType.EXCEPTION:
-
 
7641
      x = TApplicationException()
-
 
7642
      x.read(self._iprot)
-
 
7643
      self._iprot.readMessageEnd()
-
 
7644
      raise x
-
 
7645
    result = getStoreOrderAdvanceInvoice_result()
-
 
7646
    result.read(self._iprot)
-
 
7647
    self._iprot.readMessageEnd()
-
 
7648
    if result.success is not None:
-
 
7649
      return result.success
-
 
7650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStoreOrderAdvanceInvoice failed: unknown result");
-
 
7651
 
7566
 
7652
 
7567
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7653
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7568
  def __init__(self, handler):
7654
  def __init__(self, handler):
7569
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7655
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7570
    self._processMap["createTransaction"] = Processor.process_createTransaction
7656
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 7739... Line 7825...
7739
    self._processMap["addAmazonOrder"] = Processor.process_addAmazonOrder
7825
    self._processMap["addAmazonOrder"] = Processor.process_addAmazonOrder
7740
    self._processMap["updateAmazonOrderStatus"] = Processor.process_updateAmazonOrderStatus
7826
    self._processMap["updateAmazonOrderStatus"] = Processor.process_updateAmazonOrderStatus
7741
    self._processMap["getAmazonOrdersShipped"] = Processor.process_getAmazonOrdersShipped
7827
    self._processMap["getAmazonOrdersShipped"] = Processor.process_getAmazonOrdersShipped
7742
    self._processMap["getAmazonOrdersCancelled"] = Processor.process_getAmazonOrdersCancelled
7828
    self._processMap["getAmazonOrdersCancelled"] = Processor.process_getAmazonOrdersCancelled
7743
    self._processMap["getAmazonOrder"] = Processor.process_getAmazonOrder
7829
    self._processMap["getAmazonOrder"] = Processor.process_getAmazonOrder
-
 
7830
    self._processMap["getOrdersForStore"] = Processor.process_getOrdersForStore
-
 
7831
    self._processMap["getStoreOrderAdvanceInvoice"] = Processor.process_getStoreOrderAdvanceInvoice
7744
 
7832
 
7745
  def process(self, iprot, oprot):
7833
  def process(self, iprot, oprot):
7746
    (name, type, seqid) = iprot.readMessageBegin()
7834
    (name, type, seqid) = iprot.readMessageBegin()
7747
    if name not in self._processMap:
7835
    if name not in self._processMap:
7748
      iprot.skip(TType.STRUCT)
7836
      iprot.skip(TType.STRUCT)
Line 9963... Line 10051...
9963
    oprot.writeMessageBegin("getAmazonOrder", TMessageType.REPLY, seqid)
10051
    oprot.writeMessageBegin("getAmazonOrder", TMessageType.REPLY, seqid)
9964
    result.write(oprot)
10052
    result.write(oprot)
9965
    oprot.writeMessageEnd()
10053
    oprot.writeMessageEnd()
9966
    oprot.trans.flush()
10054
    oprot.trans.flush()
9967
 
10055
 
-
 
10056
  def process_getOrdersForStore(self, seqid, iprot, oprot):
-
 
10057
    args = getOrdersForStore_args()
-
 
10058
    args.read(iprot)
-
 
10059
    iprot.readMessageEnd()
-
 
10060
    result = getOrdersForStore_result()
-
 
10061
    result.success = self._handler.getOrdersForStore(args.id, args.storeId, args.startDate, args.endDate, args.statuses)
-
 
10062
    oprot.writeMessageBegin("getOrdersForStore", TMessageType.REPLY, seqid)
-
 
10063
    result.write(oprot)
-
 
10064
    oprot.writeMessageEnd()
-
 
10065
    oprot.trans.flush()
-
 
10066
 
-
 
10067
  def process_getStoreOrderAdvanceInvoice(self, seqid, iprot, oprot):
-
 
10068
    args = getStoreOrderAdvanceInvoice_args()
-
 
10069
    args.read(iprot)
-
 
10070
    iprot.readMessageEnd()
-
 
10071
    result = getStoreOrderAdvanceInvoice_result()
-
 
10072
    result.success = self._handler.getStoreOrderAdvanceInvoice(args.orderId)
-
 
10073
    oprot.writeMessageBegin("getStoreOrderAdvanceInvoice", TMessageType.REPLY, seqid)
-
 
10074
    result.write(oprot)
-
 
10075
    oprot.writeMessageEnd()
-
 
10076
    oprot.trans.flush()
-
 
10077
 
9968
 
10078
 
9969
# HELPER FUNCTIONS AND STRUCTURES
10079
# HELPER FUNCTIONS AND STRUCTURES
9970
 
10080
 
9971
class createTransaction_args:
10081
class createTransaction_args:
9972
  """
10082
  """
Line 34204... Line 34314...
34204
      oprot.writeFieldEnd()
34314
      oprot.writeFieldEnd()
34205
    oprot.writeFieldStop()
34315
    oprot.writeFieldStop()
34206
    oprot.writeStructEnd()
34316
    oprot.writeStructEnd()
34207
 
34317
 
34208
  def validate(self):
34318
  def validate(self):
-
 
34319
    return
-
 
34320
 
-
 
34321
 
-
 
34322
  def __repr__(self):
-
 
34323
    L = ['%s=%r' % (key, value)
-
 
34324
      for key, value in self.__dict__.iteritems()]
-
 
34325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
34326
 
-
 
34327
  def __eq__(self, other):
-
 
34328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
34329
 
-
 
34330
  def __ne__(self, other):
-
 
34331
    return not (self == other)
-
 
34332
 
-
 
34333
class getOrdersForStore_args:
-
 
34334
  """
-
 
34335
  Attributes:
-
 
34336
   - id
-
 
34337
   - storeId
-
 
34338
   - startDate
-
 
34339
   - endDate
-
 
34340
   - statuses
-
 
34341
  """
-
 
34342
 
-
 
34343
  thrift_spec = (
-
 
34344
    None, # 0
-
 
34345
    (1, TType.I64, 'id', None, None, ), # 1
-
 
34346
    (2, TType.I64, 'storeId', None, None, ), # 2
-
 
34347
    (3, TType.I64, 'startDate', None, None, ), # 3
-
 
34348
    (4, TType.I64, 'endDate', None, None, ), # 4
-
 
34349
    (5, TType.LIST, 'statuses', (TType.I32,None), None, ), # 5
-
 
34350
  )
-
 
34351
 
-
 
34352
  def __init__(self, id=None, storeId=None, startDate=None, endDate=None, statuses=None,):
-
 
34353
    self.id = id
-
 
34354
    self.storeId = storeId
-
 
34355
    self.startDate = startDate
-
 
34356
    self.endDate = endDate
-
 
34357
    self.statuses = statuses
-
 
34358
 
-
 
34359
  def read(self, iprot):
-
 
34360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
34361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
34362
      return
-
 
34363
    iprot.readStructBegin()
-
 
34364
    while True:
-
 
34365
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
34366
      if ftype == TType.STOP:
-
 
34367
        break
-
 
34368
      if fid == 1:
-
 
34369
        if ftype == TType.I64:
-
 
34370
          self.id = iprot.readI64();
-
 
34371
        else:
-
 
34372
          iprot.skip(ftype)
-
 
34373
      elif fid == 2:
-
 
34374
        if ftype == TType.I64:
-
 
34375
          self.storeId = iprot.readI64();
-
 
34376
        else:
-
 
34377
          iprot.skip(ftype)
-
 
34378
      elif fid == 3:
-
 
34379
        if ftype == TType.I64:
-
 
34380
          self.startDate = iprot.readI64();
-
 
34381
        else:
-
 
34382
          iprot.skip(ftype)
-
 
34383
      elif fid == 4:
-
 
34384
        if ftype == TType.I64:
-
 
34385
          self.endDate = iprot.readI64();
-
 
34386
        else:
-
 
34387
          iprot.skip(ftype)
-
 
34388
      elif fid == 5:
-
 
34389
        if ftype == TType.LIST:
-
 
34390
          self.statuses = []
-
 
34391
          (_etype796, _size793) = iprot.readListBegin()
-
 
34392
          for _i797 in xrange(_size793):
-
 
34393
            _elem798 = iprot.readI32();
-
 
34394
            self.statuses.append(_elem798)
-
 
34395
          iprot.readListEnd()
-
 
34396
        else:
-
 
34397
          iprot.skip(ftype)
-
 
34398
      else:
-
 
34399
        iprot.skip(ftype)
-
 
34400
      iprot.readFieldEnd()
-
 
34401
    iprot.readStructEnd()
-
 
34402
 
-
 
34403
  def write(self, oprot):
-
 
34404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
34405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
34406
      return
-
 
34407
    oprot.writeStructBegin('getOrdersForStore_args')
-
 
34408
    if self.id is not None:
-
 
34409
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
34410
      oprot.writeI64(self.id)
-
 
34411
      oprot.writeFieldEnd()
-
 
34412
    if self.storeId is not None:
-
 
34413
      oprot.writeFieldBegin('storeId', TType.I64, 2)
-
 
34414
      oprot.writeI64(self.storeId)
-
 
34415
      oprot.writeFieldEnd()
-
 
34416
    if self.startDate is not None:
-
 
34417
      oprot.writeFieldBegin('startDate', TType.I64, 3)
-
 
34418
      oprot.writeI64(self.startDate)
-
 
34419
      oprot.writeFieldEnd()
-
 
34420
    if self.endDate is not None:
-
 
34421
      oprot.writeFieldBegin('endDate', TType.I64, 4)
-
 
34422
      oprot.writeI64(self.endDate)
-
 
34423
      oprot.writeFieldEnd()
-
 
34424
    if self.statuses is not None:
-
 
34425
      oprot.writeFieldBegin('statuses', TType.LIST, 5)
-
 
34426
      oprot.writeListBegin(TType.I32, len(self.statuses))
-
 
34427
      for iter799 in self.statuses:
-
 
34428
        oprot.writeI32(iter799)
-
 
34429
      oprot.writeListEnd()
-
 
34430
      oprot.writeFieldEnd()
-
 
34431
    oprot.writeFieldStop()
-
 
34432
    oprot.writeStructEnd()
-
 
34433
 
-
 
34434
  def validate(self):
-
 
34435
    return
-
 
34436
 
-
 
34437
 
-
 
34438
  def __repr__(self):
-
 
34439
    L = ['%s=%r' % (key, value)
-
 
34440
      for key, value in self.__dict__.iteritems()]
-
 
34441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
34442
 
-
 
34443
  def __eq__(self, other):
-
 
34444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
34445
 
-
 
34446
  def __ne__(self, other):
-
 
34447
    return not (self == other)
-
 
34448
 
-
 
34449
class getOrdersForStore_result:
-
 
34450
  """
-
 
34451
  Attributes:
-
 
34452
   - success
-
 
34453
  """
-
 
34454
 
-
 
34455
  thrift_spec = (
-
 
34456
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
-
 
34457
  )
-
 
34458
 
-
 
34459
  def __init__(self, success=None,):
-
 
34460
    self.success = success
-
 
34461
 
-
 
34462
  def read(self, iprot):
-
 
34463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
34464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
34465
      return
-
 
34466
    iprot.readStructBegin()
-
 
34467
    while True:
-
 
34468
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
34469
      if ftype == TType.STOP:
-
 
34470
        break
-
 
34471
      if fid == 0:
-
 
34472
        if ftype == TType.LIST:
-
 
34473
          self.success = []
-
 
34474
          (_etype803, _size800) = iprot.readListBegin()
-
 
34475
          for _i804 in xrange(_size800):
-
 
34476
            _elem805 = Order()
-
 
34477
            _elem805.read(iprot)
-
 
34478
            self.success.append(_elem805)
-
 
34479
          iprot.readListEnd()
-
 
34480
        else:
-
 
34481
          iprot.skip(ftype)
-
 
34482
      else:
-
 
34483
        iprot.skip(ftype)
-
 
34484
      iprot.readFieldEnd()
-
 
34485
    iprot.readStructEnd()
-
 
34486
 
-
 
34487
  def write(self, oprot):
-
 
34488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
34489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
34490
      return
-
 
34491
    oprot.writeStructBegin('getOrdersForStore_result')
-
 
34492
    if self.success is not None:
-
 
34493
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
34494
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
34495
      for iter806 in self.success:
-
 
34496
        iter806.write(oprot)
-
 
34497
      oprot.writeListEnd()
-
 
34498
      oprot.writeFieldEnd()
-
 
34499
    oprot.writeFieldStop()
-
 
34500
    oprot.writeStructEnd()
-
 
34501
 
-
 
34502
  def validate(self):
-
 
34503
    return
-
 
34504
 
-
 
34505
 
-
 
34506
  def __repr__(self):
-
 
34507
    L = ['%s=%r' % (key, value)
-
 
34508
      for key, value in self.__dict__.iteritems()]
-
 
34509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
34510
 
-
 
34511
  def __eq__(self, other):
-
 
34512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
34513
 
-
 
34514
  def __ne__(self, other):
-
 
34515
    return not (self == other)
-
 
34516
 
-
 
34517
class getStoreOrderAdvanceInvoice_args:
-
 
34518
  """
-
 
34519
  Attributes:
-
 
34520
   - orderId
-
 
34521
  """
-
 
34522
 
-
 
34523
  thrift_spec = (
-
 
34524
    None, # 0
-
 
34525
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
34526
  )
-
 
34527
 
-
 
34528
  def __init__(self, orderId=None,):
-
 
34529
    self.orderId = orderId
-
 
34530
 
-
 
34531
  def read(self, iprot):
-
 
34532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
34533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
34534
      return
-
 
34535
    iprot.readStructBegin()
-
 
34536
    while True:
-
 
34537
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
34538
      if ftype == TType.STOP:
-
 
34539
        break
-
 
34540
      if fid == 1:
-
 
34541
        if ftype == TType.I64:
-
 
34542
          self.orderId = iprot.readI64();
-
 
34543
        else:
-
 
34544
          iprot.skip(ftype)
-
 
34545
      else:
-
 
34546
        iprot.skip(ftype)
-
 
34547
      iprot.readFieldEnd()
-
 
34548
    iprot.readStructEnd()
-
 
34549
 
-
 
34550
  def write(self, oprot):
-
 
34551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
34552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
34553
      return
-
 
34554
    oprot.writeStructBegin('getStoreOrderAdvanceInvoice_args')
-
 
34555
    if self.orderId is not None:
-
 
34556
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
34557
      oprot.writeI64(self.orderId)
-
 
34558
      oprot.writeFieldEnd()
-
 
34559
    oprot.writeFieldStop()
-
 
34560
    oprot.writeStructEnd()
-
 
34561
 
-
 
34562
  def validate(self):
-
 
34563
    return
-
 
34564
 
-
 
34565
 
-
 
34566
  def __repr__(self):
-
 
34567
    L = ['%s=%r' % (key, value)
-
 
34568
      for key, value in self.__dict__.iteritems()]
-
 
34569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
34570
 
-
 
34571
  def __eq__(self, other):
-
 
34572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
34573
 
-
 
34574
  def __ne__(self, other):
-
 
34575
    return not (self == other)
-
 
34576
 
-
 
34577
class getStoreOrderAdvanceInvoice_result:
-
 
34578
  """
-
 
34579
  Attributes:
-
 
34580
   - success
-
 
34581
  """
-
 
34582
 
-
 
34583
  thrift_spec = (
-
 
34584
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
34585
  )
-
 
34586
 
-
 
34587
  def __init__(self, success=None,):
-
 
34588
    self.success = success
-
 
34589
 
-
 
34590
  def read(self, iprot):
-
 
34591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
34592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
34593
      return
-
 
34594
    iprot.readStructBegin()
-
 
34595
    while True:
-
 
34596
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
34597
      if ftype == TType.STOP:
-
 
34598
        break
-
 
34599
      if fid == 0:
-
 
34600
        if ftype == TType.STRING:
-
 
34601
          self.success = iprot.readString();
-
 
34602
        else:
-
 
34603
          iprot.skip(ftype)
-
 
34604
      else:
-
 
34605
        iprot.skip(ftype)
-
 
34606
      iprot.readFieldEnd()
-
 
34607
    iprot.readStructEnd()
-
 
34608
 
-
 
34609
  def write(self, oprot):
-
 
34610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
34611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
34612
      return
-
 
34613
    oprot.writeStructBegin('getStoreOrderAdvanceInvoice_result')
-
 
34614
    if self.success is not None:
-
 
34615
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
34616
      oprot.writeString(self.success)
-
 
34617
      oprot.writeFieldEnd()
-
 
34618
    oprot.writeFieldStop()
-
 
34619
    oprot.writeStructEnd()
-
 
34620
 
-
 
34621
  def validate(self):
34209
    return
34622
    return
34210
 
34623
 
34211
 
34624
 
34212
  def __repr__(self):
34625
  def __repr__(self):
34213
    L = ['%s=%r' % (key, value)
34626
    L = ['%s=%r' % (key, value)