java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.domain.cart.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:
  • Constructor Details

    • UpdateCartRequest

      public UpdateCartRequest()
  • Method Details

    • 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.

    • allowPriceCart

      public boolean allowPriceCart()
      Whether the cart may be priced.
    • wasCartModified

      public boolean wasCartModified()
      Whether the cart was actually modified by the caller.
    • invalidatePrices

      public boolean invalidatePrices()
      Whether to invalidate prices on the cart if changes were made.
    • getPaymentLockTokens

      public Map<String,String> getPaymentLockTokens()
      Tokens that grant this service access to act upon the payment. The presence of these tokens indicates that this execution flow owns the lock.
    • 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.

    • allowPriceCart

      public UpdateCartRequest allowPriceCart(boolean allowPriceCart)
      Whether the cart may be priced.
      Returns:
      this.
    • wasCartModified

      public UpdateCartRequest wasCartModified(boolean wasCartModified)
      Whether the cart was actually modified by the caller.
      Returns:
      this.
    • invalidatePrices

      public UpdateCartRequest invalidatePrices(boolean invalidatePrices)
      Whether to invalidate prices on the cart if changes were made.
      Returns:
      this.
    • setPaymentLockTokens

      public void setPaymentLockTokens(Map<String,String> paymentLockTokens)
      Tokens that grant this service access to act upon the payment. The presence of these tokens indicates that this execution flow owns the lock.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object