Skip to content

Commit 266db2e

Browse files
Code generation: update services and models (#1426)
* false[adyen-sdk-automation] automated change * removed redundant SurchargeType assertion --------- Co-authored-by: Djoyke Reijans <[email protected]>
1 parent fbf69ac commit 266db2e

29 files changed

+2152
-423
lines changed

Diff for: src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java

+10-6
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@
4242

4343
public class ChallengeInfo {
4444
/**
45-
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
45+
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key &#x60;challengeCancel&#x60;. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK.
4646
*/
4747
public enum ChallengeCancelEnum {
48+
_00("00"),
49+
4850
_01("01"),
4951

5052
_02("02"),
@@ -57,7 +59,9 @@ public enum ChallengeCancelEnum {
5759

5860
_06("06"),
5961

60-
_07("07");
62+
_07("07"),
63+
64+
_08("08");
6165

6266
private String value;
6367

@@ -143,7 +147,7 @@ public ChallengeInfo() {
143147
}
144148

145149
/**
146-
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
150+
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key &#x60;challengeCancel&#x60;. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK.
147151
*
148152
* @param challengeCancel
149153
* @return the current {@code ChallengeInfo} instance, allowing for method chaining
@@ -154,18 +158,18 @@ public ChallengeInfo challengeCancel(ChallengeCancelEnum challengeCancel) {
154158
}
155159

156160
/**
157-
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
161+
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key &#x60;challengeCancel&#x60;. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK.
158162
* @return challengeCancel
159163
*/
160-
@ApiModelProperty(value = "Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).")
164+
@ApiModelProperty(value = "Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK.")
161165
@JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL)
162166
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
163167
public ChallengeCancelEnum getChallengeCancel() {
164168
return challengeCancel;
165169
}
166170

167171
/**
168-
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
172+
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key &#x60;challengeCancel&#x60;. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK.
169173
*
170174
* @param challengeCancel
171175
*/

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class AccountHolder {
8686
private String reference;
8787

8888
/**
89-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
89+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
9090
*/
9191
public enum StatusEnum {
9292
ACTIVE("active"),
@@ -490,7 +490,7 @@ public void setReference(String reference) {
490490
}
491491

492492
/**
493-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
493+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
494494
*
495495
* @param status
496496
* @return the current {@code AccountHolder} instance, allowing for method chaining
@@ -501,18 +501,18 @@ public AccountHolder status(StatusEnum status) {
501501
}
502502

503503
/**
504-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
504+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
505505
* @return status
506506
*/
507-
@ApiModelProperty(value = "The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.")
507+
@ApiModelProperty(value = "The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.")
508508
@JsonProperty(JSON_PROPERTY_STATUS)
509509
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
510510
public StatusEnum getStatus() {
511511
return status;
512512
}
513513

514514
/**
515-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
515+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
516516
*
517517
* @param status
518518
*/

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class AccountHolderUpdateRequest {
7878
private String reference;
7979

8080
/**
81-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
81+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
8282
*/
8383
public enum StatusEnum {
8484
ACTIVE("active"),
@@ -416,7 +416,7 @@ public void setReference(String reference) {
416416
}
417417

418418
/**
419-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
419+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
420420
*
421421
* @param status
422422
* @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining
@@ -427,18 +427,18 @@ public AccountHolderUpdateRequest status(StatusEnum status) {
427427
}
428428

429429
/**
430-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
430+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
431431
* @return status
432432
*/
433-
@ApiModelProperty(value = "The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.")
433+
@ApiModelProperty(value = "The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.")
434434
@JsonProperty(JSON_PROPERTY_STATUS)
435435
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
436436
public StatusEnum getStatus() {
437437
return status;
438438
}
439439

440440
/**
441-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
441+
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
442442
*
443443
* @param status
444444
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
/*
2+
* Configuration API
3+
*
4+
* The version of the OpenAPI document: 2
5+
*
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
13+
package com.adyen.model.balanceplatform;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import java.util.Map;
18+
import java.util.HashMap;
19+
import com.fasterxml.jackson.annotation.JsonInclude;
20+
import com.fasterxml.jackson.annotation.JsonProperty;
21+
import com.fasterxml.jackson.annotation.JsonCreator;
22+
import com.fasterxml.jackson.annotation.JsonTypeName;
23+
import com.fasterxml.jackson.annotation.JsonValue;
24+
import io.swagger.annotations.ApiModel;
25+
import io.swagger.annotations.ApiModelProperty;
26+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27+
import com.fasterxml.jackson.core.JsonProcessingException;
28+
29+
30+
/**
31+
* AssociationDelegatedAuthenticationData
32+
*/
33+
@JsonPropertyOrder({
34+
AssociationDelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT
35+
})
36+
37+
public class AssociationDelegatedAuthenticationData {
38+
public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput";
39+
private String sdkOutput;
40+
41+
public AssociationDelegatedAuthenticationData() {
42+
}
43+
44+
/**
45+
* A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.
46+
*
47+
* @param sdkOutput
48+
* @return the current {@code AssociationDelegatedAuthenticationData} instance, allowing for method chaining
49+
*/
50+
public AssociationDelegatedAuthenticationData sdkOutput(String sdkOutput) {
51+
this.sdkOutput = sdkOutput;
52+
return this;
53+
}
54+
55+
/**
56+
* A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.
57+
* @return sdkOutput
58+
*/
59+
@ApiModelProperty(required = true, value = "A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.")
60+
@JsonProperty(JSON_PROPERTY_SDK_OUTPUT)
61+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
62+
public String getSdkOutput() {
63+
return sdkOutput;
64+
}
65+
66+
/**
67+
* A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.
68+
*
69+
* @param sdkOutput
70+
*/
71+
@JsonProperty(JSON_PROPERTY_SDK_OUTPUT)
72+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73+
public void setSdkOutput(String sdkOutput) {
74+
this.sdkOutput = sdkOutput;
75+
}
76+
77+
/**
78+
* Return true if this AssociationDelegatedAuthenticationData object is equal to o.
79+
*/
80+
@Override
81+
public boolean equals(Object o) {
82+
if (this == o) {
83+
return true;
84+
}
85+
if (o == null || getClass() != o.getClass()) {
86+
return false;
87+
}
88+
AssociationDelegatedAuthenticationData associationDelegatedAuthenticationData = (AssociationDelegatedAuthenticationData) o;
89+
return Objects.equals(this.sdkOutput, associationDelegatedAuthenticationData.sdkOutput);
90+
}
91+
92+
@Override
93+
public int hashCode() {
94+
return Objects.hash(sdkOutput);
95+
}
96+
97+
@Override
98+
public String toString() {
99+
StringBuilder sb = new StringBuilder();
100+
sb.append("class AssociationDelegatedAuthenticationData {\n");
101+
sb.append(" sdkOutput: ").append(toIndentedString(sdkOutput)).append("\n");
102+
sb.append("}");
103+
return sb.toString();
104+
}
105+
106+
/**
107+
* Convert the given object to string with each line indented by 4 spaces
108+
* (except the first line).
109+
*/
110+
private String toIndentedString(Object o) {
111+
if (o == null) {
112+
return "null";
113+
}
114+
return o.toString().replace("\n", "\n ");
115+
}
116+
117+
/**
118+
* Create an instance of AssociationDelegatedAuthenticationData given an JSON string
119+
*
120+
* @param jsonString JSON string
121+
* @return An instance of AssociationDelegatedAuthenticationData
122+
* @throws JsonProcessingException if the JSON string is invalid with respect to AssociationDelegatedAuthenticationData
123+
*/
124+
public static AssociationDelegatedAuthenticationData fromJson(String jsonString) throws JsonProcessingException {
125+
return JSON.getMapper().readValue(jsonString, AssociationDelegatedAuthenticationData.class);
126+
}
127+
/**
128+
* Convert an instance of AssociationDelegatedAuthenticationData to an JSON string
129+
*
130+
* @return JSON string
131+
*/
132+
public String toJson() throws JsonProcessingException {
133+
return JSON.getMapper().writeValueAsString(this);
134+
}
135+
}

0 commit comments

Comments
 (0)