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.
- Restored undocumented support for string keys in model attributes,
which was inadvertently removed in
v0.9.0
.
- 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
- 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.
- Missing runtime dependencies
dry-configurable
anddry-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).
- 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
andclient_secret
from configuration. These value are only used for token renewal, so they are now arguments to theAuthentication
repository. This means there are no longer any required configuration to set inFortnox::API.configuration
.
Fortnox::API::CURRENT_HOUSEWORK_TYPES
is now renamed toHOUSEWORK_TYPES
and is instead a Hash with keys for the different categories of types. It also includes legacy types, which meansFortnox::API::LEGACY_HOUSEWORK_TYPES
is removed.
- Drops support for Ruby <
2.5.0
since they are deprecated
- Invalid validation for Customer's account number attribute
- Invalid validation for Customer's country attributes
- Adds build test for Ruby
2.6.0
,2.6.3
and2.7.0-preview
.
- Drops support for Ruby <
2.4.0
since they are deprecated
- Country attribute for
Invoice
andOrder
is now validated correctly. - Fixes deprecation warnings
- Unlocks pinned
HTTParty
version - Invalid email validation
- Pins
dry-types
to< 0.13.0
due to breaking changes
- Model attribute
url
is no longer null