Interface RequestVersionResolver

All Known Implementing Classes:
HeaderRequestVersionResolver

public interface RequestVersionResolver
Used for determining what version of the payment and payment transaction the client is using based off of attributes from the request.
Author:
Marie Standeven (marieStandeven)
  • Method Summary

    Modifier and Type
    Method
    Description
    resolvePaymentTransactionVersion(jakarta.servlet.http.HttpServletRequest request)
    Determines the client's payment transaction version based off of some attribute of the request.
    resolvePaymentVersion(jakarta.servlet.http.HttpServletRequest request)
    Determines the client's payment version based off of some attribute of the request.
    resolveSavedPaymentVersion(jakarta.servlet.http.HttpServletRequest request)
    Determines the client's saved payment version based off of some attribute of the request.
  • Method Details

    • resolvePaymentVersion

      Optional<Integer> resolvePaymentVersion(jakarta.servlet.http.HttpServletRequest request)
      Determines the client's payment version based off of some attribute of the request.
      Parameters:
      request - the request to examine to determine the client's payment version
      Returns:
      the payment version, or empty if unavailable
    • resolveSavedPaymentVersion

      Optional<Integer> resolveSavedPaymentVersion(jakarta.servlet.http.HttpServletRequest request)
      Determines the client's saved payment version based off of some attribute of the request.
      Parameters:
      request - the request to examine to determine the client's saved payment version
      Returns:
      the saved payment version, or empty if unavailable
    • resolvePaymentTransactionVersion

      Optional<Integer> resolvePaymentTransactionVersion(jakarta.servlet.http.HttpServletRequest request)
      Determines the client's payment transaction version based off of some attribute of the request.
      Parameters:
      request - the request to examine to determine the client's payment transaction version
      Returns:
      the payment transaction version, or empty if unavailable