Class TerminalRequest

java.lang.Object
com.blockchyp.client.TerminalRequest

public class TerminalRequest extends Object
This class is used to wrap conventional transaction requests with an outer structure that adds API credentials. This is done because the terminal talks to the gateway directly and will need to generate gateway API headers. The credentials should almost always be transient credentials.
  • Constructor Details

    • TerminalRequest

      public TerminalRequest()
  • Method Details

    • getApiKey

      public String getApiKey()
      Returns the API key.
      Returns:
      the API key.
    • setApiKey

      public void setApiKey(String apiKey)
      Sets the API key.
      Parameters:
      apiKey - the API key.
    • getBearerToken

      public String getBearerToken()
      Returns the bearer token.
      Returns:
      bearer token.
    • setBearerToken

      public void setBearerToken(String bearerToken)
      Sets the bearer token.
      Parameters:
      bearerToken - the bearer token.
    • getSigningKey

      public String getSigningKey()
      Returns the signing key.
      Returns:
      the signing key.
    • setSigningKey

      public void setSigningKey(String signingKey)
      Sets the signing key.
      Parameters:
      signingKey - the signing key.
    • getRequest

      public Object getRequest()
      Returns the underlying request object.
      Returns:
      the underlying request.
    • setRequest

      public void setRequest(Object request)
      Sets the underlying request.
      Parameters:
      request - the underlying request.