Address

public final class Address

Container for the property's address information.

Parameters

line1

Address line 1.

line2

Address line 2.

city

City.

stateProvinceCode

2-letter or 3-letter state/province code for Australia, Canada and the USA.

stateProvinceName

Text name of the State/Province - more common for additional countries.

postalCode

Postal/zip code.

countryCode

2-letter country code, in ISO 3166-1 alpha-2 format.

obfuscationRequired

Flag to indicate whether a property address requires obfuscation before the property has been booked. If true, only the city, province, and country of the address can be shown to the customer.

localized

Constructors

Link copied to clipboard
public Address Address(String line1, String line2, String city, String stateProvinceCode, String stateProvinceName, String postalCode, String countryCode, Boolean obfuscationRequired, Localized localized)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@Valid()
private final String city
Link copied to clipboard
@Valid()
private final String countryCode
Link copied to clipboard
@Valid()
private final String line1
Link copied to clipboard
@Valid()
private final String line2
Link copied to clipboard
@Valid()
private final Localized localized
Link copied to clipboard
@Valid()
private final Boolean obfuscationRequired
Link copied to clipboard
@Valid()
private final String postalCode
Link copied to clipboard
@Valid()
private final String stateProvinceCode
Link copied to clipboard
@Valid()
private final String stateProvinceName

Functions

Link copied to clipboard
public final static Address.Builder builder()
Link copied to clipboard
public final String getCity()
Link copied to clipboard
public final String getCountryCode()
Link copied to clipboard
public final String getLine1()
Link copied to clipboard
public final String getLine2()
Link copied to clipboard
public final Localized getLocalized()
Link copied to clipboard
Link copied to clipboard
public final String getPostalCode()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Address.Builder toBuilder()