| Line 27... |
Line 27... |
| 27 |
print ' getPayments(i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
27 |
print ' getPayments(i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
| 28 |
print ' PaymentGateway getPaymentGateway(i64 id)'
|
28 |
print ' PaymentGateway getPaymentGateway(i64 id)'
|
| 29 |
print ' Payment getPayment(i64 id)'
|
29 |
print ' Payment getPayment(i64 id)'
|
| 30 |
print ' getPaymentForTxnId(i64 txnId)'
|
30 |
print ' getPaymentForTxnId(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)'
|
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)'
|
| 32 |
print ' double getMaxPaymentAmount()'
|
- |
|
| 33 |
print ' double getMinPaymentAmount()'
|
32 |
print ' getSuccessfulPaymentsAmountRange()'
|
| 34 |
print ''
|
33 |
print ''
|
| 35 |
sys.exit(0)
|
34 |
sys.exit(0)
|
| 36 |
|
35 |
|
| 37 |
pp = pprint.PrettyPrinter(indent = 2)
|
36 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 38 |
host = 'localhost'
|
37 |
host = 'localhost'
|
| Line 125... |
Line 124... |
| 125 |
if len(args) != 12:
|
124 |
if len(args) != 12:
|
| 126 |
print 'updatePaymentDetails requires 12 args'
|
125 |
print 'updatePaymentDetails requires 12 args'
|
| 127 |
sys.exit(1)
|
126 |
sys.exit(1)
|
| 128 |
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]),))
|
127 |
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]),))
|
| 129 |
|
128 |
|
| 130 |
elif cmd == 'getMaxPaymentAmount':
|
129 |
elif cmd == 'getSuccessfulPaymentsAmountRange':
|
| 131 |
if len(args) != 0:
|
130 |
if len(args) != 0:
|
| 132 |
print 'getMaxPaymentAmount requires 0 args'
|
131 |
print 'getSuccessfulPaymentsAmountRange requires 0 args'
|
| 133 |
sys.exit(1)
|
132 |
sys.exit(1)
|
| 134 |
pp.pprint(client.getMaxPaymentAmount())
|
133 |
pp.pprint(client.getSuccessfulPaymentsAmountRange())
|
| 135 |
|
- |
|
| 136 |
elif cmd == 'getMinPaymentAmount':
|
- |
|
| 137 |
if len(args) != 0:
|
- |
|
| 138 |
print 'getMinPaymentAmount requires 0 args'
|
- |
|
| 139 |
sys.exit(1)
|
- |
|
| 140 |
pp.pprint(client.getMinPaymentAmount())
|
- |
|
| 141 |
|
134 |
|
| 142 |
transport.close()
|
135 |
transport.close()
|