Subversion Repositories SmartDukaan

Rev

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

Rev 7109 Rev 7151
Line 1499... Line 1499...
1499
    Parameters:
1499
    Parameters:
1500
     - storeId
1500
     - storeId
1501
    """
1501
    """
1502
    pass
1502
    pass
1503
 
1503
 
-
 
1504
  def getRechargeTrans(self, storeId, startDate, endDate, status):
-
 
1505
    """
-
 
1506
    Parameters:
-
 
1507
     - storeId
-
 
1508
     - startDate
-
 
1509
     - endDate
-
 
1510
     - status
-
 
1511
    """
-
 
1512
    pass
-
 
1513
 
1504
  def getRechargeTransaction(self, rechargeId):
1514
  def getRechargeTransaction(self, rechargeId):
1505
    """
1515
    """
1506
    Parameters:
1516
    Parameters:
1507
     - rechargeId
1517
     - rechargeId
1508
    """
1518
    """
Line 6865... Line 6875...
6865
    self._iprot.readMessageEnd()
6875
    self._iprot.readMessageEnd()
6866
    if result.success is not None:
6876
    if result.success is not None:
6867
      return result.success
6877
      return result.success
6868
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRechargeTransactions failed: unknown result");
6878
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRechargeTransactions failed: unknown result");
6869
 
6879
 
-
 
6880
  def getRechargeTrans(self, storeId, startDate, endDate, status):
-
 
6881
    """
-
 
6882
    Parameters:
-
 
6883
     - storeId
-
 
6884
     - startDate
-
 
6885
     - endDate
-
 
6886
     - status
-
 
6887
    """
-
 
6888
    self.send_getRechargeTrans(storeId, startDate, endDate, status)
-
 
6889
    return self.recv_getRechargeTrans()
-
 
6890
 
-
 
6891
  def send_getRechargeTrans(self, storeId, startDate, endDate, status):
-
 
6892
    self._oprot.writeMessageBegin('getRechargeTrans', TMessageType.CALL, self._seqid)
-
 
6893
    args = getRechargeTrans_args()
-
 
6894
    args.storeId = storeId
-
 
6895
    args.startDate = startDate
-
 
6896
    args.endDate = endDate
-
 
6897
    args.status = status
-
 
6898
    args.write(self._oprot)
-
 
6899
    self._oprot.writeMessageEnd()
-
 
6900
    self._oprot.trans.flush()
-
 
6901
 
-
 
6902
  def recv_getRechargeTrans(self, ):
-
 
6903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6904
    if mtype == TMessageType.EXCEPTION:
-
 
6905
      x = TApplicationException()
-
 
6906
      x.read(self._iprot)
-
 
6907
      self._iprot.readMessageEnd()
-
 
6908
      raise x
-
 
6909
    result = getRechargeTrans_result()
-
 
6910
    result.read(self._iprot)
-
 
6911
    self._iprot.readMessageEnd()
-
 
6912
    if result.success is not None:
-
 
6913
      return result.success
-
 
6914
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRechargeTrans failed: unknown result");
-
 
6915
 
6870
  def getRechargeTransaction(self, rechargeId):
6916
  def getRechargeTransaction(self, rechargeId):
6871
    """
6917
    """
6872
    Parameters:
6918
    Parameters:
6873
     - rechargeId
6919
     - rechargeId
6874
    """
6920
    """
Line 7180... Line 7226...
7180
    self._processMap["changeShippingAddress"] = Processor.process_changeShippingAddress
7226
    self._processMap["changeShippingAddress"] = Processor.process_changeShippingAddress
7181
    self._processMap["retrieveInvoice"] = Processor.process_retrieveInvoice
7227
    self._processMap["retrieveInvoice"] = Processor.process_retrieveInvoice
7182
    self._processMap["receiveUpdatesForRedExpress"] = Processor.process_receiveUpdatesForRedExpress
7228
    self._processMap["receiveUpdatesForRedExpress"] = Processor.process_receiveUpdatesForRedExpress
7183
    self._processMap["createRechargeTransaction"] = Processor.process_createRechargeTransaction
