Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
PostalAddress Class
Namespace
PostalAddress Constructors
The following are constructors for PostalAddress.
PostalAddress(addressLines, subLocality, locality, postalCode, subAdministrativeArea, administrativeArea, country, countryCode)
Signature
public PostalAddress(List<String> addressLines, String subLocality, String locality, String postalCode, String subAdministrativeArea, String administrativeArea, String country, String countryCode)
Parameters
- addressLines: Type: List<String> The street address.
- subLocality: Type: String The sub-locality of the address.
- locality: Type: String The locality of the address.
- postalCode: Type: String The postal code.
- subAdministrativeArea: Type: String The sub-administrative area.
- administrativeArea: Type: String The administrative area.
- country: Type: String The country.
- countryCode: Type: String The country code.
PostalAddress Properties
The following are properties for PostalAddress.
addressLines
Signature
public List<String> addressLines {get; set;}
Property Value
Type: List<String>
administrativeArea
Signature
public String administrativeArea {get; set;}
Property Value
Type: String
locality
Signature
public String locality {get; set;}
Property Value
Type: String
subAdministrativeArea
Signature
public String subAdministrativeArea {get; set;}
Property Value
Type: String
subLocality
Signature
public String subLocality {get; set;}
Property Value
Type: String