Class SpendAmountGetMonetaryDiscountValidator

Validates conditions for the ISpendAmountGetMonetaryDiscount promotion.

Inheritance
System.Object
SpendAmountGetMonetaryDiscountValidator
Implements
EPiServer.Validation.IValidate<ISpendAmountGetMonetaryDiscount>
EPiServer.Validation.IValidate
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.Validation
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class SpendAmountGetMonetaryDiscountValidator : IValidate<ISpendAmountGetMonetaryDiscount>, IValidate

Constructors

SpendAmountGetMonetaryDiscountValidator(LocalizationService)

Initializes a new instance of the SpendAmountGetMonetaryDiscountValidator class.

Declaration
public SpendAmountGetMonetaryDiscountValidator(LocalizationService localizationService)
Parameters
Type Name Description
EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

Methods

Validate(ISpendAmountGetMonetaryDiscount)

Validates the specified promotion.

Declaration
public IEnumerable<ValidationError> Validate(ISpendAmountGetMonetaryDiscount promotion)
Parameters
Type Name Description
ISpendAmountGetMonetaryDiscount promotion

The promotion that will be validated.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Validation.ValidationError>

Validation errors for any empty required property.

Implements

EPiServer.Validation.IValidate<>
EPiServer.Validation.IValidate