sdk_ruby_apis_efi 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7125f98453df71f3f98f747c1d928125f8aae2cba106c0f5e787dfb25cbd14b9
4
- data.tar.gz: 5f4ac882ea584757e243c012758be7bb23e62c606285607aa8b73b66922530e5
3
+ metadata.gz: 8b0688fbf73eabdadead6506c64b6ad9ee0e34710d7f41ecee85f7fde79970e5
4
+ data.tar.gz: cabc7947697e469e38d1c713e07d127b19490914a3a949a82a7089e6c85edfb5
5
5
  SHA512:
6
- metadata.gz: baa5ecc527125427047be6ff580e3a31657c60c4ea5cc016a2980558c79017f2770a761fa38106fbbd837429f9422a2b76ed39e2d9db872b2f97fa4c9fb11799
7
- data.tar.gz: 9de4365d43710abcc4e64fe0019ef5ce2dfb7d18db1f36c6d67007f4c9b4d2f364cb0b175b28275b40ca59c2e40ee5d0bcdf1a4dd661ed22abf6db38e2cbd393
6
+ metadata.gz: ec055d914866e26dfc7999433726414c6751b3287a8532ed69b7ae62f45a1c239b42368611a89cc209c1157aefd80b8cce905d401077489208e2e188564e5b4b
7
+ data.tar.gz: 32ad027b1fa4b2c0e6a0fb7a904b43364dc231ed046aeee0003a15ea56fde8f8eecb2a99f878df7434b5780eb49bd895f741309316b7a4c20ba3e45d1de6bd7d
data/README.md CHANGED
@@ -51,7 +51,7 @@ charge = {
51
51
  }]
52
52
  }
53
53
 
54
- response = efipay.create_charge(body: charge)
54
+ response = efipay.createCharge(body: charge)
55
55
  puts response
56
56
  ```
57
57
 
@@ -60,7 +60,7 @@ puts response
60
60
  You can run the examples inside `examples` with the following command:
61
61
 
62
62
  ```bash
