Class MerchantDevice


  • public class MerchantDevice
    extends Object
    MerchantDevice
    • Constructor Detail

      • MerchantDevice

        public MerchantDevice()
    • Method Detail

      • getOs

        public String getOs()
        Operating system running on the merchant device.
        Returns:
        os
      • setOs

        public void setOs​(String os)
      • getOsVersion

        public String getOsVersion()
        Version of the operating system on the merchant device.
        Returns:
        osVersion
      • setOsVersion

        public void setOsVersion​(String osVersion)
      • getReference

        public String getReference()
        Merchant device reference.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • 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 MerchantDevice
      • fromJson

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

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