Skip to content

Commit

Permalink
Release 1.0.1: ajuste de rota PixSend
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoliveiraGN committed Aug 8, 2023
1 parent f53448d commit 3b5c9f4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
88 changes: 44 additions & 44 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,180 +182,180 @@ module.exports = {
},
PIX: {
URL: {
PRODUCTION: 'https://pix.api.efipay.com.br/v2',
SANDBOX: 'https://pix-h.api.efipay.com.br/v2',
PRODUCTION: 'https://pix.api.efipay.com.br',
SANDBOX: 'https://pix-h.api.efipay.com.br',
},
ENDPOINTS: {
authorize: {
route: '/oauth/token',
method: 'post',
},
pixCreateDueCharge: {
route: '/cobv/:txid',
route: '/v2/cobv/:txid',
method: 'put',
},
pixUpdateDueCharge: {
route: '/cobv/:txid',
route: '/v2/cobv/:txid',
method: 'patch',
},
pixDetailDueCharge: {
route: '/cobv/:txid',
route: '/v2/cobv/:txid',
method: 'get',
},
pixListDueCharges: {
route: '/cobv/',
route: '/v2/cobv/',
method: 'get',
},
createReport: {
route: '/gn/relatorios/extrato-conciliacao',
route: '/v2/gn/relatorios/extrato-conciliacao',
method: 'post',
},
detailReport: {
route: '/gn/relatorios/:id',
route: '/v2/gn/relatorios/:id',
method: 'get',
},
pixCreateCharge: {
route: '/cob/:txid',
route: '/v2/cob/:txid',
method: 'put',
},
pixUpdateCharge: {
route: '/cob/:txid',
route: '/v2/cob/:txid',
method: 'patch',
},
pixCreateImmediateCharge: {
route: '/cob',
route: '/v2/cob',
method: 'post',
},
pixDetailCharge: {
route: '/cob/:txid',
route: '/v2/cob/:txid',
method: 'get',
},
pixListCharges: {
route: '/cob',
route: '/v2/cob',
method: 'get',
},
pixDetailReceived: {
route: '/pix/:e2eId',
route: '/v2/pix/:e2eId',
method: 'get',
},
pixReceivedList: {
route: '/pix',
route: '/v2/pix',
method: 'get',
},
pixSend: {
route: '/gn/pix/:idEnvio',
route: '/v2/gn/pix/:idEnvio',
method: 'put',
},
pixSendDetail: {
route: '/gn/pix/enviados/:e2eid',
route: '/v2/gn/pix/enviados/:e2eid',
method: 'get',
},
pixSendList: {
route: '/gn/pix/enviados',
route: '/v2/gn/pix/enviados',
method: 'get',
},
pixDevolution: {
route: '/pix/:e2eId/devolucao/:id',
route: '/v2/pix/:e2eId/devolucao/:id',
method: 'put',
},
pixDetailDevolution: {
route: '/pix/:e2eId/devolucao/:id',
route: '/v2/pix/:e2eId/devolucao/:id',
method: 'get',
},
pixConfigWebhook: {
route: '/webhook/:chave',
route: '/v2/webhook/:chave',
method: 'put',
},
pixDetailWebhook: {
route: '/webhook/:chave',
route: '/v2/webhook/:chave',
method: 'get',
},
pixListWebhook: {
route: '/webhook',
route: '/v2/webhook',
method: 'get',
},
pixDeleteWebhook: {
route: '/webhook/:chave',
route: '/v2/webhook/:chave',
method: 'delete',
},
pixCreateLocation: {
route: '/loc',
route: '/v2/loc',
method: 'post',
},
pixLocationList: {
route: '/loc',
route: '/v2/loc',
method: 'get',
},
pixDetailLocation: {
route: '/loc/:id',
route: '/v2/loc/:id',
method: 'get',
},
pixGenerateQRCode: {
route: '/loc/:id/qrcode',
route: '/v2/loc/:id/qrcode',
method: 'get',
},
pixUnlinkTxidLocation: {
route: '/loc/:id/txid',
route: '/v2/loc/:id/txid',
method: 'delete',
},
pixCreateEvp: {
route: '/gn/evp',
route: '/v2/gn/evp',
method: 'post',
},
pixListEvp: {
route: '/gn/evp',
route: '/v2/gn/evp',
method: 'get',
},
pixDeleteEvp: {
route: '/gn/evp/:chave',
route: '/v2/gn/evp/:chave',
method: 'delete',
},
getAccountBalance: {
route: '/gn/saldo',
route: '/v2/gn/saldo',
method: 'get',
},
updateAccountConfig: {
route: '/gn/config',
route: '/v2/gn/config',
method: 'put',
},
listAccountConfig: {
route: '/gn/config',
route: '/v2/gn/config',
method: 'get',
},
pixSplitDetailCharge: {
route: '/gn/split/cob/:txid',
route: '/v2/gn/split/cob/:txid',
method: 'get',
},
pixSplitLinkCharge: {
route: '/gn/split/cob/:txid/vinculo/:splitConfigId',
route: '/v2/gn/split/cob/:txid/vinculo/:splitConfigId',
method: 'put',
},
pixSplitUnlinkCharge: {
route: '/gn/split/cob/:txid/vinculo/:splitConfigId',
route: '/v2/gn/split/cob/:txid/vinculo/:splitConfigId',
method: 'delete',
},
pixSplitDetailDueCharge: {
route: '/gn/split/cobv/:txid',
route: '/v2/gn/split/cobv/:txid',
method: 'get',
},
pixSplitLinkDueCharge: {
route: '/gn/split/cobv/:txid/vinculo/:splitConfigId',
route: '/v2/gn/split/cobv/:txid/vinculo/:splitConfigId',
method: 'put',
},
pixSplitUnlinkDueCharge: {
route: '/gn/split/cobv/:txid/vinculo/:splitConfigId',
route: '/v2/gn/split/cobv/:txid/vinculo/:splitConfigId',
method: 'delete',
},
pixSplitConfig: {
route: '/gn/split/config',
route: '/v2/gn/split/config',
method: 'post',
},
pixSplitConfigId: {
route: '/gn/split/config/:id',
route: '/v2/gn/split/config/:id',
method: 'put',
},
pixSplitDetailConfig: {
route: '/gn/split/config/:id',
route: '/v2/gn/split/config/:id',
method: 'get',
},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sdk-node-apis-efi",
"description": "Module for integration with Efi Bank API",
"version": "1.0.0",
"version": "1.0.1",
"author": "Efi Bank - Consultoria Tecnica | João Vitor Oliveira",
"license": "MIT",
"repository": "efipay/sdk-node-apis-efi",
Expand Down

0 comments on commit 3b5c9f4

Please sign in to comment.