Interface RuleActionStrategy<T extends ItemModel>

All Known Implementing Classes:
AbstractRuleActionStrategy, DefaultAddCouponActionStrategy, DefaultAddProductToCartActionStrategy, DefaultNoOpRuleActionStrategy, DefaultOrderAdjustTotalActionStrategy, DefaultOrderEntryAdjustActionStrategy, DefaultPotentialPromotionMessageActionStrategy, DefaultShippingActionStrategy

public interface RuleActionStrategy<T extends ItemModel>
Defines a strategy that encapsulates the logic of a rule action.
  • Method Details

    • apply

      List<T> apply(AbstractRuleActionRAO action)
      Applies the action described by the given AbstractRuleActionRAO.
      Parameters:
      action - the action to apply
      Returns:
      list of ItemModel that are affected by the application of this action.
    • getStrategyId

      String getStrategyId()
      Returns this strategy's unique Id
      Returns:
      the strategy's Id
    • undo

      void undo(ItemModel action)
      Revokes the Promotion Action that was applied.
      Parameters:
      action - the action to be undone