chore(core-flows): ignore hooks in complete cart workflow (#12600)

This commit is contained in:
Shahed Nasser
2025-05-23 18:48:46 +03:00
committed by GitHub
parent 8303aed701
commit 7b3b4ff68a

View File

@@ -84,8 +84,6 @@ 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(
{
@@ -334,6 +332,9 @@ export const completeCartWorkflow = createWorkflow(
})
)
/**
* @ignore
*/
createHook("beforePaymentAuthorization", {
input,
})
@@ -369,6 +370,9 @@ export const completeCartWorkflow = createWorkflow(
addOrderTransactionStep(orderTransactions)
/**
* @ignore
*/
createHook("orderCreated", {
order_id: createdOrder.id,
cart_id: cart.id,