World is now on Opti ID! Learn more

Class PriceTypeConfiguration

The class to manage price type configuration.

Inheritance
System.Object
PriceTypeConfiguration
Namespace: Mediachase.Commerce.Pricing
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class PriceTypeConfiguration : Object

Constructors

PriceTypeConfiguration()

Declaration
public PriceTypeConfiguration()

PriceTypeConfiguration(IEnumerable<SalePriceTypeDefinition>)

Declaration
public PriceTypeConfiguration(IEnumerable<SalePriceTypeDefinition> configuredPriceTypes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<SalePriceTypeDefinition> configuredPriceTypes

Properties

Instance

Declaration
public static PriceTypeConfiguration Instance { get; }
Property Value
Type Description
PriceTypeConfiguration

PriceTypeDefinitions

Gets price types from enum and configuration file. Gets sale price types defined from both enum CustomerPricing.PriceType and configuration file.

Declaration
public virtual IDictionary<CustomerPricing.PriceType, PriceTypeDefinition> PriceTypeDefinitions { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<CustomerPricing.PriceType, PriceTypeDefinition>