Subversion Repositories SmartDukaan

Rev

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

Rev 7080 Rev 7085
Line 1492... Line 1492...
1492
    Parameters:
1492
    Parameters:
1493
     - thriftRechargeTransaction
1493
     - thriftRechargeTransaction
1494
    """
1494
    """
1495
    pass
1495
    pass
1496
 
1496
 
-
 
1497
  def getRechargeTransactions(self, storeId):
-
 
1498
    """
-
 
1499
    Parameters:
-
 
1500
     - storeId
-
 
1501
    """
-
 
1502
    pass
-
 
1503
 
1497
  def getRechargeTransaction(self, rechargeId):
1504
  def getRechargeTransaction(self, rechargeId):
1498
    """
1505
    """
1499
    Parameters:
1506
    Parameters:
1500
     - rechargeId
1507
     - rechargeId
1501
    """
1508
    """
Line 6805... Line 6812...
6805
    self._iprot.readMessageEnd()
6812
    self._iprot.readMessageEnd()
6806
    if result.success is not None:
6813
    if result.success is not None:
6807
      return result.success
6814
      return result.success
6808
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRechargeTransaction failed: unknown result");
6815
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRechargeTransaction failed: unknown result");
6809
 
6816
 
-
 
6817
  def getRechargeTransactions(self, storeId):
-
 
6818
    """
-
 
6819
    Parameters:
-
 
6820
     - storeId
-
 
6821
    """
-
 
6822
    self.send_getRechargeTransactions(storeId)
-
 
6823
    return self.recv_getRechargeTransactions()
-
 
6824
 
-
 
6825
  def send_getRechargeTransactions(self, storeId):
-
 
6826
    self._oprot.writeMessageBegin('getRechargeTransactions', TMessageType.CALL, self._seqid)
-
 
6827
    args = getRechargeTransactions_args()
-
 
6828
    args.storeId = storeId
-
 
6829
    args.write(self._oprot)
-
 
6830
    self._oprot.writeMessageEnd()
-
 
6831
    self._oprot.trans.flush()
-
 
6832
 
-
 
6833
  def recv_getRechargeTransactions(self, ):
-
 
6834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6835
    if mtype == TMessageType.EXCEPTION:
-
 
6836
      x = TApplicationException()
-
 
6837
      x.read(self._iprot)
-
 
6838
      self._iprot.readMessageEnd()
-
 
6839
      raise x
-
 
6840
    result = getRechargeTransactions_result()
-
 
6841
    result.read(self._iprot)
-
 
6842
    self._iprot.readMessageEnd()
-
 
6843
    if result.success is not None:
-
 
6844
      return result.success
-
 
6845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRechargeTransactions failed: unknown result");
-
 
6846
 
6810
  def getRechargeTransaction(self, rechargeId):
6847
  def getRechargeTransaction(self, rechargeId):
6811
    """
6848
    """
6812
    Parameters:
6849
    Parameters:
6813
     - rechargeId
6850
     - rechargeId
6814
    """
6851
    """
Line 7025... Line 7062...
7025
    self._processMap["getDocument"] = Processor.process_getDocument
7062
    self._processMap["getDocument"] = Processor.process_getDocument
7026
    self._processMap["changeShippingAddress"] = Processor.process_changeShippingAddress
7063
    self._processMap["changeShippingAddress"] = Processor.process_changeShippingAddress
7027
    self._processMap["retrieveInvoice"] = Processor.process_retrieveInvoice
7064
    self._processMap["retrieveInvoice"] = Processor.process_retrieveInvoice
7028
    self._processMap["receiveUpdatesForRedExpress"] = Processor.process_receiveUpdatesForRedExpress
7065
    self._processMap["receiveUpdatesForRedExpress"] = Processor.process_receiveUpdatesForRedExpress
7029
    self._processMap["createRechargeTransaction"] = Processor.process_createRechargeTransaction
7066
    self._processMap["createRechargeTransaction"] = Processor.process_createRechargeTransaction
-
 
7067
    self._processMap["getRechargeTransactions"] = Processor.process_getRechargeTransactions
7030
    self._processMap["getRechargeTransaction"] = Processor.process_getRechargeTransaction
7068
    self._processMap["getRechargeTransaction"] = Processor.process_getRechargeTransaction
7031
    self._processMap["getFRCs"] = Processor.process_getFRCs
7069
    self._processMap["getFRCs"] = Processor.process_getFRCs
7032
 
7070
 
7033
  def process(self, iprot, oprot):
7071
  def process(self, iprot, oprot):
7034
    (name, type, seqid) = iprot.readMessageBegin()
7072
    (name, type, seqid) = iprot.readMessageBegin()
