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 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

      void setEntityVersion(Integer version)
      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