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 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 evaluate
        promotionGroups - 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 evaluate
        promotionGroups - collection of promotion groups to apply promotions for
        date - the moment of evaluation
        Returns:
        the result of the evaluation