Class OptimizedPriceValue
Default implementation of IOptimizedPriceValue
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Pricing
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class OptimizedPriceValue : IOptimizedPriceValue, IPriceValue
Constructors
OptimizedPriceValue(IPriceValue, Nullable<Decimal>)
Initializes a new instance of the OptimizedPriceValue class.
Declaration
public OptimizedPriceValue(IPriceValue price, 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 |
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 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 DateTime? ValidUntil { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The date and time in UTC when this price expires or expired. |