Package model

Class Address

java.lang.Object
model.Address

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class Address extends Object
Principal's personal home address. This field is used for `Identity` verification purposes.
  • Field Details

  • Constructor Details

    • Address

      public Address()
  • Method Details

    • city

      public Address city(String city)
    • getCity

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

      public void setCity(String city)
    • country

      public Address country(Country country)
    • getCountry

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

      public void setCountry(Country country)
    • line1

      public Address line1(String line1)
    • getLine1

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

      public void setLine1(String line1)
    • line2

      public Address line2(String line2)
    • getLine2

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

      public void setLine2(String line2)
    • postalCode

      public Address postalCode(String postalCode)
    • getPostalCode

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

      public void setPostalCode(String postalCode)
    • region

      public Address region(String region)
    • getRegion

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

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