| Line 26... |
Line 26... |
| 26 |
print ' getPaymentsForUser(i64 userId, i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
26 |
print ' getPaymentsForUser(i64 userId, i64 fromTime, i64 toTime, PaymentStatus status, i64 gatewayId)'
|
| 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, 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 ''
|
32 |
print ''
|
| 33 |
sys.exit(0)
|
33 |
sys.exit(0)
|
| 34 |
|
34 |
|
| 35 |
pp = pprint.PrettyPrinter(indent = 2)
|
35 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 36 |
host = 'localhost'
|
36 |
host = 'localhost'
|
| Line 118... |
Line 118... |
| 118 |
print 'getPaymentForTxnId requires 1 args'
|
118 |
print 'getPaymentForTxnId requires 1 args'
|
| 119 |
sys.exit(1)
|
119 |
sys.exit(1)
|
| 120 |
pp.pprint(client.getPaymentForTxnId(eval(args[0]),))
|
120 |
pp.pprint(client.getPaymentForTxnId(eval(args[0]),))
|
| 121 |
|
121 |
|
| 122 |
elif cmd == 'updatePaymentDetails':
|
122 |
elif cmd == 'updatePaymentDetails':
|
| 123 |
if len(args) != 11:
|
123 |
if len(args) != 12:
|
| 124 |
print 'updatePaymentDetails requires 11 args'
|
124 |
print 'updatePaymentDetails requires 12 args'
|
| 125 |
sys.exit(1)
|
125 |
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]),eval(args[10]),))
|
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]),))
|
| 127 |
|
127 |
|
| 128 |
transport.close()
|
128 |
transport.close()
|