Class CartModifyingRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
-
- All Implemented Interfaces:
CartVersionedRequest
,Serializable
- Direct Known Subclasses:
AddAttributeRequest
,AddCodeRequest
,AddItemRequest
,ContactInfoRequest
,PriceCartRequest
,UpdateCartStatusRequest
,UpdateFulfillmentGroupRequest
public abstract class CartModifyingRequest extends Object implements CartVersionedRequest, Serializable
Base request for any request that modifies the cart directly.- Author:
- Jacob Mitash
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CartModifyingRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Integer
getCartVersion()
Gets the cart version that the client is aware of.Integer
getVersion()
int
hashCode()
void
setCartVersion(Integer version)
Sets the cart version.void
setVersion(Integer version)
String
toString()
-
-
-
Method Detail
-
getCartVersion
public Integer getCartVersion()
Description copied from interface:CartVersionedRequest
Gets 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:
getCartVersion
in interfaceCartVersionedRequest
- Returns:
- the cart version
-
setCartVersion
public void setCartVersion(Integer version)
Description copied from interface:CartVersionedRequest
Sets 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:
setCartVersion
in interfaceCartVersionedRequest
- Parameters:
version
- the version to set for this request
-
getVersion
public Integer getVersion()
-
setVersion
public void setVersion(Integer version)
-
canEqual
protected boolean canEqual(Object other)
-
-