Class UpdateCartRequest
java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.domain.cart.UpdateCartRequest
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the cart may be priced.allowPriceCart(boolean allowPriceCart) Whether the cart may be priced.protected booleanbooleancom.broadleafcommerce.cart.client.domain.CartgetCart()An updatedCartobject.com.broadleafcommerce.cart.client.domain.CartActionAuditACartActionAuditto create along with the cart update.Tokens that grant this service access to act upon the payment.inthashCode()booleanWhether to invalidate prices on the cart if changes were made.invalidatePrices(boolean invalidatePrices) Whether to invalidate prices on the cart if changes were made.voidsetCart(com.broadleafcommerce.cart.client.domain.Cart cart) An updatedCartobject.voidsetCartActionAuditToCreate(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate) ACartActionAuditto create along with the cart update.voidsetPaymentLockTokens(Map<String, String> paymentLockTokens) Tokens that grant this service access to act upon the payment.toString()booleanWhether the cart was actually modified by the caller.wasCartModified(boolean wasCartModified) Whether the cart was actually modified by the caller.
-
Constructor Details
-
UpdateCartRequest
public UpdateCartRequest()
-
-
Method Details
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()An updatedCartobject. -
getCartActionAuditToCreate
@Nullable public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAuditToCreate()ACartActionAuditto create along with the cart update.This is typically for B2B use cases where a
CartActionAuditneeds 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
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 updatedCartobject. -
setCartActionAuditToCreate
public void setCartActionAuditToCreate(@Nullable com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate) ACartActionAuditto create along with the cart update.This is typically for B2B use cases where a
CartActionAuditneeds to be created when an action is performed on an account cart. -
allowPriceCart
Whether the cart may be priced.- Returns:
this.
-
wasCartModified
Whether the cart was actually modified by the caller.- Returns:
this.
-
invalidatePrices
Whether to invalidate prices on the cart if changes were made.- Returns:
this.
-
setPaymentLockTokens
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-