Package model

Class CreateDevice

java.lang.Object
model.CreateDevice

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class CreateDevice extends Object
  • Field Details

  • Constructor Details

    • CreateDevice

      public CreateDevice()
  • Method Details

    • tags

      public CreateDevice tags(Map<String,String> tags)
    • putTagsItem

      public CreateDevice putTagsItem(String key, String tagsItem)
    • getTags

      @Nullable public Map<String,String> getTags()
      Key value pair for annotating custom meta data (e.g. order numbers).
      Returns:
      tags
    • setTags

      public void setTags(Map<String,String> tags)
    • description

      public CreateDevice 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)
    • _configuration

      public CreateDevice _configuration(ConfigurationDetails _configuration)
    • getConfiguration

      @Nullable public ConfigurationDetails getConfiguration()
      Get _configuration
      Returns:
      _configuration
    • setConfiguration

      public void setConfiguration(ConfigurationDetails _configuration)
    • merchantId

      public CreateDevice merchantId(String merchantId)
    • getMerchantId

      @Nullable public String getMerchantId()
      ID of the `Merchant` the `Device` is associated with.
      Returns:
      merchantId
    • setMerchantId

      public void setMerchantId(String merchantId)
    • model

      public CreateDevice model(CreateDevice.ModelEnum model)
    • getModel

      @Nullable public CreateDevice.ModelEnum getModel()
      Include one of the following values to let Finix know the type of device that's being used.
      Returns:
      model
    • setModel

      public void setModel(CreateDevice.ModelEnum model)
    • name

      public CreateDevice name(String name)
    • getName

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

      public void setName(String name)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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 CreateDevice
    • fromJson

      public static CreateDevice fromJson(String jsonString) throws IOException
      Create an instance of CreateDevice given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CreateDevice
      Throws:
      IOException - if the JSON string is invalid with respect to CreateDevice
    • toJson

      public String toJson()
      Convert an instance of CreateDevice to an JSON string
      Returns:
      JSON string