| Line 36... |
Line 36... |
| 36 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
36 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
| 37 |
print ' bool addBillingDetails(i64 orderId, string invoice_number, string billed_by)'
|
37 |
print ' bool addBillingDetails(i64 orderId, string invoice_number, string billed_by)'
|
| 38 |
print ' bool addJacketNumber(i64 orderId, i64 jacketNumber)'
|
38 |
print ' bool addJacketNumber(i64 orderId, i64 jacketNumber)'
|
| 39 |
print ' bool acceptOrder(i64 orderId)'
|
39 |
print ' bool acceptOrder(i64 orderId)'
|
| 40 |
print ' bool billOrder(i64 orderId)'
|
40 |
print ' bool billOrder(i64 orderId)'
|
| 41 |
print ' getOrdersForTransaction(i64 transactionId)'
|
41 |
print ' getOrdersForTransaction(i64 transactionId, i64 customerId)'
|
| 42 |
print ' getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date, OrderStatus status)'
|
42 |
print ' getOrdersForCustomer(i64 customerId, i64 from_date, i64 to_date, OrderStatus status)'
|
| 43 |
print ' i64 createOrder(Order order)'
|
43 |
print ' i64 createOrder(Order order)'
|
| 44 |
print ' Order getOrder(i64 id)'
|
44 |
print ' Order getOrder(i64 id)'
|
| 45 |
print ' getLineItemsForOrder(i64 orderId)'
|
45 |
print ' getLineItemsForOrder(i64 orderId)'
|
| - |
|
46 |
print ' Order getOrderForCustomer(i64 orderId, i64 customerId)'
|
| 46 |
print ' batchOrders(i64 warehouseId)'
|
47 |
print ' batchOrders(i64 warehouseId)'
|
| 47 |
print ' bool markOrderAsOutOfStock(i64 orderId)'
|
48 |
print ' bool markOrderAsOutOfStock(i64 orderId)'
|
| 48 |
print ' bool markOrdersAsManifested(i64 warehouseId, i64 providerId)'
|
49 |
print ' bool markOrdersAsManifested(i64 warehouseId, i64 providerId)'
|
| 49 |
print ' markOrdersAsPickedUp(i64 providerId, pickupDetails)'
|
50 |
print ' markOrdersAsPickedUp(i64 providerId, pickupDetails)'
|
| 50 |
print ' void markOrdersAsDelivered(i64 providerId, deliveredOrders)'
|
51 |
print ' void markOrdersAsDelivered(i64 providerId, deliveredOrders)'
|
| Line 202... |
Line 203... |
| 202 |
print 'billOrder requires 1 args'
|
203 |
print 'billOrder requires 1 args'
|
| 203 |
sys.exit(1)
|
204 |
sys.exit(1)
|
| 204 |
pp.pprint(client.billOrder(eval(args[0]),))
|
205 |
pp.pprint(client.billOrder(eval(args[0]),))
|
| 205 |
|
206 |
|
| 206 |
elif cmd == 'getOrdersForTransaction':
|
207 |
elif cmd == 'getOrdersForTransaction':
|
| 207 |
if len(args) != 1:
|
208 |
if len(args) != 2:
|
| 208 |
print 'getOrdersForTransaction requires 1 args'
|
209 |
print 'getOrdersForTransaction requires 2 args'
|
| 209 |
sys.exit(1)
|
210 |
sys.exit(1)
|
| 210 |
pp.pprint(client.getOrdersForTransaction(eval(args[0]),))
|
211 |
pp.pprint(client.getOrdersForTransaction(eval(args[0]),eval(args[1]),))
|
| 211 |
|
212 |
|
| 212 |
elif cmd == 'getOrdersForCustomer':
|
213 |
elif cmd == 'getOrdersForCustomer':
|
| 213 |
if len(args) != 4:
|
214 |
if len(args) != 4:
|
| 214 |
print 'getOrdersForCustomer requires 4 args'
|
215 |
print 'getOrdersForCustomer requires 4 args'
|
| 215 |
sys.exit(1)
|
216 |
sys.exit(1)
|
| Line 231... |
Line 232... |
| 231 |
if len(args) != 1:
|
232 |
if len(args) != 1:
|
| 232 |
print 'getLineItemsForOrder requires 1 args'
|
233 |
print 'getLineItemsForOrder requires 1 args'
|
| 233 |
sys.exit(1)
|
234 |
sys.exit(1)
|
| 234 |
pp.pprint(client.getLineItemsForOrder(eval(args[0]),))
|
235 |
pp.pprint(client.getLineItemsForOrder(eval(args[0]),))
|
| 235 |
|
236 |
|
| - |
|
237 |
elif cmd == 'getOrderForCustomer':
|
| - |
|
238 |
if len(args) != 2:
|
| - |
|
239 |
print 'getOrderForCustomer requires 2 args'
|
| - |
|
240 |
sys.exit(1)
|
| - |
|
241 |
pp.pprint(client.getOrderForCustomer(eval(args[0]),eval(args[1]),))
|
| - |
|
242 |
|
| 236 |
elif cmd == 'batchOrders':
|
243 |
elif cmd == 'batchOrders':
|
| 237 |
if len(args) != 1:
|
244 |
if len(args) != 1:
|
| 238 |
print 'batchOrders requires 1 args'
|
245 |
print 'batchOrders requires 1 args'
|
| 239 |
sys.exit(1)
|
246 |
sys.exit(1)
|
| 240 |
pp.pprint(client.batchOrders(eval(args[0]),))
|
247 |
pp.pprint(client.batchOrders(eval(args[0]),))
|