Package com.blockchyp.client.dto
Class TerminalStatusResponse
java.lang.Object
com.blockchyp.client.dto.TerminalStatusResponse
- All Implemented Interfaces:
IAbstractAcknowledgement
The current status of a terminal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Gets the error, if an error occurred.Gets a narrative description of the transaction result.getSince()Gets the timestamp of the last status change.Gets the operation that the terminal is performing.Gets the transaction reference for an ongoing transaction, if one was specified at request time.booleanGets whether or not a card is currently in the card slot.booleanisIdle()Gets that the terminal is idle.booleanGets whether or not the request succeeded.voidsetCardInSlot(boolean value) Sets whether or not a card is currently in the card slot.voidSets the error, if an error occurred.voidsetIdle(boolean value) Sets that the terminal is idle.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidSets the timestamp of the last status change.voidSets the operation that the terminal is performing.voidsetSuccess(boolean value) Sets whether or not the request succeeded.voidsetTransactionRef(String value) Sets the transaction reference for an ongoing transaction, if one was specified at request time.
-
Constructor Details
-
TerminalStatusResponse
public TerminalStatusResponse()
-
-
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.
-
setIdle
public void setIdle(boolean value) Sets that the terminal is idle.- Parameters:
value- that the terminal is idle.
-
isIdle
public boolean isIdle()Gets that the terminal is idle.- Returns:
- that the terminal is idle.
-
setCardInSlot
public void setCardInSlot(boolean value) Sets whether or not a card is currently in the card slot.- Parameters:
value- whether or not a card is currently in the card slot.
-
isCardInSlot
public boolean isCardInSlot()Gets whether or not a card is currently in the card slot.- Returns:
- whether or not a card is currently in the card slot.
-
setStatus
Sets the operation that the terminal is performing.- Parameters:
value- the operation that the terminal is performing.
-
getStatus
Gets the operation that the terminal is performing.- Returns:
- the operation that the terminal is performing.
-
setTransactionRef
Sets the transaction reference for an ongoing transaction, if one was specified at request time.- Parameters:
value- the transaction reference for an ongoing transaction, if one was specified at request time.
-
getTransactionRef
Gets the transaction reference for an ongoing transaction, if one was specified at request time.- Returns:
- the transaction reference for an ongoing transaction, if one was specified at request time.
-
setSince
Sets the timestamp of the last status change.- Parameters:
value- the timestamp of the last status change.
-
getSince
Gets the timestamp of the last status change.- Returns:
- the timestamp of the last status change.
-