Table of Contents

Class GiftCardValidRule

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

The class GiftCardValidRule represents Rule based on is GiftCard valid to use checking.

[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

string

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 string

The value as comma-separated(with ";" symbol) gift card codes.

Returns

bool
To top