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

Class DiscountPrice

The representation of a price resulted by an EntryPromotion.

Inheritance
System.Object
DiscountPrice
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: 13.30.0
Syntax
public class DiscountPrice

Constructors

DiscountPrice(EntryPromotion, Money, Money)

Initializes a new instance of a DiscountPrice.

Declaration
public DiscountPrice(EntryPromotion promotion, Money discountedPrice, Money defaultPrice)
Parameters
Type Name Description
EntryPromotion promotion

An EntryPromotion applicable to an entry.

Money discountedPrice

The entry's PlacedPrice subtracted by the SavedAmount caused by the promotion.

Money defaultPrice

The entry's current DefaultPrice delivered by the registered IPriceService.

Properties

DefaultPrice

The entry's current DefaultPrice delivered by the registered IPriceService.

Declaration
public Money DefaultPrice { get; }
Property Value
Type Description
Money

Price

The entry's ExtendedPrice calculated by the ILineItemCalculator.

Declaration
public Money Price { get; }
Property Value
Type Description
Money

Promotion

An EntryPromotion applicable to an entry.

Declaration
public EntryPromotion Promotion { get; }
Property Value
Type Description
EntryPromotion