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,UpdateCartInfoRequest,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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGets the cart version that the client is aware of.inthashCode()voidsetCartVersion(Integer version) Sets the cart version.voidsetVersion(Integer version) toString()
-
Constructor Details
-
CartModifyingRequest
public CartModifyingRequest()
-
-
Method Details
-
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
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:
version- the version to set for this request
-
getVersion
-
setVersion
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-