November Happy Hour will be moved to Thursday December 5th.

Class OrderRewardApplicator

Modifies OrderAmount on a ILineItem.

Inheritance
System.Object
OrderRewardApplicator
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class OrderRewardApplicator : RewardApplicatorBase<AffectedOrder>

Constructors

OrderRewardApplicator(OrderDiscountCalculation)

Creates a new instance of OrderRewardApplicator.

Declaration
public OrderRewardApplicator(OrderDiscountCalculation priceCalculator)
Parameters
Type Name Description
OrderDiscountCalculation priceCalculator

The price calculator.

Properties

DiscountType

DiscountType.OrderLevelDiscountAmount

Declaration
public override DiscountType DiscountType { get; }
Property Value
Type Description
DiscountType
Overrides

Methods

ApplyDiscount(AffectedOrder, Decimal, PromotionProcessorContext)

Declaration
protected override decimal ApplyDiscount(AffectedOrder item, decimal discountAmount, PromotionProcessorContext processorContext)
Parameters
Type Name Description
AffectedOrder item
System.Decimal discountAmount
PromotionProcessorContext processorContext
Returns
Type Description
System.Decimal
Overrides
EPiServer.Commerce.Marketing.RewardApplicatorBase<EPiServer.Commerce.Marketing.AffectedOrder>.ApplyDiscount(EPiServer.Commerce.Marketing.AffectedOrder, System.Decimal, EPiServer.Commerce.Marketing.PromotionProcessorContext)

ApplyPercentage(AffectedOrder, Decimal, PromotionProcessorContext)

Declaration
protected override decimal ApplyPercentage(AffectedOrder item, decimal percentage, PromotionProcessorContext processorContext)
Parameters
Type Name Description
AffectedOrder item
System.Decimal percentage
PromotionProcessorContext processorContext
Returns
Type Description
System.Decimal
Overrides
EPiServer.Commerce.Marketing.RewardApplicatorBase<EPiServer.Commerce.Marketing.AffectedOrder>.ApplyPercentage(EPiServer.Commerce.Marketing.AffectedOrder, System.Decimal, EPiServer.Commerce.Marketing.PromotionProcessorContext)