UNPKG

@basel_mn/qv-api-client

Version:

TypeScript/JavaScript client for QV API, providing easy access to invoices, payments, and Swish integration

16 lines 637 B
import { AxiosInstance } from 'axios'; import { PaymentData, RefundData } from '../types'; /** * SwishApi provides methods to interact with the Swish payment integration. * This includes initiating payments, checking payment status, and handling refunds. */ export { SwishApi }; declare class SwishApi { private client; constructor(client: AxiosInstance); getStatus(id: string, hash: string): Promise<any>; initiatePayment(paymentData: PaymentData): Promise<any>; cancelPayment(id: string, hash: string): Promise<any>; initiateRefund(refundData: RefundData): Promise<any>; } //# sourceMappingURL=swish.d.ts.map