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

Class PromotionItemRecord

Contains result about particular promotion applied once.

Inheritance
System.Object
PromotionItemRecord
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 PromotionItemRecord

Constructors

PromotionItemRecord()

Initializes a new instance of the PromotionItemRecord class.

Declaration
public PromotionItemRecord()

PromotionItemRecord(PromotionEntriesSet, PromotionEntriesSet, PromotionReward)

Initializes a new instance of the PromotionItemRecord class.

Declaration
public PromotionItemRecord(PromotionEntriesSet targetEntries, PromotionEntriesSet affectedEntries, PromotionReward reward)
Parameters
Type Name Description
PromotionEntriesSet targetEntries

The target entries.

PromotionEntriesSet affectedEntries

The affected entries.

PromotionReward reward

The reward.

Properties

AffectedEntriesSet

Gets or sets the affected entries set.

Declaration
public PromotionEntriesSet AffectedEntriesSet { get; set; }
Property Value
Type Description
PromotionEntriesSet

The affected entries set.

PromotionItem

Gets or sets the promotion item.

Declaration
public PromotionItem PromotionItem { get; set; }
Property Value
Type Description
PromotionItem

The promotion item.

PromotionReward

Gets or sets the promotion reward.

Declaration
public PromotionReward PromotionReward { get; set; }
Property Value
Type Description
PromotionReward

The promotion reward.

Status

Gets or sets the status of this promotion record.

Declaration
public PromotionItemRecordStatus Status { get; set; }
Property Value
Type Description
PromotionItemRecordStatus

The status.

TargetEntriesSet

Gets or sets the target entries set.

Declaration
public PromotionEntriesSet TargetEntriesSet { get; set; }
Property Value
Type Description
PromotionEntriesSet

The target entries set.

Methods

GetDiscountAmount(Decimal)

Gets the discount amount.

Declaration
public decimal GetDiscountAmount(decimal totalAmount)
Parameters
Type Name Description
System.Decimal totalAmount

The total amount.

Returns
Type Description
System.Decimal