Skip to content

Commit

Permalink
🐛 📚 Release 1.2.7
Browse files Browse the repository at this point in the history
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
  • Loading branch information
joao-muniz-efi committed Oct 1, 2024
1 parent 0baefd8 commit 054319d
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 93 deletions.
24 changes: 6 additions & 18 deletions dist/cjs/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ var exports$1 = {
}
};
var description = "Module for integration with Efi Bank API";
var version = "1.2.6";
var version = "1.2.7";
var author = "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas";
var license = "MIT";
var repository = "efipay/sdk-node-apis-efi";
Expand Down Expand Up @@ -3480,25 +3480,13 @@ class PixMethods extends CobrancasMethods {
* } } body
*
* @returns {Promise<{
* idEnvio: string,
* e2eId: string,
* valor: string,
* pagador: {
* chave: string,
* infoPagador?: string
* },
* favorecido: {
* chave?: string,
* contaBanco?: {
* nome: string,
* cpf?: string,
* cnpj?: string,
* codigoBanco: string,
* agencia: string,
* conta: string,
* tipoConta: string
* },
* cpf?: string,
* cnpj?: string
* horario: {
* solicitacao: string
* }
* status: string
* }>}
*/
pixSend(params, body) {}
Expand Down
24 changes: 6 additions & 18 deletions dist/esm/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ var exports = {
}
};
var description = "Module for integration with Efi Bank API";
var version = "1.2.6";
var version = "1.2.7";
var author = "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas";
var license = "MIT";
var repository = "efipay/sdk-node-apis-efi";
Expand Down Expand Up @@ -3471,25 +3471,13 @@ class PixMethods extends CobrancasMethods {
* } } body
*
* @returns {Promise<{
* idEnvio: string,
* e2eId: string,
* valor: string,
* pagador: {
* chave: string,
* infoPagador?: string
* },
* favorecido: {
* chave?: string,
* contaBanco?: {
* nome: string,
* cpf?: string,
* cnpj?: string,
* codigoBanco: string,
* agencia: string,
* conta: string,
* tipoConta: string
* },
* cpf?: string,
* cnpj?: string
* horario: {
* solicitacao: string
* }
* status: string
* }>}
*/
pixSend(params, body) {}
Expand Down
44 changes: 10 additions & 34 deletions dist/types/methods/pix.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1197,25 +1197,13 @@ export class PixMethods extends CobrancasMethods {
* } } body
*
* @returns {Promise<{
* idEnvio: string,
* e2eId: string,
* valor: string,
* pagador: {
* chave: string,
* infoPagador?: string
* },
* favorecido: {
* chave?: string,
* contaBanco?: {
* nome: string,
* cpf?: string,
* cnpj?: string,
* codigoBanco: string,
* agencia: string,
* conta: string,
* tipoConta: string
* },
* cpf?: string,
* cnpj?: string
* horario: {
* solicitacao: string
* }
* status: string
* }>}
*/
pixSend(params: {
Expand All @@ -1241,25 +1229,13 @@ export class PixMethods extends CobrancasMethods {
cnpj?: string;
};
}): Promise<{
idEnvio: string;
e2eId: string;
valor: string;
pagador: {
chave: string;
infoPagador?: string;
};
favorecido: {
chave?: string;
contaBanco?: {
nome: string;
cpf?: string;
cnpj?: string;
codigoBanco: string;
agencia: string;
conta: string;
tipoConta: string;
};
cpf?: string;
cnpj?: string;
horario: {
solicitacao: string;
};
status: string;
}>;
/**
* **GET /v2/gn/pix/enviados/:e2eId**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ let params = {
identificadorPagamento: 'urn:efi:ae71713f-875b-4af3-9d85-0bcb43288847',
}

let body = {
valor: '0.01',
}
let body = [
{
endToEndId: "E09089356202408281500624f423208f",
valor: "0.01"
},
{
endToEndId: "E09089356202408291500a0ecaa22e86",
valor: "0.01"
}
]

// O método ofDevolutionRecurrencyPix indica os campos que devem ser enviados e que serão retornados
efipay.ofDevolutionRecurrencyPix(params, body)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"description": "Module for integration with Efi Bank API",
"version": "1.2.6",
"version": "1.2.7",
"author": "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas",
"license": "MIT",
"repository": "efipay/sdk-node-apis-efi",
Expand Down
22 changes: 5 additions & 17 deletions src/methods/pix.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,25 +706,13 @@ export class PixMethods extends CobrancasMethods {
* } } body
*
* @returns {Promise<{
* idEnvio: string,
* e2eId: string,
* valor: string,
* pagador: {
* chave: string,
* infoPagador?: string
* },
* favorecido: {
* chave?: string,
* contaBanco?: {
* nome: string,
* cpf?: string,
* cnpj?: string,
* codigoBanco: string,
* agencia: string,
* conta: string,
* tipoConta: string
* },
* cpf?: string,
* cnpj?: string
* horario: {
* solicitacao: string
* }
* status: string
* }>}
*/
pixSend(params, body) { }
Expand Down

0 comments on commit 054319d

Please sign in to comment.