Subversion Repositories SmartDukaan

Rev

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

Rev 7267 Rev 7285
Line 1573... Line 1573...
1573
     - storeId
1573
     - storeId
1574
     - password
1574
     - password
1575
    """
1575
    """
1576
    pass
1576
    pass
1577
 
1577
 
1578
  def getSourceDetail(self, source):
1578
  def topupCompanyWallet(self, companyId, amount):
1579
    """
1579
    """
1580
    Parameters:
1580
    Parameters:
-
 
1581
     - companyId
1581
     - source
1582
     - amount
1582
    """
1583
    """
1583
    pass
1584
    pass
1584
 
1585
 
1585
  def getAllCircles(self, ):
1586
  def getWalletBalanceForCompany(self, companyId):
-
 
1587
    """
-
 
1588
    Parameters:
-
 
1589
     - companyId
-
 
1590
    """
1586
    pass
1591
    pass
1587
 
1592
 
1588
  def deleteFrcs(self, frcIdsToDelete):
1593
  def getSourceDetail(self, source):
1589
    """
1594
    """
1590
    Parameters:
1595
    Parameters:
1591
     - frcIdsToDelete
1596
     - source
1592
    """
1597
    """
1593
    pass
1598
    pass
1594
 
1599
 
1595
 
1600
 
1596
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1601
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
Line 7210... Line 7215...
7210
    self._iprot.readMessageEnd()
7215
    self._iprot.readMessageEnd()
7211
    if result.success is not None:
7216
    if result.success is not None:
7212
      return result.success
7217
      return result.success
7213
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
7218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
7214
 
7219
 
7215
  def getSourceDetail(self, source):
7220
  def topupCompanyWallet(self, companyId, amount):
7216
    """
7221
    """
7217
    Parameters:
7222
    Parameters:
-
 
7223
     - companyId
7218
     - source
7224
     - amount
7219
    """
7225
    """
7220
    self.send_getSourceDetail(source)
7226
    self.send_topupCompanyWallet(companyId, amount)
7221
    return self.recv_getSourceDetail()
7227
    return self.recv_topupCompanyWallet()
7222
 
7228
 
7223
  def send_getSourceDetail(self, source):
7229
  def send_topupCompanyWallet(self, companyId, amount):
7224
    self._oprot.writeMessageBegin('getSourceDetail', TMessageType.CALL, self._seqid)
7230
    self._oprot.writeMessageBegin('topupCompanyWallet', TMessageType.CALL, self._seqid)
7225
    args = getSourceDetail_args()
7231
    args = topupCompanyWallet_args()
-
 
7232
    args.companyId = companyId
7226
    args.source = source
7233
    args.amount = amount
7227
    args.write(self._oprot)
7234
    args.write(self._oprot)
7228
    self._oprot.writeMessageEnd()
7235
    self._oprot.writeMessageEnd()
7229
    self._oprot.trans.flush()
7236
    self._oprot.trans.flush()
7230
 
7237
 
7231
  def recv_getSourceDetail(self, ):
7238
  def recv_topupCompanyWallet(self, ):
7232
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7233
    if mtype == TMessageType.EXCEPTION:
7240
    if mtype == TMessageType.EXCEPTION:
7234
      x = TApplicationException()
7241
      x = TApplicationException()
7235
      x.read(self._iprot)
7242
      x.read(self._iprot)
7236
      self._iprot.readMessageEnd()
7243
      self._iprot.readMessageEnd()
7237
      raise x
7244
      raise x
7238
    result = getSourceDetail_result()
7245
    result = topupCompanyWallet_result()
7239
    result.read(self._iprot)
7246
    result.read(self._iprot)
7240
    self._iprot.readMessageEnd()
7247
    self._iprot.readMessageEnd()
7241
    if result.success is not None:
7248
    if result.success is not None:
7242
      return result.success
7249
      return result.success
7243
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSourceDetail failed: unknown result");
7250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "topupCompanyWallet failed: unknown result");
7244
 
7251
 
7245
  def getAllCircles(self, ):
