Package com.blockchyp.client.dto
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Gets an alias or code used to refer to a template.Gets the full text of the agreement template.getError()Gets the error, if an error occurred.getId()Gets primary identifier for a given template.getName()Gets the name of the template.Gets a narrative description of the transaction result.intGets the request timeout in seconds.booleanGets whether or not the request succeeded.booleanisTest()Gets whether or not to route transaction to the test gateway.voidSets an alias or code used to refer to a template.voidsetContent(String value) Sets the full text of the agreement template.voidSets the error, if an error occurred.voidSets primary identifier for a given template.voidSets the name of the template.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidsetSuccess(boolean value) Sets whether or not the request succeeded.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
-
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:
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.
-
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:
isSuccessin interfaceIAbstractAcknowledgement- Returns:
- whether or not the request succeeded.
-
setError
Sets the error, if an error occurred.- Parameters:
value- the error, if an error occurred.
-
getError
Gets the error, if an error occurred.- Specified by:
getErrorin interfaceIAbstractAcknowledgement- Returns:
- the error, if an error occurred.
-
setResponseDescription
Sets a narrative description of the transaction result.- Parameters:
value- a narrative description of the transaction result.
-
getResponseDescription
Gets a narrative description of the transaction result.- Specified by:
getResponseDescriptionin interfaceIAbstractAcknowledgement- Returns:
- a narrative description of the transaction result.
-
setId
Sets primary identifier for a given template.- Parameters:
value- primary identifier for a given template.
-
getId
Gets primary identifier for a given template.- Returns:
- primary identifier for a given template.
-
setAlias
Sets an alias or code used to refer to a template.- Parameters:
value- an alias or code used to refer to a template.
-
getAlias
Gets an alias or code used to refer to a template.- Returns:
- an alias or code used to refer to a template.
-
setName
Sets the name of the template.- Parameters:
value- the name of the template. Displayed as the agreement title on the terminal.
-
getName
Gets the name of the template.- Returns:
- the name of the template. Displayed as the agreement title on the terminal.
-
setContent
Sets the full text of the agreement template.- Parameters:
value- the full text of the agreement template.
-
getContent
Gets the full text of the agreement template.- Returns:
- the full text of the agreement template.
-