Package com.adyen.model.management
Class Terminal
- java.lang.Object
-
- com.adyen.model.management.Terminal
-
public class Terminal extends Object
Terminal
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ASSIGNMENTstatic StringJSON_PROPERTY_CONNECTIVITYstatic StringJSON_PROPERTY_FIRMWARE_VERSIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LAST_ACTIVITY_ATstatic StringJSON_PROPERTY_LAST_TRANSACTION_ATstatic StringJSON_PROPERTY_MODELstatic StringJSON_PROPERTY_RESTART_LOCAL_TIMEstatic StringJSON_PROPERTY_SERIAL_NUMBER
-
Constructor Summary
Constructors Constructor Description Terminal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Terminalassignment(TerminalAssignment assignment)Terminalconnectivity(TerminalConnectivity connectivity)booleanequals(Object o)Return true if this Terminal object is equal to o.TerminalfirmwareVersion(String firmwareVersion)static TerminalfromJson(String jsonString)Create an instance of Terminal given an JSON stringTerminalAssignmentgetAssignment()Get assignmentTerminalConnectivitygetConnectivity()Get connectivityStringgetFirmwareVersion()The software release currently in use on the terminal.StringgetId()The unique identifier of the terminal.OffsetDateTimegetLastActivityAt()Date and time of the last activity on the terminal.OffsetDateTimegetLastTransactionAt()Date and time of the last transaction on the terminal.StringgetModel()The model name of the terminal.StringgetRestartLocalTime()The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.StringgetSerialNumber()The serial number of the terminal.inthashCode()Terminalid(String id)TerminallastActivityAt(OffsetDateTime lastActivityAt)TerminallastTransactionAt(OffsetDateTime lastTransactionAt)Terminalmodel(String model)TerminalrestartLocalTime(String restartLocalTime)TerminalserialNumber(String serialNumber)voidsetAssignment(TerminalAssignment assignment)assignmentvoidsetConnectivity(TerminalConnectivity connectivity)connectivityvoidsetFirmwareVersion(String firmwareVersion)The software release currently in use on the terminal.voidsetId(String id)The unique identifier of the terminal.voidsetLastActivityAt(OffsetDateTime lastActivityAt)Date and time of the last activity on the terminal.voidsetLastTransactionAt(OffsetDateTime lastTransactionAt)Date and time of the last transaction on the terminal.voidsetModel(String model)The model name of the terminal.voidsetRestartLocalTime(String restartLocalTime)The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.voidsetSerialNumber(String serialNumber)The serial number of the terminal.StringtoJson()Convert an instance of Terminal to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ASSIGNMENT
public static final String JSON_PROPERTY_ASSIGNMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONNECTIVITY
public static final String JSON_PROPERTY_CONNECTIVITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIRMWARE_VERSION
public static final String JSON_PROPERTY_FIRMWARE_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_ACTIVITY_AT
public static final String JSON_PROPERTY_LAST_ACTIVITY_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_TRANSACTION_AT
public static final String JSON_PROPERTY_LAST_TRANSACTION_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODEL
public static final String JSON_PROPERTY_MODEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESTART_LOCAL_TIME
public static final String JSON_PROPERTY_RESTART_LOCAL_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SERIAL_NUMBER
public static final String JSON_PROPERTY_SERIAL_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
assignment
public Terminal assignment(TerminalAssignment assignment)
-
getAssignment
public TerminalAssignment getAssignment()
Get assignment- Returns:
- assignment
-
setAssignment
public void setAssignment(TerminalAssignment assignment)
assignment- Parameters:
assignment-
-
connectivity
public Terminal connectivity(TerminalConnectivity connectivity)
-
getConnectivity
public TerminalConnectivity getConnectivity()
Get connectivity- Returns:
- connectivity
-
setConnectivity
public void setConnectivity(TerminalConnectivity connectivity)
connectivity- Parameters:
connectivity-
-
getFirmwareVersion
public String getFirmwareVersion()
The software release currently in use on the terminal.- Returns:
- firmwareVersion
-
setFirmwareVersion
public void setFirmwareVersion(String firmwareVersion)
The software release currently in use on the terminal.- Parameters:
firmwareVersion-
-
getId
public String getId()
The unique identifier of the terminal.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the terminal.- Parameters:
id-
-
lastActivityAt
public Terminal lastActivityAt(OffsetDateTime lastActivityAt)
-
getLastActivityAt
public OffsetDateTime getLastActivityAt()
Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.- Returns:
- lastActivityAt
-
setLastActivityAt
public void setLastActivityAt(OffsetDateTime lastActivityAt)
Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.- Parameters:
lastActivityAt-
-
lastTransactionAt
public Terminal lastTransactionAt(OffsetDateTime lastTransactionAt)
-
getLastTransactionAt
public OffsetDateTime getLastTransactionAt()
Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.- Returns:
- lastTransactionAt
-
setLastTransactionAt
public void setLastTransactionAt(OffsetDateTime lastTransactionAt)
Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.- Parameters:
lastTransactionAt-
-
getModel
public String getModel()
The model name of the terminal.- Returns:
- model
-
setModel
public void setModel(String model)
The model name of the terminal.- Parameters:
model-
-
getRestartLocalTime
public String getRestartLocalTime()
The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.- Returns:
- restartLocalTime
-
setRestartLocalTime
public void setRestartLocalTime(String restartLocalTime)
The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.- Parameters:
restartLocalTime-
-
getSerialNumber
public String getSerialNumber()
The serial number of the terminal.- Returns:
- serialNumber
-
setSerialNumber
public void setSerialNumber(String serialNumber)
The serial number of the terminal.- Parameters:
serialNumber-
-
equals
public boolean equals(Object o)
Return true if this Terminal object is equal to o.
-
fromJson
public static Terminal fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Terminal given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Terminal
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Terminal
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Terminal to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-