feat(types,fulfillment): ability to delete a canceled fulfillment (#10602)

This commit is contained in:
Riqwan Thamir authored and GitHub committed 2024-12-16 11:17:45 +01:00
1 parent 7c773fc108
commit 90ad2566fd
4 files changed
+103 -2

No files matched your search

@@ -2459,6 +2459,18 @@ export interface IFulfillmentModuleService extends IModuleService {
sharedContext?: Context
): Promise<FulfillmentDTO>
/**
* This method deletes fulfillment by IDs after cancelation.
*
* @param {string} id - The ID of the fulfillment.
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
* @returns {Promise<void>} Resolves when the fulfillment set is deleted successfully.
*
* @example
* await fulfillmentModuleService.deleteFulfillment("ful_123")
*/
deleteFulfillment(id: string, sharedContext?: Context): Promise<void>
/**
* This method creates a fulfillment and call the provider to create a return.
*