Mark draft order endpoint wrong in medusa-js (#1046)
This commit is contained in:
committed by
olivermrbl
parent
7a3a1837a1
commit
07a13f6faf
@@ -83,7 +83,7 @@ class AdminDraftOrdersResource extends BaseResource {
|
|||||||
markPaid(
|
markPaid(
|
||||||
id: string
|
id: string
|
||||||
): ResponsePromise<AdminPostDraftOrdersDraftOrderRegisterPaymentRes> {
|
): ResponsePromise<AdminPostDraftOrdersDraftOrderRegisterPaymentRes> {
|
||||||
const path = `/admin/draft-orders/${id}/register-payment`
|
const path = `/admin/draft-orders/${id}/pay`
|
||||||
return this.client.request("POST", path, {})
|
return this.client.request("POST", path, {})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -711,7 +711,7 @@ export const adminHandlers = [
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
rest.post("/admin/draft-orders/:id/register-payment", (req, res, ctx) => {
|
rest.post("/admin/draft-orders/:id/pay", (req, res, ctx) => {
|
||||||
return res(
|
return res(
|
||||||
ctx.status(200),
|
ctx.status(200),
|
||||||
ctx.json({
|
ctx.json({
|
||||||
|
|||||||
Reference in New Issue
Block a user