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