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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA map to hold additional data.com.broadleafcommerce.cart.client.domain.CartgetCart()TheCartwhose status is being changed.com.broadleafcommerce.cart.client.domain.CartActionAuditAn optionalCartActionAuditto create when changing the cart status.com.broadleafcommerce.order.common.domain.CustomerRefTheCustomerRefrepresenting the currently authenticated user.The old cart status to change from.The target status to change the cart to.inthashCode()booleansaveCart()Whether or not to save the cart after changing status.saveCart(boolean saveCart) Whether or not to save the cart after changing status.voidsetAdditionalData(Map<String, Object> additionalData) A map to hold additional data.voidsetCart(com.broadleafcommerce.cart.client.domain.Cart cart) TheCartwhose status is being changed.voidsetCartActionAuditToCreate(com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate) An optionalCartActionAuditto create when changing the cart status.voidsetCustomerRef(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) TheCustomerRefrepresenting the currently authenticated user.voidsetOldStatus(String oldStatus) The old cart status to change from.voidsetTargetStatus(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()TheCartwhose 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()TheCustomerRefrepresenting 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 optionalCartActionAuditto create when changing the cart status. -
getAdditionalData
A map to hold additional data. -
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart) TheCartwhose 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) TheCustomerRefrepresenting 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 optionalCartActionAuditto create when changing the cart status. -
setAdditionalData
A map to hold additional data. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-