63
- $ ruby examples/create_charge.rb
63
+ $ ruby examples/createCharge.rb
64
64
  ```
65
65
 
66
66
  Just remember to set the correct credentials inside `examples/credentials.rb` before running.
@@ -379,59 +379,63 @@ module SdkRubyApisEfi
379
379
  },
380
380
  ENDPOINTS: {
381
381
  authorize: {
382
- route: "/open-finance/oauth/token",
382
+ route: "/v1/oauth/token",
383
383
  method: "post"
384
384
  },
385
385
  ofConfigUpdate: {
386
- route: "/open-finance/config",
386
+ route: "/v1/config",
387
387
  method: "put"
388
388
  },
389
389
  ofConfigDetail: {
390
- route: "/open-finance/config",
390
+ route: "/v1/config",
391
391
  method: "get"
392
392
  },
393
393
  ofListParticipants: {
394
- route: "/open-finance/participantes",
394
+ route: "/v1/participantes",
395
395
  method: "get"
396
396
  },
397
397
  ofStartPixPayment: {
398
- route: "/open-finance/pagamentos/pix",
398
+ route: "/v1/pagamentos/pix",
399
399
  method: "post"
400
400
  },
401
401
  ofListPixPayment: {
402
- route: "/open-finance/pagamentos/pix",
402
+ route: "/v1/pagamentos/pix",
403
403
  method: "get"
404
404
  },
405
405
  ofDevolutionPix: {
406
- route: "/open-finance/devolucao/pagamento/pix",
406
+ route: "/v1/pagamentos/pix/:identificadorPagamento/devolver",
407
407
  method: "post"
408
- }
408
+ },
409
+ ofCancelSchedulePix: {
410
+ route: "/v1/pagamentos/pix/:identificadorPagamento/cancelar",
411
+ method: "patch"
412
+ },
409
413
  }
410
414
  }
411
415
  PAYMENTS = {
412
416
  URL: {
413
417
  production: "https://pagarcontas.api.efipay.com.br",
414
- sandbox: "https://pagarcontas.api.efipay.com.br"
418
+ sandbox: nil
415
419
  },
416
420
  ENDPOINTS: {
417
421
  authorize: {
418
- route: "/oauth/token",
422
+ route: "/v1/oauth/token",
419
423
  method: "post"
420
424
  },
421
425
  payDetailBarcode: {
422
- route: "/pagamento/codBarras/:codBarras",
426
+ route: "/v1/codBarras/:codBarras",
423
427
  method: "get"
424
428
  },
425
429
  payRequestBarcode: {
426
- route: "/pagamento/codBarras/:codBarras",
430
+ route: "/v1/codBarras/:codBarras",
427
431
  method: "post"
428
432
  },
429
433
  payDetailPayment: {
430
- route: "/pagamento/:idPagamento",
434
+ route: "/v1/:idPagamento",
431
435
  method: "get"
432
436
  },
433
437
  payListPayments: {
434
- route: "/pagamento/resumo",
438
+ route: "/v1/resumo",
435
439
  method: "get"
436
440
  }
437
441
  }
@@ -439,39 +443,39 @@ module SdkRubyApisEfi
439
443
  ACCOUNTS_OPENING = {
440
444
  URL: {
441
445
  production: "https://abrircontas.api.efipay.com.br",
442
- sandbox: "https://abrircontas.api.efipay.com.br"
446
+ sandbox: "https://abrircontas-h.api.efipay.com.br"
443
447
  },
444
448
  ENDPOINTS: {
445
449
  authorize: {
446
- route: "/oauth/token",
450
+ route: "/v1/oauth/token",
447
451
  method: "post"
448
452
  },
449
453
  createAccount: {
450
- route: "/cadastro/conta-simplificada",
454
+ route: "/v1/conta-simplificada",
451
455
  method: "post"
452
456
  },
453
457
  getAccountCredentials: {
454
- route: "/cadastro/conta-simplificada/:idContaSimplificada/credenciais",
458
+ route: "/v1/conta-simplificada/:idContaSimplificada/credenciais",
455
459
  method: "get"
456
460
  },
457
461
  createAccountCertificate: {
458
- route: "/cadastro/conta-simplificada/:idContaSimplificada/certificado",
462
+ route: "/v1/conta-simplificada/:idContaSimplificada/certificado",
459
463
  method: "post"
460
464
  },
461
465
  accountConfigWebhook: {
462
- route: "/cadastro/webhook",
466
+ route: "/v1/webhook",
463
467
  method: "post"
464
468
  },
465
469
  accountListWebhook: {
466
- route: "/cadastro/webhooks",
470
+ route: "/v1/webhooks",
467
471
  method: "get"
468
472
  },
469
473
  accountDetailWebhook: {
470
- route: "/cadastro/webhook/:identificadorWebhook",
474
+ route: "/v1/webhook/:identificadorWebhook",
471
475
  method: "get"
472
476
  },
473
477
  accountDeleteWebhook: {
474
- route: "/cadastro/webhook/:identificadorWebhook",
478
+ route: "/v1/webhook/:identificadorWebhook",
475
479
  method: "delete"
476
480
  }
477
481
  }
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module SdkRubyApisEfi
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdk_ruby_apis_efi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Muniz
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -133,7 +133,7 @@ homepage: https://github.com/efipay/sdk-ruby-apis-efi
133
133
  licenses:
134
134
  - MIT
135
135
  metadata: {}
136
- post_install_message:
136
+ post_install_message:
137
137
  rdoc_options: []
138
138
  require_paths:
139
139
  - lib
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubygems_version: 3.2.33
152
- signing_key:
152
+ signing_key:
153
153
  specification_version: 4
154
154
  summary: Efí Pay API Ruby Gem
155
155
  test_files: []