From db33616cf9ea3b8bd61d60a1e601d649bdea2bdf Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 21 May 2025 14:25:53 +0300 Subject: [PATCH] chore(core-flows): add tsdocs for hooks in complete cart (#12555) --- packages/core/core-flows/src/cart/workflows/complete-cart.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/core-flows/src/cart/workflows/complete-cart.ts b/packages/core/core-flows/src/cart/workflows/complete-cart.ts index 595b90cbda..454ce71886 100644 --- a/packages/core/core-flows/src/cart/workflows/complete-cart.ts +++ b/packages/core/core-flows/src/cart/workflows/complete-cart.ts @@ -84,6 +84,8 @@ export const completeCartWorkflowId = "complete-cart" * Complete a cart and place an order. * * @property hooks.validate - This hook is executed before all operations. You can consume this hook to perform any custom validation. If validation fails, you can throw an error to stop the workflow execution. + * @property hooks.beforePaymentAuthorization - This hook is executed before the payment authorization. You can consume this hook to perform any custom logic before the payment is authorized, such as validation with custom payment providers. + * @property hooks.orderCreated - This hook is executed after the order is created. You can consume this hook to perform any custom logic after the order is created, such as creating custom models linked to the order. */ export const completeCartWorkflow = createWorkflow( {