Skip to content

Commit b09b516

Browse files
Release 1.2.20
- Inclusão de responseType preciso para lidar com o endpoint de comprovantes
1 parent eb278ec commit b09b516

File tree

5 files changed

+13
-24
lines changed

5 files changed

+13
-24
lines changed

dist/cjs/index.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,9 @@ class Endpoints {
784784
charset: 'alphanumeric'
785785
});
786786
}
787+
if (endpoint.route === '/v2/gn/pix/comprovantes') {
788+
config.responseType = 'arraybuffer';
789+
}
787790
return config;
788791
}, error => {
789792
Promise.reject(error);

dist/esm/index.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,9 @@ class Endpoints {
775775
charset: 'alphanumeric'
776776
});
777777
}
778+
if (endpoint.route === '/v2/gn/pix/comprovantes') {
779+
config.responseType = 'arraybuffer';
780+
}
778781
return config;
779782
}, error => {
780783
Promise.reject(error);

package-lock.json

Lines changed: 2 additions & 23 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
@@ -10,7 +10,7 @@
1010
}
1111
},
1212
"description": "Module for integration with Efi Bank API",
13-
"version": "1.2.19",
13+
"version": "1.2.20",
1414
"author": "Efi Bank - Consultoria Técnica | João Vitor Oliveira | João Lucas",
1515
"license": "MIT",
1616
"repository": "efipay/sdk-node-apis-efi",

src/lib/endpoints.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ class Endpoints {
102102
config.headers['x-idempotency-key'] = randomstring.generate({ length: 72, charset: 'alphanumeric' })
103103
}
104104

105+
if (endpoint.route === '/v2/gn/pix/comprovantes') {
106+
config.responseType = 'arraybuffer';
107+
}
108+
105109
return config
106110
},
107111
(error) => {

0 commit comments

Comments
 (0)