belvo 0.2.0 → 0.3.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: bd1540816cb0941d28d1a0f86c545826cc132a08c9f3b196c5c1e09b0aea2ac0
4
- data.tar.gz: c9adca65329d6e00722ab0abba760f90ecc0bd6fabfcd4d8c5fff1d961c16b90
3
+ metadata.gz: 759f6f987ab53c7befec57c77cdfb6382c828afe83ca304dcfc7ca06f6f816c8
4
+ data.tar.gz: 6d600dbc5a78cec15a6008a24004ca333b645fb2b671f3e78deb94ec12a54fa0
5
5
  SHA512:
6
- metadata.gz: 3be36f8a0bebaa1c412ed4627fe996ca6f8d1b0823a55cc2239aeac49f93aacb1750bbd22e2d0f8b09203f4c70b93b93361bb4023f8295108fb6e68c34f6d82f
7
- data.tar.gz: 8e4fa0bacd6a58d55fe6e005356e7266532066ea65d720a77af5877e0a0ef7c4f294287aa628ec03caea8e45f512abe6bce98599d8999f2cdb7347c3eb7581b1
6
+ metadata.gz: d1bcdaf03338f5044a3197b21c1cbfd1290143833f4062162ca40c9428053a89625ba2e4b8829ca9cde2bc8525d4b9329cb91ad81f7d81a410c68149983df7ca
7
+ data.tar.gz: c27cc39ba3bf8c70068254ea9e48dd29dd19850b0f11d411520a512ab3f72b5c1b57b3fb2d67c8717062783c7282a31d86972c8da00fcded05c7fd71530047f6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- belvo (0.2.0)
4
+ belvo (0.3.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  typhoeus
data/README.md CHANGED
@@ -36,7 +36,7 @@ belvo = Belvo::Client.new(
36
36
  )
37
37
 
38
38
  begin
39
- new_link = belvo.links.retrieve(
39
+ new_link = belvo.links.register(
40
40
  institution: 'banamex_mx_retail',
41
41
  username: 'janedoe',
42
42
  password: 'super-secret'
@@ -74,5 +74,11 @@ module Belvo
74
74
  def tax_returns
75
75
  @tax_returns = TaxReturn.new @session
76
76
  end
77
+
78
+ # Provides access to Instituions resource
79
+ # @return [Institution]
80
+ def institutions
81
+ @institutions = Institution.new @session
82
+ end
77
83
  end
78
84
  end
@@ -331,4 +331,13 @@ module Belvo
331
331
  raise NotImplementedError 'TaxReturn does not support resuming a session.'
332
332
  end
333
333
  end
334
+
335
+ # An Institution is an entity that Belvo can access information from. It can
336
+ # be a bank or fiscal type of institutions such as the SAT in Mexico.
337
+ class Institution < Resource
338
+ def initialize(session)
339
+ super(session)
340
+ @endpoint = 'institutions/'
341
+ end
342
+ end
334
343
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Belvo
4
4
  # belvo-ruby current version
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.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.2.0
4
+ version: 0.3.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: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.1.2
192
+ rubygems_version: 3.0.6
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: The Ruby gem for the Belvo API