Interface AvailabilityService
- All Known Implementing Classes:
DefaultAvailabilityService
public interface AvailabilityService
Availability service provides the availability and future stock details.
-
Method Summary
Modifier and TypeMethodDescriptiongetFutureAvailability(ProductModel product, Collection<WarehouseModel> warehouses) Get the stock level information for the product and the warehousegetProductAvailability(ProductModel productModel, BaseStoreModel baseStore) Get the SapProductAvailability (contains stock , future stock details) for the product and the given basestoregetStockAvailability(ProductModel product, Collection<WarehouseModel> warehouses) Get the stock level information for the product and the warehouses
-
Method Details
-
getStockAvailability
Collection<StockLevelModel> getStockAvailability(ProductModel product, Collection<WarehouseModel> warehouses) Get the stock level information for the product and the warehouses- Parameters:
product- - Product for which stock level is fetchedwarehouses- - list of warehouses for which the availability has to be fetchedwarehouses- Collection of WarehouseModel- Returns:
- list of StockLevelModels for the corresponding product and warehouses.
-
getFutureAvailability
Collection<FutureStockModel> getFutureAvailability(ProductModel product, Collection<WarehouseModel> warehouses) Get the stock level information for the product and the warehouse- Parameters:
product- - Product for which future stock level has to be fetchedwarehouses- - list of warehouses for which the future stock has to be fetched- Returns:
- list of StockLevelModels for the corresponding product and warehouse.
-
getProductAvailability
Get the SapProductAvailability (contains stock , future stock details) for the product and the given basestore- Parameters:
productModel- the ProductModelbaseStore- the baseStoreModel- Returns:
- SapProductAvailability for the corresponding product and warehouse.
-