Class ShippingRewardApplicator
Modifies ShipmentDiscount on a Shipment.
Inheritance
System.Object
ShippingRewardApplicator
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: 12.17.2Syntax
public class ShippingRewardApplicator : RewardApplicatorBase<AffectedShipments>
Constructors
ShippingRewardApplicator()
Declaration
public ShippingRewardApplicator()
Properties
DiscountType
Gets the DiscountType used to determine which property to update on the ILineItem or IShipment.
Declaration
public override DiscountType DiscountType { get; }
Property Value
Type | Description |
---|---|
DiscountType |
Overrides
Methods
AddDiscount(IShipment, Decimal, PromotionProcessorContext)
Add shipping discount to shipment.
Declaration
protected virtual void AddDiscount(IShipment shipment, decimal savedAmount, PromotionProcessorContext processorContext)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment to apply discount. |
System.Decimal | savedAmount | The saved amount of shipping. |
PromotionProcessorContext | processorContext | The promotion processor context for the promotion applicator. |
ApplyDiscount(AffectedShipments, Decimal, PromotionProcessorContext)
Declaration
protected override decimal ApplyDiscount(AffectedShipments affectedShipments, decimal discountAmount, PromotionProcessorContext processorContext)
Parameters
Type | Name | Description |
---|---|---|
AffectedShipments | affectedShipments | |
System.Decimal | discountAmount | |
PromotionProcessorContext | processorContext |
Returns
Type | Description |
---|---|
System.Decimal |
Overrides
EPiServer.Commerce.Marketing.RewardApplicatorBase<EPiServer.Commerce.Marketing.AffectedShipments>.ApplyDiscount(EPiServer.Commerce.Marketing.AffectedShipments, System.Decimal, EPiServer.Commerce.Marketing.PromotionProcessorContext)
ApplyFreeItems(AffectedShipments, PromotionProcessorContext)
Declaration
protected override decimal ApplyFreeItems(AffectedShipments affectedShipments, PromotionProcessorContext processorContext)
Parameters
Type | Name | Description |
---|---|---|
AffectedShipments | affectedShipments | |
PromotionProcessorContext | processorContext |
Returns
Type | Description |
---|---|
System.Decimal |
Overrides
EPiServer.Commerce.Marketing.RewardApplicatorBase<EPiServer.Commerce.Marketing.AffectedShipments>.ApplyFreeItems(EPiServer.Commerce.Marketing.AffectedShipments, EPiServer.Commerce.Marketing.PromotionProcessorContext)
ApplyPercentage(AffectedShipments, Decimal, PromotionProcessorContext)
Declaration
protected override decimal ApplyPercentage(AffectedShipments affectedShipments, decimal percentage, PromotionProcessorContext processorContext)
Parameters
Type | Name | Description |
---|---|---|
AffectedShipments | affectedShipments | |
System.Decimal | percentage | |
PromotionProcessorContext | processorContext |
Returns
Type | Description |
---|---|
System.Decimal |
Overrides
EPiServer.Commerce.Marketing.RewardApplicatorBase<EPiServer.Commerce.Marketing.AffectedShipments>.ApplyPercentage(EPiServer.Commerce.Marketing.AffectedShipments, System.Decimal, EPiServer.Commerce.Marketing.PromotionProcessorContext)