From 7c941cb55434b66b96351facb060d719cb0472c9 Mon Sep 17 00:00:00 2001 From: Leonardo Luarte G Date: Thu, 14 Aug 2025 15:29:02 -0400 Subject: [PATCH 1/2] feat: adds API::V2::Accounts Update Endpoint --- fintoc/managers/v2/accounts_manager.py | 2 +- tests/test_integration.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/fintoc/managers/v2/accounts_manager.py b/fintoc/managers/v2/accounts_manager.py index 9606b5d..83c18ae 100644 --- a/fintoc/managers/v2/accounts_manager.py +++ b/fintoc/managers/v2/accounts_manager.py @@ -9,7 +9,7 @@ class AccountsManager(ManagerMixin): """Represents an accounts manager.""" resource = "account" - methods = ["list", "get", "create"] + methods = ["list", "get", "create", "update"] def __init__(self, path, client): super().__init__(path, client) diff --git a/tests/test_integration.py b/tests/test_integration.py index 0f82922..a4805a1 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -561,6 +561,17 @@ def test_v2_account_create(self): assert account.url == "v2/accounts" assert account.json.description == account_data["description"] + def test_v2_account_update(self): + """Test updating an account using v2 API.""" + account_id = "test_account_id" + update_data = {"description": "Updated test account"} + + account = self.fintoc.v2.accounts.update(account_id, **update_data) + + assert account.method == "patch" + assert account.url == f"v2/accounts/{account_id}" + assert account.json.description == update_data["description"] + def test_v2_account_numbers_list(self): """Test getting all account numbers using v2 API.""" account_id = "test_account_id" From 7d5f494d3697c6e9d54a807f8141000cde35e2f9 Mon Sep 17 00:00:00 2001 From: Leonardo Luarte G Date: Thu, 14 Aug 2025 15:33:28 -0400 Subject: [PATCH 2/2] bumps version --- fintoc/version.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fintoc/version.py b/fintoc/version.py index 8bfb09f..c61a2b5 100644 --- a/fintoc/version.py +++ b/fintoc/version.py @@ -1,4 +1,4 @@ """Module to hold the version utilities.""" -version_info = (2, 12, 0) +version_info = (2, 13, 0) __version__ = ".".join([str(x) for x in version_info]) diff --git a/pyproject.toml b/pyproject.toml index 0624651..ad29e8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fintoc" -version = "2.12.0" +version = "2.13.0" description = "The official Python client for the Fintoc API." authors = ["Daniel Leal ", "Nebil Kawas "] maintainers = ["Daniel Leal "]