Skip to content

Commit cac25a6

Browse files
authored
Merge pull request #670 from Adyen/develop
17.3.0 Release
2 parents 9584805 + a0f1356 commit cac25a6

16 files changed

+762
-74
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @AlexandrosMor @wboereboom @Morerice @Aleffio
1+
* @AlexandrosMor @wboereboom @Morerice

.github/workflows/coveralls.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Coveralls
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
coveralls:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up JDK 11
13+
uses: actions/setup-java@v2
14+
with:
15+
java-version: '11'
16+
distribution: 'adopt'
17+
- name: Build & Test
18+
run: mvn clean test
19+
- name: Build with Maven
20+
run: mvn test jacoco:report
21+
- name: Coveralls Coverage Report Submission
22+
run: mvn coveralls:report --define repoToken=${{ secrets.COVERALL_REPO_TOKEN }}

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
[![Build Status](https://travis-ci.org/Adyen/adyen-java-api-library.svg?branch=master)](https://travis-ci.org/Adyen/adyen-java-api-library)
21
[![Coverage Status](https://coveralls.io/repos/github/Adyen/adyen-java-api-library/badge.svg?branch=master)](https://coveralls.io/github/Adyen/adyen-java-api-library?branch=master)
32

4-
53
# Adyen Java API Library
64

75
This is the officially supported Java library for using Adyen's APIs.
@@ -41,7 +39,7 @@ You can use Maven and add this dependency to your project's POM:
4139
<dependency>
4240
<groupId>com.adyen</groupId>
4341
<artifactId>adyen-java-api-library</artifactId>
44-
<version>17.2.0</version>
42+
<version>17.3.0</version>
4543
</dependency>
4644
```
4745

@@ -146,7 +144,7 @@ For other questions, [contact our Support Team](https://www.adyen.help/hc/en-us/
146144

147145

148146
## Licence
149-
This repository is available under the [MIT license](https://github.com/Adyen/adyen-java-api-library/blob/master/LICENSE).
147+
This repository is available under the [MIT license](https://github.com/Adyen/adyen-java-api-library/blob/main/LICENSE).
150148

151149

152150

pom.xml

Lines changed: 15 additions & 8 deletions
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>17.2.0</version>
7+
<version>17.3.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>
@@ -25,7 +25,7 @@
2525
<properties>
2626
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2727
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
28-
<jackson.version>2.13.0</jackson.version>
28+
<jackson.version>2.13.1</jackson.version>
2929
</properties>
3030
<scm>
3131
<connection>scm:git:[email protected]:Adyen/adyen-java-api-library.git</connection>
@@ -54,6 +54,13 @@
5454
<groupId>org.eluder.coveralls</groupId>
5555
<artifactId>coveralls-maven-plugin</artifactId>
5656
<version>4.3.0</version>
57+
<dependencies>
58+
<dependency>
59+
<groupId>javax.xml.bind</groupId>
60+
<artifactId>jaxb-api</artifactId>
61+
<version>2.3.1</version>
62+
</dependency>
63+
</dependencies>
5764
</plugin>
5865
<plugin>
5966
<groupId>org.jacoco</groupId>
@@ -142,7 +149,7 @@
142149
<plugin>
143150
<groupId>org.apache.felix</groupId>
144151
<artifactId>maven-bundle-plugin</artifactId>
145-
<version>5.1.2</version>
152+
<version>5.1.3</version>
146153
<executions>
147154
<execution>
148155
<id>bundle-manifest</id>
@@ -169,7 +176,7 @@
169176
<dependency>
170177
<groupId>com.google.code.gson</groupId>
171178
<artifactId>gson</artifactId>
172-
<version>2.8.8</version>
179+
<version>2.8.9</version>
173180
</dependency>
174181
<dependency>
175182
<groupId>com.fasterxml.jackson.core</groupId>
@@ -184,7 +191,7 @@
184191
<dependency>
185192
<groupId>org.apache.httpcomponents.client5</groupId>
186193
<artifactId>httpclient5</artifactId>
187-
<version>5.1</version>
194+
<version>5.1.2</version>
188195
</dependency>
189196
<dependency>
190197
<groupId>junit</groupId>
@@ -195,7 +202,7 @@
195202
<dependency>
196203
<groupId>org.mockito</groupId>
197204
<artifactId>mockito-core</artifactId>
198-
<version>4.0.0</version>
205+
<version>4.2.0</version>
199206
<scope>test</scope>
200207
</dependency>
201208
<dependency>
@@ -212,12 +219,12 @@
212219
<dependency>
213220
<groupId>io.swagger.core.v3</groupId>
214221
<artifactId>swagger-models</artifactId>
215-
<version>2.1.11</version>
222+
<version>2.1.12</version>
216223
</dependency>
217224
<dependency>
218225
<groupId>io.swagger.core.v3</groupId>
219226
<artifactId>swagger-annotations</artifactId>
220-
<version>2.1.11</version>
227+
<version>2.1.12</version>
221228
</dependency>
222229
</dependencies>
223230
</project>

src/main/java/com/adyen/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class Client {
4747
public static final String MARKETPAY_NOTIFICATION_API_VERSION = "v6";
4848
public static final String MARKETPAY_HOP_API_VERSION = "v6";
4949
public static final String LIB_NAME = "adyen-java-api-library";
50-
public static final String LIB_VERSION = "17.2.0";
50+
public static final String LIB_VERSION = "17.3.0";
5151
public static final String CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout";
5252
public static final String CHECKOUT_ENDPOINT_LIVE_SUFFIX = "-checkout-live.adyenpayments.com/checkout";
5353
public static final String CHECKOUT_ENDPOINT_CERT_LIVE = "https://checkoutcert-live-%s.adyen.com/checkout";

src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ public class PaymentMethodsRequest {
8383
@SerializedName("trustedShopper")
8484
private Boolean trustedShopper = null;
8585

86-
@SerializedName("enableRealTimeUpdate")
87-
private Boolean enableRealTimeUpdate = null;
88-
8986
@SerializedName("threeDSAuthenticationOnly")
9087
private Boolean threeDSAuthenticationOnly = null;
9188

@@ -279,11 +276,6 @@ public void setBlockedPaymentMethods(List<String> blockedPaymentMethods) {
279276
this.blockedPaymentMethods = blockedPaymentMethods;
280277
}
281278

282-
public PaymentMethodsRequest enableRealTimeUpdate(Boolean enableRealTimeUpdate) {
283-
this.enableRealTimeUpdate = enableRealTimeUpdate;
284-
return this;
285-
}
286-
287279
public String getStore() {
288280
return store;
289281
}
@@ -297,19 +289,6 @@ public PaymentMethodsRequest store(String store) {
297289
return this;
298290
}
299291

300-
/**
301-
* Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings.
302-
*
303-
* @return enableRealTimeUpdate
304-
**/
305-
public Boolean isEnableRealTimeUpdate() {
306-
return enableRealTimeUpdate;
307-
}
308-
309-
public void setEnableRealTimeUpdate(Boolean enableRealTimeUpdate) {
310-
this.enableRealTimeUpdate = enableRealTimeUpdate;
311-
}
312-
313292
public PaymentMethodsRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) {
314293
this.threeDSAuthenticationOnly = threeDSAuthenticationOnly;
315294
return this;
@@ -368,7 +347,6 @@ public boolean equals(java.lang.Object o) {
368347
Objects.equals(this.blockedPaymentMethods, paymentMethodsRequest.blockedPaymentMethods) &&
369348
Objects.equals(this.channel, paymentMethodsRequest.channel) &&
370349
Objects.equals(this.countryCode, paymentMethodsRequest.countryCode) &&
371-
Objects.equals(this.enableRealTimeUpdate, paymentMethodsRequest.enableRealTimeUpdate) &&
372350
Objects.equals(this.merchantAccount, paymentMethodsRequest.merchantAccount) &&
373351
Objects.equals(this.order, paymentMethodsRequest.order) &&
374352
Objects.equals(this.shopperLocale, paymentMethodsRequest.shopperLocale) &&
@@ -379,7 +357,7 @@ public boolean equals(java.lang.Object o) {
379357

380358
@Override
381359
public int hashCode() {
382-
return Objects.hash(additionalData, allowedPaymentMethods, amount, blockedPaymentMethods, channel, countryCode, enableRealTimeUpdate, merchantAccount, order, shopperLocale, shopperReference, splitCardFundingSources, store);
360+
return Objects.hash(additionalData, allowedPaymentMethods, amount, blockedPaymentMethods, channel, countryCode, merchantAccount, order, shopperLocale, shopperReference, splitCardFundingSources, store);
383361
}
384362

385363
@Override
@@ -393,7 +371,6 @@ public String toString() {
393371
sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n");
394372
sb.append(" channel: ").append(toIndentedString(channel)).append("\n");
395373
sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
396-
sb.append(" enableRealTimeUpdate: ").append(toIndentedString(enableRealTimeUpdate)).append("\n");
397374
sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
398375
sb.append(" order: ").append(toIndentedString(order)).append("\n");
399376
sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n");
@@ -425,7 +402,7 @@ public enum ChannelEnum {
425402
public static ChannelEnum fromValue(String text) {
426403
return Arrays.stream(values()).
427404
filter(s -> s.value.equals(text)).
428-
findFirst().orElse(null);
405+
findFirst().orElse(null);
429406
}
430407

431408
public String getValue() {
@@ -451,7 +428,4 @@ public ChannelEnum read(final JsonReader jsonReader) throws IOException {
451428
}
452429
}
453430

454-
}
455-
456-
457-
431+
}

src/main/java/com/adyen/model/hop/GetOnboardingUrlRequest.java

Lines changed: 64 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Adyen Java API Library
1616
*
17-
* Copyright (c) 2020 Adyen B.V.
17+
* Copyright (c) 2021 Adyen B.V.
1818
* This file is open source and available under the MIT license.
1919
* See the LICENSE file for more info.
2020
*/
@@ -45,10 +45,11 @@ public class GetOnboardingUrlRequest {
4545
@SerializedName("shopperLocale")
4646
private String shopperLocale = null;
4747

48-
public GetOnboardingUrlRequest accountHolderCode(String accountHolderCode) {
49-
this.accountHolderCode = accountHolderCode;
50-
return this;
51-
}
48+
@SerializedName("showPages")
49+
private OnboardingShowPages showPages = null;
50+
51+
@SerializedName("collectInformation")
52+
private OnboardingCollectInformation collectInformation = null;
5253

5354
/**
5455
* The account holder code you provided when you created the account holder.
@@ -63,8 +64,8 @@ public void setAccountHolderCode(String accountHolderCode) {
6364
this.accountHolderCode = accountHolderCode;
6465
}
6566

66-
public GetOnboardingUrlRequest editMode(Boolean editMode) {
67-
this.editMode = editMode;
67+
public GetOnboardingUrlRequest accountHolderCode(String accountHolderCode) {
68+
this.accountHolderCode = accountHolderCode;
6869
return this;
6970
}
7071

@@ -81,8 +82,8 @@ public void setEditMode(Boolean editMode) {
8182
this.editMode = editMode;
8283
}
8384

84-
public GetOnboardingUrlRequest platformName(String platformName) {
85-
this.platformName = platformName;
85+
public GetOnboardingUrlRequest editMode(Boolean editMode) {
86+
this.editMode = editMode;
8687
return this;
8788
}
8889

@@ -99,8 +100,8 @@ public void setPlatformName(String platformName) {
99100
this.platformName = platformName;
100101
}
101102

102-
public GetOnboardingUrlRequest returnUrl(String returnUrl) {
103-
this.returnUrl = returnUrl;
103+
public GetOnboardingUrlRequest platformName(String platformName) {
104+
this.platformName = platformName;
104105
return this;
105106
}
106107

@@ -117,6 +118,11 @@ public void setReturnUrl(String returnUrl) {
117118
this.returnUrl = returnUrl;
118119
}
119120

121+
public GetOnboardingUrlRequest returnUrl(String returnUrl) {
122+
this.returnUrl = returnUrl;
123+
return this;
124+
}
125+
120126
/**
121127
* The language to be used in the page, specified by a combination of a language and country code. For example, **pt-BR**. \n\nIf not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default.\n\nFor a list supported languages, refer to [Change the page language](https://docs.adyen.com/platforms/onboarding-and-verification/hosted-onboarding-page#change-page-language).
122128
*
@@ -130,6 +136,47 @@ public void setShopperLocale(String shopperLocale) {
130136
this.shopperLocale = shopperLocale;
131137
}
132138

139+
public GetOnboardingUrlRequest shopperLocale(String shopperLocale) {
140+
this.shopperLocale = shopperLocale;
141+
return this;
142+
}
143+
144+
/**
145+
* What pages should be shown on the hosted onbarding page
146+
*
147+
* @return
148+
*/
149+
public OnboardingShowPages getShowPages() {
150+
return showPages;
151+
}
152+
153+
public void setShowPages(OnboardingShowPages showPages) {
154+
this.showPages = showPages;
155+
}
156+
157+
public GetOnboardingUrlRequest showPages(OnboardingShowPages showPages) {
158+
this.showPages = showPages;
159+
return this;
160+
}
161+
162+
/**
163+
* What information should be collected on the hosted onboarding page
164+
*
165+
* @return
166+
*/
167+
public OnboardingCollectInformation getCollectInformation() {
168+
return collectInformation;
169+
}
170+
171+
public void setCollectInformation(OnboardingCollectInformation collectInformation) {
172+
this.collectInformation = collectInformation;
173+
}
174+
175+
public GetOnboardingUrlRequest collectInformation(OnboardingCollectInformation collectInformation) {
176+
this.collectInformation = collectInformation;
177+
return this;
178+
}
179+
133180
@Override
134181
public boolean equals(Object o) {
135182
if (this == o) {
@@ -143,12 +190,14 @@ public boolean equals(Object o) {
143190
Objects.equals(this.editMode, getOnboardingUrlRequest.editMode) &&
144191
Objects.equals(this.platformName, getOnboardingUrlRequest.platformName) &&
145192
Objects.equals(this.returnUrl, getOnboardingUrlRequest.returnUrl) &&
146-
Objects.equals(this.shopperLocale, getOnboardingUrlRequest.shopperLocale);
193+
Objects.equals(this.shopperLocale, getOnboardingUrlRequest.shopperLocale) &&
194+
Objects.equals(this.showPages, getOnboardingUrlRequest.showPages) &&
195+
Objects.equals(this.collectInformation, getOnboardingUrlRequest.collectInformation);
147196
}
148197

149198
@Override
150199
public int hashCode() {
151-
return Objects.hash(accountHolderCode, editMode, platformName, returnUrl, shopperLocale);
200+
return Objects.hash(accountHolderCode, editMode, platformName, returnUrl, shopperLocale, showPages, collectInformation);
152201
}
153202

154203

@@ -162,6 +211,8 @@ public String toString() {
162211
sb.append(" platformName: ").append(toIndentedString(platformName)).append("\n");
163212
sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n");
164213
sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n");
214+
sb.append(" showPages: ").append(toIndentedString(showPages)).append("\n");
215+
sb.append(" collectInformation: ").append(toIndentedString(collectInformation)).append("\n");
165216
sb.append("}");
166217
return sb.toString();
167218
}

0 commit comments

Comments
 (0)