Skip to main content
Skip to main content

deleteAddresses - Cart Module Reference

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

deleteAddresses(ids, sharedContext?): Promise<void>

This method deletes addresses by their IDs.

Example

await cartModuleService.deleteAddresses([
"caaddr_123",
"caaddr_321",
])

Parameters

idsstring[]Required
The IDs of the cart.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the addresses are deleted successfully.

deleteAddresses(ids, sharedContext?): Promise<void>

This method deletes an address by its ID.

Example

await cartModuleService.deleteAddresses("caaddr_123")

Parameters

idsstringRequired
The IDs of the cart.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the address are deleted successfully.
Was this section helpful?