AddItemToCartValidator Class |
Namespace: CMS.Ecommerce
public class AddItemToCartValidator : IValidator
The AddItemToCartValidator type exposes the following members.
Name | Description | |
---|---|---|
AddItemToCartValidator |
Initializes a new instance of the AddItemToCartValidator class for given cart and itemParameters.
|
Name | Description | |
---|---|---|
Cart |
Gets shopping cart this validator was initialized for.
| |
Errors |
Gets an enumeration of validation errors associated with this validator. An empty enumeration is returned
if validation succeeded.
| |
IsValid |
Gets a value indicating whether validation succeeded.
| |
ItemParameters |
Gets item parameters this validator was initialized for.
| |
SKUInfoProvider |
Gets the provider for SKUInfo management.
|
Name | Description | |
---|---|---|
Validate |
Validates the ItemParameters specify an SKU from the same site as Cart is.
|
Name | Description | |
---|---|---|
ContainsTValidatorError |
Returns a value indicating whether a validation error of type TValidatorError is in Errors.
(Defined by IValidatorExtensions.) | |
FirstErrorType |
Returns Type of the first validation error in Errors.
(Defined by IValidatorExtensions.) | |
GetErrorMessages |
Returns collection of localized error messages that occurred during validation.
(Defined by IValidatorExtensions.) |