Subversion Repositories SmartDukaan

Rev

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

Rev 7096 Rev 7109
Line 1530... Line 1530...
1530
     - id
1530
     - id
1531
     - code
1531
     - code
1532
    """
1532
    """
1533
    pass
1533
    pass
1534
 
1534
 
-
 
1535
  def retrieveHotspotRechargeInvoice(self, rechargeId):
-
 
1536
    """
-
 
1537
    Parameters:
-
 
1538
     - rechargeId
-
 
1539
    """
-
 
1540
    pass
-
 
1541
 
1535
 
1542
 
1536
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1543
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1537
  def __init__(self, iprot, oprot=None):
1544
  def __init__(self, iprot, oprot=None):
1538
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1545
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1539
 
1546
 
Line 6984... Line 6991...
6984
    self._iprot.readMessageEnd()
6991
    self._iprot.readMessageEnd()
6985
    if result.success is not None:
6992
    if result.success is not None:
6986
      return result.success
6993
      return result.success
6987
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTelecomCircle failed: unknown result");
6994
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTelecomCircle failed: unknown result");
6988
 
6995
 
-
 
6996
  def retrieveHotspotRechargeInvoice(self, rechargeId):
-
 
6997
    """
-
 
6998
    Parameters:
-
 
6999
     - rechargeId
-
 
7000
    """
-
 
7001
    self.send_retrieveHotspotRechargeInvoice(rechargeId)
-
 
7002
    return self.recv_retrieveHotspotRechargeInvoice()
-
 
7003
 
-
 
7004
  def send_retrieveHotspotRechargeInvoice(self, rechargeId):
-
 
7005
    self._oprot.writeMessageBegin('retrieveHotspotRechargeInvoice', TMessageType.CALL, self._seqid)
-
 
7006
    args = retrieveHotspotRechargeInvoice_args()
-
 
7007
    args.rechargeId = rechargeId
-
 
7008
    args.write(self._oprot)
-
 
7009
    self._oprot.writeMessageEnd()
-
 
7010
    self._oprot.trans.flush()
-
 
7011
 
-
 
7012
  def recv_retrieveHotspotRechargeInvoice(self, ):
-
 
7013
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7014
    if mtype == TMessageType.EXCEPTION:
-
 
7015
      x = TApplicationException()
-
 
7016
      x.read(self._iprot)
-
 
7017
      self._iprot.readMessageEnd()
-
 
7018
      raise x
-
 
7019
    result = retrieveHotspotRechargeInvoice_result()
-
 
7020
    result.read(self._iprot)
-
 
7021
    self._iprot.readMessageEnd()
-
 
7022
    if result.success is not None:
-
 
7023
      return result.success
-
 
7024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "retrieveHotspotRechargeInvoice failed: unknown result");
-
 
7025
 
6989
 
7026
 
6990
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7027
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6991
  def __init__(self, handler):
7028
  def __init__(self, handler):
6992
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7029
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6993
    self._processMap["createTransaction"] = Processor.process_createTransaction
7030
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 7147... Line 7184...
7147
    self._processMap["getRechargeTransactions"] = Processor.process_getRechargeTransactions
7184
    self._processMap["getRechargeTransactions"] = Processor.process_getRechargeTransactions
7148
    self._processMap["getRechargeTransaction"] = Processor.process_getRechargeTransaction
7185
    self._processMap["getRechargeTransaction"] = Processor.process_getRechargeTransaction
7149
    self._processMap["getFRCs"] = Processor.process_getFRCs
7186
    self._processMap["getFRCs"] = Processor.process_getFRCs
7150
    self._processMap["getHotspotStore"] = Processor.process_getHotspotStore
7187
    self._processMap["getHotspotStore"] = Processor.process_getHotspotStore
7151
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
7188
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
-
 
7189
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7152
 
7190
 
7153
  def process(self, iprot, oprot):
7191
  def process(self, iprot, oprot):
7154
    (name, type, seqid) = iprot.readMessageBegin()
7192
    (name, type, seqid) = iprot.readMessageBegin()
7155
    if name not in self._processMap:
7193
    if name not in self._processMap:
7156
      iprot.skip(TType.STRUCT)
7194
      iprot.skip(TType.STRUCT)
Line 9206... Line 9244...
9206
    oprot.writeMessageBegin("getTelecomCircle", TMessageType.REPLY, seqid)
9244
    oprot.writeMessageBegin("getTelecomCircle", TMessageType.REPLY, seqid)
9207
    result.write(oprot)
9245
    result.write(oprot)
9208
    oprot.writeMessageEnd()
9246
    oprot.writeMessageEnd()
9209
    oprot.trans.flush()
9247
    oprot.trans.flush()
9210
 
9248
 
-
 
9249
  def process_retrieveHotspotRechargeInvoice(self, seqid, iprot, oprot):
-
 
9250
    args = retrieveHotspotRechargeInvoice_args()
-
 
9251
    args.read(iprot)
-
 
9252
    iprot.readMessageEnd()
-
 
9253
    result = retrieveHotspotRechargeInvoice_result()
-
 
9254
    result.success = self._handler.retrieveHotspotRechargeInvoice(args.rechargeId)
-
 
9255
    oprot.writeMessageBegin("retrieveHotspotRechargeInvoice", TMessageType.REPLY, seqid)
-
 
9256
    result.write(oprot)
-
 
