Interface CartVersionedRequest
-
- All Known Implementing Classes:
AddAttributeRequest
,AddCodeRequest
,AddItemRequest
,CartItemModifyingRequest
,CartModifyingRequest
,CartRequest
,ContactInfoRequest
,OverridePriceRequest
,PriceCartRequest
,UpdateCartStatusRequest
,UpdateFulfillmentGroupRequest
,UpdateItemRequest
public interface CartVersionedRequest
A request which can contain a cart version for optimistic locking enforcement.- Author:
- Jacob Mitash
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Integer
getCartVersion()
Gets the cart version that the client is aware of.void
setCartVersion(Integer version)
Sets the cart version.
-
-
-
Method Detail
-
getCartVersion
Integer getCartVersion()
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.- Returns:
- the cart version
-
setCartVersion
void setCartVersion(Integer version)
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).- Parameters:
version
- the version to set for this request
-
-