Class UpdateCartRequest

  • All Implemented Interfaces:
    Serializable

    public class UpdateCartRequest
    extends Object
    implements Serializable
    A request containing the new version of Cart for update or replace operations, along with a CartActionAudit to create if needed.
    See Also:
    Serialized Form
    • Constructor Detail

      • UpdateCartRequest

        public UpdateCartRequest()
    • Method Detail

      • getCart

        public com.broadleafcommerce.cart.client.domain.Cart getCart()
        An updated Cart object.
      • getCartActionAuditToCreate

        @Nullable
        public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAuditToCreate()
        A CartActionAudit to create along with the cart update.

        This is typically for B2B use cases where a CartActionAudit needs to be created when an action is performed on an account cart.

      • setCart

        public void setCart​(com.broadleafcommerce.cart.client.domain.Cart cart)
        An updated Cart object.
      • setCartActionAuditToCreate

        public void setCartActionAuditToCreate​(@Nullable
                                               com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate)
        A CartActionAudit to create along with the cart update.

        This is typically for B2B use cases where a CartActionAudit needs to be created when an action is performed on an account cart.

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object