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

Class MonetaryReward

Promotion reward that can be either percentage of the purchase amount, or an absolute amount of for a given currency.

Inheritance
System.Object
MonetaryReward
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class MonetaryReward : BlockData

Constructors

MonetaryReward()

Declaration
public MonetaryReward()

Properties

Amounts

If UseAmounts set to true, this collection represents the promotion reward.

Declaration
public virtual IList<Money> Amounts { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<Money>
Remarks

Initially, any existing currencies related the promotion's campaign market added to the collection have the amount of zero. Changing the campaign market also changes available currencies in the property. Consider this when developing discount processors, because you must decide the desired behavior when one, or even all, amounts are set to zero.

Percentage

If UseAmounts set to false, this percentage represents the promotion reward.

Declaration
public virtual decimal Percentage { get; set; }
Property Value
Type Description
System.Decimal
Remarks

The percentage must be a value between 0-100.

UseAmounts

Determines whether to use Amounts or Percentage as promotion reward.

Declaration
public virtual bool UseAmounts { get; set; }
Property Value
Type Description
System.Boolean
Remarks

True to use Amounts, otherwise false.

Extension Methods