Skip to main content
Skip to main content

deleteLineItemAdjustments - Cart Module Reference

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

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

This method deletes line item adjustments by their IDs.

Example

await cartModuleService.deleteLineItemAdjustments([
"caliadj_123",
"caliadj_321",
])

Parameters

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

Returns

PromisePromise<void>Required
Resolves when the line item adjustments are deleted successfully.

deleteLineItemAdjustments(id, sharedContext?): Promise<void>

This method deletes a line item adjustment by its ID.

Example

await cartModuleService.deleteLineItemAdjustments(
"caliadj_123"
)

Parameters

idstringRequired
The ID of the line item adjustment.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the line item adjustment is deleted successfully.
Was this section helpful?