Class AddressPortable
- java.lang.Object
-
- com.broadleafcommerce.paypal.micro.gateway.domain.orders.AddressPortable
-
- All Implemented Interfaces:
Serializable
public class AddressPortable extends Object implements Serializable
The portable international postal address.- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddressPortable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddressLine1()
The first line of the address, such as number and street, for example, "173 Drury Lane".String
getAddressLine2()
The second line of the address, for example, a suite or apartment number.String
getAdminArea1()
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.String
getAdminArea2()
A city, town, or village.String
getCountryCode()
The 2-character ISO 3166-1 code that identifies the country or region.String
getPostalCode()
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.
-
-
-
Method Detail
-
setCountryCode
public void setCountryCode(String countryCode)
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
public void setAddressLine1(String addressLine1)
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
public void setAddressLine2(String addressLine2)
The second line of the address, for example, a suite or apartment number.
-
setAdminArea1
public void setAdminArea1(String adminArea1)
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
public void setAdminArea2(String adminArea2)
A city, town, or village. Smaller than "admin_area_level_1".
-
setPostalCode
public void setPostalCode(String postalCode)
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
public String 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
public String 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
public String getAddressLine2()
The second line of the address, for example, a suite or apartment number.
-
getAdminArea1
public String 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
public String getAdminArea2()
A city, town, or village. Smaller than "admin_area_level_1".
-
getPostalCode
public String 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.
-
-