UNPKG

@pjbank/pjbank-js-sdk

Version:

SDK de Integração do PJBank Recebimentos e Conta Digital

25 lines (17 loc) 500 B
'use strict'; const APIClient = require('pjbank-api-client'); class Extrato { constructor(credencial, chave) { this._credencial = credencial; this._chave = chave; } gerar(opcoes = {}) { let endpoint = `recebimentos/${this._credencial}/transacoes`; let headers = { "Content-type": "application/json", "X-CHAVE": this._chave }; return APIClient.get(endpoint, opcoes, headers); } } module.exports = Extrato;