Skip to content

Commit bfddb6f

Browse files
✨ Release 1.2.2
Este commit iguala este repositório ao https://github.com/efipay/sdk-node-apis-efi em sua versão 1.2.7
1 parent 01a8280 commit bfddb6f

21 files changed

+95
-135
lines changed

dist/cjs/index.cjs

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ var exports$1 = {
579579
}
580580
};
581581
var description = "Module for integration with Efi Bank API";
582-
var version = "1.2.1";
582+
var version = "1.2.2";
583583
var deprecated = "Este pacote será descontinuado. Use o 'sdk-node-apis-efi' no lugar.";
584584
var author = "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas";
585585
var license = "MIT";
@@ -3516,25 +3516,13 @@ class PixMethods extends CobrancasMethods {
35163516
* } } body
35173517
*
35183518
* @returns {Promise<{
3519+
* idEnvio: string,
3520+
* e2eId: string,
35193521
* valor: string,
3520-
* pagador: {
3521-
* chave: string,
3522-
* infoPagador?: string
3523-
* },
3524-
* favorecido: {
3525-
* chave?: string,
3526-
* contaBanco?: {
3527-
* nome: string,
3528-
* cpf?: string,
3529-
* cnpj?: string,
3530-
* codigoBanco: string,
3531-
* agencia: string,
3532-
* conta: string,
3533-
* tipoConta: string
3534-
* },
3535-
* cpf?: string,
3536-
* cnpj?: string
3522+
* horario: {
3523+
* solicitacao: string
35373524
* }
3525+
* status: string
35383526
* }>}
35393527
*/
35403528
pixSend(params, body) {}
@@ -5282,15 +5270,18 @@ class OpenFinanceMethods extends PixMethods {
52825270
* Para capturar uma falha utilize o `catch`, os campos disponíveis no objeto serão `nome` e `mensagem`.
52835271
*
52845272
* @param {{ identificadorPagamento: string }} params
5285-
* @param {{ valor: string }} body
5273+
* @param {Array<{
5274+
* endToEndId: string,
5275+
* valor: string
5276+
* }>} body
52865277
*
5287-
* @returns { Promise<{
5278+
* @returns { Promise<Array<{
52885279
* identificadorPagamento: string,
52895280
* endToEndId: string,
52905281
* valor: string,
52915282
* dataCriacao: string,
52925283
* status: string,
5293-
* }>}
5284+
* }>>}
52945285
*/
52955286
ofDevolutionRecurrencyPix(params, body) {}
52965287
}

dist/esm/index.mjs

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ var exports = {
570570
}
571571
};
572572
var description = "Module for integration with Efi Bank API";
573-
var version = "1.2.1";
573+
var version = "1.2.2";
574574
var deprecated = "Este pacote será descontinuado. Use o 'sdk-node-apis-efi' no lugar.";
575575
var author = "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas";
576576
var license = "MIT";
@@ -3507,25 +3507,13 @@ class PixMethods extends CobrancasMethods {
35073507
* } } body
35083508
*
35093509
* @returns {Promise<{
3510+
* idEnvio: string,
3511+
* e2eId: string,
35103512
* valor: string,
3511-
* pagador: {
3512-
* chave: string,
3513-
* infoPagador?: string
3514-
* },
3515-
* favorecido: {
3516-
* chave?: string,
3517-
* contaBanco?: {
3518-
* nome: string,
3519-
* cpf?: string,
3520-
* cnpj?: string,
3521-
* codigoBanco: string,
3522-
* agencia: string,
3523-
* conta: string,
3524-
* tipoConta: string
3525-
* },
3526-
* cpf?: string,
3527-
* cnpj?: string
3513+
* horario: {
3514+
* solicitacao: string
35283515
* }
3516+
* status: string
35293517
* }>}
35303518
*/
35313519
pixSend(params, body) {}
@@ -5273,15 +5261,18 @@ class OpenFinanceMethods extends PixMethods {
52735261
* Para capturar uma falha utilize o `catch`, os campos disponíveis no objeto serão `nome` e `mensagem`.
52745262
*
52755263
* @param {{ identificadorPagamento: string }} params
5276-
* @param {{ valor: string }} body
5264+
* @param {Array<{
5265+
* endToEndId: string,
5266+
* valor: string
5267+
* }>} body
52775268
*
5278-
* @returns { Promise<{
5269+
* @returns { Promise<Array<{
52795270
* identificadorPagamento: string,
52805271
* endToEndId: string,
52815272
* valor: string,
52825273
* dataCriacao: string,
52835274
* status: string,
5284-
* }>}
5275+
* }>>}
52855276
*/
52865277
ofDevolutionRecurrencyPix(params, body) {}
52875278
}

dist/types/methods/open-finance.d.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -642,26 +642,30 @@ export class OpenFinanceMethods extends PixMethods {
642642
* Para capturar uma falha utilize o `catch`, os campos disponíveis no objeto serão `nome` e `mensagem`.
643643
*
644644
* @param {{ identificadorPagamento: string }} params
645-
* @param {{ valor: string }} body
645+
* @param {Array<{
646+
* endToEndId: string,
647+
* valor: string
648+
* }>} body
646649
*
647-
* @returns { Promise<{
650+
* @returns { Promise<Array<{
648651
* identificadorPagamento: string,
649652
* endToEndId: string,
650653
* valor: string,
651654
* dataCriacao: string,
652655
* status: string,
653-
* }>}
656+
* }>>}
654657
*/
655658
ofDevolutionRecurrencyPix(params: {
656659
identificadorPagamento: string;
657-
}, body: {
660+
}, body: Array<{
661+
endToEndId: string;
658662
valor: string;
659-
}): Promise<{
663+
}>): Promise<Array<{
660664
identificadorPagamento: string;
661665
endToEndId: string;
662666
valor: string;
663667
dataCriacao: string;
664668
status: string;
665-
}>;
669+
}>>;
666670
}
667671
import { PixMethods } from "./pix";

