Skip to content

Commit 054319d

Browse files
🐛 📚 Release 1.2.7
Corrigido tipagem do retorono do método pixSend Exemplo do métedo ofDevolutionRecurrencyPix atualizado de acordo com a nova tipagem que já havia sido implementada anteriormente
1 parent 0baefd8 commit 054319d

File tree

7 files changed

+40
-93
lines changed

7 files changed

+40
-93
lines changed

dist/cjs/index.cjs

Lines changed: 6 additions & 18 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.6";
582+
var version = "1.2.7";
583583
var author = "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas";
584584
var license = "MIT";
585585
var repository = "efipay/sdk-node-apis-efi";
@@ -3480,25 +3480,13 @@ class PixMethods extends CobrancasMethods {
34803480
* } } body
34813481
*
34823482
* @returns {Promise<{
3483+
* idEnvio: string,
3484+
* e2eId: string,
34833485
* valor: string,
3484-
* pagador: {
3485-
* chave: string,
3486-
* infoPagador?: string
3487-
* },
3488-
* favorecido: {
3489-
* chave?: string,
3490-
* contaBanco?: {
3491-
* nome: string,
3492-
* cpf?: string,
3493-
* cnpj?: string,
3494-
* codigoBanco: string,
3495-
* agencia: string,
3496-
* conta: string,
3497-
* tipoConta: string
3498-
* },
3499-
* cpf?: string,
3500-
* cnpj?: string
3486+
* horario: {
3487+
* solicitacao: string
35013488
* }
3489+
* status: string
35023490
* }>}
35033491
*/
35043492
pixSend(params, body) {}

dist/esm/index.mjs

Lines changed: 6 additions & 18 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.6";
573+
var version = "1.2.7";
574574
var author = "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas";
575575
var license = "MIT";
576576
var repository = "efipay/sdk-node-apis-efi";
@@ -3471,25 +3471,13 @@ class PixMethods extends CobrancasMethods {
34713471
* } } body
34723472
*
34733473
* @returns {Promise<{
3474+
* idEnvio: string,
3475+
* e2eId: string,
34743476
* valor: string,
3475-
* pagador: {
3476-
* chave: string,
3477-
* infoPagador?: string
3478-
* },
3479-
* favorecido: {
3480-
* chave?: string,
3481-
* contaBanco?: {
3482-
* nome: string,
3483-
* cpf?: string,
3484-
* cnpj?: string,
3485-
* codigoBanco: string,
3486-
* agencia: string,
3487-
* conta: string,
3488-
* tipoConta: string
3489-
* },
3490-
* cpf?: string,
3491-
* cnpj?: string
3477+
* horario: {
3478+
* solicitacao: string
34923479
* }
3480+
* status: string
34933481
* }>}
34943482
*/
34953483
pixSend(params, body) {}

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/recurrency/ofDevolutionRecurrencyPix.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ 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)

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.6",
12+
"version": "1.2.7",
1313
"author": "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas",
1414
"license": "MIT",
1515
"repository": "efipay/sdk-node-apis-efi",

src/methods/pix.js

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -706,25 +706,13 @@ export class PixMethods extends CobrancasMethods {
706706
* } } body
707707
*
708708
* @returns {Promise<{
709+
* idEnvio: string,
710+
* e2eId: string,
709711
* valor: string,
710-
* pagador: {
711-
* chave: string,
712-
* infoPagador?: string
713-
* },
714-
* favorecido: {
715-
* chave?: string,
716-
* contaBanco?: {
717-
* nome: string,
718-
* cpf?: string,
719-
* cnpj?: string,
720-
* codigoBanco: string,
721-
* agencia: string,
722-
* conta: string,
723-
* tipoConta: string
724-
* },
725-
* cpf?: string,
726-
* cnpj?: string
712+
* horario: {
713+
* solicitacao: string
727714
* }
715+
* status: string
728716
* }>}
729717
*/
730718
pixSend(params, body) { }

0 commit comments

Comments
 (0)