/* eslint-disable import/extensions */ import EfiPay from 'gn-api-sdk-typescript'; import options from '../../credentials'; const efipay = new EfiPay(options); const params = { codBarras: '', }; const body = { valor: 0, dataPagamento: '2022-03-10', descricao: 'Pagamento de boleto, teste API Pagamentos', }; efipay .payRequestBarCode(params, body) .then((resposta: Promise) => { console.log(resposta); }) .catch((error: Promise) => { console.log(error); });