Subversion Repositories SmartDukaan

Rev

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

Rev 7343 Rev 7363
Line 1589... Line 1589...
1589
    Parameters:
1589
    Parameters:
1590
     - companyId
1590
     - companyId
1591
    """
1591
    """
1592
    pass
1592
    pass
1593
 
1593
 
-
 
1594
  def getSaholicRechargeBalance(self, ):
-
 
1595
    pass
-
 
1596
 
1594
  def getSourceDetail(self, source):
1597
  def getSourceDetail(self, source):
1595
    """
1598
    """
1596
    Parameters:
1599
    Parameters:
1597
     - source
1600
     - source
1598
    """
1601
    """
Line 7344... Line 7347...
7344
    self._iprot.readMessageEnd()
7347
    self._iprot.readMessageEnd()
7345
    if result.success is not None:
7348
    if result.success is not None:
7346
      return result.success
7349
      return result.success
7347
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWalletBalanceForCompany failed: unknown result");
7350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWalletBalanceForCompany failed: unknown result");
7348
 
7351
 
-
 
7352
  def getSaholicRechargeBalance(self, ):
-
 
7353
    self.send_getSaholicRechargeBalance()
-
 
7354
    return self.recv_getSaholicRechargeBalance()
-
 
7355
 
-
 
7356
  def send_getSaholicRechargeBalance(self, ):
-
 
7357
    self._oprot.writeMessageBegin('getSaholicRechargeBalance', TMessageType.CALL, self._seqid)
-
 
7358
    args = getSaholicRechargeBalance_args()
-
 
7359
    args.write(self._oprot)
-
 
7360
    self._oprot.writeMessageEnd()
-
 
7361
    self._oprot.trans.flush()
-
 
7362
 
-
 
7363
  def recv_getSaholicRechargeBalance(self, ):
-
 
7364
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7365
    if mtype == TMessageType.EXCEPTION:
-
 
7366
      x = TApplicationException()
-
 
7367
      x.read(self._iprot)
-
 
7368
      self._iprot.readMessageEnd()
-
 
7369
      raise x
-
 
7370
    result = getSaholicRechargeBalance_result()
-
 
7371
    result.read(self._iprot)
-
 
7372
    self._iprot.readMessageEnd()
-
 
7373
    if result.success is not None:
-
 
7374
      return result.success
-
 
7375
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSaholicRechargeBalance failed: unknown result");
-
 
7376
 
7349
  def getSourceDetail(self, source):
7377
  def getSourceDetail(self, source):
7350
    """
7378
    """
7351
    Parameters:
7379
    Parameters:
7352
     - source
7380
     - source
7353
    """
7381
    """
Line 7817... Line 7845...
7817
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7845
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7818
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7846
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7819
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
7847
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
7820
    self._processMap["topupCompanyWallet"] = Processor.process_topupCompanyWallet
7848
    self._processMap["topupCompanyWallet"] = Processor.process_topupCompanyWallet
7821
    self._processMap["getWalletBalanceForCompany"] = Processor.process_getWalletBalanceForCompany
7849
    self._processMap["getWalletBalanceForCompany"] = Processor.process_getWalletBalanceForCompany
-
 
7850
    self._processMap["getSaholicRechargeBalance"] = Processor.process_getSaholicRechargeBalance
7822
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7851
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7823
    self._processMap["getAllCircles"] = Processor.process_getAllCircles
7852
    self._processMap["getAllCircles"] = Processor.process_getAllCircles
7824
    self._processMap["deleteFrcs"] = Processor.process_deleteFrcs
7853
    self._processMap["deleteFrcs"] = Processor.process_deleteFrcs
7825
    self._processMap["addAmazonOrder"] = Processor.process_addAmazonOrder
7854
    self._processMap["addAmazonOrder"] = Processor.process_addAmazonOrder
7826
    self._processMap["updateAmazonOrderStatus"] = Processor.process_updateAmazonOrderStatus
7855
    self._processMap["updateAmazonOrderStatus"] = Processor.process_updateAmazonOrderStatus
Line 9963... Line 9992...
9963
    oprot.writeMessageBegin("getWalletBalanceForCompany", TMessageType.REPLY, seqid)
9992
    oprot.writeMessageBegin("getWalletBalanceForCompany", TMessageType.REPLY, seqid)
9964
    result.write(oprot)
9993
    result.write(oprot)
9965
    oprot.writeMessageEnd()
9994
    oprot.writeMessageEnd()
9966
    oprot.trans.flush()
9995
    oprot.trans.flush()
9967
 
9996
 
-
 
9997
  def process_getSaholicRechargeBalance(self, seqid, iprot, oprot):
-
 
9998
    args = getSaholicRechargeBalance_args()
-
 
9999
    args.read(iprot)
-
 
10000
    iprot.readMessageEnd()
-
 
10001
    result = getSaholicRechargeBalance_result()
-
 
10002
    result.success = self._handler.getSaholicRechargeBalance()
-
 
