CreateOrderValidator Class |
Namespace: CMS.Ecommerce
public class CreateOrderValidator : IValidator
The CreateOrderValidator type exposes the following members.
Name | Description | |
---|---|---|
CreateOrderValidator |
Initializes a new instance of the CreateOrderValidator class for given cart.
|
Name | Description | |
---|---|---|
Cart |
Gets shopping cart this validator was initialized for.
| |
CountryInfoProvider |
Gets the provider for CountryInfo management.
| |
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.
| |
SKUInfoProvider |
Gets the provider for SKUInfo management.
| |
StateInfoProvider |
Gets the provider for StateInfo management.
|
Name | Description | |
---|---|---|
Validate |
Validates shopping cart before creating order.
Validation includes: all required properties must be set, cart must contain at least one item, user must not be disabled, shipping and payment options, cart addresses.
| |
ValidateCartAddresses |
Validates shipping and billing addresses match customer and that all cart addresses are valid.
| |
ValidatePaymentOption |
Validates that user is authorized for selected payment option.
| |
ValidateShippingAndPaymentOptions |
Validates applicability of shipping and payment options on their own and with respect to each other.
| |
ValidateShoppingCart |
Validates shopping cart and its items.
For more details on what is validated refer to ShoppingCartValidator and ShoppingCartItemValidator.
|
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.) |