Skip to main content
Skip to main content

updateAddresses - Cart Module Reference

This documentation provides a reference to the updateAddresses method. This belongs to the Cart Module.

updateAddresses(data, sharedContext?): Promise<CartAddressDTO[]>

This method updates existing addresses.

Example

const addresses = await cartModuleService.updateAddresses([
{
id: "caaddr_123",
first_name: "Leroy",
},
{
id: "caaddr_321",
last_name: "Hunt",
},
])

Parameters

dataUpdateAddressDTO[]Required
The attributes to update in the addresss.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<CartAddressDTO[]>Required
The updated addresses.

updateAddresses(data, sharedContext?): Promise<CartAddressDTO>

This method updates an existing address.

Example

const address = await cartModuleService.updateAddresses({
id: "caaddr_123",
first_name: "Leroy",
})

Parameters

dataUpdateAddressDTORequired
The attributes to update in the address.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<CartAddressDTO>Required
The updated address.
Was this section helpful?