Model for transient address information.
module:models/TransientAddressModel
The TransientAddress class
Classes
Members
(inner) referenceAddressUUID
The UUID of the reference address. It is set when the attributes are copied from a given customer or order address and is used to preselect addresses on a per product line item base.
Methods
(inner) addressExists()
Checks if the address already exists in an array of addresses for multishipping checkout.
(inner) copyFrom()
Copies the attributes from the given customer address or order address to this address. The function supports both copying from CustomerAddress and from OrderAddress.
(inner) copyTo()
Copies the attributes of this address to the given order address.
(inner) equals(address) → {boolean}
Returns true if the relevant fields of the addresses are all equal.
Parameters:
Name | Type | Description |
---|---|---|
address |
Object |
The address to compare the transient address to |
Returns:
true if both addresses are equal, false otherwise.
- Type
- boolean
(inner) storeAddressTo()
Copies the attributes of a store's address to the given order address.