diff --git a/CHANGELOG.md b/CHANGELOG.md index c11c9360..7755bfb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog +## 3.26.0 (2026-11-10) + +### Features + +- Add `mandate_submitted` scenario simulator for Bacs, Autogiro and Betalingsservice mandates, and allow `mandate_activated` to run on `submitted` mandates + ## 3.25.0 (2026-11-05) ### Features diff --git a/gocardless_pro/__init__.py b/gocardless_pro/__init__.py index d19f3aea..fd1a05eb 100644 --- a/gocardless_pro/__init__.py +++ b/gocardless_pro/__init__.py @@ -2,5 +2,5 @@ from .client import Client -__version__ = '3.25.0' +__version__ = '3.26.0' diff --git a/gocardless_pro/api_client.py b/gocardless_pro/api_client.py index 3acad22d..55cb623c 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.25.0', + 'GoCardless-Client-Version': '3.26.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.25.0', + 'gocardless-pro-python/3.26.0', 'python/{0}'.format(python_version), '{0}/{1}'.format(platform.python_implementation(), vm_version), '{0}/{1}'.format(platform.system(), platform.release()), diff --git a/gocardless_pro/services/scenario_simulators_service.py b/gocardless_pro/services/scenario_simulators_service.py index 2480cc22..238f416b 100644 --- a/gocardless_pro/services/scenario_simulators_service.py +++ b/gocardless_pro/services/scenario_simulators_service.py @@ -36,7 +36,8 @@ def run(self,identity,params=None, headers=None): - `payment_late_failure`: Transitions a payment through to `late_failure`, having been apparently collected successfully beforehand. It must start in either the `pending_submission` or `paid_out` state, and its mandate must be in the `activated` state (unless it is a payment for ACH, BECS, BECS_NZ or SEPA, in which cases the mandate may be `pending_submission`, since their mandates are submitted with their first payment). Not compatible with Autogiro mandates. - `payment_late_failure_settled`: Behaves the same as the `payment_late_failure` simulator, except that the late failure is additionally included as a debit item in a payout, thereby settling the late failure. - `payment_submitted`: Transitions a payment to `submitted`, without proceeding any further. It must start in the `pending_submission` state. -- `mandate_activated`: Transitions a mandate through to `activated`, having been submitted to the banks and set up successfully. It must start in the `pending_submission` state. Not compatible with ACH, BECS, BECS_NZ and SEPA mandates, which are submitted and activated with their first payment. +- `mandate_activated`: Transitions a mandate through to `activated`, having been submitted to the banks and set up successfully. It must start in the `pending_submission` or `submitted` state. Not compatible with ACH, BECS, BECS_NZ and SEPA mandates, which are submitted and activated with their first payment. +- `mandate_submitted`: Transitions a mandate to `submitted`, as if it had been sent to the banks, without proceeding any further. It must start in the `pending_submission` state. Only compatible with Bacs, Autogiro and Betalingsservice mandates; ACH, BECS, BECS_NZ and SEPA mandates are submitted and activated with their first payment. Use `mandate_activated` or `mandate_failed` to move the mandate on afterwards. - `mandate_customer_approval_granted`: Transitions a mandate through to `pending_submission`, as if the customer approved the mandate creation. It must start in the `pending_customer_approval` state. Compatible only with Bacs and SEPA mandates, which support customer signatures on the mandate. All payments associated with the mandate will be transitioned to `pending_submission`. All subscriptions associated with the mandate will become `active`. - `mandate_customer_approval_skipped`: Transitions a mandate through to `pending_submission`, as if the customer skipped the mandate approval during the mandate creation process. It must start in the `pending_customer_approval` state. Compatible only with Bacs and SEPA mandates, which support customer signatures on the mandate. All payments associated with the mandate will be transitioned to `pending_submission`. All subscriptions associated with the mandate will become `active`. - `mandate_failed`: Transitions a mandate through to `failed`, having been submitted to the banks but found to be invalid (for example due to invalid bank details). It must start in the `pending_submission` or `submitted` states. Not compatible with SEPA mandates, which are submitted with their first payment. diff --git a/setup.py b/setup.py index fa25abe5..31edc2fb 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name = 'gocardless_pro', - version = '3.25.0', + version = '3.26.0', packages = find_packages(exclude=['tests']), install_requires = ['requests>=2.34.2'], python_requires = '>=3.6',