Interface VersionedRequest
- All Known Implementing Classes:
SystemUpdatePaymentRequest
,UpdatePaymentRequest
,UpdateSavedPaymentMethodRequest
public interface VersionedRequest
A request which can contain a version for optimistic locking enforcement.
- Author:
- Marie Standeven (mariestandeven)
-
Method Summary
Modifier and TypeMethodDescriptionGets the version that the client is aware of.void
setEntityVersion
(Integer version) Sets the version.
-
Method Details
-
getEntityVersion
Integer getEntityVersion()Gets the version that the client is aware of. This should be populated by the client when making a request that modifies an existing entity.- Returns:
- the version that the client is aware of
-
setEntityVersion
Sets the 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 supplied from an alternative source
-