Skip to content

Commit 5a8fe87

Browse files
authored
Merge pull request #604 from Adyen/develop
Release 17.0.0
2 parents 94e9415 + f6a1187 commit 5a8fe87

27 files changed

+1360
-256
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @rkewlani @martinsrenato @Aleffio @abhilash-adyen @saquibsayyad
1+
* @rkewlani @martinsrenato @Aleffio @abhilash-adyen @saquibsayyad @AlexandrosMor @wboereboom

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You can use Maven and add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>com.adyen</groupId>
4343
<artifactId>adyen-java-api-library</artifactId>
44-
<version>16.0.0</version>
44+
<version>17.0.0</version>
4545
</dependency>
4646
```
4747

pom.xml

Lines changed: 1 addition & 1 deletion
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>16.0.0</version>
7+
<version>17.0.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>

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import com.adyen.httpclient.ClientInterface;
2727

2828
import java.security.KeyStore;
29-
import java.util.Optional;
3029

3130
public class Client {
3231
private ClientInterface httpClient;
@@ -48,7 +47,7 @@ public class Client {
4847
public static final String MARKETPAY_NOTIFICATION_API_VERSION = "v6";
4948
public static final String MARKETPAY_HOP_API_VERSION = "v6";
5049
public static final String LIB_NAME = "adyen-java-api-library";
51-
public static final String LIB_VERSION = "16.0.0";
50+
public static final String LIB_VERSION = "17.0.0";
5251
public static final String CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout";
5352
public static final String CHECKOUT_ENDPOINT_LIVE_SUFFIX = "-checkout-live.adyenpayments.com/checkout";
5453
public static final String CHECKOUT_ENDPOINT_CERT_LIVE = "https://checkoutcert-live-%s.adyen.com/checkout";
@@ -226,8 +225,7 @@ public String toString() {
226225
}
227226

228227
public ClientInterface getHttpClient() {
229-
this.httpClient = Optional.ofNullable(this.httpClient).orElseGet(AdyenHttpClient::new);
230-
return this.httpClient;
228+
return this.httpClient == null ? new AdyenHttpClient() : this.httpClient;
231229
}
232230

233231
public void setHttpClient(ClientInterface httpClient) {

src/main/java/com/adyen/model/ThreeDSecureData.java

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ public String toString() {
120120
@SerializedName("cavv")
121121
private String cavv = null;
122122

123+
@SerializedName("tavv")
124+
private String tavv = null;
125+
126+
@SerializedName("tokenAuthenticationVerificationValue")
127+
private String tokenAuthenticationVerificationValue = null;
128+
123129
@SerializedName("eci")
124130
private String eci = null;
125131

@@ -220,6 +226,33 @@ public ThreeDSecureData cavv(String cavv) {
220226
return this;
221227
}
222228

229+
/**
230+
* Network token cryptogram.
231+
*
232+
* @return tavv
233+
**/
234+
public String getTavv() {
235+
return tavv;
236+
}
237+
238+
public void setTavv(String tavv) {
239+
this.tavv = tavv;
240+
}
241+
242+
/**
243+
* Network token authentication verification value (TAVV). The network token cryptogram.
244+
*
245+
* @return tokenAuthenticationVerificationValue
246+
**/
247+
public String getTokenAuthenticationVerificationValue() {
248+
return tokenAuthenticationVerificationValue;
249+
}
250+
251+
public void setTokenAuthenticationVerificationValue(String tokenAuthenticationVerificationValue) {
252+
this.tokenAuthenticationVerificationValue = tokenAuthenticationVerificationValue;
253+
}
254+
255+
223256
/**
224257
* the cardholder authentication value (base64 encoded, 20 bytes in decoded form)
225258
*
@@ -336,6 +369,8 @@ public boolean equals(Object o) {
336369
&& Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse)
337370
&& Objects.equals(this.xid, threeDSecureData.xid)
338371
&& Objects.equals(this.cavv, threeDSecureData.cavv)
372+
&& Objects.equals(this.tavv, threeDSecureData.tavv)
373+
&& Objects.equals(this.tokenAuthenticationVerificationValue, threeDSecureData.tokenAuthenticationVerificationValue)
339374
&& Objects.equals(this.eci, threeDSecureData.eci)
340375
&& Objects.equals(this.dsTransID, threeDSecureData.dsTransID)
341376
&& Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel)
@@ -345,7 +380,7 @@ public boolean equals(Object o) {
345380

346381
@Override
347382
public int hashCode() {
348-
return Objects.hash(cavvAlgorithm, directoryResponse, authenticationResponse, xid, cavv, eci, dsTransID, challengeCancel, riskScore, transStatusReason);
383+
return Objects.hash(cavvAlgorithm, directoryResponse, authenticationResponse, xid, cavv, tavv, tokenAuthenticationVerificationValue, eci, dsTransID, challengeCancel, riskScore, transStatusReason);
349384
}
350385

351386

@@ -359,6 +394,8 @@ public String toString() {
359394
sb.append(" authenticationResponse: ").append(toIndentedString(authenticationResponse)).append("\n");
360395
sb.append(" xid: ").append(toIndentedString(xid)).append("\n");
361396
sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n");
397+
sb.append(" tavv: ").append(toIndentedString(tavv)).append("\n");
398+
sb.append(" tokenAuthenticationVerificationValue: ").append(toIndentedString(tokenAuthenticationVerificationValue)).append("\n");
362399
sb.append(" eci: ").append(toIndentedString(eci)).append("\n");
363400
sb.append(" dsTransID: ").append(toIndentedString(dsTransID)).append("\n");
364401
sb.append(" challengeCancel").append(toIndentedString(challengeCancel)).append("\n");

src/main/java/com/adyen/model/marketpay/AccountEventContainer.java

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

src/main/java/com/adyen/model/marketpay/AccountHolderStatus.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
public class AccountHolderStatus {
4444
@SerializedName("events")
45-
private List<AccountEventContainer> events = null;
45+
private List<AccountEvent> events = null;
4646

4747
@SerializedName("payoutState")
4848
private AccountPayoutState payoutState = null;
@@ -105,14 +105,14 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException {
105105
@SerializedName("statusReason")
106106
private String statusReason = null;
107107

108-
public AccountHolderStatus events(List<AccountEventContainer> events) {
108+
public AccountHolderStatus events(List<AccountEvent> events) {
109109
this.events = events;
110110
return this;
111111
}
112112

113-
public AccountHolderStatus addEventsItem(AccountEventContainer eventsItem) {
113+
public AccountHolderStatus addEventsItem(AccountEvent eventsItem) {
114114
if (this.events == null) {
115-
this.events = new ArrayList<AccountEventContainer>();
115+
this.events = new ArrayList<AccountEvent>();
116116
}
117117
this.events.add(eventsItem);
118118
return this;
@@ -123,11 +123,11 @@ public AccountHolderStatus addEventsItem(AccountEventContainer eventsItem) {
123123
*
124124
* @return events
125125
**/
126-
public List<AccountEventContainer> getEvents() {
126+
public List<AccountEvent> getEvents() {
127127
return events;
128128
}
129129

130-
public void setEvents(List<AccountEventContainer> events) {
130+
public void setEvents(List<AccountEvent> events) {
131131
this.events = events;
132132
}
133133

src/main/java/com/adyen/model/marketpay/BusinessDetails.java

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public class BusinessDetails {
6363
@SerializedName("taxId")
6464
private String taxId = null;
6565

66+
@SerializedName("listedUltimateParentCompany")
67+
private List<UltimateParentCompany> listedUltimateParentCompany = null;
68+
6669
public BusinessDetails doingBusinessAs(String doingBusinessAs) {
6770
this.doingBusinessAs = doingBusinessAs;
6871
return this;
@@ -259,6 +262,32 @@ public void setStockTicker(String stockTicker) {
259262
this.stockTicker = stockTicker;
260263
}
261264

265+
/**
266+
* Information about the parent public company. Required if the account holder is 100% owned by a publicly listed
267+
* company.
268+
*
269+
* @return listedUltimateParentCompany
270+
*/
271+
public List<UltimateParentCompany> getListedUltimateParentCompany() {
272+
return listedUltimateParentCompany;
273+
}
274+
275+
public void setListedUltimateParentCompany(List<UltimateParentCompany> listedUltimateParentCompany) {
276+
this.listedUltimateParentCompany = listedUltimateParentCompany;
277+
}
278+
279+
public BusinessDetails listedUltimateParentCompany(List<UltimateParentCompany> listedUltimateParentCompany) {
280+
this.listedUltimateParentCompany = listedUltimateParentCompany;
281+
return this;
282+
}
283+
284+
public BusinessDetails addListedUltimateParentCompanyItem(UltimateParentCompany listedUltimateParentCompanyItem) {
285+
if (this.listedUltimateParentCompany == null) {
286+
this.listedUltimateParentCompany = new ArrayList<>();
287+
}
288+
this.listedUltimateParentCompany.add(listedUltimateParentCompanyItem);
289+
return this;
290+
}
262291

263292
@Override
264293
public boolean equals(Object o) {
@@ -278,12 +307,13 @@ public boolean equals(Object o) {
278307
Objects.equals(this.stockExchange, businessDetails.stockExchange) &&
279308
Objects.equals(this.stockNumber, businessDetails.stockNumber) &&
280309
Objects.equals(this.stockTicker, businessDetails.stockTicker) &&
281-
Objects.equals(this.taxId, businessDetails.taxId);
310+
Objects.equals(this.taxId, businessDetails.taxId) &&
311+
Objects.equals(this.listedUltimateParentCompany, businessDetails.listedUltimateParentCompany);
282312
}
283313

284314
@Override
285315
public int hashCode() {
286-
return Objects.hash(doingBusinessAs, incorporatedAt, legalBusinessName, registrationNumber, shareholders, signatories, stockExchange, stockNumber, stockTicker, taxId);
316+
return Objects.hash(doingBusinessAs, incorporatedAt, legalBusinessName, registrationNumber, shareholders, signatories, stockExchange, stockNumber, stockTicker, taxId, listedUltimateParentCompany);
287317
}
288318

289319

@@ -302,6 +332,7 @@ public String toString() {
302332
sb.append(" stockNumber: ").append(toIndentedString(stockNumber)).append("\n");
303333
sb.append(" stockTicker: ").append(toIndentedString(stockTicker)).append("\n");
304334
sb.append(" taxId: ").append(toIndentedString(taxId)).append("\n");
335+
sb.append(" listedUltimateParentCompany: ").append(toIndentedString(listedUltimateParentCompany)).append("\n");
305336
sb.append("}");
306337
return sb.toString();
307338
}

0 commit comments

Comments
 (0)