Interface CartVersionedRequest
- All Known Implementing Classes:
AddAttributeRequest
,AddCodeRequest
,AddItemRequest
,CartItemModifyingRequest
,CartModifyingRequest
,CartRequest
,ContactInfoRequest
,OverridePriceRequest
,PriceCartRequest
,UpdateCartInfoRequest
,UpdateCartStatusRequest
,UpdateFulfillmentGroupRequest
,UpdateItemRequest
public interface CartVersionedRequest
A request which can contain a cart version for optimistic locking enforcement.
- Author:
- Jacob Mitash
-
Method Summary
Modifier and TypeMethodDescriptionGets the cart version that the client is aware of.void
setCartVersion
(Integer version) Sets the cart version.
-
Method Details
-
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
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
-