belvo 0.8.0 → 0.9.0

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: 53c6172de053ccd0f9028de57bcbf117bf70203d145d43683aa2bb9ea655ff07
4
- data.tar.gz: 68252e440ba5aad457873c11e4006e07498af01a339b807d8d5a2620e29e2d63
3
+ metadata.gz: 6150c59072311f999fdf0934649e9c80e5ce536722965f14f6e8f65d36e0c22d
4
+ data.tar.gz: cb5f4b3f89834b67f0b263e2ac4155aec22ef660557013fc4226abf832a77273
5
5
  SHA512:
6
- metadata.gz: 92b08d1c008377e9bffd4ca66fc6b7fa680bda7a2856a0eda10c62045eddf1e51c24e55074b34cf066d8f94c3412817c514f6a7a92bb23cab4c192c5a15f3b23
7
- data.tar.gz: 814a61e039b60718acb159e33e4724eb59468857769363ec1746e4fbd14ebcccab4ff38ba462f145031dc647851cd15f454bfe165c66ff779b87f8bbe585d5d5
6
+ metadata.gz: c71e72f9a50de5f5996102a9f3259d46265a5d114533d541c18444be77f528f0dc976ef099094155e00dcd29ecc849408f1e2bc927484c6d2e3636e942d90b3c
7
+ data.tar.gz: aceb91b3c249d0356fedabb964b8e0f35f11cd76325df175aa266cd140d261ae751caf1d84559897d07f9b208700f798e87becf8ddbe1a8622a66e3f198437ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- belvo (0.8.0)
4
+ belvo (0.9.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  typhoeus
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 link_id [rw] Should the WidgetToken be tied to a specific link.
167
+ # @!attribute link [rw] Should the WidgetToken be tied to a specific link.
168
168
  class WidgetTokenOptions < Faraday::Options.new(
169
169
  :scopes,
170
- :link_id
170
+ :link
171
171
  )
172
172
  end
173
173
  end
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Belvo
4
4
  # belvo-ruby current version
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
6
6
  end
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.8.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-03 00:00:00.000000000 Z
11
+ date: 2021-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday