mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
14 lines
382 B
TypeScript
14 lines
382 B
TypeScript
import { apiClient } from '../client';
|
|
|
|
export class RoutstrProviderService {
|
|
static async refundBalance(
|
|
providerId: number
|
|
): Promise<{ ok: boolean; message: string; refund_id?: string }> {
|
|
return await apiClient.post<{
|
|
ok: boolean;
|
|
message: string;
|
|
refund_id?: string;
|
|
}>(`/admin/api/upstream-providers/${providerId}/routstr/refund`, {});
|
|
}
|
|
}
|