import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type GetTaxCertificateByIdInput = { houseId: string year: string } const getTaxCertificateById = (http: HttpClient) => ({ query: ( input: GetTaxCertificateByIdInput, ): Promise> => { return http.get( `v3/admin/owner_tax_certificates/${input.houseId}.pdf?year=${input.year}`, { responseType: 'blob' }, ) }, }) export default getTaxCertificateById