Class PricingLoader
Loads prices for a content.
Inherited Members
Namespace: EPiServer.Commerce.Catalog
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class PricingLoader : EntryLoaderBase
Constructors
PricingLoader(IContentLoader, IPriceDetailService, LanguageSelectorFactory, ReferenceConverter, ICatalogSystem)
Creates an instance of PricingLoader.
Declaration
[Obsolete("This constructor is no longer used. Use overload without LanguageSelectorFactory instead. Will remain at least until October 2017.")]
public PricingLoader(IContentLoader contentLoader, IPriceDetailService priceService, LanguageSelectorFactory languageSelectorFactory, ReferenceConverter referenceConverter, ICatalogSystem catalogSystem)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.IContentLoader | contentLoader | The content loader to fetch proces from. |
IPriceDetailService | priceService | The price service. |
EPiServer.Core.LanguageSelectorFactory | languageSelectorFactory | The language selection factory. |
ReferenceConverter | referenceConverter | The reference converter. |
ICatalogSystem | catalogSystem | The catalog system. |
PricingLoader(IContentLoader, IPriceDetailService, ReferenceConverter, ICatalogSystem)
Creates an instance of PricingLoader.
Declaration
public PricingLoader(IContentLoader contentLoader, IPriceDetailService priceService, ReferenceConverter referenceConverter, ICatalogSystem catalogSystem)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.IContentLoader | contentLoader | The content loader to fetch proces from. |
IPriceDetailService | priceService | The price service. |
ReferenceConverter | referenceConverter | The reference converter. |
ICatalogSystem | catalogSystem | The catalog system. |
Methods
GetPrice(Int64)
Gets the the price specified by the ID.
Declaration
public PriceDetail GetPrice(long priceId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | priceId | The price ID. |
Returns
Type | Description |
---|---|
PriceDetail |
GetPrices(ContentReference, MarketId, CustomerPricing)
Gets the prices for the specified contentLink
.
Declaration
public ItemCollection<PriceDetail> GetPrices(ContentReference contentLink, MarketId marketId, CustomerPricing customerPricing)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | contentLink | Reference to the content to get prices for. |
MarketId | marketId | The market id. Pass emtpy marketId to get prices for all markets. |
CustomerPricing | customerPricing | The customer pricing. Pass emtpy customer pricing to get prices for all customers. |
Returns
Type | Description |
---|---|
ItemCollection<PriceDetail> | Collection of prices for the content. |
GetPrices(ContentReference, MarketId, CustomerPricing, Int32, Int32, out Int32)
Gets the prices.
Declaration
public ItemCollection<PriceDetail> GetPrices(ContentReference contentLink, MarketId marketId, CustomerPricing customerPricing, int startIndex, int numberOfRecord, out int total)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | contentLink | Reference to the content to get prices for. |
MarketId | marketId | The market id. Pass emtpy marketId to get prices for all markets. |
CustomerPricing | customerPricing | The customer pricing. Pass emtpy customer pricing to get prices for all customers. |
System.Int32 | startIndex | The start index. |
System.Int32 | numberOfRecord | The number of record. |
System.Int32 | total | The total. |
Returns
Type | Description |
---|---|
ItemCollection<PriceDetail> |