9257
    oprot.writeMessageEnd()
-
 
9258
    oprot.trans.flush()
-
 
9259
 
9211
 
9260
 
9212
# HELPER FUNCTIONS AND STRUCTURES
9261
# HELPER FUNCTIONS AND STRUCTURES
9213
 
9262
 
9214
class createTransaction_args:
9263
class createTransaction_args:
9215
  """
9264
  """
Line 31508... Line 31557...
31508
      oprot.writeFieldEnd()
31557
      oprot.writeFieldEnd()
31509
    oprot.writeFieldStop()
31558
    oprot.writeFieldStop()
31510
    oprot.writeStructEnd()
31559
    oprot.writeStructEnd()
31511
 
31560
 
31512
  def validate(self):
31561
  def validate(self):
-
 
31562
    return
-
 
31563
 
-
 
31564
 
-
 
31565
  def __repr__(self):
-
 
31566
    L = ['%s=%r' % (key, value)
-
 
31567
      for key, value in self.__dict__.iteritems()]
-
 
31568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31569
 
-
 
31570
  def __eq__(self, other):
-
 
31571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31572
 
-
 
31573
  def __ne__(self, other):
-
 
31574
    return not (self == other)
-
 
31575
 
-
 
31576
class retrieveHotspotRechargeInvoice_args:
-
 
31577
  """
-
 
31578
  Attributes:
-
 
31579
   - rechargeId
-
 
31580
  """
-
 
31581
 
-
 
31582
  thrift_spec = (
-
 
31583
    None, # 0
-
 
31584
    (1, TType.I64, 'rechargeId', None, None, ), # 1
-
 
31585
  )
-
 
31586
 
-
 
31587
  def __init__(self, rechargeId=None,):
-
 
31588
    self.rechargeId = rechargeId
-
 
31589
 
-
 
31590
  def read(self, iprot):
-
 
31591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31593
      return
-
 
31594
    iprot.readStructBegin()
-
 
31595
    while True:
-
 
31596
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31597
      if ftype == TType.STOP:
-
 
31598
        break
-
 
31599
      if fid == 1:
-
 
31600
        if ftype == TType.I64:
-
 
31601
          self.rechargeId = iprot.readI64();
-
 
31602
        else:
-
 
31603
          iprot.skip(ftype)
-
 
31604
      else:
-
 
31605
        iprot.skip(ftype)
-
 
31606
      iprot.readFieldEnd()
-
 
31607
    iprot.readStructEnd()
-
 
31608
 
-
 
31609
  def write(self, oprot):
-
 
31610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31612
      return
-
 
31613
    oprot.writeStructBegin('retrieveHotspotRechargeInvoice_args')
-
 
31614
    if self.rechargeId is not None:
-
 
31615
      oprot.writeFieldBegin('rechargeId', TType.I64, 1)
-
 
31616
      oprot.writeI64(self.rechargeId)
-
 
31617
      oprot.writeFieldEnd()
-
 
31618
    oprot.writeFieldStop()
-
 
31619
    oprot.writeStructEnd()
-
 
31620
 
-
 
31621
  def validate(self):
-
 
31622
    return
-
 
31623
 
-
 
31624
 
-
 
31625
  def __repr__(self):
-
 
31626
    L = ['%s=%r' % (key, value)
-
 
31627
      for key, value in self.__dict__.iteritems()]
-
 
31628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31629
 
-
 
31630
  def __eq__(self, other):
-
 
31631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31632
 
-
 
31633
  def __ne__(self, other):
-
 
31634
    return not (self == other)
-
 
31635
 
-
 
31636
class retrieveHotspotRechargeInvoice_result:
-
 
31637
  """
-
 
31638
  Attributes:
-
 
31639
   - success
-
 
31640
  """
-
 
31641
 
-
 
31642
  thrift_spec = (
-
 
31643
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
31644
  )
-
 
31645
 
-
 
31646
  def __init__(self, success=None,):
-
 
31647
    self.success = success
-
 
31648
 
-
 
31649
  def read(self, iprot):
-
 
31650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31652
      return
-
 
31653
    iprot.readStructBegin()
-
 
31654
    while True:
-
 
31655
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31656
      if ftype == TType.STOP:
-
 
31657
        break
-
 
31658
      if fid == 0:
-
 
31659
        if ftype == TType.STRING:
-
 
31660
          self.success = iprot.readString();
-
 
31661
        else:
-
 
31662
          iprot.skip(ftype)
-
 
31663
      else:
-
 
31664
        iprot.skip(ftype)
-
 
31665
      iprot.readFieldEnd()
-
 
31666
    iprot.readStructEnd()
-
 
31667
 
-
 
31668
  def write(self, oprot):
-
 
31669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31671
      return
-
 
31672
    oprot.writeStructBegin('retrieveHotspotRechargeInvoice_result')
-
 
31673
    if self.success is not None:
-
 
31674
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
31675
      oprot.writeString(self.success)
-
 
31676
      oprot.writeFieldEnd()
-
 
31677
    oprot.writeFieldStop()
-
 
31678
    oprot.writeStructEnd()
-
 
31679
 
-
 
31680
  def validate(self):
31513
    return
31681
    return
31514
 
31682
 
31515
 
31683
 
31516
  def __repr__(self):
31684
  def __repr__(self):
31517
    L = ['%s=%r' % (key, value)
31685
    L = ['%s=%r' % (key, value)