menu

SiteGenesis / Server-side JS / Module: models/TransientAddressModel

Model for transient address information.

Source:

module:models/TransientAddressModel

The TransientAddress class

Source:

Classes

TransientAddressModel

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.

Source:

Methods

(inner) addressExists()

Checks if the address already exists in an array of addresses for multishipping checkout.

Source:

(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.

Source:

(inner) copyTo()

Copies the attributes of this address to the given order address.

Source:

(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

Source:
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.

Source: