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 ShippingPromotionValidator

Validates conditions for the ShippingPromotion promotion.

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

Constructors

ShippingPromotionValidator(LocalizationService)

Initializes a new instance of the ShippingPromotionValidator class.

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

The localization service.

Methods

AddErrorsIfNeeded(ShippingPromotion, List<ValidationError>)

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

Implements

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