Skip to content

Commit ef0bdaa

Browse files
Release 1.0.2
1 parent ba4dc0e commit ef0bdaa

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

examples/pix/send/pixSendDetailId.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* eslint-disable import/extensions */
2+
import EfiPay from 'gn-api-sdk-typescript';
3+
import options from '../../credentials';
4+
5+
const params = {
6+
idEnvio: '',
7+
};
8+
9+
const efipay = new EfiPay(options);
10+
11+
efipay
12+
.pixSendDetailId(params, [])
13+
.then((resposta: Promise<any>) => {
14+
console.log(resposta);
15+
})
16+
.catch((error: Promise<any>) => {
17+
console.log(error);
18+
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sdk-typescript-apis-efi",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Module for integration with EfiPay API",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -53,4 +53,4 @@
5353
"axios": "^1.2.1",
5454
"fs": "*"
5555
}
56-
}
56+
}

src/constants.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ export default {
358358
route: '/v2/gn/split/config/:id',
359359
method: 'get',
360360
},
361+
pixSendDetailId: {
362+
route: '/v2/gn/pix/enviados/id-envio/:idEnvio',
363+
method: 'get',
364+
},
361365
},
362366
},
363367
OPENFINANCE: {
@@ -438,9 +442,9 @@ export default {
438442
route: '/cadastro/conta-simplificada',
439443
method: 'post',
440444
},
441-
getAccountCertificate: {
445+
createAccountCertificate: {
442446
route: '/cadastro/conta-simplificada/:identificador/certificado',
443-
method: 'get',
447+
method: 'post',
444448
},
445449
getAccountCredentials: {
446450
route: '/cadastro/conta-simplificada/:identificador/credenciais',

src/endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Endpoints {
139139
const accessToken = await this.getAccessToken();
140140

141141
const headers: any = {
142-
'api-sdk': `typescript-${sdkPackage.version}`,
142+
'api-sdk': `efi-typescript-${sdkPackage.version}`,
143143
'Content-Type': 'application/json',
144144
authorization: `Bearer ${accessToken}`,
145145
};

0 commit comments

Comments
 (0)