belvo 1.3.0 → 1.4.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: 2451a25febe9bcc2e507d13977720f0886f89da8ff9e65d639846ca029717a53
4
- data.tar.gz: 0ab5eb4ff9f6196ebc876011f3485e4bcba7a7888cbd20264f0abaaf9380e158
3
+ metadata.gz: a629a7752ddbb1913f5313eeab072774c4ecd36748fb3cdf306a78f2bd4f6bbb
4
+ data.tar.gz: fd1d6c751d71663622e94f076ab1b4fbd606fdafdfc62ca5e1574d6cf4b17ef4
5
5
  SHA512:
6
- metadata.gz: 0ecbbb2a7c36121c8f9bfffdb5dddc4e4d2eb9065e3405ae0574736c808b2d24796c292dfc98a2b50d3431875d8b25bf6db5aea9946f765f5a1dca3acf5fd4d9
7
- data.tar.gz: 90490528e75a6cca01484b74094c750368191b726ad36530912c27dc560c49ae85b19856cb462947d6da9f07bce3eff5169265cb206e07a938eead59d3bd9ab1
6
+ metadata.gz: 2d2c41f8f976ec9a67622b12ed5f5ff1ef5373b1f7d170cd17a85f341e1313028be9f323f57102fc8f5c105c56f4572e1960fc45f051ed4fe210e0c90c13d195
7
+ data.tar.gz: ff9552fe45ccf2ea98bf53c2392b8e68120e4c965aa9f2843132f664bf24bfd7c7b9ad5c60eb54e8b0f29d7dda2dddf2d14a25b44890939127a5e1066ada95ab
@@ -14,10 +14,11 @@ jobs:
14
14
  fetch-depth: 10
15
15
 
16
16
  # Setup ruby
17
- - name: Set up Ruby 2.6
18
- uses: actions/setup-ruby@v1
17
+ - name: Set up Ruby 3.2
18
+ uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: 2.6
20
+ ruby-version: 3.2
21
+ bundler-cache: true
21
22
 
22
23
  # Install the right bundler version
23
24
  - name: Install bundler
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- belvo (1.3.0)
4
+ belvo (1.4.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  typhoeus
data/lib/belvo/options.rb CHANGED
@@ -214,16 +214,4 @@ module Belvo
214
214
  # @!attribute token [rw] OTP token required by the institution
215
215
  class InvestmentsPortfolioOptions < Faraday::Options.new(:token, :save_data)
216
216
  end
217
-
218
- # @!class InvestmentsTransactionOptions < Faraday::Options
219
- # Contains configurable properties of an InvestmentsTransaction
220
- # @!attribute date_to [rw] Date string (YYYY-MM-DD)
221
- # @!attribute save_data [rw] Should data be persisted or not.
222
- # @!attribute token [rw] OTP token required by the institution
223
- class InvestmentsTransactionOptions < Faraday::Options.new(
224
- :date_to,
225
- :token,
226
- :save_data
227
- )
228
- end
229
217
  end
@@ -655,32 +655,4 @@ module Belvo
655
655
  @session.post(@endpoint, body)
656
656
  end
657
657
  end
658
-
659
- # A InvestmentsTransaction gets the existing transactions for an instrument
660
- class InvestmentsTransaction < Resource
661
- def initialize(session)
662
- super(session)
663
- @endpoint = 'investments/transactions/'
664
- end
665
-
666
- # Retrieve investments transactions from an existing link
667
- # @param link [String] Link UUID
668
- # @param date_from [String] Date string (YYYY-MM-DD)
669
- # @param options [InvestmentsTransactionOptions] Configurable properties
670
- # @return [Hash] created investments transactions details
671
- # @raise [RequestError] If response code is different than 2XX
672
- def retrieve(link:, date_from:, options: nil)
673
- options = InvestmentsTransactionOptions.from(options)
674
- date_to = options.date_to || Date.today.to_s
675
- body = {
676
- link: link,
677
- date_from: date_from,
678
- date_to: date_to,
679
- token: options.token,
680
- save_data: options.save_data || true
681
- }.merge(options)
682
- body = clean body: body
683
- @session.post(@endpoint, body)
684
- end
685
- end
686
658
  end
data/lib/belvo/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Belvo
4
4
  # belvo-ruby current version
5
- VERSION = '1.3.0'
5
+ VERSION = '1.4.0'
6
6
  end
data/lib/belvo.rb CHANGED
@@ -139,11 +139,5 @@ module Belvo
139
139
  def investments_portfolio
140
140
  @investments_portfolio = InvestmentsPortfolio.new @session
141
141
  end
142
-
143
- # Provides access to InvestmentsTransaction resource
144
- # @return [InvestmentsTransaction]
145
- def investments_transaction
146
- @investments_transaction = InvestmentsTransaction.new @session
147
- end
148
142
  end
149
143
  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: 1.3.0
4
+ version: 1.4.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: 2022-11-16 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
- rubygems_version: 3.3.11
198
+ rubygems_version: 3.3.26
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: The Ruby gem for the Belvo API