Class ChangeCartStatusRequest
java.lang.Object
com.broadleafcommerce.cartoperation.domain.status.ChangeCartStatusRequest
A DTO used for passing data when changing the
Cart
status.- Author:
- Sunny Yu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A map to hold additional data.com.broadleafcommerce.cart.client.domain.Cart
getCart()
TheCart
whose status is being changed.com.broadleafcommerce.cart.client.domain.CartActionAudit
An optionalCartActionAudit
to create when changing the cart status.com.broadleafcommerce.order.common.domain.CustomerRef
TheCustomerRef
representing the currently authenticated user.The old cart status to change from.The target status to change the cart to.int
hashCode()
boolean
saveCart()
Whether or not to save the cart after changing status.saveCart
(boolean saveCart) Whether or not to save the cart after changing status.void
setAdditionalData
(Map<String, Object> additionalData) A map to hold additional data.void
setCart
(com.broadleafcommerce.cart.client.domain.Cart cart) TheCart
whose status is being changed.void
setCartActionAuditToCreate
(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate) An optionalCartActionAudit
to create when changing the cart status.void
setCustomerRef
(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) TheCustomerRef
representing the currently authenticated user.void
setOldStatus
(String oldStatus) The old cart status to change from.void
setTargetStatus
(String targetStatus) The target status to change the cart to.toString()
-
Constructor Details
-
ChangeCartStatusRequest
public ChangeCartStatusRequest()
-
-
Method Details
-
getCurrentCartStatus
-
getCartType
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()TheCart
whose status is being changed. -
getOldStatus
The old cart status to change from. -
getTargetStatus
The target status to change the cart to. -
getCustomerRef
public com.broadleafcommerce.order.common.domain.CustomerRef getCustomerRef()TheCustomerRef
representing the currently authenticated user. -
saveCart
public boolean saveCart()Whether or not to save the cart after changing status. -
getCartActionAuditToCreate
@Nullable public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAuditToCreate()An optionalCartActionAudit
to create when changing the cart status. -
getAdditionalData
A map to hold additional data. -
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart) TheCart
whose status is being changed. -
setOldStatus
The old cart status to change from. -
setTargetStatus
The target status to change the cart to. -
setCustomerRef
public void setCustomerRef(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) TheCustomerRef
representing the currently authenticated user. -
saveCart
Whether or not to save the cart after changing status.- Returns:
this
.
-
setCartActionAuditToCreate
public void setCartActionAuditToCreate(@Nullable com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate) An optionalCartActionAudit
to create when changing the cart status. -
setAdditionalData
A map to hold additional data. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-