Class MerchantCredentialGenerationRequest

java.lang.Object
com.blockchyp.client.dto.MerchantCredentialGenerationRequest
All Implemented Interfaces:
ITimeoutRequest

public class MerchantCredentialGenerationRequest extends Object implements ITimeoutRequest
Models a request to generate merchant api credentials.
  • Constructor Details

    • MerchantCredentialGenerationRequest

      public MerchantCredentialGenerationRequest()
  • 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.
    • setMerchantId

      public void setMerchantId(String value)
      Sets the merchant id.
      Parameters:
      value - the merchant id.
    • getMerchantId

      public String getMerchantId()
      Gets the merchant id.
      Returns:
      the merchant id.
    • setDeleteProtected

      public void setDeleteProtected(boolean value)
      Sets protects the credentials from deletion.
      Parameters:
      value - protects the credentials from deletion.
    • isDeleteProtected

      public boolean isDeleteProtected()
      Gets protects the credentials from deletion.
      Returns:
      protects the credentials from deletion.
    • setRoles

      public void setRoles(Collection<String> value)
      Sets an optional array of role codes that will be assigned to the credentials.
      Parameters:
      value - an optional array of role codes that will be assigned to the credentials.
    • getRoles

      public Collection<String> getRoles()
      Gets an optional array of role codes that will be assigned to the credentials.
      Returns:
      an optional array of role codes that will be assigned to the credentials.
    • setNotes

      public void setNotes(String value)
      Sets free form description of the purpose or intent behind the credentials.
      Parameters:
      value - free form description of the purpose or intent behind the credentials.
    • getNotes

      public String getNotes()
      Gets free form description of the purpose or intent behind the credentials.
      Returns:
      free form description of the purpose or intent behind the credentials.
    • setCredentialType

      public void setCredentialType(String value)
      Sets type of credentials to generate, either API or TOKENIZING.
      Parameters:
      value - type of credentials to generate, either API or TOKENIZING. Defaults to API.
    • getCredentialType

      public String getCredentialType()
      Gets type of credentials to generate, either API or TOKENIZING.
      Returns:
      type of credentials to generate, either API or TOKENIZING. Defaults to API.
    • addRole

      public void addRole(String value)
      Adds a an optional array of role codes that will be assigned to the credentials.
      Parameters:
      value - an optional array of role codes that will be assigned to the credentials.