Package model
Class Device
- java.lang.Object
-
- model.Device
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Device extends Object
`Device` resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDevice.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONFIGURATION_DETAILSstatic StringSERIALIZED_NAME_CONNECTIONstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_IDLE_MESSAGEstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_MERCHANTstatic StringSERIALIZED_NAME_MODELstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_SERIAL_NUMBERstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceconfigurationDetails(DeviceConfigDetails configurationDetails)Deviceconnection(String connection)DevicecreatedAt(OffsetDateTime createdAt)Devicedescription(String description)Deviceenabled(Boolean enabled)booleanequals(Object o)static DevicefromJson(String jsonString)Create an instance of Device given an JSON stringDeviceConfigDetailsgetConfigurationDetails()Get configurationDetailsStringgetConnection()Details if the `Device` is connected and online.OffsetDateTimegetCreatedAt()Timestamp of when the object was created.StringgetDescription()Additional information about device (e.g.BooleangetEnabled()Details if the `Device` resource is enabled.StringgetId()The ID of the resource.StringgetIdleMessage()The message that diplays on the device after a period of inactivity.DeviceLinksgetLinks()Get linksStringgetMerchant()ID of the `Merchant` resource.StringgetModel()Details the model of the card reader.StringgetName()Name of the `Device`.StringgetSerialNumber()Serial number of the device.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()Deviceid(String id)DeviceidleMessage(String idleMessage)Devicelinks(DeviceLinks links)Devicemerchant(String merchant)Devicemodel(String model)Devicename(String name)DeviceputTagsItem(String key, String tagsItem)DeviceserialNumber(String serialNumber)voidsetConfigurationDetails(DeviceConfigDetails configurationDetails)voidsetConnection(String connection)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDescription(String description)voidsetEnabled(Boolean enabled)voidsetId(String id)voidsetIdleMessage(String idleMessage)voidsetLinks(DeviceLinks links)voidsetMerchant(String merchant)voidsetModel(String model)voidsetName(String name)voidsetSerialNumber(String serialNumber)voidsetTags(Map<String,String> tags)voidsetUpdatedAt(OffsetDateTime updatedAt)Devicetags(Map<String,String> tags)StringtoJson()Convert an instance of Device to an JSON stringStringtoString()DeviceupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIGURATION_DETAILS
public static final String SERIALIZED_NAME_CONFIGURATION_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONNECTION
public static final String SERIALIZED_NAME_CONNECTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDLE_MESSAGE
public static final String SERIALIZED_NAME_IDLE_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT
public static final String SERIALIZED_NAME_MERCHANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MODEL
public static final String SERIALIZED_NAME_MODEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERIAL_NUMBER
public static final String SERIALIZED_NAME_SERIAL_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
createdAt
public Device createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public Device updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
configurationDetails
public Device configurationDetails(DeviceConfigDetails configurationDetails)
-
getConfigurationDetails
@Nullable public DeviceConfigDetails getConfigurationDetails()
Get configurationDetails- Returns:
- configurationDetails
-
setConfigurationDetails
public void setConfigurationDetails(DeviceConfigDetails configurationDetails)
-
getConnection
@Nullable public String getConnection()
Details if the `Device` is connected and online. Only returned when `include_connection parameter` provided.- Returns:
- connection
-
setConnection
public void setConnection(String connection)
-
getDescription
@Nullable public String getDescription()
Additional information about device (e.g. self serving terminal).- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getEnabled
@Nullable public Boolean getEnabled()
Details if the `Device` resource is enabled. Set to **false** to disable the `Device`.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
getIdleMessage
@Nullable public String getIdleMessage()
The message that diplays on the device after a period of inactivity.- Returns:
- idleMessage
-
setIdleMessage
public void setIdleMessage(String idleMessage)
-
setMerchant
public void setMerchant(String merchant)
-
setModel
public void setModel(String model)
-
setName
public void setName(String name)
-
getSerialNumber
@Nullable public String getSerialNumber()
Serial number of the device.- Returns:
- serialNumber
-
setSerialNumber
public void setSerialNumber(String serialNumber)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
links
public Device links(DeviceLinks links)
-
getLinks
@Nullable public DeviceLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(DeviceLinks links)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Device
-
fromJson
public static Device fromJson(String jsonString) throws IOException
Create an instance of Device given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Device
- Throws:
IOException- if the JSON string is invalid with respect to Device
-
toJson
public String toJson()
Convert an instance of Device to an JSON string- Returns:
- JSON string
-
-