Class GiftCardValidRule
- Namespace
- Dynamicweb.Ecommerce.Orders.Validation.Rules
- Assembly
- Dynamicweb.Ecommerce.dll
[AddInName("Is valid")]
[AddInUseParameters(false)]
[AddInOrder(0)]
public class GiftCardValidRule : Rule
- Inheritance
-
GiftCardValidRule
- Inherited Members
Properties
Parameters
The rule parameters.
public override string Parameters { get; set; }
Property Value
Methods
Validates(string)
Validates value checking if the giftcard exist, have currency code equal to current Context cart currency code, not expired and have balance > 0.
public override bool Validates(string value)
Parameters
value
stringThe value as comma-separated(with ";" symbol) gift card codes.