Class TermsAndConditionsTemplate

java.lang.Object
com.blockchyp.client.dto.TermsAndConditionsTemplate
All Implemented Interfaces:
IAbstractAcknowledgement, ITimeoutRequest

public class TermsAndConditionsTemplate extends Object implements ITimeoutRequest, IAbstractAcknowledgement
Models a full terms and conditions template.
  • Constructor Details

    • TermsAndConditionsTemplate

      public TermsAndConditionsTemplate()
  • Method Details

    • setTimeout

      public void setTimeout(int value)
      Sets the request timeout in seconds.
      Parameters:
      value - the request timeout in seconds.
    • getTimeout

      public int getTimeout()
      Gets the request timeout in seconds.
      Specified by:
      getTimeout in interface ITimeoutRequest
      Returns:
      the request timeout in seconds.
    • setTest

      public void setTest(boolean value)
      Sets whether or not to route transaction to the test gateway.
      Parameters:
      value - whether or not to route transaction to the test gateway.
    • isTest

      public boolean isTest()
      Gets whether or not to route transaction to the test gateway.
      Specified by:
      isTest in interface ITimeoutRequest
      Returns:
      whether or not to route transaction to the test gateway.
    • setSuccess

      public void setSuccess(boolean value)
      Sets whether or not the request succeeded.
      Parameters:
      value - whether or not the request succeeded.
    • isSuccess

      public boolean isSuccess()
      Gets whether or not the request succeeded.
      Specified by:
      isSuccess in interface IAbstractAcknowledgement
      Returns:
      whether or not the request succeeded.
    • setError

      public void setError(String value)
      Sets the error, if an error occurred.
      Parameters:
      value - the error, if an error occurred.
    • getError

      public String getError()
      Gets the error, if an error occurred.
      Specified by:
      getError in interface IAbstractAcknowledgement
      Returns:
      the error, if an error occurred.
    • setResponseDescription

      public void setResponseDescription(String value)
      Sets a narrative description of the transaction result.
      Parameters:
      value - a narrative description of the transaction result.
    • getResponseDescription

      public String getResponseDescription()
      Gets a narrative description of the transaction result.
      Specified by:
      getResponseDescription in interface IAbstractAcknowledgement
      Returns:
      a narrative description of the transaction result.
    • setId

      public void setId(String value)
      Sets primary identifier for a given template.
      Parameters:
      value - primary identifier for a given template.
    • getId

      public String getId()
      Gets primary identifier for a given template.
      Returns:
      primary identifier for a given template.
    • setAlias

      public void setAlias(String value)
      Sets an alias or code used to refer to a template.
      Parameters:
      value - an alias or code used to refer to a template.
    • getAlias

      public String getAlias()
      Gets an alias or code used to refer to a template.
      Returns:
      an alias or code used to refer to a template.
    • setName

      public void setName(String value)
      Sets the name of the template.
      Parameters:
      value - the name of the template. Displayed as the agreement title on the terminal.
    • getName

      public String getName()
      Gets the name of the template.
      Returns:
      the name of the template. Displayed as the agreement title on the terminal.
    • setContent

      public void setContent(String value)
      Sets the full text of the agreement template.
      Parameters:
      value - the full text of the agreement template.
    • getContent

      public String getContent()
      Gets the full text of the agreement template.
      Returns:
      the full text of the agreement template.