Line 9031... Line 9069...
9031
    oprot.writeMessageBegin("createRechargeTransaction", TMessageType.REPLY, seqid)
9069
    oprot.writeMessageBegin("createRechargeTransaction", TMessageType.REPLY, seqid)
9032
    result.write(oprot)
9070
    result.write(oprot)
9033
    oprot.writeMessageEnd()
9071
    oprot.writeMessageEnd()
9034
    oprot.trans.flush()
9072
    oprot.trans.flush()
9035
 
9073
 
-
 
9074
  def process_getRechargeTransactions(self, seqid, iprot, oprot):
-
 
9075
    args = getRechargeTransactions_args()
-
 
9076
    args.read(iprot)
-
 
9077
    iprot.readMessageEnd()
-
 
9078
    result = getRechargeTransactions_result()
-
 
9079
    result.success = self._handler.getRechargeTransactions(args.storeId)
-
 
9080
    oprot.writeMessageBegin("getRechargeTransactions", TMessageType.REPLY, seqid)
-
 
9081
    result.write(oprot)
-
 
9082
    oprot.writeMessageEnd()
-
 
9083
    oprot.trans.flush()
-
 
9084
 
9036
  def process_getRechargeTransaction(self, seqid, iprot, oprot):
9085
  def process_getRechargeTransaction(self, seqid, iprot, oprot):
9037
    args = getRechargeTransaction_args()
9086
    args = getRechargeTransaction_args()
9038
    args.read(iprot)
9087
    args.read(iprot)
9039
    iprot.readMessageEnd()
9088
    iprot.readMessageEnd()
9040
    result = getRechargeTransaction_result()
9089
    result = getRechargeTransaction_result()
Line 30717... Line 30766...
30717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30718
 
30767
 
30719
  def __ne__(self, other):
30768
  def __ne__(self, other):
30720
    return not (self == other)
30769
    return not (self == other)
30721
 
30770
 
-
 
30771
class getRechargeTransactions_args:
-
 
30772
  """
-
 
30773
  Attributes:
-
 
30774
   - storeId
-
 
30775
  """
-
 
30776
 
-
 
30777
  thrift_spec = (
-
 
30778
    None, # 0
-
 
30779
    (1, TType.I64, 'storeId', None, None, ), # 1
-
 
30780
  )
-
 
30781
 
-
 
30782
  def __init__(self, storeId=None,):
-
 
30783
    self.storeId = storeId
-
 
30784
 
-
 
30785
  def read(self, iprot):
-
 
30786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
30787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
30788
      return
-
 
30789
    iprot.readStructBegin()
-
 
30790
    while True:
-
 
30791
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
30792
      if ftype == TType.STOP:
-
 
30793
        break
-
 
30794
      if fid == 1:
-
 
30795
        if ftype == TType.I64:
-
 
30796
          self.storeId = iprot.readI64();
-
 
30797
        else:
-
 
30798
          iprot.skip(ftype)
-
 
30799
      else:
-
 
30800
        iprot.skip(ftype)
-
 
30801
      iprot.readFieldEnd()
-
 
30802
    iprot.readStructEnd()
-
 
30803
 
-
 
30804
  def write(self, oprot):
-
 
30805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
30806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
30807
      return
-
 
30808
    oprot.writeStructBegin('getRechargeTransactions_args')
-
 
30809
    if self.storeId is not None:
-
 
30810
      oprot.writeFieldBegin('storeId', TType.I64, 1)
-
 
30811
      oprot.writeI64(self.storeId)
-
 
30812
      oprot.writeFieldEnd()
-
 
30813
    oprot.writeFieldStop()
-
 
30814
    oprot.writeStructEnd()
-
 
30815
 
-
 
30816
  def validate(self):
-
 
30817
    return
-
 
30818
 
-
 
30819
 
-
 
30820
  def __repr__(self):
-
 
30821
    L = ['%s=%r' % (key, value)
-
 
30822
      for key, value in self.__dict__.iteritems()]
-
 
30823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
30824
 
-
 
30825
  def __eq__(self, other):
-
 
30826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
30827
 
-
 
30828
  def __ne__(self, other):
-
 
30829
    return not (self == other)
-
 
30830
 
-
 
30831
class getRechargeTransactions_result:
-
 
30832
  """
-
 
30833
  Attributes:
-
 
30834
   - success
-
 
30835
  """
-
 
30836
 
-
 
30837
  thrift_spec = (
-
 
30838
    (0, TType.LIST, 'success', (TType.STRUCT,(RechargeTransaction, RechargeTransaction.thrift_spec)), None, ), # 0
-
 
30839
  )
-
 
