Skip to content

Commit 3f35b25

Browse files
Merge pull request #1106 from Adyen/automation/release
Release v21.1.0
2 parents b647fae + 0b13155 commit 3f35b25

File tree

123 files changed

+4604
-5492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+4604
-5492
lines changed

Diff for: .github/scripts/helper.js

-19
This file was deleted.

Diff for: .github/workflows/gh-release.yml

+8-29
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,16 @@
11
name: Github Release
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
88

99
jobs:
1010
gh_release:
1111
permissions:
1212
contents: write
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
18-
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
19-
- name: Grab version
20-
uses: actions/github-script@v6
21-
id: release
22-
with:
23-
script: |
24-
const helper = require('./.github/scripts/helper.js')
25-
core.setOutput('version', helper.pomJavaVersion())
26-
- name: Create new release
27-
env:
28-
GH_TOKEN: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
29-
run: |
30-
gh release create v${{steps.release.outputs.version}} \
31-
--title 'Adyen Java API Library v${{steps.release.outputs.version}}' \
32-
--generate-notes --target main
33-
- name: Update develop branch
34-
run: |
35-
git checkout develop
36-
git merge main
37-
git push origin develop
13+
uses: Adyen/adyen-node-api-library/.github/workflows/lib-gh-release.yml@develop
14+
with:
15+
project-name: Java
16+
secrets: inherit

Diff for: .github/workflows/release.yml

+14-55
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,23 @@
11
name: Release request
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
branches:
7-
- develop
4+
workflow_dispatch:
5+
inputs:
6+
prerelease:
7+
required: false
8+
type: boolean
9+
default: false
10+
description: "This release will be labeled as non-production ready"
11+
push:
12+
branches:
13+
- develop
814

915
jobs:
1016
release:
1117
permissions:
1218
contents: write
1319
pull-requests: write
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v3
17-
with:
18-
ref: main
19-
- name: Reset promotion branch
20-
run: |
21-
git fetch origin develop:develop
22-
git reset --hard develop
23-
- name: Get the release script
24-
run: |
25-
wget https://raw.githubusercontent.com/Adyen/adyen-node-api-library/develop/.github/scripts/release.js -P ./.github/scripts
26-
- name: Prepare release request
27-
uses: actions/github-script@v6
28-
id: release
29-
with:
30-
script: |
31-
const helper = require('./.github/scripts/helper.js')
32-
const release = require('./.github/scripts/release.js')
33-
const options = { github, context, core, getCurrentVersion: helper.pomJavaVersion };
34-
await release.bump(options);
35-
- name: Bump version
36-
uses: actions/github-script@v6
37-
with:
38-
script: |
39-
const helper = require('./.github/scripts/helper.js')
40-
await helper.updateJavaVersion("${{steps.release.outputs.nextVersion}}");
41-
- name: Delete the release script
42-
run: |
43-
rm -f ./.github/scripts/release.js
44-
- name: Create Pull Request
45-
id: cpr
46-
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
47-
with:
48-
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
49-
committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
50-
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
51-
branch: automation/release
52-
title: Release v${{steps.release.outputs.nextVersion}}
53-
body: |
54-
Merged pull requests to be released:
55-
${{steps.release.outputs.changelog}}
56-
commit-message: "chore(release): bump to ${{steps.release.outputs.nextVersion}}"
57-
delete-branch: true
58-
- name: Enable Pull Request Automerge
59-
if: steps.cpr.outputs.pull-request-operation == 'created'
60-
uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3.0.0
61-
with:
62-
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
63-
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
64-
merge-method: merge
20+
uses: Adyen/adyen-node-api-library/.github/workflows/lib-release.yml@develop
21+
with:
22+
prerelease: ${{ inputs.prerelease || false }}
23+
secrets: inherit

Diff for: Makefile

+9-1
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,13 @@ clean:
145145
git checkout $(models)
146146
git clean -f -d $(models)
147147

148+
## Releases
148149

