Class CartValidationProperties.Version

  • Enclosing class:
    CartValidationProperties

    public static class CartValidationProperties.Version
    extends Object
    Describes configuration for controlling validation that should apply to the version for carts.
    • Constructor Detail

      • Version

        public Version()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        When enabled, this service will enforce the version for any requests that modify the cart. The version must be included as part of the request body and cart cookie. If the provided version is not provided or not the latest version when this is enabled, an error will occur. Note that disabling this does not completely disable version enforcement for carts. The cart service still uses the version for optimistic locking. Disabling this will only prevent the cart operations service from throwing its own errors.
      • setEnabled

        public void setEnabled​(boolean enabled)
        When enabled, this service will enforce the version for any requests that modify the cart. The version must be included as part of the request body and cart cookie. If the provided version is not provided or not the latest version when this is enabled, an error will occur. Note that disabling this does not completely disable version enforcement for carts. The cart service still uses the version for optimistic locking. Disabling this will only prevent the cart operations service from throwing its own errors.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object