Skip to content

Commit d8c4f2d

Browse files
authored
Merge pull request #403 from Adyen/develop
Release 8.2.0
2 parents b30013e + 70c3a12 commit d8c4f2d

File tree

9 files changed

+449
-4
lines changed

9 files changed

+449
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Add this dependency to your project's POM:
3939
<dependency>
4040
<groupId>com.adyen</groupId>
4141
<artifactId>adyen-java-api-library</artifactId>
42-
<version>8.1.0</version>
42+
<version>8.2.0</version>
4343
</dependency>
4444
```
4545

pom.xml

Lines changed: 2 additions & 2 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>8.1.0</version>
7+
<version>8.2.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>
@@ -184,7 +184,7 @@
184184
<dependency>
185185
<groupId>org.mockito</groupId>
186186
<artifactId>mockito-core</artifactId>
187-
<version>3.4.6</version>
187+
<version>3.5.7</version>
188188
<scope>test</scope>
189189
</dependency>
190190
</dependencies>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public class Client {
4343
public static final String MARKETPAY_ACCOUNT_API_VERSION = "v5";
4444
public static final String MARKETPAY_FUND_API_VERSION = "v5";
4545
public static final String MARKETPAY_NOTIFICATION_API_VERSION = "v1";
46+
public static final String MARKETPAY_HOP_API_VERSION = "v6";
4647
public static final String LIB_NAME = "adyen-java-api-library";
47-
public static final String LIB_VERSION = "8.1.0";
48+
public static final String LIB_VERSION = "8.2.0";
4849
public static final String CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout";
4950
public static final String CHECKOUT_ENDPOINT_LIVE_SUFFIX = "-checkout-live.adyenpayments.com/checkout";
5051
public static final String CHECKOUT_API_VERSION = "v52";
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
/*
2+
* ######
3+
* ######
4+
* ############ ####( ###### #####. ###### ############ ############
5+
* ############# #####( ###### #####. ###### ############# #############
6+
* ###### #####( ###### #####. ###### ##### ###### ##### ######
7+
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
8+
* ###### ###### #####( ###### #####. ###### ##### ##### ######
9+
* ############# ############# ############# ############# ##### ######
10+
* ############ ############ ############# ############ ##### ######
11+
* ######
12+
* #############
13+
* ############
14+
*
15+
* Adyen Java API Library
16+
*
17+
* Copyright (c) 2020 Adyen B.V.
18+
* This file is open source and available under the MIT license.
19+
* See the LICENSE file for more info.
20+
*/
21+
22+
package com.adyen.model.hop;
23+
24+
import java.util.Objects;
25+
26+
import com.google.gson.annotations.SerializedName;
27+
28+
/**
29+
* GetOnboardingUrlRequest
30+
*/
31+
32+
public class GetOnboardingUrlRequest {
33+
@SerializedName("accountHolderCode")
34+
private String accountHolderCode = null;
35+
36+
@SerializedName("editMode")
37+
private Boolean editMode = null;
38+
39+
@SerializedName("platformName")
40+
private String platformName = null;
41+
42+
@SerializedName("returnUrl")
43+
private String returnUrl = null;
44+
45+
public GetOnboardingUrlRequest accountHolderCode(String accountHolderCode) {
46+
this.accountHolderCode = accountHolderCode;
47+
return this;
48+
}
49+
50+
/**
51+
* The account holder code you provided when you created the account holder.
52+
*
53+
* @return accountHolderCode
54+
**/
55+
public String getAccountHolderCode() {
56+
return accountHolderCode;
57+
}
58+
59+
public void setAccountHolderCode(String accountHolderCode) {
60+
this.accountHolderCode = accountHolderCode;
61+
}
62+
63+
public GetOnboardingUrlRequest editMode(Boolean editMode) {
64+
this.editMode = editMode;
65+
return this;
66+
}
67+
68+
/**
69+
* Allows editing checks even if all the checks have passed.
70+
*
71+
* @return editMode
72+
**/
73+
public Boolean isEditMode() {
74+
return editMode;
75+
}
76+
77+
public void setEditMode(Boolean editMode) {
78+
this.editMode = editMode;
79+
}
80+
81+
public GetOnboardingUrlRequest platformName(String platformName) {
82+
this.platformName = platformName;
83+
return this;
84+
}
85+
86+
/**
87+
* The platform name which will show up in the welcome page.
88+
*
89+
* @return platformName
90+
**/
91+
public String getPlatformName() {
92+
return platformName;
93+
}
94+
95+
public void setPlatformName(String platformName) {
96+
this.platformName = platformName;
97+
}
98+
99+
public GetOnboardingUrlRequest returnUrl(String returnUrl) {
100+
this.returnUrl = returnUrl;
101+
return this;
102+
}
103+
104+
/**
105+
* The URL where the sub-merchant will be redirected back to after they complete the onboarding, or if their session times out. Maximum length of 500 characters. If you don&#x27;t provide this, the sub-merchant will be redirected back to the default return URL configured in your platform account.
106+
*
107+
* @return returnUrl
108+
**/
109+
public String getReturnUrl() {
110+
return returnUrl;
111+
}
112+
113+
public void setReturnUrl(String returnUrl) {
114+
this.returnUrl = returnUrl;
115+
}
116+
117+
118+
@Override
119+
public boolean equals(Object o) {
120+
if (this == o) {
121+
return true;
122+
}
123+
if (o == null || getClass() != o.getClass()) {
124+
return false;
125+
}
126+
GetOnboardingUrlRequest getOnboardingUrlRequest = (GetOnboardingUrlRequest) o;
127+
return Objects.equals(this.accountHolderCode, getOnboardingUrlRequest.accountHolderCode) &&
128+
Objects.equals(this.editMode, getOnboardingUrlRequest.editMode) &&
129+
Objects.equals(this.platformName, getOnboardingUrlRequest.platformName) &&
130+
Objects.equals(this.returnUrl, getOnboardingUrlRequest.returnUrl);
131+
}
132+
133+
@Override
134+
public int hashCode() {
135+
return Objects.hash(accountHolderCode, editMode, platformName, returnUrl);
136+
}
137+
138+
139+
@Override
140+
public String toString() {
141+
StringBuilder sb = new StringBuilder();
142+
sb.append("class GetOnboardingUrlRequest {\n");
143+
144+
sb.append(" accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
145+
sb.append(" editMode: ").append(toIndentedString(editMode)).append("\n");
146+
sb.append(" platformName: ").append(toIndentedString(platformName)).append("\n");
147+
sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n");
148+
sb.append("}");
149+
return sb.toString();
150+
}
151+
152+
/**
153+
* Convert the given object to string with each line indented by 4 spaces
154+
* (except the first line).
155+
*/
156+
private String toIndentedString(Object o) {
157+
if (o == null) {
158+
return "null";
159+
}
160+
return o.toString().replace("\n", "\n ");
161+
}
162+
163+
}
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
/*
2+
* ######
3+
* ######
4+
* ############ ####( ###### #####. ###### ############ ############
5+
* ############# #####( ###### #####. ###### ############# #############
6+
* ###### #####( ###### #####. ###### ##### ###### ##### ######
7+
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
8+
* ###### ###### #####( ###### #####. ###### ##### ##### ######
9+
* ############# ############# ############# ############# ##### ######
10+
* ############ ############ ############# ############ ##### ######
11+
* ######
12+
* #############
13+
* ############
14+
*
15+
* Adyen Java API Library
16+
*
17+
* Copyright (c) 2020 Adyen B.V.
18+
* This file is open source and available under the MIT license.
19+
* See the LICENSE file for more info.
20+
*/
21+
22+
package com.adyen.model.hop;
23+
24+
import java.util.ArrayList;
25+
import java.util.List;
26+
import java.util.Objects;
27+
28+
import com.adyen.model.marketpay.ErrorFieldType;
29+
import com.google.gson.annotations.SerializedName;
30+
31+
/**
32+
* GetOnboardingUrlResponse
33+
*/
34+
35+
public class GetOnboardingUrlResponse {
36+
@SerializedName("invalidFields")
37+
private List<ErrorFieldType> invalidFields = null;
38+
39+
@SerializedName("pspReference")
40+
private String pspReference = null;
41+
42+
@SerializedName("redirectUrl")
43+
private String redirectUrl = null;
44+
45+
@SerializedName("resultCode")
46+
private String resultCode = null;
47+
48+
public GetOnboardingUrlResponse invalidFields(List<ErrorFieldType> invalidFields) {
49+
this.invalidFields = invalidFields;
50+
return this;
51+
}
52+
53+
public GetOnboardingUrlResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
54+
if (this.invalidFields == null) {
55+
this.invalidFields = new ArrayList<ErrorFieldType>();
56+
}
57+
this.invalidFields.add(invalidFieldsItem);
58+
return this;
59+
}
60+
61+
/**
62+
* Contains field validation errors that would prevent requests from being processed.
63+
*
64+
* @return invalidFields
65+
**/
66+
public List<ErrorFieldType> getInvalidFields() {
67+
return invalidFields;
68+
}
69+
70+
public void setInvalidFields(List<ErrorFieldType> invalidFields) {
71+
this.invalidFields = invalidFields;
72+
}
73+
74+
public GetOnboardingUrlResponse pspReference(String pspReference) {
75+
this.pspReference = pspReference;
76+
return this;
77+
}
78+
79+
/**
80+
* The reference of a request. Can be used to uniquely identify the request.
81+
*
82+
* @return pspReference
83+
**/
84+
public String getPspReference() {
85+
return pspReference;
86+
}
87+
88+
public void setPspReference(String pspReference) {
89+
this.pspReference = pspReference;
90+
}
91+
92+
public GetOnboardingUrlResponse redirectUrl(String redirectUrl) {
93+
this.redirectUrl = redirectUrl;
94+
return this;
95+
}
96+
97+
/**
98+
* The URL to the Hosted Onboarding Page where you should redirect your sub-merchant. This URL must be used within 15 seconds and can only be used once.
99+
*
100+
* @return redirectUrl
101+
**/
102+
public String getRedirectUrl() {
103+
return redirectUrl;
104+
}
105+
106+
public void setRedirectUrl(String redirectUrl) {
107+
this.redirectUrl = redirectUrl;
108+
}
109+
110+
public GetOnboardingUrlResponse resultCode(String resultCode) {
111+
this.resultCode = resultCode;
112+
return this;
113+
}
114+
115+
/**
116+
* The result code.
117+
*
118+
* @return resultCode
119+
**/
120+
public String getResultCode() {
121+
return resultCode;
122+
}
123+
124+
public void setResultCode(String resultCode) {
125+
this.resultCode = resultCode;
126+
}
127+
128+
129+
@Override
130+
public boolean equals(Object o) {
131+
if (this == o) {
132+
return true;
133+
}
134+
if (o == null || getClass() != o.getClass()) {
135+
return false;
136+
}
137+
GetOnboardingUrlResponse getOnboardingUrlResponse = (GetOnboardingUrlResponse) o;
138+
return Objects.equals(this.invalidFields, getOnboardingUrlResponse.invalidFields) &&
139+
Objects.equals(this.pspReference, getOnboardingUrlResponse.pspReference) &&
140+
Objects.equals(this.redirectUrl, getOnboardingUrlResponse.redirectUrl) &&
141+
Objects.equals(this.resultCode, getOnboardingUrlResponse.resultCode);
142+
}
143+
144+
@Override
145+
public int hashCode() {
146+
return Objects.hash(invalidFields, pspReference, redirectUrl, resultCode);
147+
}
148+
149+
150+
@Override
151+
public String toString() {
152+
StringBuilder sb = new StringBuilder();
153+
sb.append("class GetOnboardingUrlResponse {\n");
154+
155+
sb.append(" invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
156+
sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n");
157+
sb.append(" redirectUrl: ").append(toIndentedString(redirectUrl)).append("\n");
158+
sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n");
159+
sb.append("}");
160+
return sb.toString();
161+
}
162+
163+
/**
164+
* Convert the given object to string with each line indented by 4 spaces
165+
* (except the first line).
166+
*/
167+
private String toIndentedString(Object o) {
168+
if (o == null) {
169+
return "null";
170+
}
171+
return o.toString().replace("\n", "\n ");
172+
}
173+
174+
}

0 commit comments

Comments
 (0)