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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AddressCreate an instance of Address given an JSON stringgetCity()City (max 20 characters).Get countrygetLine1()First line of the address (max 35 characters).getLine2()Second line of the address (max 35 characters).Zip or Postal code (max 7 characters).2-letter State code.inthashCode()postalCode(String postalCode) voidvoidsetCountry(Country country) voidvoidvoidsetPostalCode(String postalCode) voidtoJson()Convert an instance of Address to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CITY
- See Also:
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
SERIALIZED_NAME_LINE1
- See Also:
-
SERIALIZED_NAME_LINE2
- See Also:
-
SERIALIZED_NAME_POSTAL_CODE
- See Also:
-
SERIALIZED_NAME_REGION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
city
-
getCity
City (max 20 characters).- Returns:
- city
-
setCity
-
country
-
getCountry
Get country- Returns:
- country
-
setCountry
-
line1
-
getLine1
First line of the address (max 35 characters).- Returns:
- line1
-
setLine1
-
line2
-
getLine2
Second line of the address (max 35 characters).- Returns:
- line2
-
setLine2
-
postalCode
-
getPostalCode
Zip or Postal code (max 7 characters).- Returns:
- postalCode
-
setPostalCode
-
region
-
getRegion
2-letter State code.- Returns:
- region
-
setRegion
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
Convert an instance of Address to an JSON string- Returns:
- JSON string
-