Subversion Repositories SmartDukaan

Rev

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

Rev 4421 Rev 4600
Line 72... Line 72...
72
    Parameters:
72
    Parameters:
73
     - id
73
     - id
74
    """
74
    """
75
    pass
75
    pass
76
 
76
 
-
 
77
  def getActivePaymentGateways(self, ):
-
 
78
    """
-
 
79
    Get all active Payment Gateways
-
 
80
 
-
 
81
    """
-
 
82
    pass
-
 
83
 
77
  def getPayment(self, id):
84
  def getPayment(self, id):
78
    """
85
    """
79
    Get a particular payment info
86
    Get a particular payment info
80
 
87
 
81
 
88
 
Line 84... Line 91...
84
    """
91
    """
85
    pass
92
    pass
86
 
93
 
87
  def getPaymentForTxnId(self, txnId):
94
  def getPaymentForTxnId(self, txnId):
88
    """
95
    """
-
 
96
    Get payments for a transaction. Will raise exception.
-
 
97
 
-
 
98
 
-
 
99
    Parameters:
-
 
100
     - txnId
-
 
101
    """
-
 
102
    pass
-
 
103
 
-
 
104
  def getSuccessfulPaymentForTxnId(self, txnId):
-
 
105
    """
89
    Get a particular payment for a transaction. Will raise exception.
106
    Get successful payment for a transaction. Will raise exception.
90
 
107
 
91
 
108
 
92
    Parameters:
109
    Parameters:
93
     - txnId
110
     - txnId
94
    """
111
    """
Line 408... Line 425...
408
      return result.success
425
      return result.success
409
    if result.pe is not None:
426
    if result.pe is not None:
410
      raise result.pe
427
      raise result.pe
411
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
412
 
429
 
-
 
430
  def getActivePaymentGateways(self, ):
-
 
431
    """
-
 
432
    Get all active Payment Gateways
-
 
433
 
-
 
434
    """
-
 
435
    self.send_getActivePaymentGateways()
-
 
436
    return self.recv_getActivePaymentGateways()
-
 
437
 
-
 
438
  def send_getActivePaymentGateways(self, ):
-
 
439
    self._oprot.writeMessageBegin('getActivePaymentGateways', TMessageType.CALL, self._seqid)
-
 
440
    args = getActivePaymentGateways_args()
-
 
441
    args.write(self._oprot)
-
 
442
    self._oprot.writeMessageEnd()
-
 
443
    self._oprot.trans.flush()
-
 
444
 
-
 
445
  def recv_getActivePaymentGateways(self, ):
-
 
446
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
447
    if mtype == TMessageType.EXCEPTION:
-
 
448
      x = TApplicationException()
-
 
449
      x.read(self._iprot)
-
 
450
      self._iprot.readMessageEnd()
-
 
451
      raise x
-
 
452
    result = getActivePaymentGateways_result()
-
 
453
    result.read(self._iprot)
-
 
454
    self._iprot.readMessageEnd()
-
 
455
    if result.success is not None:
-
 
456
      return result.success
-
 
457
    if result.pe is not None:
-
 
458
      raise result.pe
-
 
459
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
-
 
460
 
413
  def getPayment(self, id):
461
  def getPayment(self, id):
414
    """
462
    """
415
    Get a particular payment info
463
    Get a particular payment info
416
 
464
 
417
 
465
 
Line 445... Line 493...
445
      raise result.pe
493
      raise result.pe
446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
494
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
447
 
495
 
448
  def getPaymentForTxnId(self, txnId):
496
  def getPaymentForTxnId(self, txnId):
449
    """
497
    """
450
    Get a particular payment for a transaction. Will raise exception.
498
    Get payments for a transaction. Will raise exception.
451
 
499
 
452
 
500
 
453
    Parameters:
501
    Parameters:
454
     - txnId
502
     - txnId
455
    """
503
    """
Line 478... Line 526...
478
      return result.success
526
      return result.success
479
    if result.pe is not None:
527
    if result.pe is not None:
480
      raise result.pe
528
      raise result.pe
481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
529
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
482
 
530
 
-
 
531
  def getSuccessfulPaymentForTxnId(self, txnId):
-
 
