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:

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.