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 +4 -4
- data/README.md +2 -2
- data/lib/sdk_ruby_apis_efi/constants.rb +27 -23
- data/lib/sdk_ruby_apis_efi/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b0688fbf73eabdadead6506c64b6ad9ee0e34710d7f41ecee85f7fde79970e5
|
4
|
+
data.tar.gz: cabc7947697e469e38d1c713e07d127b19490914a3a949a82a7089e6c85edfb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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/
|
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: "/
|
382
|
+
route: "/v1/oauth/token",
|
383
383
|
method: "post"
|
384
384
|
},
|
385
385
|
ofConfigUpdate: {
|
386
|
-
route: "/
|
386
|
+
route: "/v1/config",
|
387
387
|
method: "put"
|
388
388
|
},
|
389
389
|
ofConfigDetail: {
|
390
|
-
route: "/
|
390
|
+
route: "/v1/config",
|
391
391
|
method: "get"
|
392
392
|
},
|
393
393
|
ofListParticipants: {
|
394
|
-
route: "/
|
394
|
+
route: "/v1/participantes",
|
395
395
|
method: "get"
|
396
396
|
},
|
397
397
|
ofStartPixPayment: {
|
398
|
-
route: "/
|
398
|
+
route: "/v1/pagamentos/pix",
|
399
399
|
method: "post"
|
400
400
|
},
|
401
401
|
ofListPixPayment: {
|
402
|
-
route: "/
|
402
|
+
route: "/v1/pagamentos/pix",
|
403
403
|
method: "get"
|
404
404
|
},
|
405
405
|
ofDevolutionPix: {
|
406
|
-
route: "/
|
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:
|
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: "/
|
426
|
+
route: "/v1/codBarras/:codBarras",
|
423
427
|
method: "get"
|
424
428
|
},
|
425
429
|
payRequestBarcode: {
|
426
|
-
route: "/
|
430
|
+
route: "/v1/codBarras/:codBarras",
|
427
431
|
method: "post"
|
428
432
|
},
|
429
433
|
payDetailPayment: {
|
430
|
-
route: "/
|
434
|
+
route: "/v1/:idPagamento",
|
431
435
|
method: "get"
|
432
436
|
},
|
433
437
|
payListPayments: {
|
434
|
-
route: "/
|
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: "/
|
454
|
+
route: "/v1/conta-simplificada",
|
451
455
|
method: "post"
|
452
456
|
},
|
453
457
|
getAccountCredentials: {
|
454
|
-
route: "/
|
458
|
+
route: "/v1/conta-simplificada/:idContaSimplificada/credenciais",
|
455
459
|
method: "get"
|
456
460
|
},
|
457
461
|
createAccountCertificate: {
|
458
|
-
route: "/
|
462
|
+
route: "/v1/conta-simplificada/:idContaSimplificada/certificado",
|
459
463
|
method: "post"
|
460
464
|
},
|
461
465
|
accountConfigWebhook: {
|
462
|
-
route: "/
|
466
|
+
route: "/v1/webhook",
|
463
467
|
method: "post"
|
464
468
|
},
|
465
469
|
accountListWebhook: {
|
466
|
-
route: "/
|
470
|
+
route: "/v1/webhooks",
|
467
471
|
method: "get"
|
468
472
|
},
|
469
473
|
accountDetailWebhook: {
|
470
|
-
route: "/
|
474
|
+
route: "/v1/webhook/:identificadorWebhook",
|
471
475
|
method: "get"
|
472
476
|
},
|
473
477
|
accountDeleteWebhook: {
|
474
|
-
route: "/
|
478
|
+
route: "/v1/webhook/:identificadorWebhook",
|
475
479
|
method: "delete"
|
476
480
|
}
|
477
481
|
}
|
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.
|
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-
|
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: []
|