Interface ILineItemValidator
Validates a ILineItem to make sure the line item is still valid to be purchased.
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public interface ILineItemValidator
Methods
Validate(ILineItem, IMarket, Action<ILineItem, ValidationIssue>)
Validates the specified line item.
Declaration
[Obsolete("This method is no longer used. Use the overload with MarketId instead. Will remain at least until May 2019.")]
bool Validate(ILineItem lineItem, IMarket market, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
Type | Name | Description |
---|---|---|
ILineItem | lineItem | The line item. |
IMarket | market | The market. |
System.Action<ILineItem, ValidationIssue> | onValidationError | A callback that is invoked if a validation issue is detected. |
Returns
Type | Description |
---|---|
System.Boolean |
Validate(ILineItem, MarketId, Action<ILineItem, ValidationIssue>)
Validates the specified line item.
Declaration
bool Validate(ILineItem lineItem, MarketId marketId, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
Type | Name | Description |
---|---|---|
ILineItem | lineItem | The line item. |
MarketId | marketId | The market id. |
System.Action<ILineItem, ValidationIssue> | onValidationError | A callback that is invoked if a validation issue is detected. |
Returns
Type | Description |
---|---|
System.Boolean |