public class DefaultOrderAdjustTotalActionStrategy extends AbstractRuleActionStrategy<RuleBasedOrderAdjustTotalActionModel>
| Constructor and Description |
|---|
DefaultOrderAdjustTotalActionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
apply(AbstractRuleActionRAO action)
Creates a
PromotionResultModel if the parameter action is of type DiscountRAO the discount is
added to corresponding to the action Order model. |
protected RuleBasedOrderAdjustTotalActionModel |
createOrderAdjustTotalAction(PromotionResultModel promoResult,
DiscountRAO discountRao) |
void |
undo(ItemModel action)
Revokes the Promotion Action that was applied.
|
createPromotionAction, getActionUtils, getCalculationService, getExtendedOrderDao, getForceImmediateRecalculation, getMetadataHandlers, getModelService, getPromotionAction, getPromotionActionService, getPromotionResultUtils, getRuleActionMetadataHandlers, getStrategyId, handleActionMetadata, handleUndoActionMetadata, recalculateIfNeeded, setActionUtils, setBeanName, setCalculationService, setExtendedOrderDao, setForceImmediateRecalculation, setModelService, setPromotionAction, setPromotionActionService, setPromotionResultUtils, setRuleActionMetadataHandlers, undoInternalpublic DefaultOrderAdjustTotalActionStrategy()
public java.util.List<PromotionResultModel> apply(AbstractRuleActionRAO action)
PromotionResultModel if the parameter action is of type DiscountRAO the discount is
added to corresponding to the action Order model.action - the action to applyPromotionResultModel as a result of the DiscountRAO application.protected RuleBasedOrderAdjustTotalActionModel createOrderAdjustTotalAction(PromotionResultModel promoResult, DiscountRAO discountRao)
public void undo(ItemModel action)
RuleActionStrategyaction - the action to be undoneCopyright © 2018 SAP SE. All Rights Reserved.