- Security: update development dependency activesupport to 6.1.7.3
- Added support for accounts API
- Added support for addresses API
- Added support for tax rates API
- Added support for tax jurisdictions API
- Added support for tax codes API
- Clean parameters sent in the create request
- Phase out legacy
Quaderno::Tax
class in favour ofQuaderno::TaxRate
(the class will be removed in the next release) - Relaxed httparty requirements
- Detect and handle
bad_request
response codes - Added
Quaderno::Exceptions::InvalidRequest
to handlenot_acceptable
response codes - Added
Quaderno::Exceptions::BaseException#response_body
to check the API response error - Removed legacy
Quaderno::Contact.retrieve_customer
in favor ofQuaderno::Contact.retrieve
- Added support for transactions API
- Bumped webmock to 3.18
- Bumped dependency httparty to 0.21.0 by adamgiounas: #28
- Fixed a reference to non-existent variable by @fwitzke
- Added assign operator to the user_agent_header
- Added a new
Quaderno::Exceptions::ServerError
exception for more transparency, and better control of workflows - Added a
user_agent_header
optional configuration to make debugging oauth integrations easier
- Fix an issue with the parameters sent during the
validate_vat_number
request - Renames
validate_vat_number
intovalidate_tax_id
- Fix an issue where requests would result in an error due to a missing
require
- Breaking change Pagination strategy has been updated to be cursor based. Collections no longer offer the
current_page
andtotal_pages
methods, and offerhas_more?
andnext_page
instead. Thepage
parameter is no longer supported either, in favour of thecreated_before
parameter. See more information in the documentation. - Breaking change
Quaderno::Tax.calculate
uses the new tax calculation endpoint. This endpoint accepts address parameters with the prefixto_
. For example,postal_code
is deprecated in favour ofto_postal_code
. Quaderno::Tax.validate
uses the new tax ID validation endpoint. The signature did not change, and no updates are necessary.- All requests now send the gem version in their User Agent header.
- Do not modify the input arguments when the thread-safe mode is used.
- Added
rate_limit_info
method to each API response - Breaking change:
.delete
methods no longer returns a boolean but an instance of the removed object with adeleted
attribute set totrue
- Breaking change:
Quaderno::Base.ping
no longer returns a boolean but aQuaderno::Base
instance with astatus
attribute. - Breaking change:
Quaderno::Base.authorization
no longer returns aHash
but aQuaderno::Base
instance with anidentity
attribute. - Breaking change:
Quaderno::Base.me
no longer returns aHash
but aQuaderno::Base
instance with all the attributes contained in the previous format. - Breaking change:
Quaderno::Tax.validate_vat_number
no longer returns a boolean but aQuaderno::Tax
instance with avalid
attribute. - Breaking change:
.deliver
no longer returns aHash
but aQuaderno::Base
instance with asuccess
attribute. - Breaking change: Removed
Quaderno::Base.rate_limit_info
. Now it's an alias ofQuaderno::Base.ping
.
- Added
Quaderno::CheckoutSession
- Relax
httparty
version requirement.
- Fix
Quaderno
load order.
- Removed
jeweler
and updated the gem structure.
- Added
domestic_taxes
,sales_taxes
,vat_moss
,ec_sales
andinternational_taxes
toQuaderno::Report
- Added index method to
Quaderno::Tax
asQuaderno::Tax.all()
.
- Added
taxes
report toQuaderno::Report
.
- Added
Quaderno::Report
.
- Added
create
method toQuaderno::Income
. - Fix
Quaderno::Base.ping
andQuaderno::Base.me
methods.
- Use version headers on taxes requests.
- Return integers insteado of strings on pagination readers.
- Added
me
method.
- Added thread-safe credentials configuration.
all
methods returns aQuaderno::Object
with pagination info instead of anArray
- Specify
Content-Type
header soHTTParty
don't merge the elements within the body content.
- Added
retrieve
method forQuaderno::Contact
,Quaderno::Invoice
,Quaderno::Credit
- Deprecate
retrieve_customer
as an alias ofretrieve
- Added
Quaderno::Tax.validate_vat_number
method
- Added location evidences support
- Added
Quaderno::Contact.retrieve
method - Code cleanup
- Update tests
Quaderno::Base.authorization
raisesQuaderno::Exceptions::InvalidSubdomainOrToken
instead returning false on wrong credentials- Inherit from
StandardError
instead ofException
forQuaderno::Exceptions
by @mvelikov
- Add support for new versioning system
- Add Quaderno::Receipt support
- Fix errors in README
- Raise exception on failed updates
- Fix URL in
Quaderno::Tax.calculate
by @jcxplorer
- Breaking change: change configuration options
- Added recurring documents
- Raise existent exception
- Fixed typo from old version released as 1.6.0
- Crud module refactor
- Added support for credit notes
- Move rdoc as a development dependency
- Remove transaction class.
- Update
rate_limit_info
to fit the new rate limit - Remove transaction information from README (future resource name change)
- Added new throttle limit exception (will be activated in future releases)
- Remove debugger
Quaderno::Exceptions::RequiredFieldsEmpty
replaced withQuaderno::Exceptions::RequiredFieldsEmptyOrInvalid
- Added transactions
- Raise
Quaderno::Exceptions::RequiredFieldsEmpty
for 422 responses
- Find method hotfix
- Fix wrong method name
- Use correct organization in url
- Add short description of the gem
- Added taxes calculations support
- Added webhooks documentation
- Use new urls format
- Added sandbox environment
- Added
to_hash
instance method
- Removed debug mode
- Added ruby 2.0.0 compatibility
- Deleted debugger dependency
- Added Quaderno webhooks as a resource
- Added authorization method
- Fixed minor bugs
- Added Quaderno items as a resource
- Added filter in index queries
- Initial release