532
    """
-
 
533
    Get successful payment for a transaction. Will raise exception.
-
 
534
 
-
 
535
 
-
 
536
    Parameters:
-
 
537
     - txnId
-
 
538
    """
-
 
539
    self.send_getSuccessfulPaymentForTxnId(txnId)
-
 
540
    return self.recv_getSuccessfulPaymentForTxnId()
-
 
541
 
-
 
542
  def send_getSuccessfulPaymentForTxnId(self, txnId):
-
 
543
    self._oprot.writeMessageBegin('getSuccessfulPaymentForTxnId', TMessageType.CALL, self._seqid)
-
 
544
    args = getSuccessfulPaymentForTxnId_args()
-
 
545
    args.txnId = txnId
-
 
546
    args.write(self._oprot)
-
 
547
    self._oprot.writeMessageEnd()
-
 
548
    self._oprot.trans.flush()
-
 
549
 
-
 
550
  def recv_getSuccessfulPaymentForTxnId(self, ):
-
 
551
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
552
    if mtype == TMessageType.EXCEPTION:
-
 
553
      x = TApplicationException()
-
 
554
      x.read(self._iprot)
-
 
555
      self._iprot.readMessageEnd()
-
 
556
      raise x
-
 
557
    result = getSuccessfulPaymentForTxnId_result()
-
 
558
    result.read(self._iprot)
-
 
559
    self._iprot.readMessageEnd()
-
 
560
    if result.success is not None:
-
 
561
      return result.success
-
 
562
    if result.pe is not None:
-
 
563
      raise result.pe
-
 
564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
-
 
565
 
483
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
566
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
484
    """
567
    """
485
    mark payment successful and store parameters
568
    mark payment successful and store parameters
486
 
569
 
487
 
570
 
Line 838... Line 921...
838
    self._processMap["createPayment"] = Processor.process_createPayment
921
    self._processMap["createPayment"] = Processor.process_createPayment
839
    self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
922
    self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
840
    self._processMap["getPayments"] = Processor.process_getPayments
923
    self._processMap["getPayments"] = Processor.process_getPayments
841
    self._processMap["getPaymentsByCapturedDate"] = Processor.process_getPaymentsByCapturedDate
924
    self._processMap["getPaymentsByCapturedDate"] = Processor.process_getPaymentsByCapturedDate
842
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
925
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
-
 
926
    self._processMap["getActivePaymentGateways"] = Processor.process_getActivePaymentGateways
843
    self._processMap["getPayment"] = Processor.process_getPayment
927
    self._processMap["getPayment"] = Processor.process_getPayment
844
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
928
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
-
 
929
    self._processMap["getSuccessfulPaymentForTxnId"] = Processor.process_getSuccessfulPaymentForTxnId
845
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
930
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
846
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
931
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
847
    self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
932
    self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
848
    self._processMap["initializeHdfcEmiPayment"] = Processor.process_initializeHdfcEmiPayment
933
    self._processMap["initializeHdfcEmiPayment"] = Processor.process_initializeHdfcEmiPayment
849
    self._processMap["createRefund"] = Processor.process_createRefund
934
    self._processMap["createRefund"] = Processor.process_createRefund
Line 935... Line 1020...
935
    oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
1020
    oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
936
    result.write(oprot)
1021
    result.write(oprot)
937
    oprot.writeMessageEnd()
1022
    oprot.writeMessageEnd()
938
    oprot.trans.flush()
1023
    oprot.trans.flush()
939
 
1024
 
-
 
1025
  def process_getActivePaymentGateways(self, seqid, iprot, oprot):
-
 
1026
    args = getActivePaymentGateways_args()
-
 
1027
    args.read(iprot)
-
 
1028
    iprot.readMessageEnd()
-
 
1029
    result = getActivePaymentGateways_result()
-
 
1030
    try:
-
 
1031
      result.success = self._handler.getActivePaymentGateways()
-
 
1032
    except PaymentException, pe:
-
 
1033
      result.pe = pe
-
 
1034
    oprot.writeMessageBegin("getActivePaymentGateways", TMessageType.REPLY, seqid)
-
 
1035
    result.write(oprot)
-
 
1036
    oprot.writeMessageEnd()
