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

Class PromotionItem

Promotion Item is responsible for the item in the marketing system. Results are cached.

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

Constructors

PromotionItem(MarketingHelper, Int32)

Initializes a new instance of the PromotionItem class.

Declaration
public PromotionItem(MarketingHelper helper, int rowIndex)
Parameters
Type Name Description
MarketingHelper helper

The helper.

System.Int32 rowIndex

Index of the row.

Properties

Campaign

Gets the campaign.

Declaration
public CampaignDto.CampaignRow Campaign { get; }
Property Value
Type Description
CampaignDto.CampaignRow

The campaign.

Count

Gets the count.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

The count.

DataRow

Gets the data row.

Declaration
public PromotionDto.PromotionRow DataRow { get; }
Property Value
Type Description
PromotionDto.PromotionRow

The data row.

Expressions

Gets the expressions.

Declaration
public List<ExpressionDto.ExpressionRow> Expressions { get; }
Property Value
Type Description
System.Collections.Generic.List<ExpressionDto.ExpressionRow>

The expressions.

Item[Int32]

Gets the System.Object at the specified index.

Declaration
public object this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
System.Object

Item[String]

Gets the System.Object with the specified name.

Declaration
public object this[string name] { get; }
Parameters
Type Name Description
System.String name
Property Value
Type Description
System.Object

Policies

Gets the policies.

Declaration
public List<PolicyDto.PolicyRow> Policies { get; }
Property Value
Type Description
System.Collections.Generic.List<PolicyDto.PolicyRow>

The policies.

PolicyExpressions

Gets the policy expressions.

Declaration
public List<ExpressionDto.ExpressionRow> PolicyExpressions { get; }
Property Value
Type Description
System.Collections.Generic.List<ExpressionDto.ExpressionRow>

The policy expressions.

TotalUsedCount

Returns total number of times current promotion has been used.

Declaration
public int TotalUsedCount { get; }
Property Value
Type Description
System.Int32

The total used count.

Methods

GetCustomerUsageCount(Guid)

Returns total number of times current promotion has been used by current customer. The results are cached.

Declaration
public int GetCustomerUsageCount(Guid customerId)
Parameters
Type Name Description
System.Guid customerId
Returns
Type Description
System.Int32

The customer used count.