Interface PromotionEngineService
- All Known Implementing Classes:
DefaultPromotionEngineService
public interface PromotionEngineService
Interface of Promotion Engine Service that evaluates Promotion for a cart/order depending on its implementation.
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(AbstractOrderModel order, Collection<PromotionGroupModel> promotionGroups) evaluate the promotions for the given cart or order and for now.evaluate(AbstractOrderModel order, Collection<PromotionGroupModel> promotionGroups, Date date) evaluate the promotions for the given cart or order and for the date.
-
Method Details
-
evaluate
RuleEvaluationResult evaluate(AbstractOrderModel order, 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, Collection<PromotionGroupModel> promotionGroups, 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
-