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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
+7
@@ -1439,6 +1439,7 @@ declare namespace API {
|
||||
fee_amount: number;
|
||||
trade_no: string;
|
||||
status: number;
|
||||
status_name?: string;
|
||||
subscribe_id: number;
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
@@ -1462,6 +1463,7 @@ declare namespace API {
|
||||
fee_amount: number;
|
||||
trade_no: string;
|
||||
status: number;
|
||||
status_name?: string;
|
||||
subscribe_id: number;
|
||||
subscribe: Subscribe;
|
||||
created_at: number;
|
||||
@@ -2748,6 +2750,11 @@ declare namespace API {
|
||||
order_no: string;
|
||||
};
|
||||
|
||||
type RefundOrderRequest = {
|
||||
id: number;
|
||||
reason?: string;
|
||||
};
|
||||
|
||||
type RedemptionCode = {
|
||||
id: number;
|
||||
code: string;
|
||||
|
||||
Reference in New Issue
Block a user