Class CartItemModifyingRequest

    • Constructor Detail

      • CartItemModifyingRequest

        public CartItemModifyingRequest()
    • Method Detail

      • getCartVersion

        public Integer getCartVersion()
        Description copied from interface: CartVersionedRequest
        Gets the cart version that the client is aware of. This should be populated by the client when making a request that modifies an existing cart.
        Specified by:
        getCartVersion in interface CartVersionedRequest
        Returns:
        the cart version
      • setCartVersion

        public void setCartVersion​(Integer cartVersion)
        Description copied from interface: CartVersionedRequest
        Sets the cart version. Typically only used for setting the version on the request body if the version came from an alternative source (e.g. cookie or header).
        Specified by:
        setCartVersion in interface CartVersionedRequest
        Parameters:
        cartVersion - the version to set for this request
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object