| Line 24... |
Line 24... |
| 24 |
print ' i64 createPayment(i64 userId, double amount, i64 gatewayId, i64 txnId)'
|
24 |
print ' i64 createPayment(i64 userId, double amount, i64 gatewayId, i64 txnId)'
|
| 25 |
print ' getPaymentsForUser(i64 userId, i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
25 |
print ' getPaymentsForUser(i64 userId, i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
| 26 |
print ' getPayments(i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
26 |
print ' getPayments(i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
| 27 |
print ' getPaymentsByCapturedDate(i64 fromTime, i64 toTime, i64 gatewayId)'
|
27 |
print ' getPaymentsByCapturedDate(i64 fromTime, i64 toTime, i64 gatewayId)'
|
| 28 |
print ' PaymentGateway getPaymentGateway(i64 id)'
|
28 |
print ' PaymentGateway getPaymentGateway(i64 id)'
|
| - |
|
29 |
print ' getActivePaymentGateways()'
|
| 29 |
print ' Payment getPayment(i64 id)'
|
30 |
print ' Payment getPayment(i64 id)'
|
| 30 |
print ' getPaymentForTxnId(i64 txnId)'
|
31 |
print ' getPaymentForTxnId(i64 txnId)'
|
| - |
|
32 |
print ' Payment getSuccessfulPaymentForTxnId(i64 txnId)'
|
| 31 |
print ' bool updatePaymentDetails(i64 id, string gatewayPaymentId, string sessionId, string gatewayTxnStatus, string description, string gatewayTxnId, string authCode, string referenceCode, string errorCode, PaymentStatus status, string gatewayTxnDate, attributes)'
|
33 |
print ' bool updatePaymentDetails(i64 id, string gatewayPaymentId, string sessionId, string gatewayTxnStatus, string description, string gatewayTxnId, string authCode, string referenceCode, string errorCode, PaymentStatus status, string gatewayTxnDate, attributes)'
|
| 32 |
print ' getSuccessfulPaymentsAmountRange()'
|
34 |
print ' getSuccessfulPaymentsAmountRange()'
|
| 33 |
print ' string initializeHdfcPayment(i64 merchantPaymentId)'
|
35 |
print ' string initializeHdfcPayment(i64 merchantPaymentId)'
|
| 34 |
print ' string initializeHdfcEmiPayment(i64 merchantPaymentId)'
|
36 |
print ' string initializeHdfcEmiPayment(i64 merchantPaymentId)'
|
| 35 |
print ' i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
|
37 |
print ' i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
|
| Line 115... |
Line 117... |
| 115 |
if len(args) != 1:
|
117 |
if len(args) != 1:
|
| 116 |
print 'getPaymentGateway requires 1 args'
|
118 |
print 'getPaymentGateway requires 1 args'
|
| 117 |
sys.exit(1)
|
119 |
sys.exit(1)
|
| 118 |
pp.pprint(client.getPaymentGateway(eval(args[0]),))
|
120 |
pp.pprint(client.getPaymentGateway(eval(args[0]),))
|
| 119 |
|
121 |
|
| - |
|
122 |
elif cmd == 'getActivePaymentGateways':
|
| - |
|
123 |
if len(args) != 0:
|
| - |
|
124 |
print 'getActivePaymentGateways requires 0 args'
|
| - |
|
125 |
sys.exit(1)
|
| - |
|
126 |
pp.pprint(client.getActivePaymentGateways())
|
| - |
|
127 |
|
| 120 |
elif cmd == 'getPayment':
|
128 |
elif cmd == 'getPayment':
|
| 121 |
if len(args) != 1:
|
129 |
if len(args) != 1:
|
| 122 |
print 'getPayment requires 1 args'
|
130 |
print 'getPayment requires 1 args'
|
| 123 |
sys.exit(1)
|
131 |
sys.exit(1)
|
| 124 |
pp.pprint(client.getPayment(eval(args[0]),))
|
132 |
pp.pprint(client.getPayment(eval(args[0]),))
|
| Line 127... |
Line 135... |
| 127 |
if len(args) != 1:
|
135 |
if len(args) != 1:
|
| 128 |
print 'getPaymentForTxnId requires 1 args'
|
136 |
print 'getPaymentForTxnId requires 1 args'
|
| 129 |
sys.exit(1)
|
137 |
sys.exit(1)
|
| 130 |
pp.pprint(client.getPaymentForTxnId(eval(args[0]),))
|
138 |
pp.pprint(client.getPaymentForTxnId(eval(args[0]),))
|
| 131 |
|
139 |
|
| - |
|
140 |
elif cmd == 'getSuccessfulPaymentForTxnId':
|
| - |
|
141 |
if len(args) != 1:
|
| - |
|
142 |
print 'getSuccessfulPaymentForTxnId requires 1 args'
|
| - |
|
143 |
sys.exit(1)
|
| - |
|
144 |
pp.pprint(client.getSuccessfulPaymentForTxnId(eval(args[0]),))
|
| - |
|
145 |
|
| 132 |
elif cmd == 'updatePaymentDetails':
|
146 |
elif cmd == 'updatePaymentDetails':
|
| 133 |
if len(args) != 12:
|
147 |
if len(args) != 12:
|
| 134 |
print 'updatePaymentDetails requires 12 args'
|
148 |
print 'updatePaymentDetails requires 12 args'
|
| 135 |
sys.exit(1)
|
149 |
sys.exit(1)
|
| 136 |
pp.pprint(client.updatePaymentDetails(eval(args[0]),args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],eval(args[9]),args[10],eval(args[11]),))
|
150 |
pp.pprint(client.updatePaymentDetails(eval(args[0]),args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],eval(args[9]),args[10],eval(args[11]),))
|