7229
    self._processMap["createRechargeTransaction"] = Processor.process_createRechargeTransaction
7184
    self._processMap["getRechargeTransactions"] = Processor.process_getRechargeTransactions
7230
    self._processMap["getRechargeTransactions"] = Processor.process_getRechargeTransactions
-
 
7231
    self._processMap["getRechargeTrans"] = Processor.process_getRechargeTrans
7185
    self._processMap["getRechargeTransaction"] = Processor.process_getRechargeTransaction
7232
    self._processMap["getRechargeTransaction"] = Processor.process_getRechargeTransaction
7186
    self._processMap["getFRCs"] = Processor.process_getFRCs
7233
    self._processMap["getFRCs"] = Processor.process_getFRCs
7187
    self._processMap["getHotspotStore"] = Processor.process_getHotspotStore
7234
    self._processMap["getHotspotStore"] = Processor.process_getHotspotStore
7188
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
7235
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
7189
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7236
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
Line 9200... Line 9247...
9200
    oprot.writeMessageBegin("getRechargeTransactions", TMessageType.REPLY, seqid)
9247
    oprot.writeMessageBegin("getRechargeTransactions", TMessageType.REPLY, seqid)
9201
    result.write(oprot)
9248
    result.write(oprot)
9202
    oprot.writeMessageEnd()
9249
    oprot.writeMessageEnd()
9203
    oprot.trans.flush()
9250
    oprot.trans.flush()
9204
 
9251
 
-
 
9252
  def process_getRechargeTrans(self, seqid, iprot, oprot):
-
 
9253
    args = getRechargeTrans_args()
-
 
9254
    args.read(iprot)
-
 
9255
    iprot.readMessageEnd()
-
 
9256
    result = getRechargeTrans_result()
-
 
9257
    result.success = self._handler.getRechargeTrans(args.storeId, args.startDate, args.endDate, args.status)
-
 
9258
    oprot.writeMessageBegin("getRechargeTrans", TMessageType.REPLY, seqid)
-
 
9259
    result.write(oprot)
-
 
9260
    oprot.writeMessageEnd()
-
 
9261
    oprot.trans.flush()
-
 
9262
 
9205
  def process_getRechargeTransaction(self, seqid, iprot, oprot):
9263
  def process_getRechargeTransaction(self, seqid, iprot, oprot):
9206
    args = getRechargeTransaction_args()
9264
    args = getRechargeTransaction_args()
9207
    args.read(iprot)
9265
    args.read(iprot)
9208
    iprot.readMessageEnd()
9266
    iprot.readMessageEnd()
9209
    result = getRechargeTransaction_result()
9267
    result = getRechargeTransaction_result()
Line 31047... Line 31105...
31047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31048
 
31106
 
31049
  def __ne__(self, other):
31107
  def __ne__(self, other):
31050
    return not (self == other)
31108
    return not (self == other)
31051
 
31109
 
-
 
31110
class getRechargeTrans_args:
-
 
31111
  """
-
 
31112
  Attributes:
-
 
31113
   - storeId
-
 
31114
   - startDate
-
 
31115
   - endDate
-
 
31116
   - status
-
 
31117
  """
-
 
31118
 
-
 
31119
  thrift_spec = (
-
 
31120
    None, # 0
-
 
31121
    (1, TType.I64, 'storeId', None, None, ), # 1
-
 
31122
    (2, TType.I64, 'startDate', None, None, ), # 2
-
 
31123
    (3, TType.I64, 'endDate', None, None, ), # 3
-
 
31124
    (4, TType.I32, 'status', None, None, ), # 4
-
 
31125
  )
-
 
31126
 
-
 
31127
  def __init__(self, storeId=None, startDate=None, endDate=None, status=None,):
-
 
31128
    self.storeId = storeId
-
 
31129
    self.startDate = startDate
-
 
31130
    self.endDate = endDate
-
 
31131
    self.status = status
-
 
31132
 
-
 
31133
  def read(self, iprot):
-
 
31134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31136
      return
-
 
