Class OrderRewardApplicator
Modifies OrderAmount on a ILineItem.
Inheritance
System.Object
OrderRewardApplicator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
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)