From 363b252dc50b8a5af68d44ba803450b08833f9e3 Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 08:14:06 +0000 Subject: [PATCH] Changes generated by 6f41c7db4040318a2db8e2135cdb76608eb9d8a9 This commit was automatically created from gocardless/client-library-templates@6f41c7db4040318a2db8e2135cdb76608eb9d8a9 by the `push-files` action. Workflow run: https://github.com/gocardless/client-library-templates/actions/runs/34821331931 --- CHANGELOG.md | 16 ++++++++++++++++ README.md | 4 ++-- build.gradle | 2 +- .../java/com/gocardless/http/HttpClient.java | 4 ++-- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ea74625..f3c5f964 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,22 @@ # Changelog +## 9.0.0 (2026-09-14) + +### Breaking Changes + +#### Add typed nullable references for billing request template fields + +`mandate_request_verify`, `mandate_currency`, and `payment_currency` on +`billing_request_template` are now generated as typed nullable fields instead +of untyped objects. For example, `mandate_request_verify` is now typed as +`MandateRequestVerify` (or the language equivalent) rather than a generic +object type. + +This is a breaking change — code that accesses these fields using untyped +patterns (e.g. casting from `Object` in Java) will need to be updated to +use the new typed accessors. + ## 8.8.0 (2026-09-11) ### Features diff --git a/README.md b/README.md index 49220e3c..b42d4fb0 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ With Maven: com.gocardless gocardless-pro - 8.8.0 + 9.0.0 ``` With Gradle: ``` -implementation 'com.gocardless:gocardless-pro:8.8.0' +implementation 'com.gocardless:gocardless-pro:9.0.0' ``` ## Initializing the client diff --git a/build.gradle b/build.gradle index d22f3dd6..91fafe33 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ plugins { sourceCompatibility = 1.8 targetCompatibility = 1.8 group = 'com.gocardless' -version = '8.8.0' +version = '9.0.0' apply plugin: 'ch.raffael.pegdown-doclet' diff --git a/src/main/java/com/gocardless/http/HttpClient.java b/src/main/java/com/gocardless/http/HttpClient.java index a35413ff..0765fcbb 100644 --- a/src/main/java/com/gocardless/http/HttpClient.java +++ b/src/main/java/com/gocardless/http/HttpClient.java @@ -35,7 +35,7 @@ public class HttpClient { private static final String DISALLOWED_USER_AGENT_CHARACTERS = "[^\\w!#$%&'\\*\\+\\-\\.\\^`\\|~]"; private static final String USER_AGENT = - String.format("gocardless-pro-java/8.8.0 java/%s %s/%s %s/%s", + String.format("gocardless-pro-java/9.0.0 java/%s %s/%s %s/%s", cleanUserAgentToken(System.getProperty("java.vm.specification.version")), cleanUserAgentToken(System.getProperty("java.vm.name")), cleanUserAgentToken(System.getProperty("java.version")), @@ -49,7 +49,7 @@ public class HttpClient { builder.put("GoCardless-Version", "2015-07-06"); builder.put("Accept", "application/json"); builder.put("GoCardless-Client-Library", "gocardless-pro-java"); - builder.put("GoCardless-Client-Version", "8.8.0"); + builder.put("GoCardless-Client-Version", "9.0.0"); HEADERS = builder.build(); } private final OkHttpClient rawClient;