UNPKG

@payunit/nodejs-sdk

Version:

PayUnit Payment Processor SDK

19 lines 1.09 kB
import { PayUnitConfig } from './types/config'; import Joi from 'joi'; import type { Collections as CollectionsInterface } from './Collections'; import type { Checkout as CheckoutInterface } from './Checkout'; import type { Invoice as InvoiceInterface } from './Invoice'; import type { Disbursement as DisbursementInterface } from './Disbursement'; export declare class PayunitClient { readonly collections: CollectionsInterface; readonly checkout: CheckoutInterface; readonly invoice: InvoiceInterface; readonly disbursement: DisbursementInterface; private readonly config; private readonly axiosInstance; private readonly credentials; constructor(config?: Partial<PayUnitConfig>); request<T>(method: 'GET' | 'POST', endpoint: string, data?: unknown, params?: Record<string, string | number | boolean>): Promise<T>; makeRequest<T>(method: 'GET' | 'POST', endpoint: string, requestSchema: Joi.Schema, data: unknown, errorMessage: string, params?: Record<string, string | number | boolean>): Promise<T>; } //# sourceMappingURL=PayunitClient.d.ts.map