| Line 152... |
Line 152... |
| 152 |
*/
|
152 |
*/
|
| 153 |
Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
153 |
Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
| 154 |
list<i64> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
154 |
list<i64> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
| 155 |
|
155 |
|
| 156 |
/**
|
156 |
/**
|
| - |
|
157 |
Depending on reservation in the table, verify if we can bill this order or not.
|
| - |
|
158 |
*/
|
| - |
|
159 |
bool isOrderBillable(1:i64 itemId, 2:i64 warehouseId, 3:i64 sourceId, 4:i64 orderId),
|
| - |
|
160 |
|
| - |
|
161 |
/**
|
| 157 |
Increases the reservation count for an item in a warehouse. Should always succeed normally.
|
162 |
Increases the reservation count for an item in a warehouse. Should always succeed normally.
|
| 158 |
*/
|
163 |
*/
|
| 159 |
bool reserveItemInWarehouse(1:i64 itemId, 2:i64 warehouseId, 3:double quantity) throws (1:InventoryServiceException cex),
|
164 |
bool reserveItemInWarehouse(1:i64 itemId, 2:i64 warehouseId, 3:i64 sourceId, 4:i64 orderId, 5:i64 createdTimestamp, 6:i64 promisedShippingTimestamp, 7:double quantity) throws (1:InventoryServiceException cex),
|
| 160 |
|
165 |
|
| 161 |
/**
|
166 |
/**
|
| 162 |
Decreases the reservation count for an item in a warehouse. Should always succeed normally.
|
167 |
Decreases the reservation count for an item in a warehouse. Should always succeed normally.
|
| 163 |
*/
|
168 |
*/
|
| 164 |
bool reduceReservationCount(1:i64 itemId, 2:i64 warehouseId, 3:double quantity) throws (1:InventoryServiceException cex),
|
169 |
bool reduceReservationCount(1:i64 itemId, 2:i64 warehouseId, 3:i64 sourceId, 4:i64 orderId, 5:double quantity) throws (1:InventoryServiceException cex),
|
| 165 |
|
170 |
|
| 166 |
/**
|
171 |
/**
|
| 167 |
Returns the pricing information of an item associated with the vendor of the given warehouse.
|
172 |
Returns the pricing information of an item associated with the vendor of the given warehouse.
|
| 168 |
Raises an exception if either the item, vendor or the associated pricing information can't be found.
|
173 |
Raises an exception if either the item, vendor or the associated pricing information can't be found.
|
| 169 |
*/
|
174 |
*/
|