Skip to content

Commit b9321e0

Browse files
committed
Ajuste de Rota Base e Exemplos
1 parent ed26896 commit b9321e0

File tree

3 files changed

+53
-53
lines changed

3 files changed

+53
-53
lines changed

examples/open-finance/participants/ofListParticipants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const options = require('../../credentials')
44
const efipay = new EfiPay(options)
55

66
let params = {
7-
nome: 'efipay.',
7+
nome: '',
88
}
99

1010
efipay.ofListParticipants(params, [])

examples/open-finance/payment/ofListPixPayment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const efipay = new EfiPay(options)
55

66
let params = {
77
inicio: '2022-01-01',
8-
fim: '2022-06-30',
8+
fim: '2025-06-30',
99
}
1010

1111
efipay.ofListPixPayment(params, [])

lib/constants.js

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -182,180 +182,180 @@ module.exports = {
182182
},
183183
PIX: {
184184
URL: {
185-
PRODUCTION: 'https://pix.api.efipay.com.br',
186-
SANDBOX: 'https://pix-h.api.efipay.com.br',
185+
PRODUCTION: 'https://pix.api.efipay.com.br/v2',
186+
SANDBOX: 'https://pix-h.api.efipay.com.br/v2',
187187
},
188188
ENDPOINTS: {
189189
authorize: {
190190
route: '/oauth/token',
191191
method: 'post',
192192
},
193193
pixCreateDueCharge: {
194-
route: '/v2/cobv/:txid',
194+
route: '/cobv/:txid',
195195
method: 'put',
196196
},
197197
pixUpdateDueCharge: {
198-
route: '/v2/cobv/:txid',
198+
route: '/cobv/:txid',
199199
method: 'patch',
200200
},
201201
pixDetailDueCharge: {
202-
route: '/v2/cobv/:txid',
202+
route: '/cobv/:txid',
203203
method: 'get',
204204
},
205205
pixListDueCharges: {
206-
route: '/v2/cobv/',
206+
route: '/cobv/',
207207
method: 'get',
208208
},
209209
createReport: {
210-
route: '/v2/gn/relatorios/extrato-conciliacao',
210+
route: '/gn/relatorios/extrato-conciliacao',
211211
method: 'post',
212212
},
213213
detailReport: {
214-
route: '/v2/gn/relatorios/:id',
214+
route: '/gn/relatorios/:id',
215215
method: 'get',
216216
},
217217
pixCreateCharge: {
218-
route: '/v2/cob/:txid',
218+
route: '/cob/:txid',
219219
method: 'put',
220220
},
221221
pixUpdateCharge: {
222-
route: '/v2/cob/:txid',
222+
route: '/cob/:txid',
223223
method: 'patch',
224224
},
225225
pixCreateImmediateCharge: {
226-
route: '/v2/cob',
226+
route: '/cob',
227227
method: 'post',
228228
},
229229
pixDetailCharge: {
230-
route: '/v2/cob/:txid',
230+
route: '/cob/:txid',
231231
method: 'get',
232232
},
233233
pixListCharges: {
234-
route: '/v2/cob',
234+
route: '/cob',
235235
method: 'get',
236236
},
237237
pixDetailReceived: {
238-
route: '/v2/pix/:e2eId',
238+
route: '/pix/:e2eId',
239239
method: 'get',
240240
},
241241
pixReceivedList: {
242-
route: '/v2/pix',
242+
route: '/pix',
243243
method: 'get',
244244
},
245245
pixSend: {
246-
route: '/v2/gn/pix/:idEnvio',
246+
route: '/gn/pix/:idEnvio',
247247
method: 'put',
248248
},
249249
pixSendDetail: {
250-
route: '/v2/gn/pix/enviados/:e2eid',
250+
route: '/gn/pix/enviados/:e2eid',
251251
method: 'get',
252252
},
253253
pixSendList: {
254-
route: '/v2/gn/pix/enviados',
254+
route: '/gn/pix/enviados',
255255
method: 'get',
256256
},
257257
pixDevolution: {
258-
route: '/v2/pix/:e2eId/devolucao/:id',
258+
route: '/pix/:e2eId/devolucao/:id',
259259
method: 'put',
260260
},
261261
pixDetailDevolution: {
262-
route: '/v2/pix/:e2eId/devolucao/:id',
262+
route: '/pix/:e2eId/devolucao/:id',
263263
method: 'get',
264264
},
265265
pixConfigWebhook: {
266-
route: '/v2/webhook/:chave',
266+
route: '/webhook/:chave',
267267
method: 'put',
268268
},
269269
pixDetailWebhook: {
270-
route: '/v2/webhook/:chave',
270+
route: '/webhook/:chave',
271271
method: 'get',
272272
},
273273
pixListWebhook: {
274-
route: '/v2/webhook',
274+
route: '/webhook',
275275
method: 'get',
276276
},
277277
pixDeleteWebhook: {
278-
route: '/v2/webhook/:chave',
278+
route: '/webhook/:chave',
279279
method: 'delete',
280280
},
281281
pixCreateLocation: {
282-
route: '/v2/loc',
282+
route: '/loc',
283283
method: 'post',
284284
},
285285
pixLocationList: {
286-
route: '/v2/loc',
286+
route: '/loc',
287287
method: 'get',
288288
},
289289
pixDetailLocation: {
290-
route: '/v2/loc/:id',
290+
route: '/loc/:id',
291291
method: 'get',
292292
},
293293
pixGenerateQRCode: {
294-
route: '/v2/loc/:id/qrcode',
294+
route: '/loc/:id/qrcode',
295295
method: 'get',
296296
},
297297
pixUnlinkTxidLocation: {
298-
route: '/v2/loc/:id/txid',
298+
route: '/loc/:id/txid',
299299
method: 'delete',
300300
},
301301
pixCreateEvp: {
302-
route: '/v2/gn/evp',
302+
route: '/gn/evp',
303303
method: 'post',
304304
},
305305
pixListEvp: {
306-
route: '/v2/gn/evp',
306+
route: '/gn/evp',
307307
method: 'get',
308308
},
309309
pixDeleteEvp: {
310-
route: '/v2/gn/evp/:chave',
310+
route: '/gn/evp/:chave',
311311
method: 'delete',
312312
},
313313
getAccountBalance: {
314-
route: '/v2/gn/saldo',
314+
route: '/gn/saldo',
315315
method: 'get',
316316
},
317317
updateAccountConfig: {
318-
route: '/v2/gn/config',
318+
route: '/gn/config',
319319
method: 'put',
320320
},
321321
listAccountConfig: {
322-
route: '/v2/gn/config',
322+
route: '/gn/config',
323323
method: 'get',
324324
},
325325
pixSplitDetailCharge: {
326-
route: '/v2/gn/split/cob/:txid',
326+
route: '/gn/split/cob/:txid',
327327
method: 'get',
328328
},
329329
pixSplitLinkCharge: {
330-
route: '/v2/gn/split/cob/:txid/vinculo/:splitConfigId',
330+
route: '/gn/split/cob/:txid/vinculo/:splitConfigId',
331331
method: 'put',
332332
},
333333
pixSplitUnlinkCharge: {
334-
route: '/v2/gn/split/cob/:txid/vinculo/:splitConfigId',
334+
route: '/gn/split/cob/:txid/vinculo/:splitConfigId',
335335
method: 'delete',
336336
},
337337
pixSplitDetailDueCharge: {
338-
route: '/v2/gn/split/cobv/:txid',
338+
route: '/gn/split/cobv/:txid',
339339
method: 'get',
340340
},
341341
pixSplitLinkDueCharge: {
342-
route: '/v2/gn/split/cobv/:txid/vinculo/:splitConfigId',
342+
route: '/gn/split/cobv/:txid/vinculo/:splitConfigId',
343343
method: 'put',
344344
},
345345
pixSplitUnlinkDueCharge: {
346-
route: '/v2/gn/split/cobv/:txid/vinculo/:splitConfigId',
346+
route: '/gn/split/cobv/:txid/vinculo/:splitConfigId',
347347
method: 'delete',
348348
},
349349
pixSplitConfig: {
350-
route: '/v2/gn/split/config',
350+
route: '/gn/split/config',
351351
method: 'post',
352352
},
353353
pixSplitConfigId: {
354-
route: '/v2/gn/split/config/:id',
354+
route: '/gn/split/config/:id',
355355
method: 'put',
356356
},
357357
pixSplitDetailConfig: {
358-
route: '/v2/gn/split/config/:id',
358+
route: '/gn/split/config/:id',
359359
method: 'get',
360360
},
361361
},
@@ -435,31 +435,31 @@ module.exports = {
435435
method: 'post',
436436
},
437437
createAccount: {
438-
route: '/cadastro/conta-simplificada',
438+
route: '/conta-simplificada',
439439
method: 'post',
440440
},
441441
getAccountCertificate: {
442-
route: '/cadastro/conta-simplificada/:identificador/certificado',
442+
route: '/conta-simplificada/:identificador/certificado',
443443
method: 'get',
444444
},
445445
getAccountCredentials: {
446-
route: '/cadastro/conta-simplificada/:identificador/credenciais',
446+
route: '/conta-simplificada/:identificador/credenciais',
447447
method: 'get',
448448
},
449449
accountConfigWebhook: {
450-
route: '/cadastro/webhook',
450+
route: '/webhook',
451451
method: 'post',
452452
},
453453
accountDeleteWebhook: {
454-
route: '/cadastro/webhook/:identificadorWebhook',
454+
route: '/webhook/:identificadorWebhook',
455455
method: 'delete',
456456
},
457457
accountDetailWebhook: {
458-
route: '/cadastro/webhook/:identificadorWebhook',
458+
route: '/webhook/:identificadorWebhook',
459459
method: 'get',
460460
},
461461
accountListWebhook: {
462-
route: '/cadastro/webhooks',
462+
route: '/webhooks',
463463
method: 'get',
464464
},
465465
},

0 commit comments

Comments
 (0)