Package com.blockchyp.client.dto
Class LocateResponse
java.lang.Object
com.blockchyp.client.dto.LocateResponse
- All Implemented Interfaces:
IAbstractAcknowledgement,ICoreResponse
The response to a locate request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the ID assigned to the batch.Gets the settlement account for merchants with split settlements.getError()Gets the error, if an error occurred.Gets the local IP address of the terminal.Gets the terminal's public key.Gets a narrative description of the transaction result.getSig()Gets the ECC signature of the response.Gets the name assigned to the terminal at activation.Gets the hash of the last tick block.Gets the timestamp of the transaction.Gets the ID assigned to the transaction.Gets the transaction reference string assigned to the transaction request.Gets the type of transaction.booleanGets whether or not the terminal is running in cloud relay mode.booleanGets whether or not the request succeeded.booleanisTest()Gets that the transaction was processed on the test gateway.voidsetBatchId(String value) Sets the ID assigned to the batch.voidsetCloudRelay(boolean value) Sets whether or not the terminal is running in cloud relay mode.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidSets the error, if an error occurred.voidsetIpAddress(String value) Sets the local IP address of the terminal.voidsetPublicKey(String value) Sets the terminal's public key.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidSets the ECC signature of the response.voidsetSuccess(boolean value) Sets whether or not the request succeeded.voidsetTerminalName(String value) Sets the name assigned to the terminal at activation.voidsetTest(boolean value) Sets that the transaction was processed on the test gateway.voidsetTickBlock(String value) Sets the hash of the last tick block.voidsetTimestamp(String value) Sets the timestamp of the transaction.voidsetTransactionId(String value) Sets the ID assigned to the transaction.voidsetTransactionRef(String value) Sets the transaction reference string assigned to the transaction request.voidsetTransactionType(String value) Sets the type of transaction.
-
Constructor Details
-
LocateResponse
public LocateResponse()
-
-
Method Details
-
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.
-
setTransactionId
Sets the ID assigned to the transaction.- Parameters:
value- the ID assigned to the transaction.
-
getTransactionId
Gets the ID assigned to the transaction.- Specified by:
getTransactionIdin interfaceICoreResponse- Returns:
- the ID assigned to the transaction.
-
setBatchId
Sets the ID assigned to the batch.- Parameters:
value- the ID assigned to the batch.
-
getBatchId
Gets the ID assigned to the batch.- Specified by:
getBatchIdin interfaceICoreResponse- Returns:
- the ID assigned to the batch.
-
setTransactionRef
Sets the transaction reference string assigned to the transaction request.- Parameters:
value- the transaction reference string assigned to the transaction request. If no transaction ref was assiged on the request, then the gateway will randomly generate one.
-
getTransactionRef
Gets the transaction reference string assigned to the transaction request.- Specified by:
getTransactionRefin interfaceICoreResponse- Returns:
- the transaction reference string assigned to the transaction request. If no transaction ref was assiged on the request, then the gateway will randomly generate one.
-
setTransactionType
Sets the type of transaction.- Parameters:
value- the type of transaction.
-
getTransactionType
Gets the type of transaction.- Specified by:
getTransactionTypein interfaceICoreResponse- Returns:
- the type of transaction.
-
setTimestamp
Sets the timestamp of the transaction.- Parameters:
value- the timestamp of the transaction.
-
getTimestamp
Gets the timestamp of the transaction.- Specified by:
getTimestampin interfaceICoreResponse- Returns:
- the timestamp of the transaction.
-
setTickBlock
Sets the hash of the last tick block.- Parameters:
value- the hash of the last tick block.
-
getTickBlock
Gets the hash of the last tick block.- Specified by:
getTickBlockin interfaceICoreResponse- Returns:
- the hash of the last tick block.
-
setTest
public void setTest(boolean value) Sets that the transaction was processed on the test gateway.- Parameters:
value- that the transaction was processed on the test gateway.
-
isTest
public boolean isTest()Gets that the transaction was processed on the test gateway.- Specified by:
isTestin interfaceICoreResponse- Returns:
- that the transaction was processed on the test gateway.
-
setDestinationAccount
Sets the settlement account for merchants with split settlements.- Parameters:
value- the settlement account for merchants with split settlements.
-
getDestinationAccount
Gets the settlement account for merchants with split settlements.- Specified by:
getDestinationAccountin interfaceICoreResponse- Returns:
- the settlement account for merchants with split settlements.
-
setSig
Sets the ECC signature of the response.- Parameters:
value- the ECC signature of the response. Can be used to ensure that it was signed by the terminal and detect man-in-the middle attacks.
-
getSig
Gets the ECC signature of the response.- Specified by:
getSigin interfaceICoreResponse- Returns:
- the ECC signature of the response. Can be used to ensure that it was signed by the terminal and detect man-in-the middle attacks.
-
setTerminalName
Sets the name assigned to the terminal at activation.- Parameters:
value- the name assigned to the terminal at activation.
-
getTerminalName
Gets the name assigned to the terminal at activation.- Returns:
- the name assigned to the terminal at activation.
-
setIpAddress
Sets the local IP address of the terminal.- Parameters:
value- the local IP address of the terminal.
-
getIpAddress
Gets the local IP address of the terminal.- Returns:
- the local IP address of the terminal.
-
setCloudRelay
public void setCloudRelay(boolean value) Sets whether or not the terminal is running in cloud relay mode.- Parameters:
value- whether or not the terminal is running in cloud relay mode.
-
isCloudRelay
public boolean isCloudRelay()Gets whether or not the terminal is running in cloud relay mode.- Returns:
- whether or not the terminal is running in cloud relay mode.
-
setPublicKey
Sets the terminal's public key.- Parameters:
value- the terminal's public key.
-
getPublicKey
Gets the terminal's public key.- Returns:
- the terminal's public key.
-