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

Represents the postal address.

Namespace

RichMessaging

PostalAddress Constructors

The following are constructors for PostalAddress.

PostalAddress(addressLines, subLocality, locality, postalCode, subAdministrativeArea, administrativeArea, country, countryCode)

Creates a new instance of the RichMessaging.PostalAddress class.

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

The street address.

Signature

public List<String> addressLines {get; set;}

Property Value

Type: List<String>

administrativeArea

The administrative area.

Signature

public String administrativeArea {get; set;}

Property Value

Type: String

country

The country.

Signature

public String country {get; set;}

Property Value

Type: String

countryCode

The country code.

Signature

public String countryCode {get; set;}

Property Value

Type: String

locality

The locality of the address.

Signature

public String locality {get; set;}

Property Value

Type: String

postalCode

The postal code.

Signature

public String postalCode {get; set;}

Property Value

Type: String

subAdministrativeArea

The sub-administrative area.

Signature

public String subAdministrativeArea {get; set;}

Property Value

Type: String

subLocality

The sub-locality of the address.

Signature

public String subLocality {get; set;}

Property Value

Type: String