feat: add admin order refund action
Build and Release / Build (push) Has been cancelled

This commit is contained in:
2026-05-24 09:11:02 -07:00
parent d8b65c6d82
commit 65641838f9
5 changed files with 168 additions and 5 deletions
+18
View File
@@ -78,3 +78,21 @@ export async function activateOrder(
}
);
}
/** Refund order POST /v1/admin/order/refund */
export async function refundOrder(
body: API.RefundOrderRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/order/refund`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}