7252
  def getWalletBalanceForCompany(self, companyId):
-
 
7253
    """
-
 
7254
    Parameters:
-
 
7255
     - companyId
-
 
7256
    """
7246
    self.send_getAllCircles()
7257
    self.send_getWalletBalanceForCompany(companyId)
7247
    return self.recv_getAllCircles()
7258
    return self.recv_getWalletBalanceForCompany()
7248
 
7259
 
7249
  def send_getAllCircles(self, ):
7260
  def send_getWalletBalanceForCompany(self, companyId):
7250
    self._oprot.writeMessageBegin('getAllCircles', TMessageType.CALL, self._seqid)
7261
    self._oprot.writeMessageBegin('getWalletBalanceForCompany', TMessageType.CALL, self._seqid)
7251
    args = getAllCircles_args()
7262
    args = getWalletBalanceForCompany_args()
-
 
7263
    args.companyId = companyId
7252
    args.write(self._oprot)
7264
    args.write(self._oprot)
7253
    self._oprot.writeMessageEnd()
7265
    self._oprot.writeMessageEnd()
7254
    self._oprot.trans.flush()
7266
    self._oprot.trans.flush()
7255
 
7267
 
7256
  def recv_getAllCircles(self, ):
7268
  def recv_getWalletBalanceForCompany(self, ):
7257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7258
    if mtype == TMessageType.EXCEPTION:
7270
    if mtype == TMessageType.EXCEPTION:
7259
      x = TApplicationException()
7271
      x = TApplicationException()
7260
      x.read(self._iprot)
7272
      x.read(self._iprot)
7261
      self._iprot.readMessageEnd()
7273
      self._iprot.readMessageEnd()
7262
      raise x
7274
      raise x
7263
    result = getAllCircles_result()
7275
    result = getWalletBalanceForCompany_result()
7264
    result.read(self._iprot)
7276
    result.read(self._iprot)
7265
    self._iprot.readMessageEnd()
7277
    self._iprot.readMessageEnd()
7266
    if result.success is not None:
7278
    if result.success is not None:
7267
      return result.success
7279
      return result.success
7268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCircles failed: unknown result");
7280
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWalletBalanceForCompany failed: unknown result");
7269
 
7281
 
7270
  def deleteFrcs(self, frcIdsToDelete):
7282
  def getSourceDetail(self, source):
7271
    """
7283
    """
7272
    Parameters:
7284
    Parameters:
7273
     - frcIdsToDelete
7285
     - source
7274
    """
7286
    """
7275
    self.send_deleteFrcs(frcIdsToDelete)
7287
    self.send_getSourceDetail(source)
7276
    return self.recv_deleteFrcs()
7288
    return self.recv_getSourceDetail()
7277
 
7289
 
7278
  def send_deleteFrcs(self, frcIdsToDelete):
7290
  def send_getSourceDetail(self, source):
7279
    self._oprot.writeMessageBegin('deleteFrcs', TMessageType.CALL, self._seqid)
7291
    self._oprot.writeMessageBegin('getSourceDetail', TMessageType.CALL, self._seqid)
7280
    args = deleteFrcs_args()
7292
    args = getSourceDetail_args()
7281
    args.frcIdsToDelete = frcIdsToDelete
7293
    args.source = source
7282
    args.write(self._oprot)
7294
    args.write(self._oprot)
7283
    self._oprot.writeMessageEnd()
7295
    self._oprot.writeMessageEnd()
7284
    self._oprot.trans.flush()
7296
    self._oprot.trans.flush()
7285
 
7297
 
7286
  def recv_deleteFrcs(self, ):
7298
  def recv_getSourceDetail(self, ):
7287
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7288
    if mtype == TMessageType.EXCEPTION:
7300
    if mtype == TMessageType.EXCEPTION:
7289
      x = TApplicationException()
7301
      x = TApplicationException()
7290
      x.read(self._iprot)
7302
      x.read(self._iprot)
7291
      self._iprot.readMessageEnd()
7303
      self._iprot.readMessageEnd()
