Class VaucherValidRule
- Namespace
- Dynamicweb.Ecommerce.Orders.Validation.Rules
- Assembly
- Dynamicweb.Ecommerce.dll
[AddInName("Is valid")]
[AddInUseParameters(false)]
[AddInOrder(0)]
public class VaucherValidRule : Rule
- Inheritance
-
VaucherValidRule
- Inherited Members
Properties
Parameters
The rule parameters.
public override string Parameters { get; set; }
Property Value
Methods
Validates(string)
Validates value checking if the voucher exist and successfully passed through IsValidVoucher(string, int) method.
public override bool Validates(string value)
Parameters
value
stringThe voucher code to validate.