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)assignmentTerminalconnectivity(TerminalConnectivity connectivity)connectivitybooleanequals(Object o)Return true if this Terminal object is equal to o.TerminalfirmwareVersion(String firmwareVersion)The software release currently in use on the terminal.static TerminalfromJson(String jsonString)Create an instance of Terminal given an JSON stringTerminalAssignmentgetAssignment()assignmentTerminalConnectivitygetConnectivity()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)The unique identifier of the terminal.TerminallastActivityAt(OffsetDateTime lastActivityAt)Date and time of the last activity on the terminal.TerminallastTransactionAt(OffsetDateTime lastTransactionAt)Date and time of the last transaction on the terminal.Terminalmodel(String model)The model name of the terminal.TerminalrestartLocalTime(String restartLocalTime)The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.TerminalserialNumber(String serialNumber)The serial number of the terminal.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)
assignment- Parameters:
assignment-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getAssignment
public TerminalAssignment getAssignment()
assignment- Returns:
- assignment
-
setAssignment
public void setAssignment(TerminalAssignment assignment)
assignment- Parameters:
assignment-
-
connectivity
public Terminal connectivity(TerminalConnectivity connectivity)
connectivity- Parameters:
connectivity-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getConnectivity
public TerminalConnectivity getConnectivity()
connectivity- Returns:
- connectivity
-
setConnectivity
public void setConnectivity(TerminalConnectivity connectivity)
connectivity- Parameters:
connectivity-
-
firmwareVersion
public Terminal firmwareVersion(String firmwareVersion)
The software release currently in use on the terminal.- Parameters:
firmwareVersion-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
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-
-
id
public Terminal id(String id)
The unique identifier of the terminal.- Parameters:
id-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
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)
Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.- Parameters:
lastActivityAt-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
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)
Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.- Parameters:
lastTransactionAt-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
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-
-
model
public Terminal model(String model)
The model name of the terminal.- Parameters:
model-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
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-
-
restartLocalTime
public Terminal restartLocalTime(String restartLocalTime)
The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.- Parameters:
restartLocalTime-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
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-
-
serialNumber
public Terminal serialNumber(String serialNumber)
The serial number of the terminal.- Parameters:
serialNumber-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
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
-
-