/* eslint-disable import/extensions */ import EfiPay from 'gn-api-sdk-typescript'; import options from '../../credentials'; const params = { id: 1001, }; const body = { description: 'This charge was not fully paid', }; const efipay = new EfiPay(options); efipay .createChargeHistory(params, body) .then((resposta: Promise) => { console.log(resposta); }) .catch((error: Promise) => { console.log(error); });