-
 
1037
    oprot.trans.flush()
-
 
1038
 
940
  def process_getPayment(self, seqid, iprot, oprot):
1039
  def process_getPayment(self, seqid, iprot, oprot):
941
    args = getPayment_args()
1040
    args = getPayment_args()
942
    args.read(iprot)
1041
    args.read(iprot)
943
    iprot.readMessageEnd()
1042
    iprot.readMessageEnd()
944
    result = getPayment_result()
1043
    result = getPayment_result()
Line 963... Line 1062...
963
    oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
1062
    oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
964
    result.write(oprot)
1063
    result.write(oprot)
965
    oprot.writeMessageEnd()
1064
    oprot.writeMessageEnd()
966
    oprot.trans.flush()
1065
    oprot.trans.flush()
967
 
1066
 
-
 
1067
  def process_getSuccessfulPaymentForTxnId(self, seqid, iprot, oprot):
-
 
1068
    args = getSuccessfulPaymentForTxnId_args()
-
 
1069
    args.read(iprot)
-
 
1070
    iprot.readMessageEnd()
-
 
1071
    result = getSuccessfulPaymentForTxnId_result()
-
 
1072
    try:
-
 
1073
      result.success = self._handler.getSuccessfulPaymentForTxnId(args.txnId)
-
 
1074
    except PaymentException, pe:
-
 
1075
      result.pe = pe
-
 
1076
    oprot.writeMessageBegin("getSuccessfulPaymentForTxnId", TMessageType.REPLY, seqid)
-
 
1077
    result.write(oprot)
-
 
1078
    oprot.writeMessageEnd()
-
 
1079
    oprot.trans.flush()
-
 
1080
 
968
  def process_updatePaymentDetails(self, seqid, iprot, oprot):
1081
  def process_updatePaymentDetails(self, seqid, iprot, oprot):
969
    args = updatePaymentDetails_args()
1082
    args = updatePaymentDetails_args()
970
    args.read(iprot)
1083
    args.read(iprot)
971
    iprot.readMessageEnd()
1084
    iprot.readMessageEnd()
972
    result = updatePaymentDetails_result()
1085
    result = updatePaymentDetails_result()
Line 1915... Line 2028...
1915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1916
 
2029
 
1917
  def __ne__(self, other):
2030
  def __ne__(self, other):
1918
    return not (self == other)
2031
    return not (self == other)
1919
 
2032
 
-
 
2033
class getActivePaymentGateways_args:
-
 
2034
 
-
 
2035
  thrift_spec = (
-
 
2036
  )
-
 
2037
 
-
 
2038
  def read(self, iprot):
-
 
2039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2041
      return
-
 
2042
    iprot.readStructBegin()
-
 
2043
    while True:
-
 
2044
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2045
      if ftype == TType.STOP:
-
 
2046
        break
-
 
2047
      else:
-
 
2048
        iprot.skip(ftype)
-
 
2049
      iprot.readFieldEnd()
-
 
2050
    iprot.readStructEnd()
-
 
2051
 
-
 
2052
  def write(self, oprot):
-
 
2053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2055
      return
-
 
2056
    oprot.writeStructBegin('getActivePaymentGateways_args')
-
 
2057
    oprot.writeFieldStop()
-
 
2058
    oprot.writeStructEnd()
-
 
2059
 
-
 
2060
  def validate(self):
-
 
2061
    return
-
 
2062
 
-
 
2063
 
-
 
2064
  def __repr__(self):
-
 
2065
    L = ['%s=%r' % (key, value)
-
 
2066
      for key, value in self.__dict__.iteritems()]
-
 
2067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2068
 
-
 
2069
  def __eq__(self, other):
-
 
2070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2071
 
-
 
2072
  def __ne__(self, other):
-
 
2073
    return not (self == other)
-
 
2074
 
-
 
2075
class getActivePaymentGateways_result:
-
 
2076
  """
-
 
2077
  Attributes:
-
 
2078
   - success
-
 
2079
   - pe
-
 
2080
  """
-
 
2081
 
-
 
2082
  thrift_spec = (
-
 
2083
    (0, TType.LIST, 'success', (TType.STRUCT,(PaymentGateway, PaymentGateway.thrift_spec)), None, ), # 0
-
 
2084
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
2085
  )
