diff --git a/CHANGELOG.md b/CHANGELOG.md index e9e2792a..61e7738c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Changelog +## 3.23.0 (2026-10-28) + +### Features + +#### Use Billing Requests instead of Redirect Flows and Payer Authorisations + +Redirect Flows and Payer Authorisations are legacy APIs and cannot be used by new integrators. If you use `client.redirect_flows` and `client.payer_authorisations`, migrate to [Billing Requests](https://developer.gocardless.com/api-reference/#billing-requests), which cover the same flows (and more) through a single API. The [integration planner](https://docs.gocardless.com/docs/collect-payments/integration-planner) is a good place to start. + +The legacy methods are now marked as deprecated with a `DeprecationWarning` at runtime and a `Deprecated:` docstring note. Behaviour is unchanged. Python hides `DeprecationWarning` by default outside `__main__` and test runners, but projects running with `-W error` will see these calls fail until they migrate. + ## 3.22.0 (2026-10-26) ### Features diff --git a/gocardless_pro/__init__.py b/gocardless_pro/__init__.py index 9fbd0853..904e34b1 100644 --- a/gocardless_pro/__init__.py +++ b/gocardless_pro/__init__.py @@ -2,5 +2,5 @@ from .client import Client -__version__ = '3.22.0' +__version__ = '3.23.0' diff --git a/gocardless_pro/api_client.py b/gocardless_pro/api_client.py index 4858ed69..b336e4ab 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.22.0', + 'GoCardless-Client-Version': '3.23.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.22.0', + 'gocardless-pro-python/3.23.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 da063a65..2fe59c8c 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name = 'gocardless_pro', - version = '3.22.0', + version = '3.23.0', packages = find_packages(exclude=['tests']), install_requires = ['requests>=2.34.2'], python_requires = '>=3.6',