Class SpendAmountGetGiftItemsValidator
Validates conditions for the SpendAmountGetGiftItems promotion.
Inheritance
System.Object
SpendAmountGetGiftItemsValidator
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 SpendAmountGetGiftItemsValidator : IValidate<SpendAmountGetGiftItems>, IValidate
Constructors
SpendAmountGetGiftItemsValidator(LocalizationService)
Initializes a new instance of the SpendAmountGetGiftItemsValidator class.
Declaration
public SpendAmountGetGiftItemsValidator(LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Framework.Localization.LocalizationService | localizationService | The localization service. |
Methods
Validate(SpendAmountGetGiftItems)
Validates the specified promotion.
Declaration
public IEnumerable<ValidationError> Validate(SpendAmountGetGiftItems promotion)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetGiftItems | promotion | The promotion that will be validated. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EPiServer.Validation.ValidationError> | Validation errors for any empty collection property. |
Implements
EPiServer.Validation.IValidate<>
EPiServer.Validation.IValidate