30840
 
-
 
30841
  def __init__(self, success=None,):
-
 
30842
    self.success = success
-
 
30843
 
-
 
30844
  def read(self, iprot):
-
 
30845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
30846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
30847
      return
-
 
30848
    iprot.readStructBegin()
-
 
30849
    while True:
-
 
30850
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
30851
      if ftype == TType.STOP:
-
 
30852
        break
-
 
30853
      if fid == 0:
-
 
30854
        if ftype == TType.LIST:
-
 
30855
          self.success = []
-
 
30856
          (_etype740, _size737) = iprot.readListBegin()
-
 
30857
          for _i741 in xrange(_size737):
-
 
30858
            _elem742 = RechargeTransaction()
-
 
30859
            _elem742.read(iprot)
-
 
30860
            self.success.append(_elem742)
-
 
30861
          iprot.readListEnd()
-
 
30862
        else:
-
 
30863
          iprot.skip(ftype)
-
 
30864
      else:
-
 
30865
        iprot.skip(ftype)
-
 
30866
      iprot.readFieldEnd()
-
 
30867
    iprot.readStructEnd()
-
 
30868
 
-
 
30869
  def write(self, oprot):
-
 
30870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
30871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
30872
      return
-
 
30873
    oprot.writeStructBegin('getRechargeTransactions_result')
-
 
30874
    if self.success is not None:
-
 
30875
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
30876
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
30877
      for iter743 in self.success:
-
 
30878
        iter743.write(oprot)
-
 
30879
      oprot.writeListEnd()
-
 
30880
      oprot.writeFieldEnd()
-
 
30881
    oprot.writeFieldStop()
-
 
30882
    oprot.writeStructEnd()
-
 
30883
 
-
 
30884
  def validate(self):
-
 
30885
    return
-
 
30886
 
-
 
30887
 
-
 
30888
  def __repr__(self):
-
 
30889
    L = ['%s=%r' % (key, value)
-
 
30890
      for key, value in self.__dict__.iteritems()]
-
 
30891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
30892
 
-
 
30893
  def __eq__(self, other):
-
 
30894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
30895
 
-
 
30896
  def __ne__(self, other):
-
 
30897
    return not (self == other)
-
 
30898
 
30722
class getRechargeTransaction_args:
30899
class getRechargeTransaction_args:
30723
  """
30900
  """
30724
  Attributes:
30901
  Attributes:
30725
   - rechargeId
30902
   - rechargeId
30726
  """
30903
  """
Line 30934... Line 31111...
30934
      if ftype == TType.STOP:
31111
      if ftype == TType.STOP:
30935
        break
31112
        break
30936
      if fid == 0:
31113
      if fid == 0:
30937
        if ftype == TType.LIST:
31114
        if ftype == TType.LIST:
30938
          self.success = []
31115
          self.success = []
30939
          (_etype740, _size737) = iprot.readListBegin()
31116
          (_etype747, _size744) = iprot.readListBegin()
30940
          for _i741 in xrange(_size737):
31117
          for _i748 in xrange(_size744):
30941
            _elem742 = FRC()
31118
            _elem749 = FRC()
30942
            _elem742.read(iprot)
31119
            _elem749.read(iprot)
30943
            self.success.append(_elem742)
31120
            self.success.append(_elem749)
30944
          iprot.readListEnd()
31121
          iprot.readListEnd()
30945
        else:
31122
        else:
30946
          iprot.skip(ftype)
31123
          iprot.skip(ftype)
30947
      else:
31124
      else:
30948
        iprot.skip(ftype)
31125
        iprot.skip(ftype)
Line 30955... Line 31132...
30955
      return
31132
      return
30956
    oprot.writeStructBegin('getFRCs_result')
31133
    oprot.writeStructBegin('getFRCs_result')
30957
    if self.success is not None:
31134
    if self.success is not None:
30958
      oprot.writeFieldBegin('success', TType.LIST, 0)
31135
      oprot.writeFieldBegin('success', TType.LIST, 0)
30959
      oprot.writeListBegin(TType.STRUCT, len(self.success))
31136
      oprot.writeListBegin(TType.STRUCT, len(self.success))
30960
      for iter743 in self.success:
31137
      for iter750 in self.success:
30961
        iter743.write(oprot)
31138
        iter750.write(oprot)
30962
      oprot.writeListEnd()
31139
      oprot.writeListEnd()
30963
      oprot.writeFieldEnd()
31140
      oprot.writeFieldEnd()
30964
    oprot.writeFieldStop()
31141
    oprot.writeFieldStop()
30965
    oprot.writeStructEnd()
31142
    oprot.writeStructEnd()
30966
 
31143