| Line 27... |
Line 27... |
| 27 |
print ' getTransactionsForShoppingCartId(i64 shoppingCartId)'
|
27 |
print ' getTransactionsForShoppingCartId(i64 shoppingCartId)'
|
| 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 ' getAllOrders(OrderStatus status, i64 from_date, i64 to_date, i64 warehouse_id)'
|
30 |
print ' getAllOrders(OrderStatus status, i64 from_date, i64 to_date, i64 warehouse_id)'
|
| 31 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
31 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
| 32 |
print ' bool addBillingDetails(i64 orderId, string invoice_number, string billed_by)'
|
32 |
print ' bool addBillingDetails(i64 orderId, string invoice_number, i64 jacket_number, string billed_by)'
|
| 33 |
print ' getOrdersForTransaction(i64 transactionId)'
|
33 |
print ' getOrdersForTransaction(i64 transactionId)'
|
| 34 |
print ' getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date, OrderStatus status)'
|
34 |
print ' getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date, OrderStatus status)'
|
| 35 |
print ' i64 createOrder(Order order)'
|
35 |
print ' i64 createOrder(Order order)'
|
| 36 |
print ' Order getOrder(i64 id)'
|
36 |
print ' Order getOrder(i64 id)'
|
| 37 |
print ' getLineItemsForOrder(i64 orderId)'
|
37 |
print ' getLineItemsForOrder(i64 orderId)'
|
| Line 132... |
Line 132... |
| 132 |
print 'changeOrderStatus requires 3 args'
|
132 |
print 'changeOrderStatus requires 3 args'
|
| 133 |
sys.exit(1)
|
133 |
sys.exit(1)
|
| 134 |
pp.pprint(client.changeOrderStatus(eval(args[0]),eval(args[1]),args[2],))
|
134 |
pp.pprint(client.changeOrderStatus(eval(args[0]),eval(args[1]),args[2],))
|
| 135 |
|
135 |
|
| 136 |
elif cmd == 'addBillingDetails':
|
136 |
elif cmd == 'addBillingDetails':
|
| 137 |
if len(args) != 3:
|
137 |
if len(args) != 4:
|
| 138 |
print 'addBillingDetails requires 3 args'
|
138 |
print 'addBillingDetails requires 4 args'
|
| 139 |
sys.exit(1)
|
139 |
sys.exit(1)
|
| 140 |
pp.pprint(client.addBillingDetails(eval(args[0]),args[1],args[2],))
|
140 |
pp.pprint(client.addBillingDetails(eval(args[0]),args[1],eval(args[2]),args[3],))
|
| 141 |
|
141 |
|
| 142 |
elif cmd == 'getOrdersForTransaction':
|
142 |
elif cmd == 'getOrdersForTransaction':
|
| 143 |
if len(args) != 1:
|
143 |
if len(args) != 1:
|
| 144 |
print 'getOrdersForTransaction requires 1 args'
|
144 |
print 'getOrdersForTransaction requires 1 args'
|
| 145 |
sys.exit(1)
|
145 |
sys.exit(1)
|