London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class PromotionWithMonetaryRewardValidator

Validates conditions for the IMonetaryDiscount promotion.

Inheritance
System.Object
PromotionWithMonetaryRewardValidator
Implements
EPiServer.Validation.IValidate<IMonetaryDiscount>
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: 13.30.0
Syntax
public class PromotionWithMonetaryRewardValidator : IValidate<IMonetaryDiscount>, IValidate

Constructors

PromotionWithMonetaryRewardValidator(IContentLoader, LocalizationService, IMarketService)

Initializes a new instance of the PromotionWithMonetaryRewardValidator class.

Declaration
public PromotionWithMonetaryRewardValidator(IContentLoader contentLoader, LocalizationService localizationService, IMarketService marketService)
Parameters
Type Name Description
EPiServer.IContentLoader contentLoader

The content loader.

EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

IMarketService marketService

The market service.

Methods

Validate(IMonetaryDiscount)

Validates the specified promotion.

Declaration
public IEnumerable<ValidationError> Validate(IMonetaryDiscount promotion)
Parameters
Type Name Description
IMonetaryDiscount 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