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

PropertyReturnsDescription
addressLine1StringFirst line of the cart's delivery street address.
addressLine2StringSecond line of the cart's delivery street address, such as a unit or suite number.
addressStateStringState or province of the cart's delivery address.
cityStringCity or suburb of the cart's delivery address.
countryStringCountry of the cart's delivery address.
postcodeStringPostal 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.