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

Class PromotionReward

Implements operations for the promotion reward.

Inheritance
System.Object
PromotionReward
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: Mediachase.Commerce.Marketing.Objects
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public class PromotionReward

Constructors

PromotionReward(String, Decimal, String)

Initializes a new instance of the PromotionReward class.

Declaration
public PromotionReward(string rewardType, decimal amountOff, string amountType)
Parameters
Type Name Description
System.String rewardType

Type of the reward.

System.Decimal amountOff

The amount off.

System.String amountType

Type of the amount.

Properties

AmountOff

Gets or sets the amount off.

Declaration
public decimal AmountOff { get; set; }
Property Value
Type Description
System.Decimal

The amount off.

AmountType

Gets or sets the type of the amount. Can be either Percentage or Value.

Declaration
public string AmountType { get; set; }
Property Value
Type Description
System.String

The type of the amount.

RewardType

Gets or sets the type of the Reward. The types can be:

  • WholeOrder will adjust the total for the whole order
  • AllAffectedEntries will split adjustment between all the entries, so if discount was $50 and there are 5 entries, each one will be discount $10
  • EachAffectedEntry will apply full discount to each entry, so if discount was $50 and there are 5 entries the total discount will be $250
Declaration
public string RewardType { get; set; }
Property Value
Type Description
System.String

The type of the Reward.