Class DefaultOrderAdjustTotalActionStrategy
java.lang.Object
de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy<RuleBasedOrderAdjustTotalActionModel>
de.hybris.platform.promotionengineservices.action.impl.DefaultOrderAdjustTotalActionStrategy
- All Implemented Interfaces:
RuleActionStrategy,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class DefaultOrderAdjustTotalActionStrategy
extends AbstractRuleActionStrategy<RuleBasedOrderAdjustTotalActionModel>
Encapsulates logic of Rule Action processing for Cart total calculation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AbstractRuleActionRAO action) Creates aPromotionResultModelif the parameter action is of typeDiscountRAOthe discount is added to corresponding to the action Order model.protected RuleBasedOrderAdjustTotalActionModelcreateOrderAdjustTotalAction(PromotionResultModel promoResult, DiscountRAO discountRao) voidRevokes the Promotion Action that was applied.Methods inherited from class de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy
createPromotionAction, getActionUtils, getCalculationService, getDefaultRuleMetadataKeys, getExtendedOrderDao, getForceImmediateRecalculation, getMetadataHandlers, getModelService, getPromotionAction, getPromotionActionService, getPromotionResultUtils, getRuleActionMetadataHandlers, getStrategyId, handleActionMetadata, handleUndoActionMetadata, recalculateIfNeeded, setActionUtils, setBeanName, setCalculationService, setDefaultRuleMetadataKeys, setExtendedOrderDao, setForceImmediateRecalculation, setModelService, setPromotionAction, setPromotionActionService, setPromotionResultUtils, setRuleActionMetadataHandlers, undoInternal
-
Constructor Details
-
DefaultOrderAdjustTotalActionStrategy
public DefaultOrderAdjustTotalActionStrategy()
-
-
Method Details
-
apply
Creates aPromotionResultModelif the parameter action is of typeDiscountRAOthe discount is added to corresponding to the action Order model.- Parameters:
action- the action to apply- Returns:
- list of
PromotionResultModelas a result of theDiscountRAOapplication.
-
createOrderAdjustTotalAction
protected RuleBasedOrderAdjustTotalActionModel createOrderAdjustTotalAction(PromotionResultModel promoResult, DiscountRAO discountRao) -
undo
Description copied from interface:RuleActionStrategyRevokes the Promotion Action that was applied.- Parameters:
action- the action to be undone
-