Skip to content

Latest commit

 

History

History
109 lines (72 loc) · 3.37 KB

CHANGELOG.md

File metadata and controls

109 lines (72 loc) · 3.37 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Fixed

  • Restored undocumented support for string keys in model attributes, which was inadvertently removed in v0.9.0.

Added

  • Script in bin/get_tokens to issue access and refresh tokens
  • Script in bin/renew_tokens (convenience feature for developers)
  • Fortnox::API::Repository::Authentication.renew_token, used for token renewal

Changed

  • Breaking The auth process is rewritten to support the new auth flow that Fortnox has implemented. You also need to set the access token explicitly with Fortnox::API.access_token ' your token'. See README for more instructions.

Fixed

  • Missing runtime dependencies dry-configurable and dry-container is added. Those were indirect dependencies before via other dry libs, but we use them explicitly in the gem, so they should be included as real dependencies. Also, newer versions of these gems did actually break the gem.
  • Not trying to update resource if diff against parent is an empty object (#238).

Removed

  • Breaking Drops support for Ruby 2.6 since it's reached end of life
  • Token rotation is removed since Fortnox counts rate limit on tenant and client id. Before, you could get around this by using multiple access tokens. That's not possible anymore, so token rotation is simply removed.
  • Breaking Removes client_id and client_secret from configuration. These value are only used for token renewal, so they are now arguments to the Authentication repository. This means there are no longer any required configuration to set in Fortnox::API.configuration.

Changed

  • Fortnox::API::CURRENT_HOUSEWORK_TYPES is now renamed to HOUSEWORK_TYPES and is instead a Hash with keys for the different categories of types. It also includes legacy types, which means Fortnox::API::LEGACY_HOUSEWORK_TYPES is removed.

Removed

  • Drops support for Ruby < 2.5.0 since they are deprecated

Fixed

  • Invalid validation for Customer's account number attribute

Fixed

  • Invalid validation for Customer's country attributes

Added

  • Adds build test for Ruby 2.6.0, 2.6.3 and 2.7.0-preview.

Removed

  • Drops support for Ruby < 2.4.0 since they are deprecated

Fixed

  • Country attribute for Invoice and Order is now validated correctly.
  • Fixes deprecation warnings
  • Unlocks pinned HTTParty version
  • Invalid email validation

Changed

  • Pins dry-types to < 0.13.0 due to breaking changes

Fixed

  • Model attribute url is no longer null