Home > @shopware-pwa/composables > IUseCustomerAddresses
# IUseCustomerAddresses interface
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
interface for useCustomerAddresses() composable
Signature:
export interface IUseCustomerAddresses
# Properties
Property | Type | Description |
---|---|---|
addAddress | (params: Partial<CustomerAddress>) => Promise<string | undefined> | (BETA) |
addresses | ComputedRef<CustomerAddress[]> | (BETA) |
deleteAddress | (addressId: string) => Promise<boolean> | (BETA) |
errors | UnwrapRef<{ markAddressAsDefault: ShopwareError[]; loadAddresses: ShopwareError[]; addAddress: ShopwareError[]; updateAddress: ShopwareError[]; deleteAddress: ShopwareError[]; }> | (BETA) |
loadAddresses | () => Promise<void> | (BETA) |
markAddressAsDefault | ({ addressId, type, }: { addressId?: string; type?: AddressType; }) => Promise<string | boolean> | (BETA) |
updateAddress | (params: Partial<CustomerAddress>) => Promise<string | undefined> | (BETA) |