dist/types/methods/pix.d.ts

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,25 +1197,13 @@ export class PixMethods extends CobrancasMethods {
11971197
* } } body
11981198
*
11991199
* @returns {Promise<{
1200+
* idEnvio: string,
1201+
* e2eId: string,
12001202
* valor: string,
1201-
* pagador: {
1202-
* chave: string,
1203-
* infoPagador?: string
1204-
* },
1205-
* favorecido: {
1206-
* chave?: string,
1207-
* contaBanco?: {
1208-
* nome: string,
1209-
* cpf?: string,
1210-
* cnpj?: string,
1211-
* codigoBanco: string,
1212-
* agencia: string,
1213-
* conta: string,
1214-
* tipoConta: string
1215-
* },
1216-
* cpf?: string,
1217-
* cnpj?: string
1203+
* horario: {
1204+
* solicitacao: string
12181205
* }
1206+
* status: string
12191207
* }>}
12201208
*/
12211209
pixSend(params: {
@@ -1241,25 +1229,13 @@ export class PixMethods extends CobrancasMethods {
12411229
cnpj?: string;
12421230
};
12431231
}): Promise<{
1232+
idEnvio: string;
1233+
e2eId: string;
12441234
valor: string;
1245-
pagador: {
1246-
chave: string;
1247-
infoPagador?: string;
1248-
};
1249-
favorecido: {
1250-
chave?: string;
1251-
contaBanco?: {
1252-
nome: string;
1253-
cpf?: string;
1254-
cnpj?: string;
1255-
codigoBanco: string;
1256-
agencia: string;
1257-
conta: string;
1258-
tipoConta: string;
1259-
};
1260-
cpf?: string;
1261-
cnpj?: string;
1235+
horario: {
1236+
solicitacao: string;
12621237
};
1238+
status: string;
12631239
}>;
12641240
/**
12651241
* **GET /v2/gn/pix/enviados/:e2eId**

examples/open-finance/payments/immediate/ofDevolutionPix.js renamed to examples/open-finance/payments/immediate/ofDevolutionPix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/immediate/ofListPixPayment.js renamed to examples/open-finance/payments/immediate/ofListPixPayment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/immediate/ofStartPixPayment.js renamed to examples/open-finance/payments/immediate/ofStartPixPayment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/recurrency/ofCancelRecurrencyPix.js renamed to examples/open-finance/payments/recurrency/ofCancelRecurrencyPix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/recurrency/ofDevolutionRecurrencyPix.js renamed to examples/open-finance/payments/recurrency/ofDevolutionRecurrencyPix.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

66
let params = {
77
identificadorPagamento: 'urn:efi:ae71713f-875b-4af3-9d85-0bcb43288847',
88
}
99

10-
let body = {
11-
valor: '0.01',
12-
}
10+
let body = [
11+
{
12+
endToEndId: "E09089356202408281500624f423208f",
13+
valor: "0.01"
14+
},
15+
{
16+
endToEndId: "E09089356202408291500a0ecaa22e86",
17+
valor: "0.01"
18+
}
19+
]
1320

1421
// O método ofDevolutionRecurrencyPix indica os campos que devem ser enviados e que serão retornados
1522
efipay.ofDevolutionRecurrencyPix(params, body)

examples/open-finance/payments/recurrency/ofListRecurrencyPixPayment.js renamed to examples/open-finance/payments/recurrency/ofListRecurrencyPixPayment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/recurrency/ofStartRecurrencyPixPayment.js renamed to examples/open-finance/payments/recurrency/ofStartRecurrencyPixPayment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/schedule/ofCancelSchedulePix.js renamed to examples/open-finance/payments/schedule/ofCancelSchedulePix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/schedule/ofDevolutionSchedulePix.js renamed to examples/open-finance/payments/schedule/ofDevolutionSchedulePix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/schedule/ofListSchedulePixPayment.js renamed to examples/open-finance/payments/schedule/ofListSchedulePixPayment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/open-finance/payments/schedule/ofStartSchedulePixPayment.js renamed to examples/open-finance/payments/schedule/ofStartSchedulePixPayment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
const options = require('../../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi'
2+
import options from '../../../credentials'
33

44
const efipay = new EfiPay(options)
55

examples/payments/webhooks/payConfigWebhook.js renamed to examples/payments/webhooks/payConfigWebhook.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
let options = require('../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi';
2+
import options from '../../credentials';
33

44

55
let body = {
6-
url : 'https://suaUrl.com.br/webhook',
6+
url: 'https://suaUrl.com.br/webhook',
77
}
88

99
const efipay = new EfiPay(options)

examples/pix/webhooks/pixConfigWebhook.js renamed to examples/pix/webhooks/pixConfigWebhook.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const EfiPay = require('sdk-node-apis-efi')
2-
let options = require('../../credentials')
1+
import EfiPay from 'sdk-typescript-apis-efi';
2+
import options from '../../credentials';
33

44
options['validateMtls'] = false
55

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"description": "Module for integration with Efi Bank API",
12-
"version": "1.2.1",
12+
"version": "1.2.2",
1313
"deprecated": "Este pacote será descontinuado. Use o 'sdk-node-apis-efi' no lugar.",
1414
"author": "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas",
1515
"license": "MIT",

src/methods/open-finance.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,15 +437,18 @@ export class OpenFinanceMethods extends PixMethods {
437437
* Para capturar uma falha utilize o `catch`, os campos disponíveis no objeto serão `nome` e `mensagem`.
438438
*
439439
* @param {{ identificadorPagamento: string }} params
440-
* @param {{ valor: string }} body
440+
* @param {Array<{
441+
* endToEndId: string,
442+
* valor: string
443+
* }>} body
441444
*
442-
* @returns { Promise<{
445+
* @returns { Promise<Array<{
443446
* identificadorPagamento: string,
444447
* endToEndId: string,
445448
* valor: string,
446449
* dataCriacao: string,
447450
* status: string,
448-
* }>}
451+
* }>>}
449452
*/
450453
ofDevolutionRecurrencyPix(params, body) { }
451454
}

0 commit comments

Comments
 (0)