- Add support for webhooks.
-
Implement Fakturoid API v3.
-
Change interface due to OAuth 2.0. Please refer to the README.md for more information.
client = Fakturoid.client client.invoices.all client.expenses.update(expense_id, number: "N20240201")
- Add support for inventory items and moves.
-
Fix Faraday v1.x deprecations.
-
Add support for Faraday v2.x.
-
Add support form number formats endpoint
number_formats = Fakturoid::Client::NumberFormat.invoices
-
Add support for
until
,updated_until
andcustom_id
params to invoice index action methodsinvoices = Fakturoid::Client::Invoice.all(since: "2022-03-01T00:00:00+01:00", until: "2022-03-31T23:59:59+01:00") invoices = Fakturoid::Client::Invoice.regular(updated_since: "2022-03-01T00:00:00+01:00", updated_until: "2022-03-31T23:59:59+01:00") proformas = Fakturoid::Client::Invoice.proforma(custom_id: "custom-123")
-
Add support for
custom_id
param to expense index action methodFakturoid::Client::Expense.all(custom_id: "custom-123")
-
Add support for pagination to search endpoints
Fakturoid::Client::Invoice.search("apples", page: 3) Fakturoid::Client::Expense.search("computers", page: 2) Fakturoid::Client::Subject.search("apple", page: 2)
-
Add support for
variable_symbol
andbank_account_id
param in invoicefire
method.Fakturoid::Client::Invoice.fire(1234, 'pay', paid_at: '2017-07-03', paid_amount: '100.23', variable_symbol: '12345678', bank_account_id: 123)
-
Add support for
paid_on
,paid_amount
,variable_symbol
andbank_account_id
params in expensefire
method.Fakturoid::Client::Expense.fire(1234, 'pay', paid_on: '2017-07-03', paid_amount: '100.23', variable_symbol: '12345678', bank_account_id: 123)
-
Add support for
paid_amount
param in invoicefire
method.Fakturoid::Client::Invoice.fire(1234, 'pay', paid_at: '2017-07-03', paid_amount: '100.23')
-
Add support for
paid_at
param in invoicefire
method.Fakturoid::Client::Invoice.fire(1234, 'pay', paid_at: '2017-07-03')
-
Added support for
updated_since
param. -
Defined
respond_to_missing?
method forResponse
class. Example:### Before invoice = Fakturoid::Client::Invoice.find(1234) invoice.respond_to?(:number) # => false ### After invoice = Fakturoid::Client::Invoice.find(1234) invoice.respond_to?(:number) # => true