feat(dashboard): cancel return request (#8761)
* wip: cancel return request * fix: refactor * feat: correct endpoint, add hook, fix types * feat: add prompt
This commit is contained in:
@@ -45,6 +45,21 @@ export class Return {
|
||||
)
|
||||
}
|
||||
|
||||
async cancel(
|
||||
id: string,
|
||||
query?: HttpTypes.SelectParams,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<HttpTypes.AdminReturnResponse>(
|
||||
`/admin/returns/${id}/cancel`,
|
||||
{
|
||||
method: "POST",
|
||||
headers,
|
||||
query,
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
async cancelRequest(
|
||||
id: string,
|
||||
query?: HttpTypes.SelectParams,
|
||||
|
||||
Reference in New Issue
Block a user