UNPKG

thunderpix

Version:

Biblioteca javascript de padronização de gateways de pagamentos PIX

44 lines (43 loc) 1.58 kB
import ProviderInterface from '../../interfaces/ProviderInterface'; interface ProviderConstruct { token: string; isTest: boolean | false; } export default class PicPayProvider implements ProviderInterface { private baseUrl; private token; providerInfo: { name: string; description: string; documentation: string; isOnline: boolean; vendor: { name: string; shotname: string; url: string; api: string; versions: { name: string; version: string; path: string; }[]; }; }; constructor(configs: ProviderConstruct); private getHeaders; gerarCobranca(referenceId: string, value: number, callbackUrl: string, returnUrl: string, buyer: { firstName: string; lastName: string; document: string; }): Promise<any>; consultarCobranca(referenceId: string): Promise<any>; estornarPagamento(referenceId: string): Promise<any>; generatingPixBilling(body: PixGeneratingPixBillingInterface): Promise<Object>; searchPixBilling(body: searchPixBilling): Promise<searchPixBillingOutput>; listingPixBilling(body?: object): Promise<Object>; generateProviderWidthdraw(body: PixGenerateProviderWidthdraw): Promise<generateProviderWidthdrawOutput>; listProviderWidthdraw(body: listProviderWidthdraw): Promise<listProviderWidthdrawOutput>; getBalance(): Promise<BalanceOutput>; searchProviderWidthdraw(body?: object): Promise<Object>; } export {};