| Line 73... |
Line 73... |
| 73 |
1:i64 id,
|
73 |
1:i64 id,
|
| 74 |
2:string message
|
74 |
2:string message
|
| 75 |
}
|
75 |
}
|
| 76 |
|
76 |
|
| 77 |
service InventoryService{
|
77 |
service InventoryService{
|
| 78 |
|
- |
|
| 79 |
/**
|
- |
|
| 80 |
Content methods
|
- |
|
| 81 |
*/
|
- |
|
| 82 |
|
- |
|
| 83 |
/**
|
78 |
/**
|
| 84 |
Availability and inventory attributes
|
79 |
Availability and inventory attributes
|
| 85 |
*/
|
80 |
*/
|
| 86 |
//all add and update methods - added by Ashish
|
81 |
//all add and update methods - added by Ashish
|
| 87 |
i64 addItem(1:Item item) throws (1:InventoryServiceException cex),
|
82 |
i64 addItem(1:Item item) throws (1:InventoryServiceException cex),
|
| 88 |
i64 updateItem(1:Item item) throws (1:InventoryServiceException cex),
|
83 |
i64 updateItem(1:Item item) throws (1:InventoryServiceException cex),
|
| 89 |
i64 addWarehouse(1:Warehouse warehouse) throws (1:InventoryServiceException cex),
|
84 |
i64 addWarehouse(1:Warehouse warehouse) throws (1:InventoryServiceException cex),
|
| 90 |
bool isActive(1:i64 catalogItemId) throws (1:InventoryServiceException isex),
|
85 |
bool isActive(1:i64 catalogItemId) throws (1:InventoryServiceException isex),
|
| 91 |
// Commented by Rajveer:- replaced by new one below
|
- |
|
| 92 |
//void updateInventory(1:i64 item_id, 2:i64 warehouse_id, 3: i64 quantity, 4:i64 timestamp) throws (1:InventoryServiceException cex),
|
- |
|
| 93 |
void updateInventory(1:i64 warehouse_id, 2:string timestamp, 3:map<string, i64> availability) throws (1:InventoryServiceException cex),
|
86 |
void updateInventory(1:i64 warehouse_id, 2:string timestamp, 3:map<string, i64> availability) throws (1:InventoryServiceException cex),
|
| 94 |
// commented right now. write on based of requirement
|
87 |
// commented right now. write on based of requirement
|
| 95 |
// void updatePrice(1:i64 item_id, 2:i64 warehouse_id, 3:double price) throws (1:InventoryServiceException cex),
|
88 |
// void updatePrice(1:i64 item_id, 2:i64 warehouse_id, 3:double price) throws (1:InventoryServiceException cex),
|
| 96 |
//all delete methods
|
89 |
//all delete methods
|
| 97 |
void retireWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
90 |
void retireWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
| Line 112... |
Line 105... |
| 112 |
Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
105 |
Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
| 113 |
list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
|
106 |
list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 114 |
list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
107 |
list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
| 115 |
|
108 |
|
| 116 |
// for home page .... best deals, best sellers and latest arrivals
|
109 |
// for home page .... best deals, best sellers and latest arrivals
|
| - |
|
110 |
list<Item> getBestSellers() throws (1:InventoryServiceException isex),
|
| 117 |
list<i64> getBestSellers(1:i64 beginIndex, 2:i64 totalItems) throws (1:InventoryServiceException cex),
|
111 |
list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:InventoryServiceException cex),
|
| 118 |
i64 totalBestSellers() throws (1:InventoryServiceException cex),
|
112 |
i64 getBestSellersCount() throws (1:InventoryServiceException cex),
|
| - |
|
113 |
|
| - |
|
114 |
list<Item> getBestDeals() throws (1:InventoryServiceException isex),
|
| 119 |
list<i64> getBestDeals(1:i64 beginIndex, 2:i64 totalItems) throws (1:InventoryServiceException cex),
|
115 |
list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:InventoryServiceException cex),
|
| 120 |
i64 totalBestDeals() throws (1:InventoryServiceException cex),
|
116 |
i64 getBestDealsCount() throws (1:InventoryServiceException cex),
|
| - |
|
117 |
|
| - |
|
118 |
list<Item> getLatestArrivals() throws (1:InventoryServiceException isex),
|
| 121 |
list<i64> getLatestArrivals(1:i64 beginIndex, 2:i64 totalItems) throws (1:InventoryServiceException cex),
|
119 |
list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:InventoryServiceException cex),
|
| 122 |
i64 totalLatestArrivals() throws (1:InventoryServiceException cex)
|
120 |
i64 getLatestArrivalsCount() throws (1:InventoryServiceException cex)
|
| 123 |
}
|
121 |
}
|
| 124 |
|
122 |
|