From 237fbaa2f75e440a06c4b0e6a4f97b92c1bc0e42 Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:51:02 +0000 Subject: [PATCH] Changes generated by c3b0d55dc5f257043a66d9b1d5be01c3d84c4af7 This commit was automatically created from gocardless/client-library-templates@c3b0d55dc5f257043a66d9b1d5be01c3d84c4af7 by the `push-files` action. Workflow run: https://github.com/gocardless/client-library-templates/actions/runs/43032437506 --- CHANGELOG.md | 12 ++++++++++++ gocardless_pro/__init__.py | 2 +- gocardless_pro/api_client.py | 4 ++-- setup.py | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7755bfb0..c89a9ae4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Changelog +## 3.27.0 (2026-11-11) + +### Features + +#### Add `resources.mandate` to billing requests + +Billing requests now include the created mandate's `id` and `reference` in `resources.mandate` once the mandate request has been fulfilled. Before then, `resources.mandate` is not present. + +This means you no longer need a follow-up `GET /mandates/{id}` just to read the mandate reference, for example after calling `POST /billing_requests/create_with_actions` with auto-fulfilment. + +This is backward compatible - existing integrations are unaffected. + ## 3.26.0 (2026-11-10) ### Features diff --git a/gocardless_pro/__init__.py b/gocardless_pro/__init__.py index fd1a05eb..36b0269d 100644 --- a/gocardless_pro/__init__.py +++ b/gocardless_pro/__init__.py @@ -2,5 +2,5 @@ from .client import Client -__version__ = '3.26.0' +__version__ = '3.27.0' diff --git a/gocardless_pro/api_client.py b/gocardless_pro/api_client.py index 55cb623c..dfc0cbab 100644 --- a/gocardless_pro/api_client.py +++ b/gocardless_pro/api_client.py @@ -201,7 +201,7 @@ def _default_headers(self): 'Authorization': 'Bearer {0}'.format(self.access_token), 'Content-Type': 'application/json', 'GoCardless-Client-Library': 'gocardless-pro-python', - 'GoCardless-Client-Version': '3.26.0', + 'GoCardless-Client-Version': '3.27.0', 'User-Agent': self._user_agent(), 'GoCardless-Version': '2015-07-06', } @@ -210,7 +210,7 @@ def _user_agent(self): python_version = '.'.join(platform.python_version_tuple()[0:2]) vm_version = '{}.{}.{}-{}{}'.format(*sys.version_info) return ' '.join([ - 'gocardless-pro-python/3.26.0', + 'gocardless-pro-python/3.27.0', 'python/{0}'.format(python_version), '{0}/{1}'.format(platform.python_implementation(), vm_version), '{0}/{1}'.format(platform.system(), platform.release()), diff --git a/setup.py b/setup.py index 31edc2fb..9dde5111 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name = 'gocardless_pro', - version = '3.26.0', + version = '3.27.0', packages = find_packages(exclude=['tests']), install_requires = ['requests>=2.34.2'], python_requires = '>=3.6',