Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
<!-- This file is generated, please add to it using `knope document-change` in the client-library-templates repo -->
# Changelog

## 9.1.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.

## 9.0.2 (2026-09-09)

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gocardless-nodejs",
"version": "9.0.2",
"version": "9.1.0",
"description": "Node.js client for the GoCardless API - a powerful, simple solution for the collection of recurring bank-to-bank payments",
"author": "GoCardless Ltd <client-libraries@gocardless.com>",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/codeSamples/instalment_schedulesCodeSamples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('InstalmentSchedules Code Samples', () => {

test('create_with_dates code sample executes without error', async () => {
// Convert :param placeholders to regex wildcards for flexible matching
const stubUrl = '/instalment_schedules';
const stubUrl = '/instalment_schedules/create_with_dates';
const pathPattern = new RegExp('^' + stubUrl.replace(/:[\w]+/g, '[^/?]+') + '(?:\\?.*)?$');

// Mock response - repeat multiple times to handle code samples with multiple API calls
Expand Down Expand Up @@ -85,7 +85,7 @@ describe('InstalmentSchedules Code Samples', () => {

test('create_with_schedule code sample executes without error', async () => {
// Convert :param placeholders to regex wildcards for flexible matching
const stubUrl = '/instalment_schedules';
const stubUrl = '/instalment_schedules/create_with_schedule';
const pathPattern = new RegExp('^' + stubUrl.replace(/:[\w]+/g, '[^/?]+') + '(?:\\?.*)?$');

// Mock response - repeat multiple times to handle code samples with multiple API calls
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ enum Environments {
Sandbox = 'SANDBOX',
}

const CLIENT_VERSION = '9.0.2';
const CLIENT_VERSION = '9.1.0';
const API_VERSION = '2015-07-06';

export { Environments, CLIENT_VERSION, API_VERSION };
4 changes: 2 additions & 2 deletions src/services/instalmentScheduleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export class InstalmentScheduleService {
): Promise<InstalmentScheduleResponse> {
const urlParameters = [];
const requestParams = {
path: '/instalment_schedules',
path: '/instalment_schedules/create_with_dates',
method: 'post',
urlParameters,
requestParameters,
Expand All @@ -276,7 +276,7 @@ export class InstalmentScheduleService {
): Promise<InstalmentScheduleResponse> {
const urlParameters = [];
const requestParams = {
path: '/instalment_schedules',
path: '/instalment_schedules/create_with_schedule',
method: 'post',
urlParameters,
requestParameters,
Expand Down
Loading