@basel_mn/qv-api-client
Version:
TypeScript/JavaScript client for QV API, providing easy access to invoices, payments, and Swish integration
22 lines • 789 B
TypeScript
import { AxiosInstance, AxiosResponse } from 'axios';
import { InvoiceListItem, InvoiceDetail } from '../../types';
interface ApiResponse {
invoices: InvoiceListItem[];
count: number;
}
interface ProcessedInvoiceResponse extends AxiosResponse<ApiResponse> {
}
export { InvoicesApi };
declare class InvoicesApi {
private client;
constructor(client: AxiosInstance);
getInvoices(params?: Record<string, any>): Promise<ProcessedInvoiceResponse>;
getInvoice({ id, hash }: {
id: string;
hash: string;
}): Promise<InvoiceDetail>;
getInvoiceStatus(id: string): Promise<any>;
sendInvoiceReminder(id: string): Promise<any>;
createInvoicePayment(id: string, paymentData: Record<string, any>): Promise<any>;
}
//# sourceMappingURL=index.d.ts.map