From 9a9e4fb047c8e513e7537fc92b4446510f13d86e Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 1 Oct 2025 18:45:38 +0200 Subject: [PATCH 1/2] fix(accounting): use correct model for invoices --- CHANGELOG.md | 3 +++ chift/openapi/models.py | 4 ++-- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9eaf30..050a50e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.3.20 - 2025-10-01 +- accounting: use correct model for expenses + ## 0.3.19 - 2025-09-28 - accounting: add expense model and endpoint diff --git a/chift/openapi/models.py b/chift/openapi/models.py index e62c58d..548b1a5 100644 --- a/chift/openapi/models.py +++ b/chift/openapi/models.py @@ -28,7 +28,7 @@ DataItemOut, DataStoreItem, EmployeeItem, - ExpenseItemIn, + ExpenseItemOut, FinancialEntryItemOut, IntegrationItem, InvoiceItemOutMonoAnalyticPlan, @@ -419,7 +419,7 @@ class AccountingPayment(PaymentModel): pass -class Expense(ExpenseItemIn): +class Expense(ExpenseItemOut): pass diff --git a/pyproject.toml b/pyproject.toml index 5e8697d..92fb451 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "chift" -version = "0.3.19" +version = "0.3.20" description = "Chift API client" authors = ["Henry Hertoghe "] readme = "README.md" From b20870ca3158bd90a7834c0880d89289383eb9fb Mon Sep 17 00:00:00 2001 From: matthieuchift <95769137+matthieuchift@users.noreply.github.com> Date: Thu, 2 Oct 2025 06:31:14 +0200 Subject: [PATCH 2/2] chore(changelog): adapt change description --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 050a50e..329d5ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## 0.3.20 - 2025-10-01 -- accounting: use correct model for expenses +- accounting: adapt output model of expenses ## 0.3.19 - 2025-09-28 - accounting: add expense model and endpoint