Rev 95 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
namespace java in.shop2020.model.v1.catalognamespace py model.v1.catalog/**Objects*/struct ItemAttribs{//This is Naveen's struct1:i64 id,}struct Vendor{1:i64 id,2:string name}struct Warehouse{1:i64 id,2:string location,3:i64 vendor_id,}struct ItemInventory{1:i64 id,2:map<i64,i64> availability,3:map<i64, double> priceMatrix,4:i64 lastCheckedOn}struct ItemInventoryHistory{1:i64 item_id,2:i64 warehouse_id,3:i64 timestamp,4:i64 availability}struct Item{1:i64 id,2:i64 category_id,3:ItemAttribs itemAttribs,4:ItemInventory itemInventory}struct Category{1:i64 id,2:string name,3:list<Category> children,4:Category parent,5:bool isTopLevel,6:i64 addedOn}exception CatalogServiceException{1:i64 id,2:string message}service CatalogService{/**Content methods*//**Availability and inventory attributes*///all add and update methods - added by Ashishvoid addCategory(1:Category category) throws (1:CatalogServiceException cex),void addItemToCategory(1:Item item, 2:i64 category_id) throws (1:CatalogServiceException cex),void addItemAttribsToItem(1:ItemAttribs, 2:i64 item_id) throws (1:CatalogServiceException cex),void addItemInventoryToItem(1:ItemInventory, 2:i64 item_id) throws (1:CatalogServiceException cex),void addWarehouse(1:Warehouse warehouse) throws (1:CatalogServiceException cex),void addVendor(1:Vendor vendor) throws (1:CatalogServiceException cex),void updateInventory(1:i64 item_id, 2:i64 warehouse_id, 3: i64 quantity, 4:i64 timestamp) throws (1:CatalogServiceException cex),//Other accessor methods - added by AshishCategory getCategory(1:i64id) throws (1:CatalogServiceException cex),list<Category> getAllCategories() throws (1:CatalogServiceException cex),Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),list<Item> getAllItemsForCategory(1:i64 category_id) throws (1:CatalogServiceException cex),ItemAttribs getItemAtttribs(1:i64 item_id) throws (1:CatalogServiceException cex),ItemInventory getItemInventory(1:i64 item_id) throws (1:CatalogServiceException cex),ItemInventoryHistory getItemInventoryHistory(1:i64 id, 2:i64 item_id, 3:i64 warehousr_id, 4: i64 from, 5:i64 to ) throws (1:CatalogServiceException cex),Warehouse getWarehouse(1:i64 warehouse_id) throws (1:CatalogServiceException cex),list<Warehouse> getAllWarehousesForItem(1:i64 item_is) throws (1:CatalogServiceException cex),i64 getExpectedDeliveryTime(1:i64 item_id) throws (1:CatalogServiceException cex),}