Try our conversational search powered by Generative AI!

Class DefaultPlacedPriceProcessor

Service for updating and retrieving PlacedPrice for IOrderGroup.

Inheritance
System.Object
DefaultPlacedPriceProcessor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class DefaultPlacedPriceProcessor : IPlacedPriceProcessor

Constructors

DefaultPlacedPriceProcessor(IPriceService, IContentLoader, ReferenceConverter, MapUserKey)

Declaration
public DefaultPlacedPriceProcessor(IPriceService priceService, IContentLoader contentLoader, ReferenceConverter referenceConverter, MapUserKey mapUserKey)
Parameters
Type Name Description
IPriceService priceService
EPiServer.IContentLoader contentLoader
ReferenceConverter referenceConverter
MapUserKey mapUserKey

Methods

GetPlacedPrice(EntryContentBase, Decimal, CustomerContact, IMarket, Currency)

Declaration
[Obsolete("This method is no longer used. Use the overload with MarketId instead. Will remain at least until May 2019.")]
public virtual Money? GetPlacedPrice(EntryContentBase entry, decimal quantity, CustomerContact customerContact, IMarket market, Currency currency)
Parameters
Type Name Description
EntryContentBase entry
System.Decimal quantity
CustomerContact customerContact
IMarket market
Currency currency
Returns
Type Description
System.Nullable<Money>

GetPlacedPrice(EntryContentBase, Decimal, CustomerContact, MarketId, Currency)

Gets the placed price.

Declaration
public virtual Money? GetPlacedPrice(EntryContentBase entry, decimal quantity, CustomerContact customerContact, MarketId marketId, Currency currency)
Parameters
Type Name Description
EntryContentBase entry

The entry.

System.Decimal quantity

The quantity.

CustomerContact customerContact

The customer contact.

MarketId marketId

The market id.

Currency currency

The currency.

Returns
Type Description
System.Nullable<Money>

A Money

UpdatePlacedPrice(ILineItem, CustomerContact, IMarket, Currency, Action<ILineItem, ValidationIssue>)

Declaration
[Obsolete("This method is no longer used. Use the overload with MarketId instead. Will remain at least until May 2019.")]
public virtual bool UpdatePlacedPrice(ILineItem lineItem, CustomerContact customerContact, IMarket market, Currency currency, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
Type Name Description
ILineItem lineItem
CustomerContact customerContact
IMarket market
Currency currency
System.Action<ILineItem, ValidationIssue> onValidationError
Returns
Type Description
System.Boolean

UpdatePlacedPrice(ILineItem, CustomerContact, MarketId, Currency, Action<ILineItem, ValidationIssue>)

Updates the ILineItem item placed price or raises ValidationIssue if there is no valid price.

Declaration
public virtual bool UpdatePlacedPrice(ILineItem lineItem, CustomerContact customerContact, MarketId marketId, Currency currency, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
Type Name Description
ILineItem lineItem

The line item.

CustomerContact customerContact

The customer contact.

MarketId marketId

The market id.

Currency currency

The currency.

System.Action<ILineItem, ValidationIssue> onValidationError

A callback that is invoked if a validation issue is detected.

Returns
Type Description
System.Boolean

False if is there is no valid price

Implements