Class AddressPortable
java.lang.Object
com.broadleafcommerce.paypal.micro.gateway.domain.orders.AddressPortable
- All Implemented Interfaces:
Serializable
The portable international postal address.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe first line of the address, such as number and street, for example, "173 Drury Lane".The second line of the address, for example, a suite or apartment number.The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.A city, town, or village.The 2-character ISO 3166-1 code that identifies the country or region.The postal code, which is the ZIP code or equivalent.void
setAddressLine1
(String addressLine1) The first line of the address, such as number and street, for example, "173 Drury Lane".void
setAddressLine2
(String addressLine2) The second line of the address, for example, a suite or apartment number.void
setAdminArea1
(String adminArea1) The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.void
setAdminArea2
(String adminArea2) A city, town, or village.void
setCountryCode
(String countryCode) The 2-character ISO 3166-1 code that identifies the country or region.void
setPostalCode
(String postalCode) The postal code, which is the ZIP code or equivalent.
-
Constructor Details
-
AddressPortable
public AddressPortable()
-
-
Method Details
-
setCountryCode
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is "GB" and not "UK" as used in the top-level domain names for that country. Use the "C2" country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions. -
setAddressLine1
The first line of the address, such as number and street, for example, "173 Drury Lane". Needed for data entry, and Compliance and Risk checks. This field needs to pass the full address. -
setAddressLine2
The second line of the address, for example, a suite or apartment number. -
setAdminArea1
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. This data is formatted for postal delivery, for example, "CA" and not "California". Value, by country, is:- UK. A county.
- US. A state.
- Canada. A province.
- Japan. A prefecture.
- Switzerland. A kanton.
-
setAdminArea2
A city, town, or village. Smaller than "admin_area_level_1". -
setPostalCode
The postal code, which is the ZIP code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code. -
getCountryCode
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is "GB" and not "UK" as used in the top-level domain names for that country. Use the "C2" country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions. -
getAddressLine1
The first line of the address, such as number and street, for example, "173 Drury Lane". Needed for data entry, and Compliance and Risk checks. This field needs to pass the full address. -
getAddressLine2
The second line of the address, for example, a suite or apartment number. -
getAdminArea1
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. This data is formatted for postal delivery, for example, "CA" and not "California". Value, by country, is:- UK. A county.
- US. A state.
- Canada. A province.
- Japan. A prefecture.
- Switzerland. A kanton.
-
getAdminArea2
A city, town, or village. Smaller than "admin_area_level_1". -
getPostalCode
The postal code, which is the ZIP code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code.
-