31137
    iprot.readStructBegin()
-
 
31138
    while True:
-
 
31139
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31140
      if ftype == TType.STOP:
-
 
31141
        break
-
 
31142
      if fid == 1:
-
 
31143
        if ftype == TType.I64:
-
 
31144
          self.storeId = iprot.readI64();
-
 
31145
        else:
-
 
31146
          iprot.skip(ftype)
-
 
31147
      elif fid == 2:
-
 
31148
        if ftype == TType.I64:
-
 
31149
          self.startDate = iprot.readI64();
-
 
31150
        else:
-
 
31151
          iprot.skip(ftype)
-
 
31152
      elif fid == 3:
-
 
31153
        if ftype == TType.I64:
-
 
31154
          self.endDate = iprot.readI64();
-
 
31155
        else:
-
 
31156
          iprot.skip(ftype)
-
 
31157
      elif fid == 4:
-
 
31158
        if ftype == TType.I32:
-
 
31159
          self.status = iprot.readI32();
-
 
31160
        else:
-
 
31161
          iprot.skip(ftype)
-
 
31162
      else:
-
 
31163
        iprot.skip(ftype)
-
 
31164
      iprot.readFieldEnd()
-
 
31165
    iprot.readStructEnd()
-
 
31166
 
-
 
31167
  def write(self, oprot):
-
 
31168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31170
      return
-
 
31171
    oprot.writeStructBegin('getRechargeTrans_args')
-
 
31172
    if self.storeId is not None:
-
 
31173
      oprot.writeFieldBegin('storeId', TType.I64, 1)
-
 
31174
      oprot.writeI64(self.storeId)
-
 
31175
      oprot.writeFieldEnd()
-
 
31176
    if self.startDate is not None:
-
 
31177
      oprot.writeFieldBegin('startDate', TType.I64, 2)
-
 
31178
      oprot.writeI64(self.startDate)
-
 
31179
      oprot.writeFieldEnd()
-
 
31180
    if self.endDate is not None:
-
 
31181
      oprot.writeFieldBegin('endDate', TType.I64, 3)
-
 
31182
      oprot.writeI64(self.endDate)
-
 
31183
      oprot.writeFieldEnd()
-
 
31184
    if self.status is not None:
-
 
31185
      oprot.writeFieldBegin('status', TType.I32, 4)
-
 
31186
      oprot.writeI32(self.status)
-
 
31187
      oprot.writeFieldEnd()
-
 
31188
    oprot.writeFieldStop()
-
 
31189
    oprot.writeStructEnd()
-
 
31190
 
-
 
31191
  def validate(self):
-
 
31192
    return
-
 
31193
 
-
 
31194
 
-
 
31195
  def __repr__(self):
-
 
31196
    L = ['%s=%r' % (key, value)
-
 
31197
      for key, value in self.__dict__.iteritems()]
-
 
31198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31199
 
-
 
31200
  def __eq__(self, other):
-
 
31201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31202
 
-
 
31203
  def __ne__(self, other):
-
 
31204
    return not (self == other)
-
 
31205
 
-
 
31206
class getRechargeTrans_result:
-
 
31207
  """
-
 
31208
  Attributes:
-
 
31209
   - success
-
 
31210
  """
-
 
31211
 
-
 
31212
  thrift_spec = (
-
 
31213
    (0, TType.LIST, 'success', (TType.STRUCT,(RechargeTransaction, RechargeTransaction.thrift_spec)), None, ), # 0
-
 
31214
  )
-
 
31215
 
-
 
31216
  def __init__(self, success=None,):
-
 
31217
    self.success = success
-
 
31218
 
-
 
31219
  def read(self, iprot):
-
 
31220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31222
      return
-
 
31223
    iprot.readStructBegin()
-
 
31224
    while True:
-
 
31225
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31226
      if ftype == TType.STOP:
-
 
31227
        break
-
 
31228
      if fid == 0:
-
 
31229
        if ftype == TType.LIST:
-
 
31230
          self.success = []
-
 
31231
          (_etype747, _size744) = iprot.readListBegin()
