| Line 84... |
Line 84... |
| 84 |
print ' getOursGoodWarehouseIdsForLocation(i64 state_id)'
|
84 |
print ' getOursGoodWarehouseIdsForLocation(i64 state_id)'
|
| 85 |
print ' i64 getHoldInventoryDetailForItemForWarehouseIdExceptSource(i64 id, i64 warehouse_id, i64 source)'
|
85 |
print ' i64 getHoldInventoryDetailForItemForWarehouseIdExceptSource(i64 id, i64 warehouse_id, i64 source)'
|
| 86 |
print ' SnapdealInventoryItem getSnapdealInventoryForItem(i64 item_id)'
|
86 |
print ' SnapdealInventoryItem getSnapdealInventoryForItem(i64 item_id)'
|
| 87 |
print ' void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem)'
|
87 |
print ' void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem)'
|
| 88 |
print ' double getNlcForWarehouse(i64 warehouse_id, i64 item_id)'
|
88 |
print ' double getNlcForWarehouse(i64 warehouse_id, i64 item_id)'
|
| 89 |
print ' i64 getLastUpdatedTimeForSnapdealInventory()'
|
- |
|
| 90 |
print ' void addOrUpdateAllAmazonFbaInventory( allamazonfbainventorysnapshot)'
|
89 |
print ' void addOrUpdateAllAmazonFbaInventory( allamazonfbainventorysnapshot)'
|
| - |
|
90 |
print ' void addOrUpdateAllSnapdealInventory( allsnapdealinventorysnapshot)'
|
| - |
|
91 |
print ' getSnapdealInventorySnapshot()'
|
| 91 |
print ''
|
92 |
print ''
|
| 92 |
sys.exit(0)
|
93 |
sys.exit(0)
|
| 93 |
|
94 |
|
| 94 |
pp = pprint.PrettyPrinter(indent = 2)
|
95 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 95 |
host = 'localhost'
|
96 |
host = 'localhost'
|
| Line 526... |
Line 527... |
| 526 |
if len(args) != 2:
|
527 |
if len(args) != 2:
|
| 527 |
print 'getNlcForWarehouse requires 2 args'
|
528 |
print 'getNlcForWarehouse requires 2 args'
|
| 528 |
sys.exit(1)
|
529 |
sys.exit(1)
|
| 529 |
pp.pprint(client.getNlcForWarehouse(eval(args[0]),eval(args[1]),))
|
530 |
pp.pprint(client.getNlcForWarehouse(eval(args[0]),eval(args[1]),))
|
| 530 |
|
531 |
|
| 531 |
elif cmd == 'getLastUpdatedTimeForSnapdealInventory':
|
- |
|
| 532 |
if len(args) != 0:
|
- |
|
| 533 |
print 'getLastUpdatedTimeForSnapdealInventory requires 0 args'
|
- |
|
| 534 |
sys.exit(1)
|
- |
|
| 535 |
pp.pprint(client.getLastUpdatedTimeForSnapdealInventory())
|
- |
|
| 536 |
|
- |
|
| 537 |
elif cmd == 'addOrUpdateAllAmazonFbaInventory':
|
532 |
elif cmd == 'addOrUpdateAllAmazonFbaInventory':
|
| 538 |
if len(args) != 1:
|
533 |
if len(args) != 1:
|
| 539 |
print 'addOrUpdateAllAmazonFbaInventory requires 1 args'
|
534 |
print 'addOrUpdateAllAmazonFbaInventory requires 1 args'
|
| 540 |
sys.exit(1)
|
535 |
sys.exit(1)
|
| 541 |
pp.pprint(client.addOrUpdateAllAmazonFbaInventory(eval(args[0]),))
|
536 |
pp.pprint(client.addOrUpdateAllAmazonFbaInventory(eval(args[0]),))
|
| 542 |
|
537 |
|
| - |
|
538 |
elif cmd == 'addOrUpdateAllSnapdealInventory':
|
| - |
|
539 |
if len(args) != 1:
|
| - |
|
540 |
print 'addOrUpdateAllSnapdealInventory requires 1 args'
|
| - |
|
541 |
sys.exit(1)
|
| - |
|
542 |
pp.pprint(client.addOrUpdateAllSnapdealInventory(eval(args[0]),))
|
| - |
|
543 |
|
| - |
|
544 |
elif cmd == 'getSnapdealInventorySnapshot':
|
| - |
|
545 |
if len(args) != 0:
|
| - |
|
546 |
print 'getSnapdealInventorySnapshot requires 0 args'
|
| - |
|
547 |
sys.exit(1)
|
| - |
|
548 |
pp.pprint(client.getSnapdealInventorySnapshot())
|
| - |
|
549 |
|
| 543 |
else:
|
550 |
else:
|
| 544 |
print 'Unrecognized method %s' % cmd
|
551 |
print 'Unrecognized method %s' % cmd
|
| 545 |
sys.exit(1)
|
552 |
sys.exit(1)
|
| 546 |
|
553 |
|
| 547 |
transport.close()
|
554 |
transport.close()
|