# CustomerAddresses

# Props

Name Type Description Default
show-all-addresses Boolean false

# Data

Name Type Description Initial value
name string "CustomerAddresses"
streetIncludesHouseNo BinaryExpression process.env.STREETINFO_INCLUDES_HOUSENO === 'true'
alternativeShippingAddress BinaryExpression process.env.ALTERNATIVE_SHIPPING_ADDRESS === 'true'
isShopware BinaryExpression process.env.API_TYPE === 'sw'
addresses object {"billing":{"type":"array","value":"[]","raw":"[]"},"shipping":{"type":"array","value":"[]","raw":"[]"}}
loading boolean false
address NewExpression new Form({})
defaultBillingAddress any null
defaultShippingAddress any null
selectedDefault any null
selectedDelete array []
saveAsNewAddress boolean false
errors array []
addressTemplate NewExpression new Form({ is_billing: false, is_billing_default: false, is_shipping: false, is_shipping_default: false, payload: { gender: '', firstName: '', lastName: '', street: '', houseNo: '', postal: '', city: '', country: '', company: '', }, })
formIsActiveAddressCreate boolean false
formIsActiveAddressUpdate boolean false
formIsActiveAddressSelectDefault boolean false

# Computed Properties

Name Description
showLayer Dependencies: offcanvas, name
isGuest Dependencies: customer
currentDefaultAddress Dependencies: address, defaultBillingAddress, defaultShippingAddress
possibleDefaultAddresses Dependencies: address, addresses
billingAddresses Dependencies: defaultBillingAddress, showAllAddresses, addresses
shippingAddresses Dependencies: defaultShippingAddress, showAllAddresses, addresses
uniqueErrors Dependencies: errors

# Methods

# toggle()

Syntax

toggle(): void
1

# hide()

Syntax

hide(): void
1

# getAddresses()

Syntax

getAddresses(): void
1

# mapAddresses()

Syntax

mapAddresses(): void
1

# createAddress()

Syntax

createAddress(addressType: unknow): void
1

# updateAddress()

Syntax

updateAddress(address: unknow): void
1

# selectDefaultAddress()

Syntax

selectDefaultAddress(addressType: unknow): void
1

# submitCreateForm()

Syntax

submitCreateForm(): void
1

# submitUpdateForm()

Syntax

submitUpdateForm(): void
1

# submitNewDefault()

Syntax

submitNewDefault(): void
1

# submitDeleteAddress()

Syntax

submitDeleteAddress(): void
1

# selectDefault()

Syntax

selectDefault(address: unknow): void
1

# selectDelete()

Syntax

selectDelete(address: unknow): void
1

# showDeleteIcon()

Syntax

showDeleteIcon(address: unknow): void
1

# isSelectedForDeletion()

Methods for selecting classes

Syntax

isSelectedForDeletion(address: unknow): void
1

# isNewDefaultAddress()

Syntax

isNewDefaultAddress(): void
1

# isSelectedAsDefault()

Syntax

isSelectedAsDefault(address: unknow): void
1