Skip to main content
Skip to main content

softDeleteMoneyAmounts - Pricing Module Reference

Beta

This documentation provides a reference to the softDeleteMoneyAmounts method. This belongs to the Pricing Module.

This method soft deletes money amounts by their IDs.

Example

import {
initialize as initializePricingModule,
} from "@medusajs/pricing"

async function softDeleteMoneyAmounts (moneyAmountIds: string[]) {
const pricingService = await initializePricingModule()

await pricingService.softDeleteMoneyAmounts(
moneyAmountIds
)
}

Parameters

idsstring[]Required
The IDs of the money amounts to delete.
configSoftDeleteReturn<TReturnableLinkableKeys>
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void | Record<string, string[]>>Required
Resolves when the money amounts are successfully deleted.
Was this section helpful?