belvo 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/belvo/options.rb +2 -2
- data/lib/belvo/resources.rb +4 -1
- data/lib/belvo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6150c59072311f999fdf0934649e9c80e5ce536722965f14f6e8f65d36e0c22d
|
4
|
+
data.tar.gz: cb5f4b3f89834b67f0b263e2ac4155aec22ef660557013fc4226abf832a77273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c71e72f9a50de5f5996102a9f3259d46265a5d114533d541c18444be77f528f0dc976ef099094155e00dcd29ecc849408f1e2bc927484c6d2e3636e942d90b3c
|
7
|
+
data.tar.gz: aceb91b3c249d0356fedabb964b8e0f35f11cd76325df175aa266cd140d261ae751caf1d84559897d07f9b208700f798e87becf8ddbe1a8622a66e3f198437ac
|
data/Gemfile.lock
CHANGED
data/lib/belvo/options.rb
CHANGED
@@ -164,10 +164,10 @@ module Belvo
|
|
164
164
|
# @!class WidgetTokenOptions < Faraday::Options
|
165
165
|
# Contains configurable properties of a WidgetToken
|
166
166
|
# @!attribute scopes [rw] Should have WidgetToken's permssions.
|
167
|
-
# @!attribute
|
167
|
+
# @!attribute link [rw] Should the WidgetToken be tied to a specific link.
|
168
168
|
class WidgetTokenOptions < Faraday::Options.new(
|
169
169
|
:scopes,
|
170
|
-
:
|
170
|
+
:link
|
171
171
|
)
|
172
172
|
end
|
173
173
|
end
|
data/lib/belvo/resources.rb
CHANGED
@@ -455,10 +455,13 @@ module Belvo
|
|
455
455
|
|
456
456
|
def create(options: nil)
|
457
457
|
options = WidgetTokenOptions.from(options)
|
458
|
+
link_id = options.link
|
459
|
+
options.delete('link')
|
458
460
|
body = {
|
459
461
|
id: @session.key_id,
|
460
462
|
password: @session.key_password,
|
461
|
-
scopes: 'read_institutions,write_links,read_links,delete_links'
|
463
|
+
scopes: 'read_institutions,write_links,read_links,delete_links',
|
464
|
+
link_id: link_id
|
462
465
|
}.merge(options)
|
463
466
|
body = clean body: body
|
464
467
|
@session.post(@endpoint, body)
|
data/lib/belvo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: belvo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Belvo Finance S.L.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|