7292
      raise x
7304
      raise x
7293
    result = deleteFrcs_result()
7305
    result = getSourceDetail_result()
7294
    result.read(self._iprot)
7306
    result.read(self._iprot)
7295
    self._iprot.readMessageEnd()
7307
    self._iprot.readMessageEnd()
7296
    if result.success is not None:
7308
    if result.success is not None:
7297
      return result.success
7309
      return result.success
7298
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteFrcs failed: unknown result");
7310
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSourceDetail failed: unknown result");
7299
 
7311
 
7300
 
7312
 
7301
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7313
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7302
  def __init__(self, handler):
7314
  def __init__(self, handler):
7303
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7315
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
Line 7463... Line 7475...
7463
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
7475
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
7464
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7476
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7465
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7477
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7466
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7478
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7467
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
7479
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
-
 
7480
    self._processMap["topupCompanyWallet"] = Processor.process_topupCompanyWallet
-
 
7481
    self._processMap["getWalletBalanceForCompany"] = Processor.process_getWalletBalanceForCompany
7468
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7482
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7469
    self._processMap["getAllCircles"] = Processor.process_getAllCircles
-
 
7470
    self._processMap["deleteFrcs"] = Processor.process_deleteFrcs
-
 
7471
 
7483
 
7472
  def process(self, iprot, oprot):
7484
  def process(self, iprot, oprot):
7473
    (name, type, seqid) = iprot.readMessageBegin()
7485
    (name, type, seqid) = iprot.readMessageBegin()
7474
    if name not in self._processMap:
7486
    if name not in self._processMap:
7475
      iprot.skip(TType.STRUCT)
7487
      iprot.skip(TType.STRUCT)
Line 9580... Line 9592...
9580
    oprot.writeMessageBegin("updateHotspotStorePassword", TMessageType.REPLY, seqid)
9592
    oprot.writeMessageBegin("updateHotspotStorePassword", TMessageType.REPLY, seqid)
9581
    result.write(oprot)
9593
    result.write(oprot)
9582
    oprot.writeMessageEnd()
9594
    oprot.writeMessageEnd()
9583
    oprot.trans.flush()
9595
    oprot.trans.flush()
9584
 
9596
 
9585
  def process_getSourceDetail(self, seqid, iprot, oprot):
9597
  def process_topupCompanyWallet(self, seqid, iprot, oprot):
9586
    args = getSourceDetail_args()
9598
    args = topupCompanyWallet_args()
9587
    args.read(iprot)
9599
    args.read(iprot)
9588
    iprot.readMessageEnd()
9600
    iprot.readMessageEnd()
9589
    result = getSourceDetail_result()
9601
    result = topupCompanyWallet_result()
9590
    result.success = self._handler.getSourceDetail(args.source)
9602
    result.success = self._handler.topupCompanyWallet(args.companyId, args.amount)
9591
    oprot.writeMessageBegin("getSourceDetail", TMessageType.REPLY, seqid)
9603
    oprot.writeMessageBegin("topupCompanyWallet", TMessageType.REPLY, seqid)
9592
    result.write(oprot)
9604
    result.write(oprot)
9593
    oprot.writeMessageEnd()
9605
    oprot.writeMessageEnd()
9594
    oprot.trans.flush()
9606
    oprot.trans.flush()
9595
 
9607
 
9596
  def process_getAllCircles(self, seqid, iprot, oprot):
9608
  def process_getWalletBalanceForCompany(self, seqid, iprot, oprot):
9597
    args = getAllCircles_args()
9609
    args = getWalletBalanceForCompany_args()
9598
    args.read(iprot)
9610
    args.read(iprot)
9599
    iprot.readMessageEnd()
9611
    iprot.readMessageEnd()
9600
    result = getAllCircles_result()
9612
    result = getWalletBalanceForCompany_result()
9601
    result.success = self._handler.getAllCircles()
9613
    result.success = self._handler.getWalletBalanceForCompany(args.companyId)
9602
    oprot.writeMessageBegin("getAllCircles", TMessageType.REPLY, seqid)
