| Line 33... |
Line 33... |
| 33 |
print ' getAllWarehouses(bool isActive)'
|
33 |
print ' getAllWarehouses(bool isActive)'
|
| 34 |
print ' Warehouse getWarehouse(i64 warehouse_id)'
|
34 |
print ' Warehouse getWarehouse(i64 warehouse_id)'
|
| 35 |
print ' getAllItemsForWarehouse(i64 warehouse_id)'
|
35 |
print ' getAllItemsForWarehouse(i64 warehouse_id)'
|
| 36 |
print ' bool isOrderBillable(i64 itemId, i64 warehouseId, i64 sourceId, i64 orderId)'
|
36 |
print ' bool isOrderBillable(i64 itemId, i64 warehouseId, i64 sourceId, i64 orderId)'
|
| 37 |
print ' bool reserveItemInWarehouse(i64 itemId, i64 warehouseId, i64 sourceId, i64 orderId, i64 createdTimestamp, i64 promisedShippingTimestamp, double quantity)'
|
37 |
print ' bool reserveItemInWarehouse(i64 itemId, i64 warehouseId, i64 sourceId, i64 orderId, i64 createdTimestamp, i64 promisedShippingTimestamp, double quantity)'
|
| - |
|
38 |
print ' bool updateReservationForOrder(i64 itemId, i64 warehouseId, i64 sourceId, i64 orderId, i64 createdTimestamp, i64 promisedShippingTimestamp, double quantity)'
|
| 38 |
print ' bool reduceReservationCount(i64 itemId, i64 warehouseId, i64 sourceId, i64 orderId, double quantity)'
|
39 |
print ' bool reduceReservationCount(i64 itemId, i64 warehouseId, i64 sourceId, i64 orderId, double quantity)'
|
| 39 |
print ' VendorItemPricing getItemPricing(i64 itemId, i64 vendorId)'
|
40 |
print ' VendorItemPricing getItemPricing(i64 itemId, i64 vendorId)'
|
| 40 |
print ' getAllItemPricing(i64 itemId)'
|
41 |
print ' getAllItemPricing(i64 itemId)'
|
| 41 |
print ' void addVendorItemPricing(VendorItemPricing vendorItemPricing)'
|
42 |
print ' void addVendorItemPricing(VendorItemPricing vendorItemPricing)'
|
| 42 |
print ' Vendor getVendor(i64 vendorId)'
|
43 |
print ' Vendor getVendor(i64 vendorId)'
|
| Line 73... |
Line 74... |
| 73 |
print ' getBillableInventoryAndPendingOrders()'
|
74 |
print ' getBillableInventoryAndPendingOrders()'
|
| 74 |
print ' string getWarehouseName(i64 warehouse_id)'
|
75 |
print ' string getWarehouseName(i64 warehouse_id)'
|
| 75 |
print ' AmazonInventorySnapshot getAmazonInventoryForItem(i64 item_id)'
|
76 |
print ' AmazonInventorySnapshot getAmazonInventoryForItem(i64 item_id)'
|
| 76 |
print ' getAllAmazonInventory()'
|
77 |
print ' getAllAmazonInventory()'
|
| 77 |
print ' void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot)'
|
78 |
print ' void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot)'
|
| - |
|
79 |
print ' string getLastNdaySaleForItem(i64 itemId, i64 numberOfDays)'
|
| - |
|
80 |
print ' void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot)'
|
| - |
|
81 |
print ' void addUpdateHoldInventory(i64 itemId, i64 warehouseId, i64 holdQuantity, i64 source)'
|
| - |
|
82 |
print ' i64 getAmazonFbaItemInventory(i64 itemId)'
|
| - |
|
83 |
print ' getAllNonzeroAmazonFbaItemInventory()'
|
| 78 |
print ''
|
84 |
print ''
|
| 79 |
sys.exit(0)
|
85 |
sys.exit(0)
|
| 80 |
|
86 |
|
| 81 |
pp = pprint.PrettyPrinter(indent = 2)
|
87 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 82 |
host = 'localhost'
|
88 |
host = 'localhost'
|
| Line 207... |
Line 213... |
| 207 |
if len(args) != 7:
|
213 |
if len(args) != 7:
|
| 208 |
print 'reserveItemInWarehouse requires 7 args'
|
214 |
print 'reserveItemInWarehouse requires 7 args'
|
| 209 |
sys.exit(1)
|
215 |
sys.exit(1)
|
| 210 |
pp.pprint(client.reserveItemInWarehouse(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),))
|
216 |
pp.pprint(client.reserveItemInWarehouse(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),))
|
| 211 |
|
217 |
|
| - |
|
218 |
elif cmd == 'updateReservationForOrder':
|
| - |
|
219 |
if len(args) != 7:
|
| - |
|
220 |
print 'updateReservationForOrder requires 7 args'
|
| - |
|
221 |
sys.exit(1)
|
| - |
|
222 |
pp.pprint(client.updateReservationForOrder(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),))
|
| - |
|
223 |
|
| 212 |
elif cmd == 'reduceReservationCount':
|
224 |
elif cmd == 'reduceReservationCount':
|
| 213 |
if len(args) != 5:
|
225 |
if len(args) != 5:
|
| 214 |
print 'reduceReservationCount requires 5 args'
|
226 |
print 'reduceReservationCount requires 5 args'
|
| 215 |
sys.exit(1)
|
227 |
sys.exit(1)
|
| 216 |
pp.pprint(client.reduceReservationCount(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
228 |
pp.pprint(client.reduceReservationCount(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
| Line 447... |
Line 459... |
| 447 |
if len(args) != 1:
|
459 |
if len(args) != 1:
|
| 448 |
print 'addOrUpdateAmazonInventoryForItem requires 1 args'
|
460 |
print 'addOrUpdateAmazonInventoryForItem requires 1 args'
|
| 449 |
sys.exit(1)
|
461 |
sys.exit(1)
|
| 450 |
pp.pprint(client.addOrUpdateAmazonInventoryForItem(eval(args[0]),))
|
462 |
pp.pprint(client.addOrUpdateAmazonInventoryForItem(eval(args[0]),))
|
| 451 |
|
463 |
|
| - |
|
464 |
elif cmd == 'getLastNdaySaleForItem':
|
| - |
|
465 |
if len(args) != 2:
|
| - |
|
466 |
print 'getLastNdaySaleForItem requires 2 args'
|
| - |
|
467 |
sys.exit(1)
|
| - |
|
468 |
pp.pprint(client.getLastNdaySaleForItem(eval(args[0]),eval(args[1]),))
|
| - |
|
469 |
|
| - |
|
470 |
elif cmd == 'addOrUpdateAmazonFbaInventory':
|
| - |
|
471 |
if len(args) != 1:
|
| - |
|
472 |
print 'addOrUpdateAmazonFbaInventory requires 1 args'
|
| - |
|
473 |
sys.exit(1)
|
| - |
|
474 |
pp.pprint(client.addOrUpdateAmazonFbaInventory(eval(args[0]),))
|
| - |
|
475 |
|
| - |
|
476 |
elif cmd == 'addUpdateHoldInventory':
|
| - |
|
477 |
if len(args) != 4:
|
| - |
|
478 |
print 'addUpdateHoldInventory requires 4 args'
|
| - |
|
479 |
sys.exit(1)
|
| - |
|
480 |
pp.pprint(client.addUpdateHoldInventory(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
| - |
|
481 |
|
| - |
|
482 |
elif cmd == 'getAmazonFbaItemInventory':
|
| - |
|
483 |
if len(args) != 1:
|
| - |
|
484 |
print 'getAmazonFbaItemInventory requires 1 args'
|
| - |
|
485 |
sys.exit(1)
|
| - |
|
486 |
pp.pprint(client.getAmazonFbaItemInventory(eval(args[0]),))
|
| - |
|
487 |
|
| - |
|
488 |
elif cmd == 'getAllNonzeroAmazonFbaItemInventory':
|
| - |
|
489 |
if len(args) != 0:
|
| - |
|
490 |
print 'getAllNonzeroAmazonFbaItemInventory requires 0 args'
|
| - |
|
491 |
sys.exit(1)
|
| - |
|
492 |
pp.pprint(client.getAllNonzeroAmazonFbaItemInventory())
|
| - |
|
493 |
|
| 452 |
else:
|
494 |
else:
|
| 453 |
print 'Unrecognized method %s' % cmd
|
495 |
print 'Unrecognized method %s' % cmd
|
| 454 |
sys.exit(1)
|
496 |
sys.exit(1)
|
| 455 |
|
497 |
|
| 456 |
transport.close()
|
498 |
transport.close()
|