Interface WarehouseStockService
-
- All Known Implementing Classes:
DefaultWarehouseStockService
public interface WarehouseStockService
Service to get stock availability for a single warehouse.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StockLevelModel
createStockLevel(java.lang.String productCode, WarehouseModel warehouse, int initialQuantityOnHand, InStockStatus status, java.util.Date releaseDate, java.lang.String bin)
Creates and saves a newStockLevelModel
.java.lang.Long
getStockLevelForProductCodeAndWarehouse(java.lang.String productCode, WarehouseModel warehouse)
Returns stock level value for given productCode and warehouse.StockLevelModel
getUniqueStockLevel(java.lang.String productCode, java.lang.String warehouseCode, java.lang.String binCode, java.util.Date releaseDate)
Retrieves a uniqueStockLevelModel
.
-
-
-
Method Detail
-
getStockLevelForProductCodeAndWarehouse
java.lang.Long getStockLevelForProductCodeAndWarehouse(java.lang.String productCode, WarehouseModel warehouse)
Returns stock level value for given productCode and warehouse.- Parameters:
productCode
- The product code for which we want to retrieve a specificStockLevelModel
valuewarehouse
- The warehouseWarehouseModel
for which we want to retrieve a specificStockLevelModel
value- Returns:
- actual stock level
-
createStockLevel
StockLevelModel createStockLevel(java.lang.String productCode, WarehouseModel warehouse, int initialQuantityOnHand, InStockStatus status, java.util.Date releaseDate, java.lang.String bin)
Creates and saves a newStockLevelModel
.- Parameters:
productCode
- The product code for which we want to retrieve a specificStockLevelModel
(mandatory).warehouse
- The warehouseWarehouseModel
for which we want to retrieve a specificStockLevelModel
initialQuantityOnHand
- The initial Quantity on handstatus
- TheInStockStatus
releaseDate
- The release date of the specificStockLevelModel
to retrievebin
- The bin code of the specificStockLevelModel
to retrieve- Returns:
- newly created
StockLevelModel
-
getUniqueStockLevel
StockLevelModel getUniqueStockLevel(java.lang.String productCode, java.lang.String warehouseCode, java.lang.String binCode, java.util.Date releaseDate)
Retrieves a uniqueStockLevelModel
.- Parameters:
productCode
- The product code for which we want to retrieve a specificStockLevelModel
(mandatory).warehouseCode
- The warehouse code for which we want to retrieve a specificStockLevelModel
(mandatory).binCode
- The bin code of the specificStockLevelModel
to retrieve (optional).releaseDate
- The release date of the specificStockLevelModel
to retrieve (optional).- Returns:
- a targeted stock level.
-
-