| Line 68... |
Line 68... |
| 68 |
print ' getIgnoredInventoryUpdateItemids(i32 offset, i32 limit)'
|
68 |
print ' getIgnoredInventoryUpdateItemids(i32 offset, i32 limit)'
|
| 69 |
print ' void updateItemStockPurchaseParams(i64 item_id, i32 numOfDaysStock, i64 minStockLevel)'
|
69 |
print ' void updateItemStockPurchaseParams(i64 item_id, i32 numOfDaysStock, i64 minStockLevel)'
|
| 70 |
print ' ItemStockPurchaseParams getItemStockPurchaseParams(i64 itemId)'
|
70 |
print ' ItemStockPurchaseParams getItemStockPurchaseParams(i64 itemId)'
|
| 71 |
print ' void addOosStatusForItem( oosStatusMap, i64 date)'
|
71 |
print ' void addOosStatusForItem( oosStatusMap, i64 date)'
|
| 72 |
print ' getOosStatusesForXDaysForItem(i64 itemId, i32 sourceId, i32 days)'
|
72 |
print ' getOosStatusesForXDaysForItem(i64 itemId, i32 sourceId, i32 days)'
|
| - |
|
73 |
print ' getOosStatusesForXDays(i32 sourceId, i32 days)'
|
| - |
|
74 |
print ' getAllVendorItemPricing(i64 itemId, i64 vendorId)'
|
| 73 |
print ' getNonZeroItemStockPurchaseParams()'
|
75 |
print ' getNonZeroItemStockPurchaseParams()'
|
| 74 |
print ' getBillableInventoryAndPendingOrders()'
|
76 |
print ' getBillableInventoryAndPendingOrders()'
|
| 75 |
print ' string getWarehouseName(i64 warehouse_id)'
|
77 |
print ' string getWarehouseName(i64 warehouse_id)'
|
| 76 |
print ' AmazonInventorySnapshot getAmazonInventoryForItem(i64 item_id)'
|
78 |
print ' AmazonInventorySnapshot getAmazonInventoryForItem(i64 item_id)'
|
| 77 |
print ' getAllAmazonInventory()'
|
79 |
print ' getAllAmazonInventory()'
|
| 78 |
print ' void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot)'
|
80 |
print ' void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, i64 time)'
|
| 79 |
print ' string getLastNdaySaleForItem(i64 itemId, i64 numberOfDays)'
|
81 |
print ' string getLastNdaySaleForItem(i64 itemId, i64 numberOfDays)'
|
| 80 |
print ' void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot)'
|
82 |
print ' void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot)'
|
| 81 |
print ' void addUpdateHoldInventory(i64 itemId, i64 warehouseId, i64 holdQuantity, i64 source)'
|
83 |
print ' void addUpdateHoldInventory(i64 itemId, i64 warehouseId, i64 holdQuantity, i64 source)'
|
| 82 |
print ' i64 getAmazonFbaItemInventory(i64 itemId)'
|
84 |
print ' i64 getAmazonFbaItemInventory(i64 itemId)'
|
| 83 |
print ' getAllAmazonFbaItemInventory()'
|
85 |
print ' getAllAmazonFbaItemInventory()'
|
| Line 89... |
Line 91... |
| 89 |
print ' getHeldInventoryMapForItem(i64 item_id, i64 warehouse_id)'
|
91 |
print ' getHeldInventoryMapForItem(i64 item_id, i64 warehouse_id)'
|
| 90 |
print ' void addOrUpdateAllAmazonFbaInventory( allamazonfbainventorysnapshot)'
|
92 |
print ' void addOrUpdateAllAmazonFbaInventory( allamazonfbainventorysnapshot)'
|
| 91 |
print ' void addOrUpdateAllSnapdealInventory( allsnapdealinventorysnapshot)'
|
93 |
print ' void addOrUpdateAllSnapdealInventory( allsnapdealinventorysnapshot)'
|
| 92 |
print ' getSnapdealInventorySnapshot()'
|
94 |
print ' getSnapdealInventorySnapshot()'
|
| 93 |
print ' getHoldInventoryDetails(i64 itemId, i64 warehouseId, i64 source)'
|
95 |
print ' getHoldInventoryDetails(i64 itemId, i64 warehouseId, i64 source)'
|
| 94 |
print ' void addOrUpdateFlipkartInventorySnapshot( flipkartInventorySnapshot)'
|
96 |
print ' void addOrUpdateFlipkartInventorySnapshot( flipkartInventorySnapshot, i64 time)'
|
| 95 |
print ' getFlipkartInventorySnapshot()'
|
97 |
print ' getFlipkartInventorySnapshot()'
|
| - |
|
98 |
print ' FlipkartInventorySnapshot getFlipkartlInventoryForItem(i64 item_id)'
|
| 96 |
print ''
|
99 |
print ''
|
| 97 |
sys.exit(0)
|
100 |
sys.exit(0)
|
| 98 |
|
101 |
|
| 99 |
pp = pprint.PrettyPrinter(indent = 2)
|
102 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 100 |
host = 'localhost'
|
103 |
host = 'localhost'
|
| Line 435... |
Line 438... |
| 435 |
if len(args) != 3:
|
438 |
if len(args) != 3:
|
| 436 |
print 'getOosStatusesForXDaysForItem requires 3 args'
|
439 |
print 'getOosStatusesForXDaysForItem requires 3 args'
|
| 437 |
sys.exit(1)
|
440 |
sys.exit(1)
|
| 438 |
pp.pprint(client.getOosStatusesForXDaysForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
|
441 |
pp.pprint(client.getOosStatusesForXDaysForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| 439 |
|
442 |
|
| - |
|
443 |
elif cmd == 'getOosStatusesForXDays':
|
| - |
|
444 |
if len(args) != 2:
|
| - |
|
445 |
print 'getOosStatusesForXDays requires 2 args'
|
| - |
|
446 |
sys.exit(1)
|
| - |
|
447 |
pp.pprint(client.getOosStatusesForXDays(eval(args[0]),eval(args[1]),))
|
| - |
|
448 |
|
| - |
|
449 |
elif cmd == 'getAllVendorItemPricing':
|
| - |
|
450 |
if len(args) != 2:
|
| - |
|
451 |
print 'getAllVendorItemPricing requires 2 args'
|
| - |
|
452 |
sys.exit(1)
|
| - |
|
453 |
pp.pprint(client.getAllVendorItemPricing(eval(args[0]),eval(args[1]),))
|
| - |
|
454 |
|
| 440 |
elif cmd == 'getNonZeroItemStockPurchaseParams':
|
455 |
elif cmd == 'getNonZeroItemStockPurchaseParams':
|
| 441 |
if len(args) != 0:
|
456 |
if len(args) != 0:
|
| 442 |
print 'getNonZeroItemStockPurchaseParams requires 0 args'
|
457 |
print 'getNonZeroItemStockPurchaseParams requires 0 args'
|
| 443 |
sys.exit(1)
|
458 |
sys.exit(1)
|
| 444 |
pp.pprint(client.getNonZeroItemStockPurchaseParams())
|
459 |
pp.pprint(client.getNonZeroItemStockPurchaseParams())
|
| Line 466... |
Line 481... |
| 466 |
print 'getAllAmazonInventory requires 0 args'
|
481 |
print 'getAllAmazonInventory requires 0 args'
|
| 467 |
sys.exit(1)
|
482 |
sys.exit(1)
|
| 468 |
pp.pprint(client.getAllAmazonInventory())
|
483 |
pp.pprint(client.getAllAmazonInventory())
|
| 469 |
|
484 |
|
| 470 |
elif cmd == 'addOrUpdateAmazonInventoryForItem':
|
485 |
elif cmd == 'addOrUpdateAmazonInventoryForItem':
|
| 471 |
if len(args) != 1:
|
486 |
if len(args) != 2:
|
| 472 |
print 'addOrUpdateAmazonInventoryForItem requires 1 args'
|
487 |
print 'addOrUpdateAmazonInventoryForItem requires 2 args'
|
| 473 |
sys.exit(1)
|
488 |
sys.exit(1)
|
| 474 |
pp.pprint(client.addOrUpdateAmazonInventoryForItem(eval(args[0]),))
|
489 |
pp.pprint(client.addOrUpdateAmazonInventoryForItem(eval(args[0]),eval(args[1]),))
|
| 475 |
|
490 |
|
| 476 |
elif cmd == 'getLastNdaySaleForItem':
|
491 |
elif cmd == 'getLastNdaySaleForItem':
|
| 477 |
if len(args) != 2:
|
492 |
if len(args) != 2:
|
| 478 |
print 'getLastNdaySaleForItem requires 2 args'
|
493 |
print 'getLastNdaySaleForItem requires 2 args'
|
| 479 |
sys.exit(1)
|
494 |
sys.exit(1)
|
| Line 562... |
Line 577... |
| 562 |
print 'getHoldInventoryDetails requires 3 args'
|
577 |
print 'getHoldInventoryDetails requires 3 args'
|
| 563 |
sys.exit(1)
|
578 |
sys.exit(1)
|
| 564 |
pp.pprint(client.getHoldInventoryDetails(eval(args[0]),eval(args[1]),eval(args[2]),))
|
579 |
pp.pprint(client.getHoldInventoryDetails(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| 565 |
|
580 |
|
| 566 |
elif cmd == 'addOrUpdateFlipkartInventorySnapshot':
|
581 |
elif cmd == 'addOrUpdateFlipkartInventorySnapshot':
|
| 567 |
if len(args) != 1:
|
582 |
if len(args) != 2:
|
| 568 |
print 'addOrUpdateFlipkartInventorySnapshot requires 1 args'
|
583 |
print 'addOrUpdateFlipkartInventorySnapshot requires 2 args'
|
| 569 |
sys.exit(1)
|
584 |
sys.exit(1)
|
| 570 |
pp.pprint(client.addOrUpdateFlipkartInventorySnapshot(eval(args[0]),))
|
585 |
pp.pprint(client.addOrUpdateFlipkartInventorySnapshot(eval(args[0]),eval(args[1]),))
|
| 571 |
|
586 |
|
| 572 |
elif cmd == 'getFlipkartInventorySnapshot':
|
587 |
elif cmd == 'getFlipkartInventorySnapshot':
|
| 573 |
if len(args) != 0:
|
588 |
if len(args) != 0:
|
| 574 |
print 'getFlipkartInventorySnapshot requires 0 args'
|
589 |
print 'getFlipkartInventorySnapshot requires 0 args'
|
| 575 |
sys.exit(1)
|
590 |
sys.exit(1)
|
| 576 |
pp.pprint(client.getFlipkartInventorySnapshot())
|
591 |
pp.pprint(client.getFlipkartInventorySnapshot())
|
| 577 |
|
592 |
|
| - |
|
593 |
elif cmd == 'getFlipkartlInventoryForItem':
|
| - |
|
594 |
if len(args) != 1:
|
| - |
|
595 |
print 'getFlipkartlInventoryForItem requires 1 args'
|
| - |
|
596 |
sys.exit(1)
|
| - |
|
597 |
pp.pprint(client.getFlipkartlInventoryForItem(eval(args[0]),))
|
| - |
|
598 |
|
| 578 |
else:
|
599 |
else:
|
| 579 |
print 'Unrecognized method %s' % cmd
|
600 |
print 'Unrecognized method %s' % cmd
|
| 580 |
sys.exit(1)
|
601 |
sys.exit(1)
|
| 581 |
|
602 |
|
| 582 |
transport.close()
|
603 |
transport.close()
|