This commit is contained in:
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user