SaaS CMS has officially launched! Learn more now.

Class PromotionResult

Contains results of promotion engine execution

Inheritance
System.Object
PromotionResult
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: 11.8.3
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 PromotionResult

Constructors

PromotionResult()

Declaration
public PromotionResult()

Properties

PromotionRecords

Gets or sets the promotion records.

Declaration
public List<PromotionItemRecord> PromotionRecords { get; set; }
Property Value
Type Description
System.Collections.Generic.List<PromotionItemRecord>

The promotion records.

RunningTotal

Gets or sets the running total.

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

The running total.

Methods

Contains(Int32)

Determines whether [contains] [the specified promotion id].

Declaration
public bool Contains(int promotionId)
Parameters
Type Name Description
System.Int32 promotionId

The promotion id.

Returns
Type Description
System.Boolean

true if [contains] [the specified promotion id]; otherwise, false.

GetCount(Int32)

Gets the count for a particular promotion.

Declaration
public int GetCount(int promotionId)
Parameters
Type Name Description
System.Int32 promotionId

The promotion id.

Returns
Type Description
System.Int32

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