9614
    oprot.writeMessageBegin("getWalletBalanceForCompany", TMessageType.REPLY, seqid)
9603
    result.write(oprot)
9615
    result.write(oprot)
9604
    oprot.writeMessageEnd()
9616
    oprot.writeMessageEnd()
9605
    oprot.trans.flush()
9617
    oprot.trans.flush()
9606
 
9618
 
9607
  def process_deleteFrcs(self, seqid, iprot, oprot):
9619
  def process_getSourceDetail(self, seqid, iprot, oprot):
9608
    args = deleteFrcs_args()
9620
    args = getSourceDetail_args()
9609
    args.read(iprot)
9621
    args.read(iprot)
9610
    iprot.readMessageEnd()
9622
    iprot.readMessageEnd()
9611
    result = deleteFrcs_result()
9623
    result = getSourceDetail_result()
9612
    result.success = self._handler.deleteFrcs(args.frcIdsToDelete)
9624
    result.success = self._handler.getSourceDetail(args.source)
9613
    oprot.writeMessageBegin("deleteFrcs", TMessageType.REPLY, seqid)
9625
    oprot.writeMessageBegin("getSourceDetail", TMessageType.REPLY, seqid)
9614
    result.write(oprot)
9626
    result.write(oprot)
9615
    oprot.writeMessageEnd()
9627
    oprot.writeMessageEnd()
9616
    oprot.trans.flush()
9628
    oprot.trans.flush()
9617
 
9629
 
9618
 
9630
 
Line 32639... Line 32651...
32639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32640
 
32652
 
32641
  def __ne__(self, other):
32653
  def __ne__(self, other):
32642
    return not (self == other)
32654
    return not (self == other)
32643
 
32655
 
32644
class getSourceDetail_args:
32656
class topupCompanyWallet_args:
32645
  """
32657
  """
32646
  Attributes:
32658
  Attributes:
-
 
32659
   - companyId
32647
   - source
32660
   - amount
32648
  """
32661
  """
32649
 
32662
 
32650
  thrift_spec = (
32663
  thrift_spec = (
32651
    None, # 0
32664
    None, # 0
-
 
32665
    (1, TType.I64, 'companyId', None, None, ), # 1
32652
    (1, TType.I64, 'source', None, None, ), # 1
32666
    (2, TType.I64, 'amount', None, None, ), # 2
32653
  )
32667
  )
32654
 
32668
 
32655
  def __init__(self, source=None,):
32669
  def __init__(self, companyId=None, amount=None,):
-
 
32670
    self.companyId = companyId
32656
    self.source = source
32671
    self.amount = amount
32657
 
32672
 
32658
  def read(self, iprot):
32673
  def read(self, iprot):
32659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32661
      return
32676
      return
Line 32664... Line 32679...
32664
      (fname, ftype, fid) = iprot.readFieldBegin()
32679
      (fname, ftype, fid) = iprot.readFieldBegin()
32665
      if ftype == TType.STOP:
32680
      if ftype == TType.STOP:
32666
        break
32681
        break
32667
      if fid == 1:
32682
      if fid == 1:
32668
        if ftype == TType.I64:
32683
        if ftype == TType.I64:
-
 
32684
          self.companyId = iprot.readI64();
-
 
32685
        else:
-
 
32686
          iprot.skip(ftype)
-
 
32687
      elif fid == 2:
-
 
32688
        if ftype == TType.I64:
32669
          self.source = iprot.readI64();
32689
          self.amount = iprot.readI64();
32670
        else:
32690
        else:
32671
          iprot.skip(ftype)
32691
          iprot.skip(ftype)
32672
      else:
32692
      else:
32673
        iprot.skip(ftype)
32693
        iprot.skip(ftype)
32674
      iprot.readFieldEnd()
32694
      iprot.readFieldEnd()
Line 32676... Line 32696...
32676
 
32696
 
32677
  def write(self, oprot):
32697
  def write(self, oprot):
32678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32680
      return
32700
      return
