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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8e956f90ab794d8165e888ebb059212e3e7ea4ee2f6ca6526a6223473086fd9
4
- data.tar.gz: c177f509945811c6df6f64367270118763cf48bbc3728dbcd4c8b880ee7d79b3
3
+ metadata.gz: 1c80936557b157355a2c887ae95cbcb84ce6eb83050fe10e6a250aa1773107b5
4
+ data.tar.gz: 95c3ae780b1e4400346bebb7d3f8b741081183cab3c56b516bd7a853214f095b
5
5
  SHA512:
6
- metadata.gz: 9a09abefb67fad3b3bc8244dfff5a93f49069ddb4a213e833d27724a41a3276683c6e23d8c386790efe5bd9ea07a6f4ff10d76dbd7eecb384cf5c76739e6f063
7
- data.tar.gz: 87cd5325266f6987429d0061f7589cf7cd617164171f0126da439672d0e2f03256a7608d7deec25e61f1ac1705173cea4ca25dc03805253345bcec8b465dbdd4
6
+ metadata.gz: 6cbaed715376a6f82937ed331f5d1ed1d764b9bcbef36110414501dffa1e1ed7f711492542c58699bc9469302a2ab5fbe053d4ce64a19224473e3806f012d7c5
7
+ data.tar.gz: 1adb287f2022e560a0d4887e6829dc2807c556b44223ad485b11465110e2351d8e27e2bf5a58fa55d945d38836e475791e1567587647c48970265eb750f63d7e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- belvo (0.10.0)
4
+ belvo (0.11.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  typhoeus
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
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Belvo
4
4
  # belvo-ruby current version
5
- VERSION = '0.10.0'
5
+ VERSION = '0.11.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.10.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-02-24 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday