Feat(medusa): cancel order edit (#2240)

**What**
- cancel an order edit

Fixes CORE-500
This commit is contained in:
Philip Korsholm authored and GitHub committed 2022-09-27 03:13:15 +00:00
1 parent d138baf460
commit 1807bff029
12 files changed
+393 -16

No files matched your search

@@ -1695,6 +1695,15 @@ export const adminHandlers = [
})
)
}),
rest.post("/admin/order-edits/:id/cancel", (req, res, ctx) => {
return res(
ctx.status(200),
ctx.json({
order_edit: { ...fixtures.get("order_edit"), canceled_at: new Date(), status: 'canceled' },
})
)
}),
rest.post("/admin/order-edits/:id/request", (req, res, ctx) => {
return res(