32681
    oprot.writeStructBegin('getSourceDetail_args')
32701
    oprot.writeStructBegin('topupCompanyWallet_args')
-
 
32702
    if self.companyId is not None:
-
 
32703
      oprot.writeFieldBegin('companyId', TType.I64, 1)
-
 
32704
      oprot.writeI64(self.companyId)
-
 
32705
      oprot.writeFieldEnd()
32682
    if self.source is not None:
32706
    if self.amount is not None:
32683
      oprot.writeFieldBegin('source', TType.I64, 1)
32707
      oprot.writeFieldBegin('amount', TType.I64, 2)
32684
      oprot.writeI64(self.source)
32708
      oprot.writeI64(self.amount)
32685
      oprot.writeFieldEnd()
32709
      oprot.writeFieldEnd()
32686
    oprot.writeFieldStop()
32710
    oprot.writeFieldStop()
32687
    oprot.writeStructEnd()
32711
    oprot.writeStructEnd()
32688
 
32712
 
32689
  def validate(self):
32713
  def validate(self):
Line 32699... Line 32723...
32699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32700
 
32724
 
32701
  def __ne__(self, other):
32725
  def __ne__(self, other):
32702
    return not (self == other)
32726
    return not (self == other)
32703
 
32727
 
32704
class getSourceDetail_result:
32728
class topupCompanyWallet_result:
32705
  """
32729
  """
32706
  Attributes:
32730
  Attributes:
32707
   - success
32731
   - success
32708
  """
32732
  """
32709
 
32733
 
32710
  thrift_spec = (
32734
  thrift_spec = (
32711
    (0, TType.STRUCT, 'success', (SourceDetail, SourceDetail.thrift_spec), None, ), # 0
32735
    (0, TType.I64, 'success', None, None, ), # 0
32712
  )
32736
  )
32713
 
32737
 
32714
  def __init__(self, success=None,):
32738
  def __init__(self, success=None,):
32715
    self.success = success
32739
    self.success = success
32716
 
32740
 
Line 32722... Line 32746...
32722
    while True:
32746
    while True:
32723
      (fname, ftype, fid) = iprot.readFieldBegin()
32747
      (fname, ftype, fid) = iprot.readFieldBegin()
32724
      if ftype == TType.STOP:
32748
      if ftype == TType.STOP:
32725
        break
32749
        break
32726
      if fid == 0:
32750
      if fid == 0:
32727
        if ftype == TType.STRUCT:
32751
        if ftype == TType.I64:
32728
          self.success = SourceDetail()
32752
          self.success = iprot.readI64();
32729
          self.success.read(iprot)
-
 
32730
        else:
32753
        else:
32731
          iprot.skip(ftype)
32754
          iprot.skip(ftype)
32732
      else:
32755
      else:
32733
        iprot.skip(ftype)
32756
        iprot.skip(ftype)
32734
      iprot.readFieldEnd()
32757
      iprot.readFieldEnd()
Line 32736... Line 32759...
32736
 
32759
 
32737
  def write(self, oprot):
32760
  def write(self, oprot):
32738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32740
      return
32763
      return
32741
    oprot.writeStructBegin('getSourceDetail_result')
32764
    oprot.writeStructBegin('topupCompanyWallet_result')
32742
    if self.success is not None:
32765
    if self.success is not None:
32743
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
32766
      oprot.writeFieldBegin('success', TType.I64, 0)
32744
      self.success.write(oprot)
32767
      oprot.writeI64(self.success)
32745
      oprot.writeFieldEnd()
32768
      oprot.writeFieldEnd()
32746
    oprot.writeFieldStop()
32769
    oprot.writeFieldStop()
32747
    oprot.writeStructEnd()
32770
    oprot.writeStructEnd()
32748
 
32771
 
32749
  def validate(self):
32772
  def validate(self):
Line 32759... Line 32782...
32759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32760
 
32783
 
32761
  def __ne__(self, other):
32784
  def __ne__(self, other):
32762
    return not (self == other)
32785
    return not (self == other)
