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_ASSIGNEDstatic StringJSON_PROPERTY_BLUETOOTH_IPstatic StringJSON_PROPERTY_BLUETOOTH_MACstatic StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COMPANY_ACCOUNTstatic StringJSON_PROPERTY_COUNTRY_CODEstatic StringJSON_PROPERTY_DEVICE_MODELstatic StringJSON_PROPERTY_ETHERNET_IPstatic StringJSON_PROPERTY_ETHERNET_MACstatic StringJSON_PROPERTY_FIRMWARE_VERSIONstatic StringJSON_PROPERTY_ICCIDstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LAST_ACTIVITY_DATE_TIMEstatic StringJSON_PROPERTY_LAST_TRANSACTION_DATE_TIMEstatic StringJSON_PROPERTY_LINK_NEGOTIATIONstatic StringJSON_PROPERTY_SERIAL_NUMBERstatic StringJSON_PROPERTY_SIM_STATUSstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STORE_STATUSstatic StringJSON_PROPERTY_WIFI_IPstatic StringJSON_PROPERTY_WIFI_MACstatic StringJSON_PROPERTY_WIFI_SSID
-
Constructor Summary
Constructors Constructor Description Terminal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Terminalassigned(Boolean assigned)TerminalbluetoothIp(String bluetoothIp)TerminalbluetoothMac(String bluetoothMac)Terminalcity(String city)TerminalcompanyAccount(String companyAccount)TerminalcountryCode(String countryCode)TerminaldeviceModel(String deviceModel)booleanequals(Object o)Return true if this Terminal object is equal to o.TerminalethernetIp(String ethernetIp)TerminalethernetMac(String ethernetMac)TerminalfirmwareVersion(String firmwareVersion)static TerminalfromJson(String jsonString)Create an instance of Terminal given an JSON stringBooleangetAssigned()The [assignment status](https://docs.adyen.com/point-of-sale/automating-terminal-management/assign-terminals-api) of the terminal.StringgetBluetoothIp()The Bluetooth IP address of the terminal.StringgetBluetoothMac()The Bluetooth MAC address of the terminal.StringgetCity()The city where the terminal is located.StringgetCompanyAccount()The company account that the terminal is associated with.StringgetCountryCode()The country code of the country where the terminal is located.StringgetDeviceModel()The model name of the terminal.StringgetEthernetIp()The ethernet IP address of the terminal.StringgetEthernetMac()The ethernet MAC address of the terminal.StringgetFirmwareVersion()The software release currently in use on the terminal.StringgetIccid()The integrated circuit card identifier (ICCID) of the SIM card in the terminal.StringgetId()The unique identifier of the terminal.OffsetDateTimegetLastActivityDateTime()Date and time of the last activity on the terminal.OffsetDateTimegetLastTransactionDateTime()Date and time of the last transaction on the terminal.StringgetLinkNegotiation()The Ethernet link negotiation that the terminal uses: - `auto`: Auto-negotiation - `100full`: 100 Mbps full duplexStringgetSerialNumber()The serial number of the terminal.StringgetSimStatus()On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal: ACTIVE or INVENTORY.StringgetStatus()Indicates when the terminal was last online, whether the terminal is being reassigned, or whether the terminal is turned off.StringgetStoreStatus()The status of the store that the terminal is assigned to.StringgetWifiIp()The terminal's IP address in your Wi-Fi network.StringgetWifiMac()The terminal's MAC address in your Wi-Fi network.StringgetWifiSsid()The SSID of the Wi-Fi network that your terminal is connected to.inthashCode()Terminaliccid(String iccid)Terminalid(String id)TerminallastActivityDateTime(OffsetDateTime lastActivityDateTime)TerminallastTransactionDateTime(OffsetDateTime lastTransactionDateTime)TerminallinkNegotiation(String linkNegotiation)TerminalserialNumber(String serialNumber)voidsetAssigned(Boolean assigned)voidsetBluetoothIp(String bluetoothIp)voidsetBluetoothMac(String bluetoothMac)voidsetCity(String city)voidsetCompanyAccount(String companyAccount)voidsetCountryCode(String countryCode)voidsetDeviceModel(String deviceModel)voidsetEthernetIp(String ethernetIp)voidsetEthernetMac(String ethernetMac)voidsetFirmwareVersion(String firmwareVersion)voidsetIccid(String iccid)voidsetId(String id)voidsetLastActivityDateTime(OffsetDateTime lastActivityDateTime)voidsetLastTransactionDateTime(OffsetDateTime lastTransactionDateTime)voidsetLinkNegotiation(String linkNegotiation)voidsetSerialNumber(String serialNumber)voidsetSimStatus(String simStatus)voidsetStatus(String status)voidsetStoreStatus(String storeStatus)voidsetWifiIp(String wifiIp)voidsetWifiMac(String wifiMac)voidsetWifiSsid(String wifiSsid)TerminalsimStatus(String simStatus)Terminalstatus(String status)TerminalstoreStatus(String storeStatus)StringtoJson()Convert an instance of Terminal to an JSON stringStringtoString()TerminalwifiIp(String wifiIp)TerminalwifiMac(String wifiMac)TerminalwifiSsid(String wifiSsid)
-
-
-
Field Detail
-
JSON_PROPERTY_ASSIGNED
public static final String JSON_PROPERTY_ASSIGNED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BLUETOOTH_IP
public static final String JSON_PROPERTY_BLUETOOTH_IP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BLUETOOTH_MAC
public static final String JSON_PROPERTY_BLUETOOTH_MAC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CITY
public static final String JSON_PROPERTY_CITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPANY_ACCOUNT
public static final String JSON_PROPERTY_COMPANY_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY_CODE
public static final String JSON_PROPERTY_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEVICE_MODEL
public static final String JSON_PROPERTY_DEVICE_MODEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ETHERNET_IP
public static final String JSON_PROPERTY_ETHERNET_IP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ETHERNET_MAC
public static final String JSON_PROPERTY_ETHERNET_MAC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIRMWARE_VERSION
public static final String JSON_PROPERTY_FIRMWARE_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ICCID
public static final String JSON_PROPERTY_ICCID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_ACTIVITY_DATE_TIME
public static final String JSON_PROPERTY_LAST_ACTIVITY_DATE_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_TRANSACTION_DATE_TIME
public static final String JSON_PROPERTY_LAST_TRANSACTION_DATE_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINK_NEGOTIATION
public static final String JSON_PROPERTY_LINK_NEGOTIATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SERIAL_NUMBER
public static final String JSON_PROPERTY_SERIAL_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIM_STATUS
public static final String JSON_PROPERTY_SIM_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE_STATUS
public static final String JSON_PROPERTY_STORE_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WIFI_IP
public static final String JSON_PROPERTY_WIFI_IP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WIFI_MAC
public static final String JSON_PROPERTY_WIFI_MAC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WIFI_SSID
public static final String JSON_PROPERTY_WIFI_SSID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAssigned
public Boolean getAssigned()
The [assignment status](https://docs.adyen.com/point-of-sale/automating-terminal-management/assign-terminals-api) of the terminal. If true, the terminal is assigned. If false, the terminal is in inventory and can't be boarded.- Returns:
- assigned
-
setAssigned
public void setAssigned(Boolean assigned)
-
getBluetoothIp
public String getBluetoothIp()
The Bluetooth IP address of the terminal.- Returns:
- bluetoothIp
-
setBluetoothIp
public void setBluetoothIp(String bluetoothIp)
-
getBluetoothMac
public String getBluetoothMac()
The Bluetooth MAC address of the terminal.- Returns:
- bluetoothMac
-
setBluetoothMac
public void setBluetoothMac(String bluetoothMac)
-
getCity
public String getCity()
The city where the terminal is located.- Returns:
- city
-
setCity
public void setCity(String city)
-
getCompanyAccount
public String getCompanyAccount()
The company account that the terminal is associated with. If this is the only account level shown in the response, the terminal is assigned to the inventory of the company account.- Returns:
- companyAccount
-
setCompanyAccount
public void setCompanyAccount(String companyAccount)
-
getCountryCode
public String getCountryCode()
The country code of the country where the terminal is located.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
getDeviceModel
public String getDeviceModel()
The model name of the terminal.- Returns:
- deviceModel
-
setDeviceModel
public void setDeviceModel(String deviceModel)
-
getEthernetIp
public String getEthernetIp()
The ethernet IP address of the terminal.- Returns:
- ethernetIp
-
setEthernetIp
public void setEthernetIp(String ethernetIp)
-
getEthernetMac
public String getEthernetMac()
The ethernet MAC address of the terminal.- Returns:
- ethernetMac
-
setEthernetMac
public void setEthernetMac(String ethernetMac)
-
getFirmwareVersion
public String getFirmwareVersion()
The software release currently in use on the terminal.- Returns:
- firmwareVersion
-
setFirmwareVersion
public void setFirmwareVersion(String firmwareVersion)
-
getIccid
public String getIccid()
The integrated circuit card identifier (ICCID) of the SIM card in the terminal.- Returns:
- iccid
-
setIccid
public void setIccid(String iccid)
-
getId
public String getId()
The unique identifier of the terminal.- Returns:
- id
-
setId
public void setId(String id)
-
lastActivityDateTime
public Terminal lastActivityDateTime(OffsetDateTime lastActivityDateTime)
-
getLastActivityDateTime
public OffsetDateTime getLastActivityDateTime()
Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.- Returns:
- lastActivityDateTime
-
setLastActivityDateTime
public void setLastActivityDateTime(OffsetDateTime lastActivityDateTime)
-
lastTransactionDateTime
public Terminal lastTransactionDateTime(OffsetDateTime lastTransactionDateTime)
-
getLastTransactionDateTime
public OffsetDateTime getLastTransactionDateTime()
Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.- Returns:
- lastTransactionDateTime
-
setLastTransactionDateTime
public void setLastTransactionDateTime(OffsetDateTime lastTransactionDateTime)
-
getLinkNegotiation
public String getLinkNegotiation()
The Ethernet link negotiation that the terminal uses: - `auto`: Auto-negotiation - `100full`: 100 Mbps full duplex- Returns:
- linkNegotiation
-
setLinkNegotiation
public void setLinkNegotiation(String linkNegotiation)
-
getSerialNumber
public String getSerialNumber()
The serial number of the terminal.- Returns:
- serialNumber
-
setSerialNumber
public void setSerialNumber(String serialNumber)
-
getSimStatus
public String getSimStatus()
On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal: ACTIVE or INVENTORY.- Returns:
- simStatus
-
setSimStatus
public void setSimStatus(String simStatus)
-
getStatus
public String getStatus()
Indicates when the terminal was last online, whether the terminal is being reassigned, or whether the terminal is turned off. If the terminal was last online more that a week ago, it is also shown as turned off.- Returns:
- status
-
setStatus
public void setStatus(String status)
-
getStoreStatus
public String getStoreStatus()
The status of the store that the terminal is assigned to.- Returns:
- storeStatus
-
setStoreStatus
public void setStoreStatus(String storeStatus)
-
getWifiIp
public String getWifiIp()
The terminal's IP address in your Wi-Fi network.- Returns:
- wifiIp
-
setWifiIp
public void setWifiIp(String wifiIp)
-
getWifiMac
public String getWifiMac()
The terminal's MAC address in your Wi-Fi network.- Returns:
- wifiMac
-
setWifiMac
public void setWifiMac(String wifiMac)
-
getWifiSsid
public String getWifiSsid()
The SSID of the Wi-Fi network that your terminal is connected to.- Returns:
- wifiSsid
-
setWifiSsid
public void setWifiSsid(String wifiSsid)
-
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
-
-