| Line 306... |
Line 306... |
| 306 |
print ' bool markReturnTransactionComplete(i64 returnTransactionId)'
|
306 |
print ' bool markReturnTransactionComplete(i64 returnTransactionId)'
|
| 307 |
print ' bool refundReturnTransactionPayment( refundOrdersMap, i64 returntransactionId)'
|
307 |
print ' bool refundReturnTransactionPayment( refundOrdersMap, i64 returntransactionId)'
|
| 308 |
print ' getReturnTransactionsForCustomer( statusList, string customerMobile, string customerEmail, i64 returnTransactionId, i64 customerId)'
|
308 |
print ' getReturnTransactionsForCustomer( statusList, string customerMobile, string customerEmail, i64 returnTransactionId, i64 customerId)'
|
| 309 |
print ' bool verifyOrderForTransaction(i64 transactionId)'
|
309 |
print ' bool verifyOrderForTransaction(i64 transactionId)'
|
| 310 |
print ' getOrdersInBatchAsPromisedShipping( statuses, i64 offset, i64 limit, i64 warehouse_id, i64 source)'
|
310 |
print ' getOrdersInBatchAsPromisedShipping( statuses, i64 offset, i64 limit, i64 warehouse_id, i64 source)'
|
| - |
|
311 |
print ' void setOrderAttributeForMasterOrderId(string logisticsTransactionId, attributes)'
|
| - |
|
312 |
print ' bool updateMasterOrderAWB(string logisticsTransactionId, string airwayBillNo)'
|
| 311 |
print ''
|
313 |
print ''
|
| 312 |
sys.exit(0)
|
314 |
sys.exit(0)
|
| 313 |
|
315 |
|
| 314 |
pp = pprint.PrettyPrinter(indent = 2)
|
316 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 315 |
host = 'localhost'
|
317 |
host = 'localhost'
|
| Line 2078... |
Line 2080... |
| 2078 |
if len(args) != 5:
|
2080 |
if len(args) != 5:
|
| 2079 |
print 'getOrdersInBatchAsPromisedShipping requires 5 args'
|
2081 |
print 'getOrdersInBatchAsPromisedShipping requires 5 args'
|
| 2080 |
sys.exit(1)
|
2082 |
sys.exit(1)
|
| 2081 |
pp.pprint(client.getOrdersInBatchAsPromisedShipping(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
2083 |
pp.pprint(client.getOrdersInBatchAsPromisedShipping(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
| 2082 |
|
2084 |
|
| - |
|
2085 |
elif cmd == 'setOrderAttributeForMasterOrderId':
|
| - |
|
2086 |
if len(args) != 2:
|
| - |
|
2087 |
print 'setOrderAttributeForMasterOrderId requires 2 args'
|
| - |
|
2088 |
sys.exit(1)
|
| - |
|
2089 |
pp.pprint(client.setOrderAttributeForMasterOrderId(args[0],eval(args[1]),))
|
| - |
|
2090 |
|
| - |
|
2091 |
elif cmd == 'updateMasterOrderAWB':
|
| - |
|
2092 |
if len(args) != 2:
|
| - |
|
2093 |
print 'updateMasterOrderAWB requires 2 args'
|
| - |
|
2094 |
sys.exit(1)
|
| - |
|
2095 |
pp.pprint(client.updateMasterOrderAWB(args[0],args[1],))
|
| - |
|
2096 |
|
| 2083 |
else:
|
2097 |
else:
|
| 2084 |
print 'Unrecognized method %s' % cmd
|
2098 |
print 'Unrecognized method %s' % cmd
|
| 2085 |
sys.exit(1)
|
2099 |
sys.exit(1)
|
| 2086 |
|
2100 |
|
| 2087 |
transport.close()
|
2101 |
transport.close()
|