-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add workflows hooks to the order module #8496
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
|
packages/core/core-flows/src/order/workflows/cancel-order-fulfillment.ts
Outdated
Show resolved
Hide resolved
packages/medusa/src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.ts
Show resolved
Hide resolved
packages/medusa/src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.ts
Show resolved
Hide resolved
…illment.ts Co-authored-by: Oli Juhl <[email protected]>
Co-authored-by: Oli Juhl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes: FRMW-2642
Following is the list of hooks introduced in the order module's workflows.
orderCreated
{ order: OrderDTO, additional_data?: AdditionalData }
orderCancelled
{ order: OrderDTO & { fulfillments: FulfillmentDTO[]; } }
ordersCompleted
{ orders: OrderDTO[], additional_data?: AdditionalData }
fulfillmentCreated
{ fulfillment: FulfillmentDTO, additional_data?: AdditionalData }
orderFulfillmentCancelled
{ fulfillment: FulfillmentDTO, additional_data?: AdditionalData }
shipmentCreated
{ shipment: CreateShipmentWorkflowInput, additional_data?: AdditionalData }