public class Address extends Object
| Constructor and Description |
|---|
Address() |
Address(String street1,
String street2,
String city,
String subdivision,
String postalCode,
String countryCode)
Constructs a new Address object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCity()
The city name of the customer.
|
String |
getCountryCode()
The country of the customer.
|
String |
getPostalCode()
The postal code, also known as the ZIP code of the address.
|
String |
getStreet1()
Gets the primary street address of the customer.
|
String |
getStreet2()
The second address line typically used for apartment or suite numbers.
|
String |
getSubdivision()
The subdivision of the entered country.
|
Address |
setCity(String city)
The city name of the customer.
|
Address |
setCountryCode(String countryCode)
The country of the customer.
|
Address |
setPostalCode(String postalCode)
The postal code, also known as the ZIP code of the address.
|
Address |
setStreet1(String street1)
The primary street address of the customer.
|
Address |
setStreet2(String street2)
The second address line typically used for apartment or suite numbers.
|
Address |
setSubdivision(String subdivision)
The subdivision of the entered country.
|
public Address()
public Address(@NotNull
String street1,
@Nullable
String street2,
@NotNull
String city,
@NotNull
String subdivision,
@NotNull
String postalCode,
@NotNull
String countryCode)
street1 - the primary street addressstreet2 - the second address line (typically for apartment or suite numbers)city - the citysubdivision - the subdivision of the entered country (in the U.S., the state)postalCode - the postal (ZIP) codecountryCode - the country code@NotNull public Address setStreet1(@NotNull String street1)
street1 - Street (Line 1)@Nullable public Address setStreet2(@NotNull String street2)
street2 - Street (Line 2)@NotNull public Address setCity(@NotNull String city)
city - City@NotNull public Address setSubdivision(@NotNull String subdivision)
subdivision - Subdivision (FIPS code format)@NotNull public Address setPostalCode(@NotNull String postalCode)
postalCode - Postal (ZIP) code@NotNull public Address setCountryCode(@NotNull String countryCode)
countryCode - the country code@NotNull public String getStreet1()
@Nullable public String getStreet2()
@NotNull public String getCity()
@NotNull public String getSubdivision()
@NotNull public String getPostalCode()
@NotNull public String getCountryCode()