Interface IPlacedPriceProcessor
Service for updating and retrieving PlacedPrice for IOrderGroup.
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public interface IPlacedPriceProcessor
Methods
GetPlacedPrice(EntryContentBase, Decimal, CustomerContact, IMarket, Currency)
Gets the placed price.
Declaration
Money? GetPlacedPrice(EntryContentBase entry, decimal quantity, CustomerContact customerContact, IMarket market, Currency currency)
Parameters
| Type | Name | Description |
|---|---|---|
| EntryContentBase | entry | The entry. |
| System.Decimal | quantity | The quantity. |
| CustomerContact | customerContact | The customer contact. |
| IMarket | market | The market. |
| Currency | currency | The currency. |
Returns
| Type | Description |
|---|---|
| System.Nullable<Money> | A Money. |
UpdatePlacedPrice(ILineItem, CustomerContact, IMarket, Currency, Action<ILineItem, ValidationIssue>)
Updates the ILineItem item placed price or raises ValidationIssue if their is no valid price.
Declaration
bool UpdatePlacedPrice(ILineItem lineItem, CustomerContact customerContact, IMarket market, Currency currency, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
| Type | Name | Description |
|---|---|---|
| ILineItem | lineItem | The line item. |
| CustomerContact | customerContact | The customer contact. |
| IMarket | market | The market. |
| 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 |
|