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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the cart may be priced.allowPriceCart
(boolean allowPriceCart) Whether the cart may be priced.protected boolean
boolean
com.broadleafcommerce.cart.client.domain.Cart
getCart()
An updatedCart
object.com.broadleafcommerce.cart.client.domain.CartActionAudit
ACartActionAudit
to create along with the cart update.Tokens that grant this service access to act upon the payment.int
hashCode()
boolean
Whether to invalidate prices on the cart if changes were made.invalidatePrices
(boolean invalidatePrices) Whether to invalidate prices on the cart if changes were made.void
setCart
(com.broadleafcommerce.cart.client.domain.Cart cart) An updatedCart
object.void
setCartActionAuditToCreate
(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate) ACartActionAudit
to create along with the cart update.void
setPaymentLockTokens
(Map<String, String> paymentLockTokens) Tokens that grant this service access to act upon the payment.toString()
boolean
Whether 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 updatedCart
object. -
getCartActionAuditToCreate
@Nullable public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAuditToCreate()ACartActionAudit
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
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 updatedCart
object. -
setCartActionAuditToCreate
public void setCartActionAuditToCreate(@Nullable com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate) ACartActionAudit
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
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
-