-
 
2086
 
-
 
2087
  def __init__(self, success=None, pe=None,):
-
 
2088
    self.success = success
-
 
2089
    self.pe = pe
-
 
2090
 
-
 
2091
  def read(self, iprot):
-
 
2092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2094
      return
-
 
2095
    iprot.readStructBegin()
-
 
2096
    while True:
-
 
2097
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2098
      if ftype == TType.STOP:
-
 
2099
        break
-
 
2100
      if fid == 0:
-
 
2101
        if ftype == TType.LIST:
-
 
2102
          self.success = []
-
 
2103
          (_etype45, _size42) = iprot.readListBegin()
-
 
2104
          for _i46 in xrange(_size42):
-
 
2105
            _elem47 = PaymentGateway()
-
 
2106
            _elem47.read(iprot)
-
 
2107
            self.success.append(_elem47)
-
 
2108
          iprot.readListEnd()
-
 
2109
        else:
-
 
2110
          iprot.skip(ftype)
-
 
2111
      elif fid == 1:
-
 
2112
        if ftype == TType.STRUCT:
-
 
2113
          self.pe = PaymentException()
-
 
2114
          self.pe.read(iprot)
-
 
2115
        else:
-
 
2116
          iprot.skip(ftype)
-
 
2117
      else:
-
 
2118
        iprot.skip(ftype)
-
 
2119
      iprot.readFieldEnd()
-
 
2120
    iprot.readStructEnd()
-
 
2121
 
-
 
2122
  def write(self, oprot):
-
 
2123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2125
      return
-
 
2126
    oprot.writeStructBegin('getActivePaymentGateways_result')
-
 
2127
    if self.success is not None:
-
 
2128
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2129
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2130
      for iter48 in self.success:
-
 
2131
        iter48.write(oprot)
-
 
2132
      oprot.writeListEnd()
-
 
2133
      oprot.writeFieldEnd()
-
 
2134
    if self.pe is not None:
-
 
2135
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
2136
      self.pe.write(oprot)
-
 
2137
      oprot.writeFieldEnd()
-
 
2138
    oprot.writeFieldStop()
-
 
2139
    oprot.writeStructEnd()
-
 
2140
 
-
 
2141
  def validate(self):
-
 
2142
    return
-
 
2143
 
-
 
2144
 
-
 
2145
  def __repr__(self):
-
 
2146
    L = ['%s=%r' % (key, value)
-
 
2147
      for key, value in self.__dict__.iteritems()]
-
 
2148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2149
 
-
 
2150
  def __eq__(self, other):
-
 
2151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2152
 
-
 
2153
  def __ne__(self, other):
-
 
2154
    return not (self == other)
-
 
2155
 
1920
class getPayment_args:
2156
class getPayment_args:
1921
  """
2157
  """
1922
  Attributes:
2158
  Attributes:
1923
   - id
2159
   - id
1924
  """
2160
  """
Line 2136... Line 2372...
2136
      if ftype == TType.STOP:
2372
      if ftype == TType.STOP:
2137
        break
2373
        break
2138
      if fid == 0:
2374
      if fid == 0:
2139
        if ftype == TType.LIST:
2375
        if ftype == TType.LIST:
2140
          self.success = []
2376
          self.success = []
2141
          (_etype45, _size42) = iprot.readListBegin()
2377
          (_etype52, _size49) = iprot.readListBegin()
2142
          for _i46 in xrange(_size42):
2378
          for _i53 in xrange(_size49):
2143
            _elem47 = Payment()
2379
            _elem54 = Payment()
2144
            _elem47.read(iprot)
2380
            _elem54.read(iprot)
2145
            self.success.append(_elem47)
2381
            self.success.append(_elem54)
2146
          iprot.readListEnd()
2382
          iprot.readListEnd()
2147
        else:
2383
        else:
2148
          iprot.skip(ftype)
2384
          iprot.skip(ftype)
2149
      elif fid == 1:
2385
      elif fid == 1:
2150
        if ftype == TType.STRUCT:
2386
        if ftype == TType.STRUCT:
