sdk-node-apis-efi
Version:
Module for integration with Efi Bank API
24 lines • 854 B
TypeScript
import { PixCreateImmediateChargeBody, PixCreateImmediateChargeResponse } from './types/pix';
export interface SdkOptions {
sandbox: boolean;
client_id: string;
client_secret: string;
certificate?: string;
pemKey?: string;
cert_base64?: boolean;
partner_token?: string;
validateMtls?: boolean;
idempotencyKey?: string;
}
export declare class EfiSdk {
private options;
private tokenMap;
constructor(options: SdkOptions);
private isTokenExpired;
private buildAgent;
private authenticate;
private authorizedRequest;
pixCreateImmediateCharge(body: PixCreateImmediateChargeBody, headers?: Record<string, string>): Promise<PixCreateImmediateChargeResponse>;
listCharges(params?: Record<string, any>, headers?: Record<string, string>): Promise<any>;
}
//# sourceMappingURL=wrapper.d.ts.map