Interface PromotionEngineService
-
- All Known Implementing Classes:
DefaultPromotionEngineService
public interface PromotionEngineServiceInterface of Promotion Engine Service that evaluates Promotion for a cart/order depending on its implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuleEvaluationResultevaluate(AbstractOrderModel order, java.util.Collection<PromotionGroupModel> promotionGroups)evaluate the promotions for the given cart or order and for now.RuleEvaluationResultevaluate(AbstractOrderModel order, java.util.Collection<PromotionGroupModel> promotionGroups, java.util.Date date)evaluate the promotions for the given cart or order and for the date.
-
-
-
Method Detail
-
evaluate
RuleEvaluationResult evaluate(AbstractOrderModel order, java.util.Collection<PromotionGroupModel> promotionGroups)
evaluate the promotions for the given cart or order and for now. This does not apply the result to the cart/order.- Parameters:
order- the cart or order to evaluatepromotionGroups- collection of promotion groups to apply promotions for- Returns:
- the result of the evaluation
-
evaluate
RuleEvaluationResult evaluate(AbstractOrderModel order, java.util.Collection<PromotionGroupModel> promotionGroups, java.util.Date date)
evaluate the promotions for the given cart or order and for the date. This does not apply the result to the cart/order.- Parameters:
order- the cart or order to evaluatepromotionGroups- collection of promotion groups to apply promotions fordate- the moment of evaluation- Returns:
- the result of the evaluation
-
-