| Line 55... |
Line 55... |
| 55 |
print ' getAllVendorItemMappings()'
|
55 |
print ' getAllVendorItemMappings()'
|
| 56 |
print ' getInventorySnapshot(i64 warehouseId)'
|
56 |
print ' getInventorySnapshot(i64 warehouseId)'
|
| 57 |
print ' void clearItemAvailabilityCache()'
|
57 |
print ' void clearItemAvailabilityCache()'
|
| 58 |
print ' void updateVendorString(i64 warehouseId, string vendorString)'
|
58 |
print ' void updateVendorString(i64 warehouseId, string vendorString)'
|
| 59 |
print ' void clearItemAvailabilityCacheForItem(i64 item_id)'
|
59 |
print ' void clearItemAvailabilityCacheForItem(i64 item_id)'
|
| - |
|
60 |
print ' i64 getOurWarehouseIdForVendor(i64 vendorId)'
|
| - |
|
61 |
print ' getItemAvailabilitiesAtOurWarehouses( item_ids)'
|
| - |
|
62 |
print ' getMonitoredWarehouseForVendors( vendorIds)'
|
| - |
|
63 |
print ' getIgnoredWarehouseidsAndItemids()'
|
| - |
|
64 |
print ' bool insertItemtoIgnoreInventoryUpdatelist(i64 item_id, i64 warehouse_id)'
|
| - |
|
65 |
print ' bool deleteItemFromIgnoredInventoryUpdateList(i64 item_id, i64 warehouse_id)'
|
| - |
|
66 |
print ' i32 getAllIgnoredInventoryupdateItemsCount()'
|
| - |
|
67 |
print ' getIgnoredInventoryUpdateItemids(i32 offset, i32 limit)'
|
| 60 |
print ''
|
68 |
print ''
|
| 61 |
sys.exit(0)
|
69 |
sys.exit(0)
|
| 62 |
|
70 |
|
| 63 |
pp = pprint.PrettyPrinter(indent = 2)
|
71 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 64 |
host = 'localhost'
|
72 |
host = 'localhost'
|
| Line 321... |
Line 329... |
| 321 |
if len(args) != 1:
|
329 |
if len(args) != 1:
|
| 322 |
print 'clearItemAvailabilityCacheForItem requires 1 args'
|
330 |
print 'clearItemAvailabilityCacheForItem requires 1 args'
|
| 323 |
sys.exit(1)
|
331 |
sys.exit(1)
|
| 324 |
pp.pprint(client.clearItemAvailabilityCacheForItem(eval(args[0]),))
|
332 |
pp.pprint(client.clearItemAvailabilityCacheForItem(eval(args[0]),))
|
| 325 |
|
333 |
|
| - |
|
334 |
elif cmd == 'getOurWarehouseIdForVendor':
|
| - |
|
335 |
if len(args) != 1:
|
| - |
|
336 |
print 'getOurWarehouseIdForVendor requires 1 args'
|
| - |
|
337 |
sys.exit(1)
|
| - |
|
338 |
pp.pprint(client.getOurWarehouseIdForVendor(eval(args[0]),))
|
| - |
|
339 |
|
| - |
|
340 |
elif cmd == 'getItemAvailabilitiesAtOurWarehouses':
|
| - |
|
341 |
if len(args) != 1:
|
| - |
|
342 |
print 'getItemAvailabilitiesAtOurWarehouses requires 1 args'
|
| - |
|
343 |
sys.exit(1)
|
| - |
|
344 |
pp.pprint(client.getItemAvailabilitiesAtOurWarehouses(eval(args[0]),))
|
| - |
|
345 |
|
| - |
|
346 |
elif cmd == 'getMonitoredWarehouseForVendors':
|
| - |
|
347 |
if len(args) != 1:
|
| - |
|
348 |
print 'getMonitoredWarehouseForVendors requires 1 args'
|
| - |
|
349 |
sys.exit(1)
|
| - |
|
350 |
pp.pprint(client.getMonitoredWarehouseForVendors(eval(args[0]),))
|
| - |
|
351 |
|
| - |
|
352 |
elif cmd == 'getIgnoredWarehouseidsAndItemids':
|
| - |
|
353 |
if len(args) != 0:
|
| - |
|
354 |
print 'getIgnoredWarehouseidsAndItemids requires 0 args'
|
| - |
|
355 |
sys.exit(1)
|
| - |
|
356 |
pp.pprint(client.getIgnoredWarehouseidsAndItemids())
|
| - |
|
357 |
|
| - |
|
358 |
elif cmd == 'insertItemtoIgnoreInventoryUpdatelist':
|
| - |
|
359 |
if len(args) != 2:
|
| - |
|
360 |
print 'insertItemtoIgnoreInventoryUpdatelist requires 2 args'
|
| - |
|
361 |
sys.exit(1)
|
| - |
|
362 |
pp.pprint(client.insertItemtoIgnoreInventoryUpdatelist(eval(args[0]),eval(args[1]),))
|
| - |
|
363 |
|
| - |
|
364 |
elif cmd == 'deleteItemFromIgnoredInventoryUpdateList':
|
| - |
|
365 |
if len(args) != 2:
|
| - |
|
366 |
print 'deleteItemFromIgnoredInventoryUpdateList requires 2 args'
|
| - |
|
367 |
sys.exit(1)
|
| - |
|
368 |
pp.pprint(client.deleteItemFromIgnoredInventoryUpdateList(eval(args[0]),eval(args[1]),))
|
| - |
|
369 |
|
| - |
|
370 |
elif cmd == 'getAllIgnoredInventoryupdateItemsCount':
|
| - |
|
371 |
if len(args) != 0:
|
| - |
|
372 |
print 'getAllIgnoredInventoryupdateItemsCount requires 0 args'
|
| - |
|
373 |
sys.exit(1)
|
| - |
|
374 |
pp.pprint(client.getAllIgnoredInventoryupdateItemsCount())
|
| - |
|
375 |
|
| - |
|
376 |
elif cmd == 'getIgnoredInventoryUpdateItemids':
|
| - |
|
377 |
if len(args) != 2:
|
| - |
|
378 |
print 'getIgnoredInventoryUpdateItemids requires 2 args'
|
| - |
|
379 |
sys.exit(1)
|
| - |
|
380 |
pp.pprint(client.getIgnoredInventoryUpdateItemids(eval(args[0]),eval(args[1]),))
|
| - |
|
381 |
|
| 326 |
else:
|
382 |
else:
|
| 327 |
print 'Unrecognized method %s' % cmd
|
383 |
print 'Unrecognized method %s' % cmd
|
| 328 |
sys.exit(1)
|
384 |
sys.exit(1)
|
| 329 |
|
385 |
|
| 330 |
transport.close()
|
386 |
transport.close()
|