Package model

Class Address


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Address
    extends Object
    Principal's personal home address. This field is used for `Identity` verification purposes.
    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • getCity

        @Nullable
        public String getCity()
        City (max 20 characters).
        Returns:
        city
      • setCity

        public void setCity​(String city)
      • getCountry

        @Nullable
        public Country getCountry()
        Get country
        Returns:
        country
      • setCountry

        public void setCountry​(Country country)
      • getLine1

        @Nullable
        public String getLine1()
        First line of the address (max 35 characters).
        Returns:
        line1
      • setLine1

        public void setLine1​(String line1)
      • getLine2

        @Nullable
        public String getLine2()
        Second line of the address (max 35 characters).
        Returns:
        line2
      • setLine2

        public void setLine2​(String line2)
      • getPostalCode

        @Nullable
        public String getPostalCode()
        Zip or Postal code (max 7 characters).
        Returns:
        postalCode
      • setPostalCode

        public void setPostalCode​(String postalCode)
      • getRegion

        @Nullable
        public String getRegion()
        2-letter State code.
        Returns:
        region
      • setRegion

        public void setRegion​(String region)
      • 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 Address
      • fromJson

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

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