Feat(medusa): request order edit (#2239)
**What** - Implement `admin/order-edits/:id/request` Fixes CORE-499
This commit is contained in:
@@ -50,6 +50,14 @@ class AdminOrderEditsResource extends BaseResource {
|
||||
const path = `/admin/order-edits/${orderEditId}/changes/${itemChangeId}`
|
||||
return this.client.request("DELETE", path, undefined, {}, customHeaders)
|
||||
}
|
||||
|
||||
requestConfirmation(
|
||||
id: string,
|
||||
customHeaders: Record<string, any> = {}
|
||||
): ResponsePromise<AdminOrderEditsRes> {
|
||||
const path = `/admin/order-edits/${id}/request`
|
||||
return this.client.request("POST", path, undefined, {}, customHeaders)
|
||||
}
|
||||
}
|
||||
|
||||
export default AdminOrderEditsResource
|
||||
|
||||
Reference in New Issue
Block a user