Line 2163... Line 2399...
2163
      return
2399
      return
2164
    oprot.writeStructBegin('getPaymentForTxnId_result')
2400
    oprot.writeStructBegin('getPaymentForTxnId_result')
2165
    if self.success is not None:
2401
    if self.success is not None:
2166
      oprot.writeFieldBegin('success', TType.LIST, 0)
2402
      oprot.writeFieldBegin('success', TType.LIST, 0)
2167
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2403
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2168
      for iter48 in self.success:
2404
      for iter55 in self.success:
2169
        iter48.write(oprot)
2405
        iter55.write(oprot)
2170
      oprot.writeListEnd()
2406
      oprot.writeListEnd()
2171
      oprot.writeFieldEnd()
2407
      oprot.writeFieldEnd()
2172
    if self.pe is not None:
2408
    if self.pe is not None:
2173
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2409
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2174
      self.pe.write(oprot)
2410
      self.pe.write(oprot)
Line 2189... Line 2425...
2189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2190
 
2426
 
2191
  def __ne__(self, other):
2427
  def __ne__(self, other):
2192
    return not (self == other)
2428
    return not (self == other)
2193
 
2429
 
-
 
2430
class getSuccessfulPaymentForTxnId_args:
-
 
2431
  """
-
 
2432
  Attributes:
-
 
2433
   - txnId
-
 
2434
  """
-
 
2435
 
-
 
2436
  thrift_spec = (
-
 
2437
    None, # 0
-
 
2438
    (1, TType.I64, 'txnId', None, None, ), # 1
-
 
2439
  )
-
 
2440
 
-
 
2441
  def __init__(self, txnId=None,):
-
 
2442
    self.txnId = txnId
-
 
2443
 
-
 
2444
  def read(self, iprot):
-
 
2445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2447
      return
-
 
2448
    iprot.readStructBegin()
-
 
2449
    while True:
-
 
2450
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2451
      if ftype == TType.STOP:
-
 
2452
        break
-
 
2453
      if fid == 1:
-
 
2454
        if ftype == TType.I64:
-
 
2455
          self.txnId = iprot.readI64();
-
 
2456
        else:
-
 
2457
          iprot.skip(ftype)
-
 
2458
      else:
-
 
2459
        iprot.skip(ftype)
-
 
2460
      iprot.readFieldEnd()
-
 
2461
    iprot.readStructEnd()
-
 
2462
 
-
 
2463
  def write(self, oprot):
-
 
2464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2466
      return
-
 
2467
    oprot.writeStructBegin('getSuccessfulPaymentForTxnId_args')
-
 
2468
    if self.txnId is not None:
-
 
2469
      oprot.writeFieldBegin('txnId', TType.I64, 1)
-
 
2470
      oprot.writeI64(self.txnId)
-
 
2471
      oprot.writeFieldEnd()
-
 
2472
    oprot.writeFieldStop()
-
 
2473
    oprot.writeStructEnd()
-
 
2474
 
-
 
2475
  def validate(self):
-
 
2476
    return
-
 
2477
 
-
 
2478
 
-
 
2479
  def __repr__(self):
-
 
2480
    L = ['%s=%r' % (key, value)
-
 
2481
      for key, value in self.__dict__.iteritems()]
-
 
2482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2483
 
-
 
2484
  def __eq__(self, other):
-
 
2485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2486
 
-
 
2487
  def __ne__(self, other):
-
 
2488
    return not (self == other)
-
 
2489
 
-
 
2490
class getSuccessfulPaymentForTxnId_result:
-
 
2491
  """
-
 
2492
  Attributes:
-
 
2493
   - success
-
 
2494
   - pe
-
 
2495
  """
-
 
2496
 
-
 
