File tree Expand file tree Collapse file tree 4 files changed +27
-5
lines changed Expand file tree Collapse file tree 4 files changed +27
-5
lines changed Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sdk-typescript-apis-efi" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " Module for integration with EfiPay API" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
53
53
"axios" : " ^1.2.1" ,
54
54
"fs" : " *"
55
55
}
56
- }
56
+ }
Original file line number Diff line number Diff line change @@ -358,6 +358,10 @@ export default {
358
358
route : '/v2/gn/split/config/:id' ,
359
359
method : 'get' ,
360
360
} ,
361
+ pixSendDetailId : {
362
+ route : '/v2/gn/pix/enviados/id-envio/:idEnvio' ,
363
+ method : 'get' ,
364
+ } ,
361
365
} ,
362
366
} ,
363
367
OPENFINANCE : {
@@ -438,9 +442,9 @@ export default {
438
442
route : '/cadastro/conta-simplificada' ,
439
443
method : 'post' ,
440
444
} ,
441
- getAccountCertificate : {
445
+ createAccountCertificate : {
442
446
route : '/cadastro/conta-simplificada/:identificador/certificado' ,
443
- method : 'get ' ,
447
+ method : 'post ' ,
444
448
} ,
445
449
getAccountCredentials : {
446
450
route : '/cadastro/conta-simplificada/:identificador/credenciais' ,
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ class Endpoints {
139
139
const accessToken = await this . getAccessToken ( ) ;
140
140
141
141
const headers : any = {
142
- 'api-sdk' : `typescript-${ sdkPackage . version } ` ,
142
+ 'api-sdk' : `efi- typescript-${ sdkPackage . version } ` ,
143
143
'Content-Type' : 'application/json' ,
144
144
authorization : `Bearer ${ accessToken } ` ,
145
145
} ;
You can’t perform that action at this time.
0 commit comments