A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class MonetaryRewardValidator

Validates the MonetaryReward condition.

Inheritance
System.Object
MonetaryRewardValidator
Implements
EPiServer.Validation.IValidate<MonetaryReward>
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 MonetaryRewardValidator : IValidate<MonetaryReward>, IValidate

Constructors

MonetaryRewardValidator(LocalizationService)

Initializes a new instance of the SpendAmountGetMonetaryDiscountValidator class.

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

The localization service.

Methods

Validate(MonetaryReward)

Validates the specified monetary reward.

Declaration
public IEnumerable<ValidationError> Validate(MonetaryReward monetaryReward)
Parameters
Type Name Description
MonetaryReward monetaryReward

The monetary reward 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