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

## 9.1.0 (2026-09-17)

### Features

- Add "reference" to Create Bank Account Holder Verification

## 9.0.4 (2026-09-16)

### Fixes

- Clean up docs and use a shared definition of event `include` and `resource_type` enums

## 9.0.3 (2026-09-14)

### 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.0.3</version>
<version>9.1.0</version>
</dependency>
```

With Gradle:

```
implementation 'com.gocardless:gocardless-pro:9.0.3'
implementation 'com.gocardless:gocardless-pro:9.1.0'
```

## 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.0.3'
version = '9.1.0'

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.0.3 java/%s %s/%s %s/%s",
String.format("gocardless-pro-java/9.1.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")),
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.0.3");
builder.put("GoCardless-Client-Version", "9.1.0");
HEADERS = builder.build();
}
private final OkHttpClient rawClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public BankAccountHolderVerificationGetRequest get(String identity) {
public static final class BankAccountHolderVerificationCreateRequest
extends IdempotentPostRequest<BankAccountHolderVerification> {
private Links links;
private String reference;
private Type type;

public BankAccountHolderVerificationCreateRequest withLinks(Links links) {
Expand All @@ -67,6 +68,15 @@ public BankAccountHolderVerificationCreateRequest withLinksBankAccount(String ba
return this;
}

/**
* An alphanumeric reference code used by some financial institutions to identify an
* individual account.
*/
public BankAccountHolderVerificationCreateRequest withReference(String reference) {
this.reference = reference;
return this;
}

/**
* Type of the verification that has been performed eg. <a href=
* "https://www.wearepay.uk/what-we-do/overlay-services/confirmation-of-payee/">Confirmation
Expand Down