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: 10.8.0
Syntax
public interface ILineItemValidator

Methods

Validate(ILineItem, IMarket, Action<ILineItem, ValidationIssue>)

Validates the specified line item.

Declaration
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