Interface AccommodationDiscountEvaluationStrategy

All Known Implementing Classes:
ProductFixedPriceDiscountEvaluationStrategy, ProductPercentageDiscountEvaluationStrategy

public interface AccommodationDiscountEvaluationStrategy
Interface responsible for evaluation of the discount value from a promotion provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluateDiscount(Double basePrice, ProductPromotionModel promotion, String currencyIso)
    Evaluates a strategy related to specific promotion to retrieve the value of discount.
  • Method Details

    • evaluateDiscount

      Double evaluateDiscount(Double basePrice, ProductPromotionModel promotion, String currencyIso)
      Evaluates a strategy related to specific promotion to retrieve the value of discount.
      Parameters:
      basePrice - the base price
      promotion - the promotion
      currencyIso - the currency iso
      Returns:
      discount value