Class ResolveCartRequest
java.lang.Object
com.broadleafcommerce.cartoperation.domain.resolution.ResolveCartRequest
A DTO used for passing data for
Cart
resolution.- Author:
- Sunny Yu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A map to hold additional data.The cart id used to resolve the cart.The version of the cart.com.broadleafcommerce.order.common.domain.CustomerRef
TheCustomerRef
representing the currently authenticated user.The flow that this cart resolution is for.int
hashCode()
boolean
Whether the resolvedCart
should be repriced if the pricing is stale.void
setAdditionalData
(Map<String, Object> additionalData) A map to hold additional data.void
The cart id used to resolve the cart.void
setCartVersion
(Integer cartVersion) The version of the cart.void
setCustomerRef
(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) TheCustomerRef
representing the currently authenticated user.void
setRepriceCartOnResolve
(boolean repriceCartOnResolve) Whether the resolvedCart
should be repriced if the pricing is stale.void
setWorkflow
(String workflow) The flow that this cart resolution is for.toString()
-
Constructor Details
-
ResolveCartRequest
public ResolveCartRequest()
-
-
Method Details
-
getCartId
The cart id used to resolve the cart. -
getCartVersion
The version of the cart. -
getCustomerRef
public com.broadleafcommerce.order.common.domain.CustomerRef getCustomerRef()TheCustomerRef
representing the currently authenticated user. -
getWorkflow
The flow that this cart resolution is for.This is useful for validation for when a cart can be read or updated depending on its status and the workflow.
- See Also:
-
isRepriceCartOnResolve
public boolean isRepriceCartOnResolve()Whether the resolvedCart
should be repriced if the pricing is stale. -
getAdditionalData
A map to hold additional data. -
setCartId
The cart id used to resolve the cart. -
setCartVersion
The version of the cart. -
setCustomerRef
public void setCustomerRef(com.broadleafcommerce.order.common.domain.CustomerRef customerRef) TheCustomerRef
representing the currently authenticated user. -
setWorkflow
The flow that this cart resolution is for.This is useful for validation for when a cart can be read or updated depending on its status and the workflow.
- See Also:
-
setRepriceCartOnResolve
public void setRepriceCartOnResolve(boolean repriceCartOnResolve) Whether the resolvedCart
should be repriced if the pricing is stale. -
setAdditionalData
A map to hold additional data. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-