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 TypeMethodDescriptionevaluateDiscount(Double basePrice, ProductPromotionModel promotion, String currencyIso) Evaluates a strategy related to specific promotion to retrieve the value of discount.
-
Method Details
-
evaluateDiscount
Evaluates a strategy related to specific promotion to retrieve the value of discount.- Parameters:
basePrice- the base pricepromotion- the promotioncurrencyIso- the currency iso- Returns:
- discount value
-