Class PricingLoader
Loads prices for a content.
Inherited Members
Namespace: EPiServer.Commerce.Catalog
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
[Obsolete("This class is no longer used, use IPriceService instead. Will remain at least until August 2019.")]
public class PricingLoader : EntryLoaderBase
Constructors
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> |