Skip to content

Commit

Permalink
Merge pull request #132 from gocardless/template-changes
Browse files Browse the repository at this point in the history
Changes from gocardless/gocardless-pro-java-template
  • Loading branch information
azidouk authored Dec 3, 2024
2 parents e026a3b + c2795d9 commit 2b5afcc
Show file tree
Hide file tree
Showing 7 changed files with 588 additions and 35 deletions.
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>6.0.0</version>
<version>6.1.0</version>
</dependency>
```

With Gradle:

```
implementation 'com.gocardless:gocardless-pro:6.0.0'
implementation 'com.gocardless:gocardless-pro:6.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 @@ -25,7 +25,7 @@ plugins {
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.gocardless'
version = '6.0.0'
version = '6.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/6.0.0 java/%s %s/%s %s/%s",
String.format("gocardless-pro-java/6.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", "6.0.0");
builder.put("GoCardless-Client-Version", "6.1.0");
HEADERS = builder.build();
}
private final OkHttpClient rawClient;
Expand Down
Loading

0 comments on commit 2b5afcc

Please sign in to comment.