Table of Contents

Class GiftCardValidCurrencyRule

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

The class GiftCardValidCurrencyRule represents Rule based on is GiftCard currency proper checking.

[AddInName("Is currency proper")]
[AddInUseParameters(false)]
[AddInOrder(0)]
public class GiftCardValidCurrencyRule : Rule
Inheritance
GiftCardValidCurrencyRule
Inherited Members

Properties

Parameters

The rule parameters.

public override string Parameters { get; set; }

Property Value

string

Methods

Validates(string)

Validates value according the giftcard exist and have currency code equal to current Context cart currency code checking.

public override bool Validates(string value)

Parameters

value string

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

Returns

bool
To top