Package com.blockchyp.client.dto
Class MerchantCredentialGenerationRequest
java.lang.Object
com.blockchyp.client.dto.MerchantCredentialGenerationRequest
- All Implemented Interfaces:
ITimeoutRequest
Models a request to generate merchant api credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a an optional array of role codes that will be assigned to the credentials.Gets type of credentials to generate, either API or TOKENIZING.Gets the merchant id.getNotes()Gets free form description of the purpose or intent behind the credentials.getRoles()Gets an optional array of role codes that will be assigned to the credentials.intGets the request timeout in seconds.booleanGets protects the credentials from deletion.booleanisTest()Gets whether or not to route transaction to the test gateway.voidsetCredentialType(String value) Sets type of credentials to generate, either API or TOKENIZING.voidsetDeleteProtected(boolean value) Sets protects the credentials from deletion.voidsetMerchantId(String value) Sets the merchant id.voidSets free form description of the purpose or intent behind the credentials.voidsetRoles(Collection<String> value) Sets an optional array of role codes that will be assigned to the credentials.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetTimeout(int value) Sets the request timeout in seconds.
-
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:
getTimeoutin interfaceITimeoutRequest- 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:
isTestin interfaceITimeoutRequest- Returns:
- whether or not to route transaction to the test gateway.
-
setMerchantId
Sets the merchant id.- Parameters:
value- the merchant id.
-
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
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
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
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
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
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
Gets type of credentials to generate, either API or TOKENIZING.- Returns:
- type of credentials to generate, either API or TOKENIZING. Defaults to API.
-
addRole
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.
-