import { Api } from "..";
const api = Api();
;
export class RefundService {
    async postRefund(paymentId, accountId, authToken, refundBody) {
        const endpoint = `payments/${paymentId}/refunds`;
        const headers = { 'Sub-Account': accountId };
        const body = refundBody;
        return api.post({ endpoint, headers, body, authToken });
    }
}
