Interface StockLevelProductStrategy

All Known Implementing Classes:
DefaultStockLevelProductStrategy

public interface StockLevelProductStrategy
This strategy will be used by the StockService for generating a product related ID, which will be stored at StockLevel.
  • Method Details

    • convert

      String convert(ProductModel model)
      Returns a product related ID for StockLevel.
      Parameters:
      model - the product we need a StockLelevel 'productCode' for.
      Returns:
      String the StckLevel#productCode
    • convert

      ProductModel convert(String productCode)
      Returns a product model based of the assigned ID.
      Parameters:
      productCode - the product code
      Returns:
      ProductModel the product with the specified code.