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 BuyQuantityPayFixedAmountValidator

Validates rewards for the BuyQuantityPayFixedAmount promotion.

Inheritance
System.Object
BuyQuantityPayFixedAmountValidator
Implements
EPiServer.Validation.IValidate<BuyQuantityPayFixedAmount>
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 BuyQuantityPayFixedAmountValidator : PromotionDataValidatorBase<BuyQuantityPayFixedAmount>, IValidate<BuyQuantityPayFixedAmount>, IValidate

Constructors

BuyQuantityPayFixedAmountValidator(LocalizationService)

Initializes a new instance of the BuyQuantityPayFixedAmountValidator class.

Declaration
[Obsolete("This constructor is no longer used. Using the contructor with IContentLoader and IMarketService instead. Will remain at least until July 2019.")]
public BuyQuantityPayFixedAmountValidator(LocalizationService localizationService)
Parameters
Type Name Description
EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

BuyQuantityPayFixedAmountValidator(IContentLoader, LocalizationService, IMarketService)

Initializes a new instance of the BuyQuantityPayFixedAmountValidator class.

Declaration
public BuyQuantityPayFixedAmountValidator(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

AddErrorsIfNeeded(BuyQuantityPayFixedAmount, List<ValidationError>)

Declaration
protected override void AddErrorsIfNeeded(BuyQuantityPayFixedAmount promotion, List<ValidationError> validationErrors)
Parameters
Type Name Description
BuyQuantityPayFixedAmount promotion
System.Collections.Generic.List<EPiServer.Validation.ValidationError> validationErrors
Overrides
EPiServer.Commerce.Validation.PromotionDataValidatorBase<EPiServer.Commerce.Marketing.Promotions.BuyQuantityPayFixedAmount>.AddErrorsIfNeeded(EPiServer.Commerce.Marketing.Promotions.BuyQuantityPayFixedAmount, System.Collections.Generic.List<EPiServer.Validation.ValidationError>)

Implements

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