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

Class Price

Represents a price definition in a catalog entry.

Inheritance
System.Object
Price
Implements
System.ICloneable
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.SpecializedProperties
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class Price : ICloneable

Constructors

Price()

Initializes a new instance of the Price class.

Declaration
public Price()

Price(IPriceValue)

Initializes a new instance of the Price class.

Declaration
public Price(IPriceValue priceValue)
Parameters
Type Name Description
IPriceValue priceValue

The price value to convert from.

Price(IPriceValue, EntryContentBase)

Initializes a new instance of the Price class.

Declaration
public Price(IPriceValue priceValue, EntryContentBase entry)
Parameters
Type Name Description
IPriceValue priceValue

The price value.

EntryContentBase entry

tThe entry content base.

Properties

CustomerPricing

Gets or sets the customer pricing.

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

EntryContent

Gets or sets the entry content base

Declaration
public EntryContentBase EntryContent { get; set; }
Property Value
Type Description
EntryContentBase

MarketId

Gets or sets the market id.

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

MinQuantity

Gets or sets the minimum quantity.

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

UnitPrice

Gets or sets the unit price.

Declaration
public Money UnitPrice { get; set; }
Property Value
Type Description
Money

ValidFrom

Gets or sets the valid from date.

Declaration
public DateTime ValidFrom { get; set; }
Property Value
Type Description
System.DateTime

ValidUntil

Gets or sets the valid until date.

Declaration
public DateTime? ValidUntil { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

Methods

Clone()

Creates a new object that is a copy of the current instance.

Declaration
public object Clone()
Returns
Type Description
System.Object

A new object that is a copy of this instance.

ToPriceValue()

Converts to a IPriceValue instance.

Declaration
public IPriceValue ToPriceValue()
Returns
Type Description
IPriceValue

The converted object.

ToPriceValue(CatalogKey)

To the price value.

Declaration
public virtual IPriceValue ToPriceValue(CatalogKey catalogKey)
Parameters
Type Name Description
CatalogKey catalogKey

The catalog key.

Returns
Type Description
IPriceValue

Implements

System.ICloneable