Class BuyQuantityPayFixedAmountValidator
Validates rewards for the BuyQuantityPayFixedAmount promotion.
Inheritance
System.Object
BuyQuantityPayFixedAmountValidator
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.0Syntax
public class BuyQuantityPayFixedAmountValidator : PromotionDataValidatorBase<BuyQuantityPayFixedAmount>, IValidate<BuyQuantityPayFixedAmount>, IValidate
Constructors
BuyQuantityPayFixedAmountValidator(LocalizationService)
Initializes a new instance of the BuyQuantityPayFixedAmountValidator class.
Declaration
public BuyQuantityPayFixedAmountValidator(LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Framework.Localization.LocalizationService | localizationService | The localization 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