149-
.PHONY: templates models $(services)
150+
version:
151+
perl -lne 'print "currentVersion=$$1" if /version>(.+?)<\/version/' < pom.xml | head -1 >> "$$GITHUB_OUTPUT"
152+
153+
version_files:=pom.xml src/main/java/com/adyen/Client.java README.md
154+
bump:
155+
perl -i -pe 's/$$ENV{"CURRENT_VERSION"}/$$ENV{"NEXT_VERSION"}/' $(version_files)
156+
157+
.PHONY: templates models $(services) version bump

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ You can use Maven and add this dependency to your project's POM:
5656
<dependency>
5757
<groupId>com.adyen</groupId>
5858
<artifactId>adyen-java-api-library</artifactId>
59-
<version>21.0.0</version>
59+
<version>21.1.0</version>
6060
</dependency>
6161
```
6262

Diff for: pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.adyen</groupId>
55
<artifactId>adyen-java-api-library</artifactId>
66
<packaging>jar</packaging>
7-
<version>21.0.0</version>
7+
<version>21.1.0</version>
88
<name>Adyen Java API Library</name>
99
<description>Adyen API Client Library for Java</description>
1010
<url>https://github.com/adyen/adyen-java-api-library</url>
@@ -248,7 +248,7 @@
248248
<dependency>
249249
<groupId>com.squareup.okio</groupId>
250250
<artifactId>okio</artifactId>
251-
<version>3.4.0</version>
251+
<version>3.5.0</version>
252252
<scope>test</scope>
253253
</dependency>
254254
<!-- Generated model annotations -->

Diff for: src/main/java/com/adyen/Client.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class Client {
3232
private Config config;
3333
public static final String ENDPOINT_CERT_LIVE = "https://palcert-live.adyen.com";
3434
public static final String LIB_NAME = "adyen-java-api-library";
35-
public static final String LIB_VERSION = "21.0.0";
35+
public static final String LIB_VERSION = "21.1.0";
3636
public static final String CHECKOUT_ENDPOINT_CERT_LIVE = "https://checkoutcert-live-%s.adyen.com/checkout";
3737
public static final String TERMINAL_API_ENDPOINT_TEST = "https://terminal-api-test.adyen.com";
3838
public static final String TERMINAL_API_ENDPOINT_LIVE = "https://terminal-api-live.adyen.com";

Diff for: src/main/java/com/adyen/model/balanceplatform/AccountHolder.java

+34-3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
AccountHolder.JSON_PROPERTY_ID,
4646
AccountHolder.JSON_PROPERTY_LEGAL_ENTITY_ID,
4747
AccountHolder.JSON_PROPERTY_METADATA,
48+
AccountHolder.JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE,
4849
AccountHolder.JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT,
4950
AccountHolder.JSON_PROPERTY_REFERENCE,
5051
AccountHolder.JSON_PROPERTY_STATUS,
@@ -74,6 +75,9 @@ public class AccountHolder {
7475
public static final String JSON_PROPERTY_METADATA = "metadata";
7576
private Map<String, String> metadata = null;
7677

78+
public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode";
79+
private String migratedAccountHolderCode;
80+
7781
public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount";
7882
private String primaryBalanceAccount;
7983

@@ -303,10 +307,10 @@ public AccountHolder putMetadataItem(String key, String metadataItem) {
303307
}
304308

305309
/**
306-
* A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
310+
* A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
307311
* @return metadata
308312
**/
309-
@ApiModelProperty(value = "A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
313+
@ApiModelProperty(value = "A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
310314
@JsonProperty(JSON_PROPERTY_METADATA)
311315
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
312316

@@ -322,6 +326,31 @@ public void setMetadata(Map<String, String> metadata) {
322326
}
323327

324328

329+
public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode) {
330+
this.migratedAccountHolderCode = migratedAccountHolderCode;
331+
return this;
332+
}
333+
334+
/**
335+
* The unique identifier of the migrated account holder in the classic integration.
336+
* @return migratedAccountHolderCode
337+
**/
338+
@ApiModelProperty(value = "The unique identifier of the migrated account holder in the classic integration.")
339+
@JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
340+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
341+
342+
public String getMigratedAccountHolderCode() {
343+
return migratedAccountHolderCode;
344+
}
345+
346+
347+
@JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
348+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
349+
public void setMigratedAccountHolderCode(String migratedAccountHolderCode) {
350+
this.migratedAccountHolderCode = migratedAccountHolderCode;
351+
}
352+
353+
325354
public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) {
326355
this.primaryBalanceAccount = primaryBalanceAccount;
327356
return this;
@@ -474,6 +503,7 @@ public boolean equals(Object o) {
474503
Objects.equals(this.id, accountHolder.id) &&
475504
Objects.equals(this.legalEntityId, accountHolder.legalEntityId) &&
476505
Objects.equals(this.metadata, accountHolder.metadata) &&
506+
Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) &&
477507
Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) &&
478508
Objects.equals(this.reference, accountHolder.reference) &&
479509
Objects.equals(this.status, accountHolder.status) &&
@@ -483,7 +513,7 @@ public boolean equals(Object o) {
483513

484514
@Override
485515
public int hashCode() {
486-
return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines);
516+
return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines);
487517
}
488518

489519
@Override
@@ -497,6 +527,7 @@ public String toString() {
497527
sb.append(" id: ").append(toIndentedString(id)).append("\n");
498528
sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n");
499529
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
530+
sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n");
500531
sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n");
501532
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
502533
sb.append(" status: ").append(toIndentedString(status)).append("\n");

Diff for: src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java

+34-3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
AccountHolderInfo.JSON_PROPERTY_DESCRIPTION,
4343
AccountHolderInfo.JSON_PROPERTY_LEGAL_ENTITY_ID,
4444
AccountHolderInfo.JSON_PROPERTY_METADATA,
45+
AccountHolderInfo.JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE,
4546
AccountHolderInfo.JSON_PROPERTY_REFERENCE,
4647
AccountHolderInfo.JSON_PROPERTY_TIME_ZONE
4748
})
@@ -65,6 +66,9 @@ public class AccountHolderInfo {
6566
public static final String JSON_PROPERTY_METADATA = "metadata";
6667
private Map<String, String> metadata = null;
6768

69+
public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode";
70+
private String migratedAccountHolderCode;
71+
6872
public static final String JSON_PROPERTY_REFERENCE = "reference";
6973
private String reference;
7074

@@ -221,10 +225,10 @@ public AccountHolderInfo putMetadataItem(String key, String metadataItem) {
221225
}
222226

223227
/**
224-
* A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
228+
* A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
225229
* @return metadata
226230
**/
227-
@ApiModelProperty(value = "A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
231+
@ApiModelProperty(value = "A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
228232
@JsonProperty(JSON_PROPERTY_METADATA)
229233
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230234

@@ -240,6 +244,31 @@ public void setMetadata(Map<String, String> metadata) {
240244
}
241245

242246

247+
public AccountHolderInfo migratedAccountHolderCode(String migratedAccountHolderCode) {
248+
this.migratedAccountHolderCode = migratedAccountHolderCode;
249+
return this;
250+
}
251+
252+
/**
253+
* The unique identifier of the migrated account holder in the classic integration.
254+
* @return migratedAccountHolderCode
255+
**/
256+
@ApiModelProperty(value = "The unique identifier of the migrated account holder in the classic integration.")
257+
@JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
258+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
259+
260+
public String getMigratedAccountHolderCode() {
261+
return migratedAccountHolderCode;
262+
}
263+
264+
265+
@JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
266+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
267+
public void setMigratedAccountHolderCode(String migratedAccountHolderCode) {
268+
this.migratedAccountHolderCode = migratedAccountHolderCode;
269+
}
270+
271+
243272
public AccountHolderInfo reference(String reference) {
244273
this.reference = reference;
245274
return this;
@@ -308,13 +337,14 @@ public boolean equals(Object o) {
308337
Objects.equals(this.description, accountHolderInfo.description) &&
309338
Objects.equals(this.legalEntityId, accountHolderInfo.legalEntityId) &&
310339
Objects.equals(this.metadata, accountHolderInfo.metadata) &&
340+
Objects.equals(this.migratedAccountHolderCode, accountHolderInfo.migratedAccountHolderCode) &&
311341
Objects.equals(this.reference, accountHolderInfo.reference) &&
312342
Objects.equals(this.timeZone, accountHolderInfo.timeZone);
313343
}
314344

315345
@Override
316346
public int hashCode() {
317-
return Objects.hash(balancePlatform, capabilities, contactDetails, description, legalEntityId, metadata, reference, timeZone);
347+
return Objects.hash(balancePlatform, capabilities, contactDetails, description, legalEntityId, metadata, migratedAccountHolderCode, reference, timeZone);
318348
}
319349

320350
@Override
@@ -327,6 +357,7 @@ public String toString() {
327357
sb.append(" description: ").append(toIndentedString(description)).append("\n");
328358
sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n");
329359
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
360+
sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n");
330361
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
331362
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
332363
sb.append("}");

0 commit comments

Comments
 (0)