Interface AvailabilityService

All Known Implementing Classes:
DefaultAvailabilityService

public interface AvailabilityService
Availability service provides the availability and future stock details.
  • 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 fetched
      warehouses - - list of warehouses for which the availability has to be fetched
      warehouses - 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 fetched
      warehouses - - list of warehouses for which the future stock has to be fetched
      Returns:
      list of StockLevelModels for the corresponding product and warehouse.
    • getProductAvailability

      SapProductAvailability getProductAvailability(ProductModel productModel, BaseStoreModel baseStore)
      Get the SapProductAvailability (contains stock , future stock details) for the product and the given basestore
      Parameters:
      productModel - the ProductModel
      baseStore - the baseStoreModel
      Returns:
      SapProductAvailability for the corresponding product and warehouse.