Class DiscountedEntry
An entry being affected by one or more promotions.
Inheritance
System.Object
DiscountedEntry
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: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class DiscountedEntry
Constructors
DiscountedEntry(ContentReference, IList<DiscountPrice>)
Initializes a new instance of a DiscountedEntry.
Declaration
public DiscountedEntry(ContentReference entryLink, IList<DiscountPrice> discountPrices)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | entryLink | EPiServer.Core.ContentReference to the product or variant entry. |
System.Collections.Generic.IList<DiscountPrice> | discountPrices | A list of discount prices and promotions related to the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
Properties
DiscountPrices
Gets a list of DiscountPrices holding each applicable promotion and the price for the entry if the promotion is applied.
Declaration
public IList<DiscountPrice> DiscountPrices { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<DiscountPrice> |
EntryLink
Gets the EPiServer.Core.ContentReference to the product or variant entry.
Declaration
public ContentReference EntryLink { get; }
Property Value
Type | Description |
---|---|
EPiServer.Core.ContentReference |