Package model

Class Device


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Device
    extends Object
    `Device` resource.
    • Constructor Detail

      • Device

        public Device()
    • Method Detail

      • getId

        @Nullable
        public String getId()
        The ID of the resource.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getCreatedAt

        @Nullable
        public OffsetDateTime getCreatedAt()
        Timestamp of when the object was created.
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • getUpdatedAt

        @Nullable
        public OffsetDateTime getUpdatedAt()
        Timestamp of when the object was last updated.
        Returns:
        updatedAt
      • setUpdatedAt

        public void setUpdatedAt​(OffsetDateTime updatedAt)
      • getConfigurationDetails

        @Nullable
        public DeviceConfigDetails getConfigurationDetails()
        Get configurationDetails
        Returns:
        configurationDetails
      • setConfigurationDetails

        public void setConfigurationDetails​(DeviceConfigDetails configurationDetails)
      • connection

        public Device connection​(String connection)
      • 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)
      • description

        public Device description​(String description)
      • 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)
      • idleMessage

        public Device idleMessage​(String idleMessage)
      • 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)
      • getMerchant

        @Nullable
        public String getMerchant()
        ID of the `Merchant` resource.
        Returns:
        merchant
      • setMerchant

        public void setMerchant​(String merchant)
      • getModel

        @Nullable
        public String getModel()
        Details the model of the card reader.
        Returns:
        model
      • setModel

        public void setModel​(String model)
      • getName

        @Nullable
        public String getName()
        Name of the `Device`.
        Returns:
        name
      • setName

        public void setName​(String name)
      • serialNumber

        public Device serialNumber​(String serialNumber)
      • 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
      • setLinks

        public void setLinks​(DeviceLinks links)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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