10003
    oprot.writeMessageBegin("getSaholicRechargeBalance", TMessageType.REPLY, seqid)
-
 
10004
    result.write(oprot)
-
 
10005
    oprot.writeMessageEnd()
-
 
10006
    oprot.trans.flush()
-
 
10007
 
9968
  def process_getSourceDetail(self, seqid, iprot, oprot):
10008
  def process_getSourceDetail(self, seqid, iprot, oprot):
9969
    args = getSourceDetail_args()
10009
    args = getSourceDetail_args()
9970
    args.read(iprot)
10010
    args.read(iprot)
9971
    iprot.readMessageEnd()
10011
    iprot.readMessageEnd()
9972
    result = getSourceDetail_result()
10012
    result = getSourceDetail_result()
Line 33344... Line 33384...
33344
    if self.success is not None:
33384
    if self.success is not None:
33345
      oprot.writeFieldBegin('success', TType.I64, 0)
33385
      oprot.writeFieldBegin('success', TType.I64, 0)
33346
      oprot.writeI64(self.success)
33386
      oprot.writeI64(self.success)
33347
      oprot.writeFieldEnd()
33387
      oprot.writeFieldEnd()
33348
    oprot.writeFieldStop()
33388
    oprot.writeFieldStop()
-
 
33389
    oprot.writeStructEnd()
-
 
33390
 
-
 
33391
  def validate(self):
-
 
33392
    return
-
 
33393
 
-
 
33394
 
-
 
33395
  def __repr__(self):
-
 
33396
    L = ['%s=%r' % (key, value)
-
 
33397
      for key, value in self.__dict__.iteritems()]
-
 
33398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33399
 
-
 
33400
  def __eq__(self, other):
-
 
33401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33402
 
-
 
33403
  def __ne__(self, other):
-
 
33404
    return not (self == other)
-
 
33405
 
-
 
33406
class getSaholicRechargeBalance_args:
-
 
33407
 
-
 
33408
  thrift_spec = (
-
 
33409
  )
-
 
33410
 
-
 
33411
  def read(self, iprot):
-
 
33412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33414
      return
-
 
33415
    iprot.readStructBegin()
-
 
33416
    while True:
-
 
33417
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33418
      if ftype == TType.STOP:
-
 
33419
        break
-
 
33420
      else:
-
 
33421
        iprot.skip(ftype)
-
 
33422
      iprot.readFieldEnd()
-
 
33423
    iprot.readStructEnd()
-
 
33424
 
-
 
33425
  def write(self, oprot):
-
 
33426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33428
      return
-
 
33429
    oprot.writeStructBegin('getSaholicRechargeBalance_args')
-
 
33430
    oprot.writeFieldStop()
-
 
33431
    oprot.writeStructEnd()
-
 
33432
 
-
 
33433
  def validate(self):
-
 
33434
    return
-
 
33435
 
-
 
33436
 
-
 
33437
  def __repr__(self):
-
 
33438
    L = ['%s=%r' % (key, value)
-
 
33439
      for key, value in self.__dict__.iteritems()]
-
 
33440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33441
 
-
 
33442
  def __eq__(self, other):
-
 
33443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33444
 
-
 
33445
  def __ne__(self, other):
-
 
33446
    return not (self == other)
-
 
33447
 
-
 
33448
class getSaholicRechargeBalance_result:
-
 
33449
  """
-
 
33450
  Attributes:
-
 
33451
   - success
-
 
33452
  """
-
 
33453
 
-
 
33454
  thrift_spec = (
-
 
33455
    (0, TType.I64, 'success', None, None, ), # 0
-
 
33456
  )
-
 
33457
 
-
 
33458
  def __init__(self, success=None,):
-
 
33459
    self.success = success
-
 
33460
 
-
 
33461
  def read(self, iprot):
-
 
33462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33464
      return
-
 
33465
    iprot.readStructBegin()
-
 
33466
    while True:
-
 
33467
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33468
      if ftype == TType.STOP:
-
 
33469
        break
-
 
33470
      if fid == 0:
-
 
33471
        if ftype == TType.I64:
-
 
33472
          self.success = iprot.readI64();
-
 
33473
        else:
-
 
33474
          iprot.skip(ftype)
-
 
33475
      else:
-
 
33476
        iprot.skip(ftype)
-
 
33477
      iprot.readFieldEnd()
-
 
33478
    iprot.readStructEnd()
-
 
33479
 
-
 
33480
  def write(self, oprot):
-
 
33481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33483
      return
-
 
33484
    oprot.writeStructBegin('getSaholicRechargeBalance_result')
-
 
33485
    if self.success is not None:
-
 
33486
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
33487
      oprot.writeI64(self.success)
-
 
33488
      oprot.writeFieldEnd()
-
 
33489
    oprot.writeFieldStop()
33349
    oprot.writeStructEnd()
33490
    oprot.writeStructEnd()
33350
 
33491
 
33351
  def validate(self):
33492
  def validate(self):
33352
    return
33493
    return
33353
 
33494