| Line 63... |
Line 63... |
| 63 |
print ' getIgnoredWarehouseidsAndItemids()'
|
63 |
print ' getIgnoredWarehouseidsAndItemids()'
|
| 64 |
print ' bool insertItemtoIgnoreInventoryUpdatelist(i64 item_id, i64 warehouse_id)'
|
64 |
print ' bool insertItemtoIgnoreInventoryUpdatelist(i64 item_id, i64 warehouse_id)'
|
| 65 |
print ' bool deleteItemFromIgnoredInventoryUpdateList(i64 item_id, i64 warehouse_id)'
|
65 |
print ' bool deleteItemFromIgnoredInventoryUpdateList(i64 item_id, i64 warehouse_id)'
|
| 66 |
print ' i32 getAllIgnoredInventoryupdateItemsCount()'
|
66 |
print ' i32 getAllIgnoredInventoryupdateItemsCount()'
|
| 67 |
print ' getIgnoredInventoryUpdateItemids(i32 offset, i32 limit)'
|
67 |
print ' getIgnoredInventoryUpdateItemids(i32 offset, i32 limit)'
|
| - |
|
68 |
print ' void updateItemStockPurchaseParams(i64 item_id, i32 numOfDaysStock, i64 minStockLevel)'
|
| - |
|
69 |
print ' ItemStockPurchaseParams getItemStockPurchaseParams(i64 itemId)'
|
| - |
|
70 |
print ' void addOosStatusForItem( oosStatusMap, i64 date)'
|
| - |
|
71 |
print ' getOosStatusesForXDaysForItem(i64 itemId, i32 days)'
|
| - |
|
72 |
print ' getNonZeroItemStockPurchaseParams()'
|
| - |
|
73 |
print ' getBillableInventoryAndPendingOrders()'
|
| - |
|
74 |
print ' string getWarehouseName(i64 warehouse_id)'
|
| - |
|
75 |
print ' AmazonInventorySnapshot getAmazonInventoryForItem(i64 item_id)'
|
| - |
|
76 |
print ' getAllAmazonInventory()'
|
| - |
|
77 |
print ' void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot)'
|
| 68 |
print ''
|
78 |
print ''
|
| 69 |
sys.exit(0)
|
79 |
sys.exit(0)
|
| 70 |
|
80 |
|
| 71 |
pp = pprint.PrettyPrinter(indent = 2)
|
81 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 72 |
host = 'localhost'
|
82 |
host = 'localhost'
|
| Line 377... |
Line 387... |
| 377 |
if len(args) != 2:
|
387 |
if len(args) != 2:
|
| 378 |
print 'getIgnoredInventoryUpdateItemids requires 2 args'
|
388 |
print 'getIgnoredInventoryUpdateItemids requires 2 args'
|
| 379 |
sys.exit(1)
|
389 |
sys.exit(1)
|
| 380 |
pp.pprint(client.getIgnoredInventoryUpdateItemids(eval(args[0]),eval(args[1]),))
|
390 |
pp.pprint(client.getIgnoredInventoryUpdateItemids(eval(args[0]),eval(args[1]),))
|
| 381 |
|
391 |
|
| - |
|
392 |
elif cmd == 'updateItemStockPurchaseParams':
|
| - |
|
393 |
if len(args) != 3:
|
| - |
|
394 |
print 'updateItemStockPurchaseParams requires 3 args'
|
| - |
|
395 |
sys.exit(1)
|
| - |
|
396 |
pp.pprint(client.updateItemStockPurchaseParams(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| - |
|
397 |
|
| - |
|
398 |
elif cmd == 'getItemStockPurchaseParams':
|
| - |
|
399 |
if len(args) != 1:
|
| - |
|
400 |
print 'getItemStockPurchaseParams requires 1 args'
|
| - |
|
401 |
sys.exit(1)
|
| - |
|
402 |
pp.pprint(client.getItemStockPurchaseParams(eval(args[0]),))
|
| - |
|
403 |
|
| - |
|
404 |
elif cmd == 'addOosStatusForItem':
|
| - |
|
405 |
if len(args) != 2:
|
| - |
|
406 |
print 'addOosStatusForItem requires 2 args'
|
| - |
|
407 |
sys.exit(1)
|
| - |
|
408 |
pp.pprint(client.addOosStatusForItem(eval(args[0]),eval(args[1]),))
|
| - |
|
409 |
|
| - |
|
410 |
elif cmd == 'getOosStatusesForXDaysForItem':
|
| - |
|
411 |
if len(args) != 2:
|
| - |
|
412 |
print 'getOosStatusesForXDaysForItem requires 2 args'
|
| - |
|
413 |
sys.exit(1)
|
| - |
|
414 |
pp.pprint(client.getOosStatusesForXDaysForItem(eval(args[0]),eval(args[1]),))
|
| - |
|
415 |
|
| - |
|
416 |
elif cmd == 'getNonZeroItemStockPurchaseParams':
|
| - |
|
417 |
if len(args) != 0:
|
| - |
|
418 |
print 'getNonZeroItemStockPurchaseParams requires 0 args'
|
| - |
|
419 |
sys.exit(1)
|
| - |
|
420 |
pp.pprint(client.getNonZeroItemStockPurchaseParams())
|
| - |
|
421 |
|
| - |
|
422 |
elif cmd == 'getBillableInventoryAndPendingOrders':
|
| - |
|
423 |
if len(args) != 0:
|
| - |
|
424 |
print 'getBillableInventoryAndPendingOrders requires 0 args'
|
| - |
|
425 |
sys.exit(1)
|
| - |
|
426 |
pp.pprint(client.getBillableInventoryAndPendingOrders())
|
| - |
|
427 |
|
| - |
|
428 |
elif cmd == 'getWarehouseName':
|
| - |
|
429 |
if len(args) != 1:
|
| - |
|
430 |
print 'getWarehouseName requires 1 args'
|
| - |
|
431 |
sys.exit(1)
|
| - |
|
432 |
pp.pprint(client.getWarehouseName(eval(args[0]),))
|
| - |
|
433 |
|
| - |
|
434 |
elif cmd == 'getAmazonInventoryForItem':
|
| - |
|
435 |
if len(args) != 1:
|
| - |
|
436 |
print 'getAmazonInventoryForItem requires 1 args'
|
| - |
|
437 |
sys.exit(1)
|
| - |
|
438 |
pp.pprint(client.getAmazonInventoryForItem(eval(args[0]),))
|
| - |
|
439 |
|
| - |
|
440 |
elif cmd == 'getAllAmazonInventory':
|
| - |
|
441 |
if len(args) != 0:
|
| - |
|
442 |
print 'getAllAmazonInventory requires 0 args'
|
| - |
|
443 |
sys.exit(1)
|
| - |
|
444 |
pp.pprint(client.getAllAmazonInventory())
|
| - |
|
445 |
|
| - |
|
446 |
elif cmd == 'addOrUpdateAmazonInventoryForItem':
|
| - |
|
447 |
if len(args) != 1:
|
| - |
|
448 |
print 'addOrUpdateAmazonInventoryForItem requires 1 args'
|
| - |
|
449 |
sys.exit(1)
|
| - |
|
450 |
pp.pprint(client.addOrUpdateAmazonInventoryForItem(eval(args[0]),))
|
| - |
|
451 |
|
| 382 |
else:
|
452 |
else:
|
| 383 |
print 'Unrecognized method %s' % cmd
|
453 |
print 'Unrecognized method %s' % cmd
|
| 384 |
sys.exit(1)
|
454 |
sys.exit(1)
|
| 385 |
|
455 |
|
| 386 |
transport.close()
|
456 |
transport.close()
|