/* eslint-disable import/extensions */ import EfiPay from 'gn-api-sdk-typescript'; import options from '../../credentials'; const params = { id: 0, }; const body = { items: [ { name: 'Product One', value: 600, amount: 1, }, ], payment: { banking_billet: { expire_at: '2024-09-20', customer: { name: 'Gorbadoc Oldbuck', email: 'oldbuck@efipay.com.br', cpf: '94271564656', birth: '1977-01-15', phone_number: '5144916523', }, }, }, }; const efipay = new EfiPay(options); efipay .oneStepSubscription(params, body) .then((resposta: Promise) => { console.log(resposta); }) .catch((error: Promise) => { console.log(error); });