2497
  thrift_spec = (
-
 
2498
    (0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
-
 
2499
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
2500
  )
-
 
2501
 
-
 
2502
  def __init__(self, success=None, pe=None,):
-
 
2503
    self.success = success
-
 
2504
    self.pe = pe
-
 
2505
 
-
 
2506
  def read(self, iprot):
-
 
2507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2509
      return
-
 
2510
    iprot.readStructBegin()
-
 
2511
    while True:
-
 
2512
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2513
      if ftype == TType.STOP:
-
 
2514
        break
-
 
2515
      if fid == 0:
-
 
2516
        if ftype == TType.STRUCT:
-
 
2517
          self.success = Payment()
-
 
2518
          self.success.read(iprot)
-
 
2519
        else:
-
 
2520
          iprot.skip(ftype)
-
 
2521
      elif fid == 1:
-
 
2522
        if ftype == TType.STRUCT:
-
 
2523
          self.pe = PaymentException()
-
 
2524
          self.pe.read(iprot)
-
 
2525
        else:
-
 
2526
          iprot.skip(ftype)
-
 
2527
      else:
-
 
2528
        iprot.skip(ftype)
-
 
2529
      iprot.readFieldEnd()
-
 
2530
    iprot.readStructEnd()
-
 
2531
 
-
 
2532
  def write(self, oprot):
-
 
2533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2535
      return
-
 
2536
    oprot.writeStructBegin('getSuccessfulPaymentForTxnId_result')
-
 
2537
    if self.success is not None:
-
 
2538
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
2539
      self.success.write(oprot)
-
 
2540
      oprot.writeFieldEnd()
-
 
2541
    if self.pe is not None:
-
 
2542
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
2543
      self.pe.write(oprot)
-
 
2544
      oprot.writeFieldEnd()
-
 
2545
    oprot.writeFieldStop()
-
 
2546
    oprot.writeStructEnd()
-
 
2547
 
-
 
2548
  def validate(self):
-
 
2549
    return
-
 
2550
 
-
 
2551
 
-
 
2552
  def __repr__(self):
-
 
2553
    L = ['%s=%r' % (key, value)
-
 
2554
      for key, value in self.__dict__.iteritems()]
-
 
2555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2556
 
-
 
2557
  def __eq__(self, other):
-
 
2558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2559
 
-
 
2560
  def __ne__(self, other):
-
 
2561
    return not (self == other)
-
 
2562
 
2194
class updatePaymentDetails_args:
2563
class updatePaymentDetails_args:
2195
  """
2564
  """
2196
  Attributes:
2565
  Attributes:
2197
   - id
2566
   - id
2198
   - gatewayPaymentId
2567
   - gatewayPaymentId
Line 2303... Line 2672...
2303
        else:
2672
        else:
2304
          iprot.skip(ftype)
2673
          iprot.skip(ftype)
2305
      elif fid == 12:
2674
      elif fid == 12:
2306
        if ftype == TType.LIST:
2675
        if ftype == TType.LIST:
2307
          self.attributes = []
2676
          self.attributes = []
2308
          (_etype52, _size49) = iprot.readListBegin()
2677
          (_etype59, _size56) = iprot.readListBegin()
2309
          for _i53 in xrange(_size49):
2678
          for _i60 in xrange(_size56):
2310
            _elem54 = Attribute()
2679
            _elem61 = Attribute()
2311
            _elem54.read(iprot)
2680
            _elem61.read(iprot)
2312
            self.attributes.append(_elem54)
2681
            self.attributes.append(_elem61)
2313
          iprot.readListEnd()
2682
          iprot.readListEnd()
2314
        else:
2683
        else:
2315
          iprot.skip(ftype)
2684
          iprot.skip(ftype)
2316
      else:
2685
      else:
2317
        iprot.skip(ftype)
2686
        iprot.skip(ftype)
Line 2368... Line 2737...
2368
      oprot.writeString(self.gatewayTxnDate)
2737
      oprot.writeString(self.gatewayTxnDate)
2369
      oprot.writeFieldEnd()
2738
      oprot.writeFieldEnd()
2370
    if self.attributes is not None:
2739
    if self.attributes is not None:
2371
      oprot.writeFieldBegin('attributes', TType.LIST, 12)
2740
      oprot.writeFieldBegin('attributes', TType.LIST, 12)
2372
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
2741
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
2373
      for iter55 in self.attributes:
2742
      for iter62 in self.attributes:
2374
        iter55.write(oprot)
2743
        iter62.write(oprot)
2375
      oprot.writeListEnd()
2744
      oprot.writeListEnd()
2376
      oprot.writeFieldEnd()
2745
      oprot.writeFieldEnd()
2377
    oprot.writeFieldStop()
2746
    oprot.writeFieldStop()
2378
    oprot.writeStructEnd()
2747
    oprot.writeStructEnd()
2379
 
2748
 
Line 2529... Line 2898...
2529
      if ftype == TType.STOP:
2898
      if ftype == TType.STOP:
2530
        break
2899
        break
2531
      if fid == 0:
2900
      if fid == 0:
2532
        if ftype == TType.LIST:
2901
        if ftype == TType.LIST:
2533
          self.success = []
2902
          self.success = []
2534
          (_etype59, _size56) = iprot.readListBegin()
2903
          (_etype66, _size63) = iprot.readListBegin()
2535
          for _i60 in xrange(_size56):
2904
          for _i67 in xrange(_size63):
2536
            _elem61 = iprot.readDouble();
2905
            _elem68 = iprot.readDouble();
2537
            self.success.append(_elem61)
2906
            self.success.append(_elem68)
2538
          iprot.readListEnd()
2907
          iprot.readListEnd()
2539
        else:
2908
        else:
2540
          iprot.skip(ftype)
2909
          iprot.skip(ftype)
2541
      else:
2910
      else:
2542
        iprot.skip(ftype)
2911
        iprot.skip(ftype)
Line 2549... Line 2918...
2549
      return
2918
      return
2550
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
2919
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
2551
    if self.success is not None:
2920
    if self.success is not None:
2552
      oprot.writeFieldBegin('success', TType.LIST, 0)
2921
      oprot.writeFieldBegin('success', TType.LIST, 0)
2553
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
2922
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
2554
      for iter62 in self.success:
2923
      for iter69 in self.success:
2555
        oprot.writeDouble(iter62)
2924
        oprot.writeDouble(iter69)
2556
      oprot.writeListEnd()
2925
      oprot.writeListEnd()
2557
      oprot.writeFieldEnd()
2926
      oprot.writeFieldEnd()
2558
    oprot.writeFieldStop()
2927
    oprot.writeFieldStop()
2559
    oprot.writeStructEnd()
2928
    oprot.writeStructEnd()
2560
 
2929
 
Line 3388... Line 3757...
3388
      if ftype == TType.STOP:
3757
      if ftype == TType.STOP:
3389
        break
3758
        break
3390
      if fid == 0:
3759
      if fid == 0:
3391
        if ftype == TType.LIST:
3760
        if ftype == TType.LIST:
3392
          self.success = []
3761
          self.success = []
3393
          (_etype66, _size63) = iprot.readListBegin()
3762
          (_etype73, _size70) = iprot.readListBegin()
3394
          for _i67 in xrange(_size63):
3763
          for _i74 in xrange(_size70):
3395
            _elem68 = iprot.readI64();
3764
            _elem75 = iprot.readI64();
3396
            self.success.append(_elem68)
3765
            self.success.append(_elem75)
3397
          iprot.readListEnd()
3766
          iprot.readListEnd()
3398
        else:
3767
        else:
3399
          iprot.skip(ftype)
3768
          iprot.skip(ftype)
3400
      else:
3769
      else:
3401
        iprot.skip(ftype)
3770
        iprot.skip(ftype)
Line 3408... Line 3777...
3408
      return
3777
      return
3409
    oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_result')
3778
    oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_result')
3410
    if self.success is not None:
3779
    if self.success is not None:
3411
      oprot.writeFieldBegin('success', TType.LIST, 0)
3780
      oprot.writeFieldBegin('success', TType.LIST, 0)
3412
      oprot.writeListBegin(TType.I64, len(self.success))
3781
      oprot.writeListBegin(TType.I64, len(self.success))
3413
      for iter69 in self.success:
3782
      for iter76 in self.success:
3414
        oprot.writeI64(iter69)
3783
        oprot.writeI64(iter76)
3415
      oprot.writeListEnd()
3784
      oprot.writeListEnd()
3416
      oprot.writeFieldEnd()
3785
      oprot.writeFieldEnd()
3417
    oprot.writeFieldStop()
3786
    oprot.writeFieldStop()
3418
    oprot.writeStructEnd()
3787
    oprot.writeStructEnd()
3419
 
3788