32763
 
32786
 
32764
class getAllCircles_args:
32787
class getWalletBalanceForCompany_args:
-
 
32788
  """
-
 
32789
  Attributes:
-
 
32790
   - companyId
-
 
32791
  """
32765
 
32792
 
32766
  thrift_spec = (
32793
  thrift_spec = (
-
 
32794
    None, # 0
-
 
32795
    (1, TType.I64, 'companyId', None, None, ), # 1
32767
  )
32796
  )
32768
 
32797
 
-
 
32798
  def __init__(self, companyId=None,):
-
 
32799
    self.companyId = companyId
-
 
32800
 
32769
  def read(self, iprot):
32801
  def read(self, iprot):
32770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32772
      return
32804
      return
32773
    iprot.readStructBegin()
32805
    iprot.readStructBegin()
32774
    while True:
32806
    while True:
32775
      (fname, ftype, fid) = iprot.readFieldBegin()
32807
      (fname, ftype, fid) = iprot.readFieldBegin()
32776
      if ftype == TType.STOP:
32808
      if ftype == TType.STOP:
32777
        break
32809
        break
-
 
32810
      if fid == 1:
-
 
32811
        if ftype == TType.I64:
-
 
32812
          self.companyId = iprot.readI64();
-
 
32813
        else:
-
 
32814
          iprot.skip(ftype)
32778
      else:
32815
      else:
32779
        iprot.skip(ftype)
32816
        iprot.skip(ftype)
32780
      iprot.readFieldEnd()
32817
      iprot.readFieldEnd()
32781
    iprot.readStructEnd()
32818
    iprot.readStructEnd()
32782
 
32819
 
32783
  def write(self, oprot):
32820
  def write(self, oprot):
32784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32786
      return
32823
      return
32787
    oprot.writeStructBegin('getAllCircles_args')
32824
    oprot.writeStructBegin('getWalletBalanceForCompany_args')
-
 
32825
    if self.companyId is not None:
-
 
32826
      oprot.writeFieldBegin('companyId', TType.I64, 1)
-
 
32827
      oprot.writeI64(self.companyId)
-
 
32828
      oprot.writeFieldEnd()
32788
    oprot.writeFieldStop()
32829
    oprot.writeFieldStop()
32789
    oprot.writeStructEnd()
32830
    oprot.writeStructEnd()
32790
 
32831
 
32791
  def validate(self):
32832
  def validate(self):
32792
    return
32833
    return
Line 32801... Line 32842...
32801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32802
 
32843
 
32803
  def __ne__(self, other):
32844
  def __ne__(self, other):
32804
    return not (self == other)
32845
    return not (self == other)
32805
 
32846
 
32806
class getAllCircles_result:
32847
class getWalletBalanceForCompany_result:
32807
  """
32848
  """
32808
  Attributes:
32849
  Attributes:
32809
   - success
32850
   - success
32810
  """
32851
  """
32811
 
32852
 
32812
  thrift_spec = (
32853
  thrift_spec = (
32813
    (0, TType.LIST, 'success', (TType.STRUCT,(TelecomCircle, TelecomCircle.thrift_spec)), None, ), # 0
32854
    (0, TType.I64, 'success', None, None, ), # 0
32814
  )
32855
  )
32815
 
32856
 
32816
  def __init__(self, success=None,):
32857
  def __init__(self, success=None,):
32817
    self.success = success
32858
    self.success = success
32818
 
32859
 
Line 32824... Line 32865...
32824
    while True:
32865
    while True:
32825
      (fname, ftype, fid) = iprot.readFieldBegin()
32866
      (fname, ftype, fid) = iprot.readFieldBegin()
32826
      if ftype == TType.STOP:
32867
      if ftype == TType.STOP:
32827
        break
32868
        break
32828
      if fid == 0:
32869
      if fid == 0:
32829
        if ftype == TType.LIST:
32870
        if ftype == TType.I64:
32830
          self.success = []
-
 
32831
          (_etype768, _size765) = iprot.readListBegin()
-
 
