diff --git a/CHANGELOG.md b/CHANGELOG.md index 24117d75..9ea74625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,22 @@ # Changelog +## 8.8.0 (2026-09-11) + +### Features + +#### Use specific sub-endpoints URLs for create /instalment_schedules: with_schedule and with_dates + +The two variants for creating an instalment_schedule were surfaced as separate functions. However, they both went to the same URL and endpoint on the backend. + +This created some bugs in generating our openapi schema and therefore our API reference documentation. + +Therefore, we've added specific URLs for each endpoint aliased to the original one: `POST /instalment_schedules/with_dates` or `POST /instalment_schedules/with_schedule`. + +The existing POST /instalment_schedules endpoint is unchanged and will remain available for the foreseeable future. + +Client libraries will now use the specific endpoint matching the method - if you are stubbing the HTTP call you may need to update those stubs. + ## 8.7.5 (2026-09-09) ### Fixes diff --git a/README.md b/README.md index 410a4875..49220e3c 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ With Maven: com.gocardless gocardless-pro - 8.7.5 + 8.8.0 ``` With Gradle: ``` -implementation 'com.gocardless:gocardless-pro:8.7.5' +implementation 'com.gocardless:gocardless-pro:8.8.0' ``` ## Initializing the client diff --git a/build.gradle b/build.gradle index b34f029a..d22f3dd6 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ plugins { sourceCompatibility = 1.8 targetCompatibility = 1.8 group = 'com.gocardless' -version = '8.7.5' +version = '8.8.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 bc9a4b96..a35413ff 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.7.5 java/%s %s/%s %s/%s", + String.format("gocardless-pro-java/8.8.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.7.5"); + builder.put("GoCardless-Client-Version", "8.8.0"); HEADERS = builder.build(); } private final OkHttpClient rawClient;