-
 
31232
          for _i748 in xrange(_size744):
-
 
31233
            _elem749 = RechargeTransaction()
-
 
31234
            _elem749.read(iprot)
-
 
31235
            self.success.append(_elem749)
-
 
31236
          iprot.readListEnd()
-
 
31237
        else:
-
 
31238
          iprot.skip(ftype)
-
 
31239
      else:
-
 
31240
        iprot.skip(ftype)
-
 
31241
      iprot.readFieldEnd()
-
 
31242
    iprot.readStructEnd()
-
 
31243
 
-
 
31244
  def write(self, oprot):
-
 
31245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31247
      return
-
 
31248
    oprot.writeStructBegin('getRechargeTrans_result')
-
 
31249
    if self.success is not None:
-
 
31250
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
31251
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
31252
      for iter750 in self.success:
-
 
31253
        iter750.write(oprot)
-
 
31254
      oprot.writeListEnd()
-
 
31255
      oprot.writeFieldEnd()
-
 
31256
    oprot.writeFieldStop()
-
 
31257
    oprot.writeStructEnd()
-
 
31258
 
-
 
31259
  def validate(self):
-
 
31260
    return
-
 
31261
 
-
 
31262
 
-
 
31263
  def __repr__(self):
-
 
31264
    L = ['%s=%r' % (key, value)
-
 
31265
      for key, value in self.__dict__.iteritems()]
-
 
31266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31267
 
-
 
31268
  def __eq__(self, other):
-
 
31269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31270
 
-
 
31271
  def __ne__(self, other):
-
 
31272
    return not (self == other)
-
 
31273
 
31052
class getRechargeTransaction_args:
31274
class getRechargeTransaction_args:
31053
  """
31275
  """
31054
  Attributes:
31276
  Attributes:
31055
   - rechargeId
31277
   - rechargeId
31056
  """
31278
  """
Line 31264... Line 31486...
31264
      if ftype == TType.STOP:
31486
      if ftype == TType.STOP:
31265
        break
31487
        break
31266
      if fid == 0:
31488
      if fid == 0:
31267
        if ftype == TType.LIST:
31489
        if ftype == TType.LIST:
31268
          self.success = []
31490
          self.success = []
31269
          (_etype747, _size744) = iprot.readListBegin()
31491
          (_etype754, _size751) = iprot.readListBegin()
31270
          for _i748 in xrange(_size744):
31492
          for _i755 in xrange(_size751):
31271
            _elem749 = FRC()
31493
            _elem756 = FRC()
31272
            _elem749.read(iprot)
31494
            _elem756.read(iprot)
31273
            self.success.append(_elem749)
31495
            self.success.append(_elem756)
31274
          iprot.readListEnd()
31496
          iprot.readListEnd()
31275
        else:
31497
        else:
31276
          iprot.skip(ftype)
31498
          iprot.skip(ftype)
31277
      else:
31499
      else:
31278
        iprot.skip(ftype)
31500
        iprot.skip(ftype)
Line 31285... Line 31507...
31285
      return
31507
      return
31286
    oprot.writeStructBegin('getFRCs_result')
31508
    oprot.writeStructBegin('getFRCs_result')
31287
    if self.success is not None:
31509
    if self.success is not None:
31288
      oprot.writeFieldBegin('success', TType.LIST, 0)
31510
      oprot.writeFieldBegin('success', TType.LIST, 0)
31289
      oprot.writeListBegin(TType.STRUCT, len(self.success))
31511
      oprot.writeListBegin(TType.STRUCT, len(self.success))
31290
      for iter750 in self.success:
31512
      for iter757 in self.success:
31291
        iter750.write(oprot)
31513
        iter757.write(oprot)
31292
      oprot.writeListEnd()
31514
      oprot.writeListEnd()
31293
      oprot.writeFieldEnd()
31515
      oprot.writeFieldEnd()
31294
    oprot.writeFieldStop()
31516
    oprot.writeFieldStop()
31295
    oprot.writeStructEnd()
31517
    oprot.writeStructEnd()
31296
 
31518