32832
          for _i769 in xrange(_size765):
-
 
32833
            _elem770 = TelecomCircle()
-
 
32834
            _elem770.read(iprot)
-
 
32835
            self.success.append(_elem770)
32871
          self.success = iprot.readI64();
32836
          iprot.readListEnd()
-
 
32837
        else:
32872
        else:
32838
          iprot.skip(ftype)
32873
          iprot.skip(ftype)
32839
      else:
32874
      else:
32840
        iprot.skip(ftype)
32875
        iprot.skip(ftype)
32841
      iprot.readFieldEnd()
32876
      iprot.readFieldEnd()
Line 32843... Line 32878...
32843
 
32878
 
32844
  def write(self, oprot):
32879
  def write(self, oprot):
32845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32847
      return
32882
      return
32848
    oprot.writeStructBegin('getAllCircles_result')
32883
    oprot.writeStructBegin('getWalletBalanceForCompany_result')
32849
    if self.success is not None:
32884
    if self.success is not None:
32850
      oprot.writeFieldBegin('success', TType.LIST, 0)
32885
      oprot.writeFieldBegin('success', TType.I64, 0)
32851
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
32852
      for iter771 in self.success:
32886
      oprot.writeI64(self.success)
32853
        iter771.write(oprot)
-
 
32854
      oprot.writeListEnd()
-
 
32855
      oprot.writeFieldEnd()
32887
      oprot.writeFieldEnd()
32856
    oprot.writeFieldStop()
32888
    oprot.writeFieldStop()
32857
    oprot.writeStructEnd()
32889
    oprot.writeStructEnd()
32858
 
32890
 
32859
  def validate(self):
32891
  def validate(self):
Line 32869... Line 32901...
32869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32870
 
32902
 
32871
  def __ne__(self, other):
32903
  def __ne__(self, other):
32872
    return not (self == other)
32904
    return not (self == other)
32873
 
32905
 
32874
class deleteFrcs_args:
32906
class getSourceDetail_args:
32875
  """
32907
  """
32876
  Attributes:
32908
  Attributes:
32877
   - frcIdsToDelete
32909
   - source
32878
  """
32910
  """
32879
 
32911
 
32880
  thrift_spec = (
32912
  thrift_spec = (
32881
    None, # 0
32913
    None, # 0
32882
    (1, TType.LIST, 'frcIdsToDelete', (TType.I64,None), None, ), # 1
32914
    (1, TType.I64, 'source', None, None, ), # 1
32883
  )
32915
  )
32884
 
32916
 
32885
  def __init__(self, frcIdsToDelete=None,):
32917
  def __init__(self, source=None,):
32886
    self.frcIdsToDelete = frcIdsToDelete
32918
    self.source = source
32887
 
32919
 
32888
  def read(self, iprot):
32920
  def read(self, iprot):
32889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32891
      return
32923
      return
Line 32893... Line 32925...
32893
    while True:
32925
    while True:
32894
      (fname, ftype, fid) = iprot.readFieldBegin()
32926
      (fname, ftype, fid) = iprot.readFieldBegin()
32895
      if ftype == TType.STOP:
32927
      if ftype == TType.STOP:
32896
        break
32928
        break
32897
      if fid == 1:
32929
      if fid == 1:
32898
        if ftype == TType.LIST:
32930
        if ftype == TType.I64:
32899
          self.frcIdsToDelete = []
-
 
32900
          (_etype775, _size772) = iprot.readListBegin()
-
 
32901
          for _i776 in xrange(_size772):
-
 
32902
            _elem777 = iprot.readI64();
32931
          self.source = iprot.readI64();
32903
            self.frcIdsToDelete.append(_elem777)
-
 
32904
          iprot.readListEnd()
-
 
32905
        else:
32932
        else:
32906
          iprot.skip(ftype)
32933
          iprot.skip(ftype)
32907
      else:
32934
      else:
32908
        iprot.skip(ftype)
32935
        iprot.skip(ftype)
32909
      iprot.readFieldEnd()
32936
      iprot.readFieldEnd()
