Table of Contents

Class VaucherValidRule

Namespace
Dynamicweb.Ecommerce.Orders.Validation.Rules
Assembly
Dynamicweb.Ecommerce.dll

The class VaucherValidRule represents Rule based on is Voucher valid checking.

[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

string

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 string

The voucher code to validate.

Returns

bool
To top