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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<!-- This file is generated, please add to it using `knope document-change` in the client-library-templates repo -->
# Changelog

## 9.3.5 (2026-09-30)

### Fixes

- Add missing bank_name property to payer_authorisation bank_account schema

## 9.3.4 (2026-09-30)

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ With Maven:
<dependency>
<groupId>com.gocardless</groupId>
<artifactId>gocardless-pro</artifactId>
<version>9.3.4</version>
<version>9.3.5</version>
</dependency>
```

With Gradle:

```
implementation 'com.gocardless:gocardless-pro:9.3.4'
implementation 'com.gocardless:gocardless-pro:9.3.5'
```

## Initializing the client
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plugins {
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.gocardless'
version = '9.3.4'
version = '9.3.5'

apply plugin: 'ch.raffael.pegdown-doclet'

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/gocardless/http/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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/9.3.4 java/%s %s/%s %s/%s",
String.format("gocardless-pro-java/9.3.5 java/%s %s/%s %s/%s",
cleanUserAgentToken(System.getProperty("java.vm.specification.version")),
cleanUserAgentToken(System.getProperty("java.vm.name")),
cleanUserAgentToken(System.getProperty("java.version")),
Expand All @@ -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", "9.3.4");
builder.put("GoCardless-Client-Version", "9.3.5");
HEADERS = builder.build();
}
private final OkHttpClient rawClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ private BankAccount() {
private String accountNumberSuffix;
private AccountType accountType;
private String bankCode;
private String bankName;
private String branchCode;
private String countryCode;
private String currency;
Expand Down Expand Up @@ -235,6 +236,13 @@ public String getBankCode() {
return bankCode;
}

/**
* Name of bank, taken from the bank details.
*/
public String getBankName() {
return bankName;
}

/**
* Branch code - see <a href=
* "https://developer.gocardless.com/api-reference/#appendix-local-bank-details">local
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,17 @@ public PayerAuthorisationCreateRequest withBankAccountBankCode(String bankCode)
return this;
}

/**
* Name of bank, taken from the bank details.
*/
public PayerAuthorisationCreateRequest withBankAccountBankName(String bankName) {
if (bankAccount == null) {
bankAccount = new BankAccount();
}
bankAccount.withBankName(bankName);
return this;
}

/**
* Branch code - see <a href=
* "https://developer.gocardless.com/api-reference/#appendix-local-bank-details">local
Expand Down Expand Up @@ -653,6 +664,7 @@ public static class BankAccount {
private String accountNumberSuffix;
private AccountType accountType;
private String bankCode;
private String bankName;
private String branchCode;
private String countryCode;
private String currency;
Expand Down Expand Up @@ -722,6 +734,14 @@ public BankAccount withBankCode(String bankCode) {
return this;
}

/**
* Name of bank, taken from the bank details.
*/
public BankAccount withBankName(String bankName) {
this.bankName = bankName;
return this;
}

/**
* Branch code - see <a href=
* "https://developer.gocardless.com/api-reference/#appendix-local-bank-details">local
Expand Down Expand Up @@ -1127,6 +1147,17 @@ public PayerAuthorisationUpdateRequest withBankAccountBankCode(String bankCode)
return this;
}

/**
* Name of bank, taken from the bank details.
*/
public PayerAuthorisationUpdateRequest withBankAccountBankName(String bankName) {
if (bankAccount == null) {
bankAccount = new BankAccount();
}
bankAccount.withBankName(bankName);
return this;
}

/**
* Branch code - see <a href=
* "https://developer.gocardless.com/api-reference/#appendix-local-bank-details">local
Expand Down Expand Up @@ -1492,6 +1523,7 @@ public static class BankAccount {
private String accountNumberSuffix;
private AccountType accountType;
private String bankCode;
private String bankName;
private String branchCode;
private String countryCode;
private String currency;
Expand Down Expand Up @@ -1561,6 +1593,14 @@ public BankAccount withBankCode(String bankCode) {
return this;
}

/**
* Name of bank, taken from the bank details.
*/
public BankAccount withBankName(String bankName) {
this.bankName = bankName;
return this;
}

/**
* Branch code - see <a href=
* "https://developer.gocardless.com/api-reference/#appendix-local-bank-details">local
Expand Down
Loading