| Line 28... |
Line 28... |
| 28 |
print ' TransactionStatus getTransactionStatus(i64 transactionId)'
|
28 |
print ' TransactionStatus getTransactionStatus(i64 transactionId)'
|
| 29 |
print ' bool changeTransactionStatus(i64 transactionId, TransactionStatus status, string description)'
|
29 |
print ' bool changeTransactionStatus(i64 transactionId, TransactionStatus status, string description)'
|
| 30 |
print ' bool enqueueTransactionInfoEmail(i64 transactionId)'
|
30 |
print ' bool enqueueTransactionInfoEmail(i64 transactionId)'
|
| 31 |
print ' getAllOrders(OrderStatus status, i64 from_date, i64 to_date, i64 warehouse_id)'
|
31 |
print ' getAllOrders(OrderStatus status, i64 from_date, i64 to_date, i64 warehouse_id)'
|
| 32 |
print ' getOrdersByBillingDate(OrderStatus status, i64 start_billing_date, i64 end_billing_date, i64 warehouse_id)'
|
32 |
print ' getOrdersByBillingDate(OrderStatus status, i64 start_billing_date, i64 end_billing_date, i64 warehouse_id)'
|
| 33 |
print ' getOrdersByShippingDate(i64 fromShippingDate, i64 toShippingDate, i64 providerId, i64 warehouseId)'
|
33 |
print ' getOrdersByShippingDate(i64 fromShippingDate, i64 toShippingDate, i64 providerId, i64 warehouseId, bool cod)'
|
| 34 |
print ' getReturnableOrdersForCustomer(i64 customer_id, i64 limit)'
|
34 |
print ' getReturnableOrdersForCustomer(i64 customer_id, i64 limit)'
|
| 35 |
print ' getCancellableOrdersForCustomer(i64 customer_id, i64 limit)'
|
35 |
print ' getCancellableOrdersForCustomer(i64 customer_id, i64 limit)'
|
| 36 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
36 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
| 37 |
print ' getOrdersForTransaction(i64 transactionId, i64 customerId)'
|
37 |
print ' getOrdersForTransaction(i64 transactionId, i64 customerId)'
|
| 38 |
print ' getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date, statuses)'
|
38 |
print ' getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date, statuses)'
|
| Line 69... |
Line 69... |
| 69 |
print ' bool refundOrder(i64 orderId, string refundedBy, string reason)'
|
69 |
print ' bool refundOrder(i64 orderId, string refundedBy, string reason)'
|
| 70 |
print ' getReturnOrders(i64 warehouseId, i64 fromDate, i64 toDate)'
|
70 |
print ' getReturnOrders(i64 warehouseId, i64 fromDate, i64 toDate)'
|
| 71 |
print ' ReturnOrder getReturnOrder(i64 id)'
|
71 |
print ' ReturnOrder getReturnOrder(i64 id)'
|
| 72 |
print ' void processReturn(i64 returnOrderId)'
|
72 |
print ' void processReturn(i64 returnOrderId)'
|
| 73 |
print ' i64 createPurchaseOrder(i64 warehouseId)'
|
73 |
print ' i64 createPurchaseOrder(i64 warehouseId)'
|
| - |
|
74 |
print ' Order updateWeight(i64 orderId, double weight)'
|
| 74 |
print ''
|
75 |
print ''
|
| 75 |
sys.exit(0)
|
76 |
sys.exit(0)
|
| 76 |
|
77 |
|
| 77 |
pp = pprint.PrettyPrinter(indent = 2)
|
78 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 78 |
host = 'localhost'
|
79 |
host = 'localhost'
|
| Line 174... |
Line 175... |
| 174 |
print 'getOrdersByBillingDate requires 4 args'
|
175 |
print 'getOrdersByBillingDate requires 4 args'
|
| 175 |
sys.exit(1)
|
176 |
sys.exit(1)
|
| 176 |
pp.pprint(client.getOrdersByBillingDate(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
177 |
pp.pprint(client.getOrdersByBillingDate(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
| 177 |
|
178 |
|
| 178 |
elif cmd == 'getOrdersByShippingDate':
|
179 |
elif cmd == 'getOrdersByShippingDate':
|
| 179 |
if len(args) != 4:
|
180 |
if len(args) != 5:
|
| 180 |
print 'getOrdersByShippingDate requires 4 args'
|
181 |
print 'getOrdersByShippingDate requires 5 args'
|
| 181 |
sys.exit(1)
|
182 |
sys.exit(1)
|
| 182 |
pp.pprint(client.getOrdersByShippingDate(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
183 |
pp.pprint(client.getOrdersByShippingDate(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
| 183 |
|
184 |
|
| 184 |
elif cmd == 'getReturnableOrdersForCustomer':
|
185 |
elif cmd == 'getReturnableOrdersForCustomer':
|
| 185 |
if len(args) != 2:
|
186 |
if len(args) != 2:
|
| 186 |
print 'getReturnableOrdersForCustomer requires 2 args'
|
187 |
print 'getReturnableOrdersForCustomer requires 2 args'
|
| 187 |
sys.exit(1)
|
188 |
sys.exit(1)
|
| Line 419... |
Line 420... |
| 419 |
if len(args) != 1:
|
420 |
if len(args) != 1:
|
| 420 |
print 'createPurchaseOrder requires 1 args'
|
421 |
print 'createPurchaseOrder requires 1 args'
|
| 421 |
sys.exit(1)
|
422 |
sys.exit(1)
|
| 422 |
pp.pprint(client.createPurchaseOrder(eval(args[0]),))
|
423 |
pp.pprint(client.createPurchaseOrder(eval(args[0]),))
|
| 423 |
|
424 |
|
| - |
|
425 |
elif cmd == 'updateWeight':
|
| - |
|
426 |
if len(args) != 2:
|
| - |
|
427 |
print 'updateWeight requires 2 args'
|
| - |
|
428 |
sys.exit(1)
|
| - |
|
429 |
pp.pprint(client.updateWeight(eval(args[0]),eval(args[1]),))
|
| - |
|
430 |
|
| 424 |
else:
|
431 |
else:
|
| 425 |
print 'Unrecognized method %s' % cmd
|
432 |
print 'Unrecognized method %s' % cmd
|
| 426 |
sys.exit(1)
|
433 |
sys.exit(1)
|
| 427 |
|
434 |
|
| 428 |
transport.close()
|
435 |
transport.close()
|