Package com.blockchyp.client.dto
Class TerminalActivationRequest
java.lang.Object
com.blockchyp.client.dto.TerminalActivationRequest
- All Implemented Interfaces:
ITimeoutRequest
Models a terminal activation request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the terminal activation code displayed on the terminal.Gets the optional merchant id.Gets the name to be assigned to the terminal.intGets the request timeout in seconds.booleanGets that the terminal should be activated in cloud relay mode.booleanisTest()Gets whether or not to route transaction to the test gateway.voidsetActivationCode(String value) Sets the terminal activation code displayed on the terminal.voidsetCloudRelay(boolean value) Sets that the terminal should be activated in cloud relay mode.voidsetMerchantId(String value) Sets the optional merchant id.voidsetTerminalName(String value) Sets the name to be assigned to the terminal.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
-
TerminalActivationRequest
public TerminalActivationRequest()
-
-
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 optional merchant id.- Parameters:
value- the optional merchant id.
-
getMerchantId
Gets the optional merchant id.- Returns:
- the optional merchant id.
-
setActivationCode
Sets the terminal activation code displayed on the terminal.- Parameters:
value- the terminal activation code displayed on the terminal.
-
getActivationCode
Gets the terminal activation code displayed on the terminal.- Returns:
- the terminal activation code displayed on the terminal.
-
setTerminalName
Sets the name to be assigned to the terminal.- Parameters:
value- the name to be assigned to the terminal. Must be unique for the merchant account.
-
getTerminalName
Gets the name to be assigned to the terminal.- Returns:
- the name to be assigned to the terminal. Must be unique for the merchant account.
-
setCloudRelay
public void setCloudRelay(boolean value) Sets that the terminal should be activated in cloud relay mode.- Parameters:
value- that the terminal should be activated in cloud relay mode.
-
isCloudRelay
public boolean isCloudRelay()Gets that the terminal should be activated in cloud relay mode.- Returns:
- that the terminal should be activated in cloud relay mode.
-