Table of Contents

Class FieldValidator

Namespace
Dynamicweb.Ecommerce.Cart
Assembly
Dynamicweb.Ecommerce.dll
FieldValidator class.
public class FieldValidator
Inheritance
FieldValidator
Inherited Members

Methods

ValidateOrder(ModuleSettings, Order)

Validates the given order based on the module settings
public static IEnumerable<ValidationError> ValidateOrder(ModuleSettings settings, Order order)

Parameters

settings ModuleSettings
The module settings of the Cart V2
order Order
The order to validate

Returns

IEnumerable<ValidationError>
An IEnumerable of ValidationError

ValidateRequest(IEnumerable<ValidationGroupInfo>, Order)

Validates the current request on the given validation groups
public static IEnumerable<ValidationError> ValidateRequest(IEnumerable<ValidationGroupInfo> validationGroups, Order order)

Parameters

validationGroups IEnumerable<ValidationGroupInfo>
An IEnumerable of ValidationGroupInfo containing ValidationInfo
order Order
The order to validate

Returns

IEnumerable<ValidationError>
The validation errors as an IEnumerable of ValidationError
To top