Line 32911... Line 32938...
32911
 
32938
 
32912
  def write(self, oprot):
32939
  def write(self, oprot):
32913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32915
      return
32942
      return
32916
    oprot.writeStructBegin('deleteFrcs_args')
32943
    oprot.writeStructBegin('getSourceDetail_args')
32917
    if self.frcIdsToDelete is not None:
32944
    if self.source is not None:
32918
      oprot.writeFieldBegin('frcIdsToDelete', TType.LIST, 1)
32945
      oprot.writeFieldBegin('source', TType.I64, 1)
32919
      oprot.writeListBegin(TType.I64, len(self.frcIdsToDelete))
-
 
32920
      for iter778 in self.frcIdsToDelete:
-
 
32921
        oprot.writeI64(iter778)
32946
      oprot.writeI64(self.source)
32922
      oprot.writeListEnd()
-
 
32923
      oprot.writeFieldEnd()
32947
      oprot.writeFieldEnd()
32924
    oprot.writeFieldStop()
32948
    oprot.writeFieldStop()
32925
    oprot.writeStructEnd()
32949
    oprot.writeStructEnd()
32926
 
32950
 
32927
  def validate(self):
32951
  def validate(self):
Line 32937... Line 32961...
32937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32938
 
32962
 
32939
  def __ne__(self, other):
32963
  def __ne__(self, other):
32940
    return not (self == other)
32964
    return not (self == other)
32941
 
32965
 
32942
class deleteFrcs_result:
32966
class getSourceDetail_result:
32943
  """
32967
  """
32944
  Attributes:
32968
  Attributes:
32945
   - success
32969
   - success
32946
  """
32970
  """
32947
 
32971
 
32948
  thrift_spec = (
32972
  thrift_spec = (
32949
    (0, TType.BOOL, 'success', None, None, ), # 0
32973
    (0, TType.STRUCT, 'success', (SourceDetail, SourceDetail.thrift_spec), None, ), # 0
32950
  )
32974
  )
32951
 
32975
 
32952
  def __init__(self, success=None,):
32976
  def __init__(self, success=None,):
32953
    self.success = success
32977
    self.success = success
32954
 
32978
 
Line 32960... Line 32984...
32960
    while True:
32984
    while True:
32961
      (fname, ftype, fid) = iprot.readFieldBegin()
32985
      (fname, ftype, fid) = iprot.readFieldBegin()
32962
      if ftype == TType.STOP:
32986
      if ftype == TType.STOP:
32963
        break
32987
        break
32964
      if fid == 0:
32988
      if fid == 0:
32965
        if ftype == TType.BOOL:
32989
        if ftype == TType.STRUCT:
32966
          self.success = iprot.readBool();
32990
          self.success = SourceDetail()
-
 
32991
          self.success.read(iprot)
32967
        else:
32992
        else:
32968
          iprot.skip(ftype)
32993
          iprot.skip(ftype)
32969
      else:
32994
      else:
32970
        iprot.skip(ftype)
32995
        iprot.skip(ftype)
32971
      iprot.readFieldEnd()
32996
      iprot.readFieldEnd()
Line 32973... Line 32998...
32973
 
32998
 
32974
  def write(self, oprot):
32999
  def write(self, oprot):
32975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
33000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
33001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32977
      return
33002
      return
32978
    oprot.writeStructBegin('deleteFrcs_result')
33003
    oprot.writeStructBegin('getSourceDetail_result')
32979
    if self.success is not None:
33004
    if self.success is not None:
32980
      oprot.writeFieldBegin('success', TType.BOOL, 0)
33005
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
32981
      oprot.writeBool(self.success)
33006
      self.success.write(oprot)
32982
      oprot.writeFieldEnd()
33007
      oprot.writeFieldEnd()
32983
    oprot.writeFieldStop()
33008
    oprot.writeFieldStop()
32984
    oprot.writeStructEnd()
33009
    oprot.writeStructEnd()
32985
 
33010
 
32986
  def validate(self):
33011
  def validate(self):