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_CLOUD_DEVICE_API_ENDPOINTstatic StringJSON_PROPERTY_CONNECTIVITYstatic StringJSON_PROPERTY_COUNTRY_CODEstatic StringJSON_PROPERTY_FIRMWARE_VERSIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_INSTALLED_A_P_KSstatic 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 TerminaladdInstalledAPKsItem(InstalledAPKs installedAPKsItem)Terminalassignment(TerminalAssignment assignment)assignmentTerminalcloudDeviceApiEndpoint(String cloudDeviceApiEndpoint)The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.Terminalconnectivity(TerminalConnectivity connectivity)connectivityTerminalcountryCode(String countryCode)The country code of the country where the terminal is located.booleanequals(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()Get assignmentStringgetCloudDeviceApiEndpoint()The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.TerminalConnectivitygetConnectivity()Get connectivityStringgetCountryCode()The country code of the country where the terminal is located.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetFirmwareVersion()The software release currently in use on the terminal.StringgetId()The unique identifier of the terminal.List<InstalledAPKs>getInstalledAPKs()A list of Android apps installed on 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.TerminalincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.TerminalinstalledAPKs(List<InstalledAPKs> installedAPKs)A list of Android apps installed on the terminal.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.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)assignmentvoidsetCloudDeviceApiEndpoint(String cloudDeviceApiEndpoint)The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.voidsetConnectivity(TerminalConnectivity connectivity)connectivityvoidsetCountryCode(String countryCode)The country code of the country where the terminal is located.voidsetFirmwareVersion(String firmwareVersion)The software release currently in use on the terminal.voidsetId(String id)The unique identifier of the terminal.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetInstalledAPKs(List<InstalledAPKs> installedAPKs)A list of Android apps installed on 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_CLOUD_DEVICE_API_ENDPOINT
public static final String JSON_PROPERTY_CLOUD_DEVICE_API_ENDPOINT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONNECTIVITY
public static final String JSON_PROPERTY_CONNECTIVITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY_CODE
public static final String JSON_PROPERTY_COUNTRY_CODE
- 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_INSTALLED_A_P_KS
public static final String JSON_PROPERTY_INSTALLED_A_P_KS
- 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()
Get assignment- Returns:
- assignment
-
setAssignment
public void setAssignment(TerminalAssignment assignment)
assignment- Parameters:
assignment-
-
cloudDeviceApiEndpoint
public Terminal cloudDeviceApiEndpoint(String cloudDeviceApiEndpoint)
The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.- Parameters:
cloudDeviceApiEndpoint- The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getCloudDeviceApiEndpoint
public String getCloudDeviceApiEndpoint()
The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.- Returns:
- cloudDeviceApiEndpoint The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.
-
setCloudDeviceApiEndpoint
public void setCloudDeviceApiEndpoint(String cloudDeviceApiEndpoint)
The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.- Parameters:
cloudDeviceApiEndpoint- The [regional base URL](https://docs.adyen.com/api-explorer/terminal-api/1/overview#endpoints-for-cloud-communications) to use for sending Terminal API requests when using cloud communications.
-
connectivity
public Terminal connectivity(TerminalConnectivity connectivity)
connectivity- Parameters:
connectivity-- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getConnectivity
public TerminalConnectivity getConnectivity()
Get connectivity- Returns:
- connectivity
-
setConnectivity
public void setConnectivity(TerminalConnectivity connectivity)
connectivity- Parameters:
connectivity-
-
countryCode
public Terminal countryCode(String countryCode)
The country code of the country where the terminal is located.- Parameters:
countryCode- The country code of the country where the terminal is located.- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getCountryCode
public String getCountryCode()
The country code of the country where the terminal is located.- Returns:
- countryCode The country code of the country where the terminal is located.
-
setCountryCode
public void setCountryCode(String countryCode)
The country code of the country where the terminal is located.- Parameters:
countryCode- The country code of the country where the terminal is located.
-
firmwareVersion
public Terminal firmwareVersion(String firmwareVersion)
The software release currently in use on the terminal.- Parameters:
firmwareVersion- The software release currently in use on the terminal.- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getFirmwareVersion
public String getFirmwareVersion()
The software release currently in use on the terminal.- Returns:
- firmwareVersion The software release currently in use on the terminal.
-
setFirmwareVersion
public void setFirmwareVersion(String firmwareVersion)
The software release currently in use on the terminal.- Parameters:
firmwareVersion- The software release currently in use on the terminal.
-
id
public Terminal id(String id)
The unique identifier of the terminal.- Parameters:
id- The unique identifier of the terminal.- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the terminal.- Returns:
- id The unique identifier of the terminal.
-
setId
public void setId(String id)
The unique identifier of the terminal.- Parameters:
id- The unique identifier of the terminal.
-
installedAPKs
public Terminal installedAPKs(List<InstalledAPKs> installedAPKs)
A list of Android apps installed on the terminal.- Parameters:
installedAPKs- A list of Android apps installed on the terminal.- Returns:
- the current
Terminalinstance, allowing for method chaining
-
addInstalledAPKsItem
public Terminal addInstalledAPKsItem(InstalledAPKs installedAPKsItem)
-
getInstalledAPKs
public List<InstalledAPKs> getInstalledAPKs()
A list of Android apps installed on the terminal.- Returns:
- installedAPKs A list of Android apps installed on the terminal.
-
setInstalledAPKs
public void setInstalledAPKs(List<InstalledAPKs> installedAPKs)
A list of Android apps installed on the terminal.- Parameters:
installedAPKs- A list of Android apps installed on the terminal.
-
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- Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.- 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 Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.
-
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- Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.
-
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- Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.- 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 Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.
-
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- Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.
-
model
public Terminal model(String model)
The model name of the terminal.- Parameters:
model- The model name of the terminal.- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getModel
public String getModel()
The model name of the terminal.- Returns:
- model The model name of the terminal.
-
setModel
public void setModel(String model)
The model name of the terminal.- Parameters:
model- The model name of the terminal.
-
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- The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.- 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 The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.
-
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- The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.
-
serialNumber
public Terminal serialNumber(String serialNumber)
The serial number of the terminal.- Parameters:
serialNumber- The serial number of the terminal.- Returns:
- the current
Terminalinstance, allowing for method chaining
-
getSerialNumber
public String getSerialNumber()
The serial number of the terminal.- Returns:
- serialNumber The serial number of the terminal.
-
setSerialNumber
public void setSerialNumber(String serialNumber)
The serial number of the terminal.- Parameters:
serialNumber- The serial number of the terminal.
-
includeNullValues
public Terminal includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this Terminal object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-