| 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 ''
|
34 |
print ''
|
| 33 |
sys.exit(0)
|
35 |
sys.exit(0)
|
| 34 |
|
36 |
|
| 35 |
pp = pprint.PrettyPrinter(indent = 2)
|
37 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 36 |
host = 'localhost'
|
38 |
host = 'localhost'
|
| Line 123... |
Line 125... |
| 123 |
if len(args) != 12:
|
125 |
if len(args) != 12:
|
| 124 |
print 'updatePaymentDetails requires 12 args'
|
126 |
print 'updatePaymentDetails requires 12 args'
|
| 125 |
sys.exit(1)
|
127 |
sys.exit(1)
|
| 126 |
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]),))
|
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 |
|
129 |
|
| - |
|
130 |
elif cmd == 'getMaxPaymentAmount':
|
| - |
|
131 |
if len(args) != 0:
|
| - |
|
132 |
print 'getMaxPaymentAmount requires 0 args'
|
| - |
|
133 |
sys.exit(1)
|
| - |
|
134 |
pp.pprint(client.getMaxPaymentAmount())
|
| - |
|
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 |
|
| 128 |
transport.close()
|
142 |
transport.close()
|