Interface WarehouseStockService

  • All Known Implementing Classes:
    DefaultWarehouseStockService

    public interface WarehouseStockService
    Service to get stock availability for a single warehouse.
    • 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 specific StockLevelModel value
        warehouse - The warehouse WarehouseModel for which we want to retrieve a specific StockLevelModel value
        Returns:
        actual stock level
      • getUniqueStockLevel

        StockLevelModel getUniqueStockLevel​(java.lang.String productCode,
                                            java.lang.String warehouseCode,
                                            java.lang.String binCode,
                                            java.util.Date releaseDate)
        Retrieves a unique StockLevelModel.
        Parameters:
        productCode - The product code for which we want to retrieve a specific StockLevelModel (mandatory).
        warehouseCode - The warehouse code for which we want to retrieve a specific StockLevelModel (mandatory).
        binCode - The bin code of the specific StockLevelModel to retrieve (optional).
        releaseDate - The release date of the specific StockLevelModel to retrieve (optional).
        Returns:
        a targeted stock level.