World is now on Opti ID! Learn more

Class OptimizedPriceValue

Default implementation of IOptimizedPriceValue

Inheritance
System.Object
OptimizedPriceValue
Namespace: Mediachase.Commerce.Pricing
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class OptimizedPriceValue : Object, IOptimizedPriceValue, IPriceValue

Constructors

OptimizedPriceValue(IPriceValue, Nullable<Decimal>)

Initializes a new instance of the OptimizedPriceValue class.

Declaration
public OptimizedPriceValue(IPriceValue price, Nullable<Decimal> maxQuantity)
Parameters
Type Name Description
IPriceValue price

The price.

System.Nullable<System.Decimal> maxQuantity

The maximum quantity.

Properties

CatalogKey

Gets the catalog entry key.

Declaration
public CatalogKey CatalogKey { get; }
Property Value
Type Description
CatalogKey

The catalog entry key.

CustomerPricing

Gets the customer pricing value for this price.

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

The customer pricing if ReturnCustomerPricing was true in the request, or null if it was false.

MarketId

Gets the market.

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

The market for the price.

MaxQuantity

Gets the maximum quantity the price applies for.

Declaration
public Nullable<Decimal> MaxQuantity { get; }
Property Value
Type Description
System.Nullable<System.Decimal>

MinQuantity

Gets the minimum quantity.

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

The minimum quantity that this pricing applies to.

UnitPrice

Gets the unit price.

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

The price per unit of quantity.

ValidFrom

Gets the valid from date and time.

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

The date and time in UTC when this price data became or becomes active.

ValidUntil

Gets the valid until date and time.

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

The date and time in UTC when this price expires or expired.

Implements

See Also