Click or drag to resize
ShippingOptionValidator Class
Performs validation of a shipping option to be assigned to a shopping cart.
Inheritance Hierarchy
SystemObject
  CMS.EcommerceShippingOptionValidator

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public class ShippingOptionValidator : IValidator

The ShippingOptionValidator type exposes the following members.

Constructors
  NameDescription
Public methodShippingOptionValidator
Initializes a new instance of the ShippingOptionValidator class.
Top
Properties
  NameDescription
Public propertyCart
Gets shopping cart this validator was initialized for.
Public propertyErrors
Gets an enumeration of validation errors associated with this validator. An empty enumeration is returned if validation succeeded.
Public propertyIsValid
Gets a value indicating whether validation succeeded.
Public propertyShippingOptionInfo
Gets shipping option this validator was initialized for.
Top
Methods
  NameDescription
Public methodValidate
Validates whether a shipping option can be associated with the shopping cart.
Protected methodValidateShippingOption
Validates that shipping option is: not null, enabled, applicable to Cart, assigned to the same site as the Cart.
Top
Extension Methods
  NameDescription
Public Extension MethodContainsTValidatorError
Returns a value indicating whether a validation error of type TValidatorError is in Errors.
(Defined by IValidatorExtensions.)
Public Extension MethodFirstErrorType
Returns Type of the first validation error in Errors.
(Defined by IValidatorExtensions.)
Public Extension MethodGetErrorMessages
Returns collection of localized error messages that occurred during validation.
(Defined by IValidatorExtensions.)
Top
See Also