feat(medusa): Support OrderEdit removal (#2204)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { AdminOrdersEditsRes } from "@medusajs/medusa"
|
||||
import {
|
||||
AdminOrdersEditsRes,
|
||||
AdminOrderEditDeleteRes
|
||||
} from "@medusajs/medusa"
|
||||
import { ResponsePromise } from "../../typings"
|
||||
import BaseResource from "../base"
|
||||
|
||||
@@ -10,6 +13,14 @@ class AdminOrderEditsResource extends BaseResource {
|
||||
const path = `/admin/order-edits/${id}`
|
||||
return this.client.request("GET", path, undefined, {}, customHeaders)
|
||||
}
|
||||
|
||||
delete(
|
||||
id: string,
|
||||
customHeaders: Record<string, any> = {}
|
||||
): ResponsePromise<AdminOrderEditDeleteRes> {
|
||||
const path = `/admin/order-edits/${id}`
|
||||
return this.client.request("DELETE", path, undefined, {}, customHeaders)
|
||||
}
|
||||
}
|
||||
|
||||
export default AdminOrderEditsResource
|
||||
|
||||
Reference in New Issue
Block a user