Interface PromotionEngineService
-
- All Known Implementing Classes:
DefaultPromotionEngineService,DefaultSapPromotionEngineService
public interface PromotionEngineServiceInterface of Promotion Engine Service that evaluates Promotion for a Product depending on it 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.RuleEvaluationResultevaluate(ProductModel product, java.util.Collection<PromotionGroupModel> promotionGroups)Evaluates promotion against a product taking into context which is set by promotions group
-
-
-
Method Detail
-
evaluate
RuleEvaluationResult evaluate(ProductModel product, java.util.Collection<PromotionGroupModel> promotionGroups)
Evaluates promotion against a product taking into context which is set by promotions group- Parameters:
product- to evaluate promotions forpromotionGroups- collection of promotion groups to apply promotions for- Returns:
- Map containing Promotion data as its values along with corresponding identifiers as its keys
-
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
-
-