| Line 22... |
Line 22... |
| 22 |
print ''
|
22 |
print ''
|
| 23 |
print 'Functions:'
|
23 |
print 'Functions:'
|
| 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 ' PaymentGateway getPaymentGateway(i64 id)'
|
28 |
print ' PaymentGateway getPaymentGateway(i64 id)'
|
| 28 |
print ' Payment getPayment(i64 id)'
|
29 |
print ' Payment getPayment(i64 id)'
|
| 29 |
print ' getPaymentForTxnId(i64 txnId)'
|
30 |
print ' getPaymentForTxnId(i64 txnId)'
|
| 30 |
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)'
|
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)'
|
| 31 |
print ' getSuccessfulPaymentsAmountRange()'
|
32 |
print ' getSuccessfulPaymentsAmountRange()'
|
| Line 102... |
Line 103... |
| 102 |
if len(args) != 4:
|
103 |
if len(args) != 4:
|
| 103 |
print 'getPayments requires 4 args'
|
104 |
print 'getPayments requires 4 args'
|
| 104 |
sys.exit(1)
|
105 |
sys.exit(1)
|
| 105 |
pp.pprint(client.getPayments(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
106 |
pp.pprint(client.getPayments(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
| 106 |
|
107 |
|
| - |
|
108 |
elif cmd == 'getPaymentsByCapturedDate':
|
| - |
|
109 |
if len(args) != 3:
|
| - |
|
110 |
print 'getPaymentsByCapturedDate requires 3 args'
|
| - |
|
111 |
sys.exit(1)
|
| - |
|
112 |
pp.pprint(client.getPaymentsByCapturedDate(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| - |
|
113 |
|
| 107 |
elif cmd == 'getPaymentGateway':
|
114 |
elif cmd == 'getPaymentGateway':
|
| 108 |
if len(args) != 1:
|
115 |
if len(args) != 1:
|
| 109 |
print 'getPaymentGateway requires 1 args'
|
116 |
print 'getPaymentGateway requires 1 args'
|
| 110 |
sys.exit(1)
|
117 |
sys.exit(1)
|
| 111 |
pp.pprint(client.getPaymentGateway(eval(args[0]),))
|
118 |
pp.pprint(client.getPaymentGateway(eval(args[0]),))
|