Class CartItemModifyingRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartItemModifyingRequest
-
- All Implemented Interfaces:
CartVersionedRequest,Serializable
- Direct Known Subclasses:
OverridePriceRequest,UpdateItemRequest
public abstract class CartItemModifyingRequest extends Object implements CartVersionedRequest, Serializable
Base request for any request that modifies a cart item directly.- Author:
- Jacob Mitash
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CartItemModifyingRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)IntegergetCartVersion()Gets the cart version that the client is aware of.inthashCode()voidsetCartVersion(Integer cartVersion)Sets the cart version.StringtoString()
-
-
-
Method Detail
-
getCartVersion
public Integer getCartVersion()
Description copied from interface:CartVersionedRequestGets the cart version that the client is aware of. This should be populated by the client when making a request that modifies an existing cart.- Specified by:
getCartVersionin interfaceCartVersionedRequest- Returns:
- the cart version
-
setCartVersion
public void setCartVersion(Integer cartVersion)
Description copied from interface:CartVersionedRequestSets the cart version. Typically only used for setting the version on the request body if the version came from an alternative source (e.g. cookie or header).- Specified by:
setCartVersionin interfaceCartVersionedRequest- Parameters:
cartVersion- the version to set for this request
-
canEqual
protected boolean canEqual(Object other)
-
-