belvo 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/belvo/options.rb +3 -1
- 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: 1c80936557b157355a2c887ae95cbcb84ce6eb83050fe10e6a250aa1773107b5
|
4
|
+
data.tar.gz: 95c3ae780b1e4400346bebb7d3f8b741081183cab3c56b516bd7a853214f095b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cbaed715376a6f82937ed331f5d1ed1d764b9bcbef36110414501dffa1e1ed7f711492542c58699bc9469302a2ab5fbe053d4ce64a19224473e3806f012d7c5
|
7
|
+
data.tar.gz: 1adb287f2022e560a0d4887e6829dc2807c556b44223ad485b11465110e2351d8e27e2bf5a58fa55d945d38836e475791e1567587647c48970265eb750f63d7e
|
data/Gemfile.lock
CHANGED
data/lib/belvo/options.rb
CHANGED
@@ -165,9 +165,11 @@ module Belvo
|
|
165
165
|
# Contains configurable properties of a WidgetToken
|
166
166
|
# @!attribute scopes [rw] Should have WidgetToken's permssions.
|
167
167
|
# @!attribute link [rw] Should the WidgetToken be tied to a specific link.
|
168
|
+
# @!attribute widget [rw] Should have the Widget branding params.
|
168
169
|
class WidgetTokenOptions < Faraday::Options.new(
|
169
170
|
:scopes,
|
170
|
-
:link
|
171
|
+
:link,
|
172
|
+
:widget
|
171
173
|
)
|
172
174
|
end
|
173
175
|
end
|
data/lib/belvo/resources.rb
CHANGED
@@ -456,12 +456,15 @@ module Belvo
|
|
456
456
|
def create(options: nil)
|
457
457
|
options = WidgetTokenOptions.from(options)
|
458
458
|
link_id = options.link
|
459
|
+
widget = options.widget
|
459
460
|
options.delete('link')
|
461
|
+
options.delete('widget')
|
460
462
|
body = {
|
461
463
|
id: @session.key_id,
|
462
464
|
password: @session.key_password,
|
463
465
|
scopes: 'read_institutions,write_links,read_links',
|
464
|
-
link_id: link_id
|
466
|
+
link_id: link_id,
|
467
|
+
widget: widget
|
465
468
|
}.merge(options)
|
466
469
|
body = clean body: body
|
467
470
|
@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.11.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-
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|