Subversion Repositories SmartDukaan

Rev

Rev 623 | Rev 646 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 623 Rev 632
Line 85... Line 85...
85
*/
85
*/
86
	//all add and update methods - added by Ashish
86
	//all add and update methods - added by Ashish
87
	i64 addItem(1:Item item) throws (1:InventoryServiceException cex),
87
	i64 addItem(1:Item item) throws (1:InventoryServiceException cex),
88
	i64 updateItem(1:Item item) throws (1:InventoryServiceException cex),
88
	i64 updateItem(1:Item item) throws (1:InventoryServiceException cex),
89
	i64 addWarehouse(1:Warehouse warehouse) throws (1:InventoryServiceException cex),
89
	i64 addWarehouse(1:Warehouse warehouse) throws (1:InventoryServiceException cex),
90
	bool isActive(1:i64 catalogItemId) throws (1:InventoryServiceException isex),
90
	bool isActive(1:i64 itemId) throws (1:InventoryServiceException isex),
91
	void updateInventory(1:i64 warehouse_id, 2:string timestamp, 3:map<string, i64> availability) throws (1:InventoryServiceException cex),
91
	void updateInventory(1:i64 warehouse_id, 2:string timestamp, 3:map<string, i64> availability) throws (1:InventoryServiceException cex),
92
	// commented right now. write on based of requirement
92
	// commented right now. write on based of requirement
93
	// void updatePrice(1:i64 item_id, 2:i64 warehouse_id, 3:double price) throws (1:InventoryServiceException cex),
93
	// void updatePrice(1:i64 item_id, 2:i64 warehouse_id, 3:double price) throws (1:InventoryServiceException cex),
94
	//all delete methods
94
	//all delete methods
95
	void retireWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
95
	void retireWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
Line 98... Line 98...
98
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:InventoryServiceException cex),
98
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:InventoryServiceException cex),
99
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:InventoryServiceException cex),
99
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:InventoryServiceException cex),
100
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:InventoryServiceException cex),
100
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:InventoryServiceException cex),
101
	//Other accessor methods - added by Ashish
101
	//Other accessor methods - added by Ashish
102
	Item getItem(1:i64 item_id) throws (1:InventoryServiceException cex),
102
	Item getItem(1:i64 item_id) throws (1:InventoryServiceException cex),
103
	Item getItemByCatalogId(1:i64 catalog_item_id) throws  (1:InventoryServiceException cex),
103
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:InventoryServiceException cex),
104
	list<Item> getAllItems(1:bool isActive) throws (1:InventoryServiceException cex),
104
	list<Item> getAllItems(1:bool isActive) throws (1:InventoryServiceException cex),
105
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:InventoryServiceException cex),
105
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:InventoryServiceException cex),
106
	ItemInventory getItemInventory(1:i64 item_id) throws (1:InventoryServiceException cex),
106
	ItemInventory getItemInventory(1:i64 item_id) throws (1:InventoryServiceException cex),
-
 
107
	ItemInventory getItemInventoryByItemId(1:i64 item_id) throws (1:InventoryServiceException cex),
107
	ItemInventory getItemInventoryByCatalogId(1:i64 item_id) throws (1:InventoryServiceException cex),
108
	//ItemInventory getItemInventoryByCatalogId(1:i64 item_id) throws (1:InventoryServiceException cex),
108
	i64 getItemAvailibilityAtWarehouse(1:i64 warehouse_id, 2:i64 item_id) throws (1:InventoryServiceException cex),
109
	i64 getItemAvailibilityAtWarehouse(1:i64 warehouse_id, 2:i64 item_id) throws (1:InventoryServiceException cex),
109
	list<Warehouse> getAllWarehouses(1:bool isActive) throws (1:InventoryServiceException cex),
110
	list<Warehouse> getAllWarehouses(1:bool isActive) throws (1:InventoryServiceException cex),
110
	Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
111
	Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
111
	list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
112
	list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
112
	list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
113
	list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
Line 120... Line 121...
120
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 category) throws (1:InventoryServiceException cex),
121
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 category) throws (1:InventoryServiceException cex),
121
	i64 getBestDealsCount() throws (1:InventoryServiceException cex),
122
	i64 getBestDealsCount() throws (1:InventoryServiceException cex),
122
	
123
	
123
	list<Item> getLatestArrivals() throws (1:InventoryServiceException isex),
124
	list<Item> getLatestArrivals() throws (1:InventoryServiceException isex),
124
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 category) throws (1:InventoryServiceException cex),
125
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 category) throws (1:InventoryServiceException cex),
125
	i64 getLatestArrivalsCount() throws (1:InventoryServiceException cex)
126
	i64 getLatestArrivalsCount() throws (1:InventoryServiceException cex),
-
 
127
	
-
 
128
	bool putCategoryObject(1:binary object),
-
 
129
	binary getCategoryObject()
126
}
130
}
127
 
131