Feat(medusa): cancel order edit (#2240)
**What** - cancel an order edit Fixes CORE-500
This commit is contained in:
1 parent
d138baf460
commit
1807bff029
12 files changed
+393
-16
No files matched your search
@@ -58,6 +58,14 @@ class AdminOrderEditsResource extends BaseResource {
|
||||
const path = `/admin/order-edits/${id}/request`
|
||||
return this.client.request("POST", path, undefined, {}, customHeaders)
|
||||
}
|
||||
|
||||
cancel(
|
||||
id: string,
|
||||
customHeaders: Record<string, any> = {}
|
||||
): ResponsePromise<AdminOrderEditsRes> {
|
||||
const path = `/admin/order-edits/${id}/cancel`
|
||||
return this.client.request("POST", path, undefined, {}, customHeaders)
|
||||
}
|
||||
}
|
||||
|
||||
export default AdminOrderEditsResource
|
||||
Reference in new issue
Block a user