belvo 0.13.0 → 0.13.1

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: 7f69b2401f03d00f211b1029e686b5ecb35b717bdff42dcbac781e207b2feb87
4
- data.tar.gz: f93e791acf610e5b1d3f9e3df2fd4cc161003b03d9a303ee66b5ada7c6857b5e
3
+ metadata.gz: 426490295ec3ff52627ef0cc1e70a27c418837827947da27e416ccadaa7214ee
4
+ data.tar.gz: 92630f9d7c9a72dc57d7c1677edb1f1f90bde1442ed787ab5a375d5d8b6871e2
5
5
  SHA512:
6
- metadata.gz: 5e2ba29bf5d230d3f250b9dd3c284f09a01fe0dad4d05b29f6e360392258d5d6e5e93c056863345e6aeb22665fb934368e8b6ca5eac76c4e4089b8eda178d637
7
- data.tar.gz: b124c2ce6c01aed682954cc6ee9f08c6f3507c6bee994249466c9f013992b5830e7649aee52032a56f7b20e12722229c7ccf84c9c7cb26db23e742e26051c7e0
6
+ metadata.gz: 58500920831162b704712f0d44e949a3502c0dafe0cd58eb080522c15302a28ec1b2761d2d72058ca1f5e3777da5f75bd629001d72ed70b7a682b65c2037c18f
7
+ data.tar.gz: ff5c028732ffce74c00630c7e2bb22f38eb3a7e602ecb55b31578ee4eba975e341f5be29d45174575dbd37884304281f73ef9cdc55aed8aa3085aadea31fc7cd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- belvo (0.13.0)
4
+ belvo (0.13.1)
5
5
  faraday
6
6
  faraday_middleware
7
7
  typhoeus
data/lib/belvo/options.rb CHANGED
@@ -145,7 +145,9 @@ module Belvo
145
145
  :encryption_key,
146
146
  :save_data,
147
147
  :attach_pdf,
148
- :type
148
+ :type,
149
+ :date_from,
150
+ :date_to
149
151
  )
150
152
  end
151
153
 
@@ -402,8 +402,8 @@ module Belvo
402
402
 
403
403
  # Retrieve tax returns information from a specific fiscal link.
404
404
  # @param link [String] Link UUID
405
- # @param year_from [Integer] | [Date]
406
- # @param year_to [Integer] | [Date]
405
+ # @param year_from [Integer]
406
+ # @param year_to [Integer]
407
407
  # @param options [TaxReturnOptions] Configurable properties
408
408
  # @return [Hash] created tax returns details
409
409
  # @raise [RequestError] If response code is different than 2XX
@@ -418,8 +418,8 @@ module Belvo
418
418
  type: options.type
419
419
  }.merge(options)
420
420
  if options.type == TaxReturnType::MONTHLY
421
- body[:date_from] = year_from
422
- body[:date_to] = year_to
421
+ body[:date_from] = options.date_from
422
+ body[:date_to] = options.date_to
423
423
  else
424
424
  body[:year_from] = year_from
425
425
  body[:year_to] = year_to
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.13.0'
5
+ VERSION = '0.13.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belvo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Belvo Finance S.L.