Read-only view of the delivery address held on a cart, exposed as the shipping address for the order. Wraps the cart's own address fields (as opposed to its separate billing address) behind the plain IReadableAddress interface, so it is produced by Cart.getShippingAddress() and consumed by payment provider apps and reports that need a shipping destination without depending on the whole Cart object.
Implements: IReadableAddress
Properties
| Property | Returns | Description |
|---|---|---|
| addressLine1 | String | First line of the cart's delivery street address. |
| addressLine2 | String | Second line of the cart's delivery street address, such as a unit or suite number. |
| addressState | String | State or province of the cart's delivery address. |
| city | String | City or suburb of the cart's delivery address. |
| country | String | Country of the cart's delivery address. |
| postcode | String | Postal or zip code of the cart's delivery address. |
Methods
getAddressLine1()
Returns: String
First line of the cart's delivery street address.
getAddressLine2()
Returns: String
Second line of the cart's delivery street address, such as a unit or suite number.
getCity()
Returns: String
City or suburb of the cart's delivery address.
getPostcode()
Returns: String
Postal or zip code of the cart's delivery address.
getAddressState()
Returns: String
State or province of the cart's delivery address.
getCountry()
Returns: String
Country of the cart's delivery address.