import type { HttpClient } from '@services' export type GetClientReceiptPdfInput = { receiptId: string contractId: string } const getClientReceiptPdf = (http: HttpClient) => ({ query: async (input: GetClientReceiptPdfInput) => { const response = await http.get<{ data: Blob } | Blob>( `v3/admin/contracts/${input.contractId}/client_receipts/${input.receiptId}.pdf`, { responseType: 'blob' }, ) return 'data' in response ? response.data : response }, }) export default getClientReceiptPdf