public class LocateResponse extends Object implements IAbstractAcknowledgement, ICoreResponse
Constructor and Description |
---|
LocateResponse() |
Modifier and Type | Method and Description |
---|---|
String |
getBatchId()
Gets the ID assigned to the batch.
|
String |
getDestinationAccount()
Gets the settlement account for merchants with split settlements.
|
String |
getError()
Gets the error, if an error occurred.
|
String |
getIpAddress()
Gets the local IP address of the terminal.
|
String |
getPublicKey()
Gets the terminal's public key.
|
String |
getResponseDescription()
Gets a narrative description of the transaction result.
|
String |
getSig()
Gets the ECC signature of the response.
|
String |
getTerminalName()
Gets the name assigned to the terminal at activation.
|
String |
getTickBlock()
Gets the hash of the last tick block.
|
String |
getTimestamp()
Gets the timestamp of the transaction.
|
String |
getTransactionId()
Gets the ID assigned to the transaction.
|
String |
getTransactionRef()
Gets the transaction reference string assigned to the transaction request.
|
String |
getTransactionType()
Gets the type of transaction.
|
boolean |
isCloudRelay()
Gets whether or not the terminal is running in cloud relay mode.
|
boolean |
isSuccess()
Gets whether or not the request succeeded.
|
boolean |
isTest()
Gets that the transaction was processed on the test gateway.
|
void |
setBatchId(String value)
Sets the ID assigned to the batch.
|
void |
setCloudRelay(boolean value)
Sets whether or not the terminal is running in cloud relay mode.
|
void |
setDestinationAccount(String value)
Sets the settlement account for merchants with split settlements.
|
void |
setError(String value)
Sets the error, if an error occurred.
|
void |
setIpAddress(String value)
Sets the local IP address of the terminal.
|
void |
setPublicKey(String value)
Sets the terminal's public key.
|
void |
setResponseDescription(String value)
Sets a narrative description of the transaction result.
|
void |
setSig(String value)
Sets the ECC signature of the response.
|
void |
setSuccess(boolean value)
Sets whether or not the request succeeded.
|
void |
setTerminalName(String value)
Sets the name assigned to the terminal at activation.
|
void |
setTest(boolean value)
Sets that the transaction was processed on the test gateway.
|
void |
setTickBlock(String value)
Sets the hash of the last tick block.
|
void |
setTimestamp(String value)
Sets the timestamp of the transaction.
|
void |
setTransactionId(String value)
Sets the ID assigned to the transaction.
|
void |
setTransactionRef(String value)
Sets the transaction reference string assigned to the transaction request.
|
void |
setTransactionType(String value)
Sets the type of transaction.
|
public void setSuccess(boolean value)
value
- whether or not the request succeeded.public boolean isSuccess()
isSuccess
in interface IAbstractAcknowledgement
public void setError(String value)
value
- the error, if an error occurred.public String getError()
getError
in interface IAbstractAcknowledgement
public void setResponseDescription(String value)
value
- a narrative description of the transaction result.public String getResponseDescription()
getResponseDescription
in interface IAbstractAcknowledgement
public void setTransactionId(String value)
value
- the ID assigned to the transaction.public String getTransactionId()
getTransactionId
in interface ICoreResponse
public void setBatchId(String value)
value
- the ID assigned to the batch.public String getBatchId()
getBatchId
in interface ICoreResponse
public void setTransactionRef(String value)
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.public String getTransactionRef()
getTransactionRef
in interface ICoreResponse
public void setTransactionType(String value)
value
- the type of transaction.public String getTransactionType()
getTransactionType
in interface ICoreResponse
public void setTimestamp(String value)
value
- the timestamp of the transaction.public String getTimestamp()
getTimestamp
in interface ICoreResponse
public void setTickBlock(String value)
value
- the hash of the last tick block.public String getTickBlock()
getTickBlock
in interface ICoreResponse
public void setTest(boolean value)
value
- that the transaction was processed on the test gateway.public boolean isTest()
isTest
in interface ICoreResponse
public void setDestinationAccount(String value)
value
- the settlement account for merchants with split settlements.public String getDestinationAccount()
getDestinationAccount
in interface ICoreResponse
public void setSig(String value)
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.public String getSig()
getSig
in interface ICoreResponse
public void setTerminalName(String value)
value
- the name assigned to the terminal at activation.public String getTerminalName()
public void setIpAddress(String value)
value
- the local IP address of the terminal.public String getIpAddress()
public void setCloudRelay(boolean value)
value
- whether or not the terminal is running in cloud relay mode.public boolean isCloudRelay()
public void setPublicKey(String value)
value
- the terminal's public key.public String getPublicKey()
Copyright © 2022 BlockChyp, Inc.. All rights reserved.