From 054319d9bdf3eb328c1173ba77124eeef9dfc0b9 Mon Sep 17 00:00:00 2001 From: joao-muniz-efi Date: Tue, 1 Oct 2024 11:59:37 +0000 Subject: [PATCH] =?UTF-8?q?:bug:=20:books:=20Release=201.2.7=20Corrigido?= =?UTF-8?q?=20tipagem=20do=20retorono=20do=20m=C3=A9todo=20pixSend=20Exemp?= =?UTF-8?q?lo=20do=20m=C3=A9tedo=20ofDevolutionRecurrencyPix=20atualizado?= =?UTF-8?q?=20de=20acordo=20com=20a=20nova=20tipagem=20que=20j=C3=A1=20hav?= =?UTF-8?q?ia=20sido=20implementada=20anteriormente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/cjs/index.cjs | 24 +++------- dist/esm/index.mjs | 24 +++------- dist/types/methods/pix.d.ts | 44 +++++-------------- .../recurrency/ofDevolutionRecurrencyPix.js | 13 ++++-- package-lock.json | 4 +- package.json | 2 +- src/methods/pix.js | 22 +++------- 7 files changed, 40 insertions(+), 93 deletions(-) diff --git a/dist/cjs/index.cjs b/dist/cjs/index.cjs index 84d7890..8929c13 100644 --- a/dist/cjs/index.cjs +++ b/dist/cjs/index.cjs @@ -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"; @@ -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) {} diff --git a/dist/esm/index.mjs b/dist/esm/index.mjs index fc19eba..48fd29e 100644 --- a/dist/esm/index.mjs +++ b/dist/esm/index.mjs @@ -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"; @@ -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) {} diff --git a/dist/types/methods/pix.d.ts b/dist/types/methods/pix.d.ts index 24217da..fd26956 100644 --- a/dist/types/methods/pix.d.ts +++ b/dist/types/methods/pix.d.ts @@ -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: { @@ -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** diff --git a/examples/open-finance/payments/recurrency/ofDevolutionRecurrencyPix.js b/examples/open-finance/payments/recurrency/ofDevolutionRecurrencyPix.js index 5e3104e..63c9fae 100644 --- a/examples/open-finance/payments/recurrency/ofDevolutionRecurrencyPix.js +++ b/examples/open-finance/payments/recurrency/ofDevolutionRecurrencyPix.js @@ -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) diff --git a/package-lock.json b/package-lock.json index e5819d7..b6952d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sdk-node-apis-efi", - "version": "1.2.6", + "version": "1.2.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sdk-node-apis-efi", - "version": "1.2.6", + "version": "1.2.7", "license": "MIT", "dependencies": { "axios": "^1.2.2", diff --git a/package.json b/package.json index 6bd3ed3..8138e9a 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/methods/pix.js b/src/methods/pix.js index 2bfd7f3..1242bc8 100644 --- a/src/methods/pix.js +++ b/src/methods/pix.js @@ -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) { }