Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class PriceServiceExtension

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

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

Methods

ReplicatePriceDetailChangesIfNotReadOnly(IPriceService, IEnumerable<CatalogKey>, IEnumerable<IPriceValue>)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public static void ReplicatePriceDetailChangesIfNotReadOnly(this IPriceService priceService, IEnumerable<CatalogKey> catalogKeys, IEnumerable<IPriceValue> priceValues)
Parameters
Type Name Description
IPriceService priceService
System.Collections.Generic.IEnumerable<CatalogKey> catalogKeys

catalog entries to set prices for.

System.Collections.Generic.IEnumerable<IPriceValue> priceValues

The complete set of price values for all catalog entries referenced in catalogKeys.

Exceptions
Type Condition
System.InvalidOperationException

The IPriceDetailService is read only.

SetCatalogEntryPricesIfNotReadOnly(IPriceService, CatalogKey, IEnumerable<IPriceValue>)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public static void SetCatalogEntryPricesIfNotReadOnly(this IPriceService priceService, CatalogKey catalogKey, IEnumerable<IPriceValue> priceValues)
Parameters
Type Name Description
IPriceService priceService
CatalogKey catalogKey

The catalog entry to set prices for.

System.Collections.Generic.IEnumerable<IPriceValue> priceValues

The complete set of price values for the catalog entry.

Exceptions
Type Condition
System.InvalidOperationException

The IPriceDetailService is read only.

SetCatalogEntryPricesIfNotReadOnly(IPriceService, IEnumerable<CatalogKey>, IEnumerable<IPriceValue>)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public static void SetCatalogEntryPricesIfNotReadOnly(this IPriceService priceService, IEnumerable<CatalogKey> catalogKeys, IEnumerable<IPriceValue> priceValues)
Parameters
Type Name Description
IPriceService priceService
System.Collections.Generic.IEnumerable<CatalogKey> catalogKeys

The catalog entries to set prices for.

System.Collections.Generic.IEnumerable<IPriceValue> priceValues

The complete set of price values for all catalog entries referenced in catalogKeys.

Exceptions
Type Condition
System.InvalidOperationException

The IPriceDetailService is read only.