Skip to content

Commit fc90f7c

Browse files
authored
OpenAPI v7 Generation (#1451)
* Generate Configuration webhooks * Generate LEM * Generate Payments (classic) * Revert "Generate Configuration webhooks" This reverts commit 49fff2a. * Update Configuration webhooks * Generate Transaction webhooks * Generate Transfers
1 parent 645ee9d commit fc90f7c

File tree

290 files changed

+5531
-7683
lines changed

Some content is hidden

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

290 files changed

+5531
-7683
lines changed

Diff for: src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java

+2
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ public enum ReasonEnum {
186186
ERROR("error"),
187187

188188
NOTENOUGHBALANCE("notEnoughBalance"),
189+
190+
PENDING("pending"),
189191

190192
PENDINGAPPROVAL("pendingApproval"),
191193

Diff for: src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java

+6-11
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
package com.adyen.model.legalentitymanagement;
1414

1515
import java.util.Objects;
16-
import java.util.Arrays;
1716
import java.util.Map;
1817
import java.util.HashMap;
1918
import com.fasterxml.jackson.annotation.JsonInclude;
2019
import com.fasterxml.jackson.annotation.JsonProperty;
2120
import com.fasterxml.jackson.annotation.JsonCreator;
2221
import com.fasterxml.jackson.annotation.JsonTypeName;
2322
import com.fasterxml.jackson.annotation.JsonValue;
24-
import io.swagger.annotations.ApiModel;
25-
import io.swagger.annotations.ApiModelProperty;
23+
import java.util.Arrays;
2624
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2725
import com.fasterxml.jackson.core.JsonProcessingException;
2826

@@ -47,7 +45,7 @@ public class AULocalAccountIdentification {
4745
* **auLocal**
4846
*/
4947
public enum TypeEnum {
50-
AULOCAL("auLocal");
48+
AULOCAL(String.valueOf("auLocal"));
5149

5250
private String value;
5351

@@ -77,7 +75,7 @@ public static TypeEnum fromValue(String value) {
7775
}
7876

7977
public static final String JSON_PROPERTY_TYPE = "type";
80-
private TypeEnum type;
78+
private TypeEnum type = TypeEnum.AULOCAL;
8179

8280
public AULocalAccountIdentification() {
8381
}
@@ -97,7 +95,6 @@ public AULocalAccountIdentification accountNumber(String accountNumber) {
9795
* The bank account number, without separators or whitespace.
9896
* @return accountNumber
9997
*/
100-
@ApiModelProperty(required = true, value = "The bank account number, without separators or whitespace.")
10198
@JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
10299
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103100
public String getAccountNumber() {
@@ -108,7 +105,7 @@ public String getAccountNumber() {
108105
* The bank account number, without separators or whitespace.
109106
*
110107
* @param accountNumber
111-
*/
108+
*/
112109
@JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
113110
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114111
public void setAccountNumber(String accountNumber) {
@@ -130,7 +127,6 @@ public AULocalAccountIdentification bsbCode(String bsbCode) {
130127
* The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.
131128
* @return bsbCode
132129
*/
133-
@ApiModelProperty(required = true, value = "The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.")
134130
@JsonProperty(JSON_PROPERTY_BSB_CODE)
135131
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
136132
public String getBsbCode() {
@@ -141,7 +137,7 @@ public String getBsbCode() {
141137
* The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.
142138
*
143139
* @param bsbCode
144-
*/
140+
*/
145141
@JsonProperty(JSON_PROPERTY_BSB_CODE)
146142
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147143
public void setBsbCode(String bsbCode) {
@@ -163,7 +159,6 @@ public AULocalAccountIdentification type(TypeEnum type) {
163159
* **auLocal**
164160
* @return type
165161
*/
166-
@ApiModelProperty(required = true, value = "**auLocal**")
167162
@JsonProperty(JSON_PROPERTY_TYPE)
168163
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
169164
public TypeEnum getType() {
@@ -174,7 +169,7 @@ public TypeEnum getType() {
174169
* **auLocal**
175170
*
176171
* @param type
177-
*/
172+
*/
178173
@JsonProperty(JSON_PROPERTY_TYPE)
179174
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180175
public void setType(TypeEnum type) {

Diff for: src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.adyen.model.legalentitymanagement;
1414

1515
import java.util.Objects;
16-
import java.lang.reflect.Type;
1716
import java.util.Map;
1817
import jakarta.ws.rs.core.GenericType;
1918

@@ -44,7 +43,7 @@ public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
4443
*
4544
* @return an instance of the actual schema/object
4645
*/
47-
public abstract Map<String, GenericType> getSchemas();
46+
public abstract Map<String, GenericType<?>> getSchemas();
4847

4948
/**
5049
* Get the actual instance
@@ -144,4 +143,4 @@ public Boolean isNullable() {
144143

145144

146145

147-
}
146+
}

Diff for: src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java

+3-7
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
package com.adyen.model.legalentitymanagement;
1414

1515
import java.util.Objects;
16-
import java.util.Arrays;
1716
import java.util.Map;
1817
import java.util.HashMap;
1918
import com.fasterxml.jackson.annotation.JsonInclude;
2019
import com.fasterxml.jackson.annotation.JsonProperty;
2120
import com.fasterxml.jackson.annotation.JsonCreator;
2221
import com.fasterxml.jackson.annotation.JsonTypeName;
2322
import com.fasterxml.jackson.annotation.JsonValue;
24-
import io.swagger.annotations.ApiModel;
25-
import io.swagger.annotations.ApiModelProperty;
23+
import java.util.Arrays;
2624
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2725
import com.fasterxml.jackson.core.JsonProcessingException;
2826

@@ -60,7 +58,6 @@ public AcceptTermsOfServiceRequest acceptedBy(String acceptedBy) {
6058
* The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian.
6159
* @return acceptedBy
6260
*/
63-
@ApiModelProperty(required = true, value = "The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. ")
6461
@JsonProperty(JSON_PROPERTY_ACCEPTED_BY)
6562
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
6663
public String getAcceptedBy() {
@@ -71,7 +68,7 @@ public String getAcceptedBy() {
7168
* The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian.
7269
*
7370
* @param acceptedBy
74-
*/
71+
*/
7572
@JsonProperty(JSON_PROPERTY_ACCEPTED_BY)
7673
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
7774
public void setAcceptedBy(String acceptedBy) {
@@ -93,7 +90,6 @@ public AcceptTermsOfServiceRequest ipAddress(String ipAddress) {
9390
* The IP address of the user accepting the Terms of Service.
9491
* @return ipAddress
9592
*/
96-
@ApiModelProperty(value = "The IP address of the user accepting the Terms of Service.")
9793
@JsonProperty(JSON_PROPERTY_IP_ADDRESS)
9894
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9995
public String getIpAddress() {
@@ -104,7 +100,7 @@ public String getIpAddress() {
104100
* The IP address of the user accepting the Terms of Service.
105101
*
106102
* @param ipAddress
107-
*/
103+
*/
108104
@JsonProperty(JSON_PROPERTY_IP_ADDRESS)
109105
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110106
public void setIpAddress(String ipAddress) {

Diff for: src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java

+16-24
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
package com.adyen.model.legalentitymanagement;
1414

1515
import java.util.Objects;
16-
import java.util.Arrays;
1716
import java.util.Map;
1817
import java.util.HashMap;
1918
import com.fasterxml.jackson.annotation.JsonInclude;
2019
import com.fasterxml.jackson.annotation.JsonProperty;
2120
import com.fasterxml.jackson.annotation.JsonCreator;
2221
import com.fasterxml.jackson.annotation.JsonTypeName;
2322
import com.fasterxml.jackson.annotation.JsonValue;
24-
import io.swagger.annotations.ApiModel;
25-
import io.swagger.annotations.ApiModelProperty;
23+
import java.util.Arrays;
2624
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2725
import com.fasterxml.jackson.core.JsonProcessingException;
2826

@@ -59,23 +57,23 @@ public class AcceptTermsOfServiceResponse {
5957
* The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard**
6058
*/
6159
public enum TypeEnum {
62-
ADYENACCOUNT("adyenAccount"),
60+
ADYENACCOUNT(String.valueOf("adyenAccount")),
6361

64-
ADYENCAPITAL("adyenCapital"),
62+
ADYENCAPITAL(String.valueOf("adyenCapital")),
6563

66-
ADYENCARD("adyenCard"),
64+
ADYENCARD(String.valueOf("adyenCard")),
6765

68-
ADYENCHARGECARD("adyenChargeCard"),
66+
ADYENCHARGECARD(String.valueOf("adyenChargeCard")),
6967

70-
ADYENFORPLATFORMSADVANCED("adyenForPlatformsAdvanced"),
68+
ADYENFORPLATFORMSADVANCED(String.valueOf("adyenForPlatformsAdvanced")),
7169

72-
ADYENFORPLATFORMSMANAGE("adyenForPlatformsManage"),
70+
ADYENFORPLATFORMSMANAGE(String.valueOf("adyenForPlatformsManage")),
7371

74-
ADYENFRANCHISEE("adyenFranchisee"),
72+
ADYENFRANCHISEE(String.valueOf("adyenFranchisee")),
7573

76-
ADYENISSUING("adyenIssuing"),
74+
ADYENISSUING(String.valueOf("adyenIssuing")),
7775

78-
ADYENPCCR("adyenPccr");
76+
ADYENPCCR(String.valueOf("adyenPccr"));
7977

8078
private String value;
8179

@@ -125,7 +123,6 @@ public AcceptTermsOfServiceResponse acceptedBy(String acceptedBy) {
125123
* The unique identifier of the user that accepted the Terms of Service.
126124
* @return acceptedBy
127125
*/
128-
@ApiModelProperty(value = "The unique identifier of the user that accepted the Terms of Service.")
129126
@JsonProperty(JSON_PROPERTY_ACCEPTED_BY)
130127
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131128
public String getAcceptedBy() {
@@ -136,7 +133,7 @@ public String getAcceptedBy() {
136133
* The unique identifier of the user that accepted the Terms of Service.
137134
*
138135
* @param acceptedBy
139-
*/
136+
*/
140137
@JsonProperty(JSON_PROPERTY_ACCEPTED_BY)
141138
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
142139
public void setAcceptedBy(String acceptedBy) {
@@ -158,7 +155,6 @@ public AcceptTermsOfServiceResponse id(String id) {
158155
* The unique identifier of the Terms of Service acceptance.
159156
* @return id
160157
*/
161-
@ApiModelProperty(value = "The unique identifier of the Terms of Service acceptance.")
162158
@JsonProperty(JSON_PROPERTY_ID)
163159
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164160
public String getId() {
@@ -169,7 +165,7 @@ public String getId() {
169165
* The unique identifier of the Terms of Service acceptance.
170166
*
171167
* @param id
172-
*/
168+
*/
173169
@JsonProperty(JSON_PROPERTY_ID)
174170
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
175171
public void setId(String id) {
@@ -191,7 +187,6 @@ public AcceptTermsOfServiceResponse ipAddress(String ipAddress) {
191187
* The IP address of the user that accepted the Terms of Service.
192188
* @return ipAddress
193189
*/
194-
@ApiModelProperty(value = "The IP address of the user that accepted the Terms of Service.")
195190
@JsonProperty(JSON_PROPERTY_IP_ADDRESS)
196191
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197192
public String getIpAddress() {
@@ -202,7 +197,7 @@ public String getIpAddress() {
202197
* The IP address of the user that accepted the Terms of Service.
203198
*
204199
* @param ipAddress
205-
*/
200+
*/
206201
@JsonProperty(JSON_PROPERTY_IP_ADDRESS)
207202
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
208203
public void setIpAddress(String ipAddress) {
@@ -224,7 +219,6 @@ public AcceptTermsOfServiceResponse language(String language) {
224219
* The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.
225220
* @return language
226221
*/
227-
@ApiModelProperty(value = "The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.")
228222
@JsonProperty(JSON_PROPERTY_LANGUAGE)
229223
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230224
public String getLanguage() {
@@ -235,7 +229,7 @@ public String getLanguage() {
235229
* The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.
236230
*
237231
* @param language
238-
*/
232+
*/
239233
@JsonProperty(JSON_PROPERTY_LANGUAGE)
240234
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
241235
public void setLanguage(String language) {
@@ -257,7 +251,6 @@ public AcceptTermsOfServiceResponse termsOfServiceDocumentId(String termsOfServi
257251
* The unique identifier of the Terms of Service document.
258252
* @return termsOfServiceDocumentId
259253
*/
260-
@ApiModelProperty(value = "The unique identifier of the Terms of Service document.")
261254
@JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID)
262255
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
263256
public String getTermsOfServiceDocumentId() {
@@ -268,7 +261,7 @@ public String getTermsOfServiceDocumentId() {
268261
* The unique identifier of the Terms of Service document.
269262
*
270263
* @param termsOfServiceDocumentId
271-
*/
264+
*/
272265
@JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID)
273266
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
274267
public void setTermsOfServiceDocumentId(String termsOfServiceDocumentId) {
@@ -290,7 +283,6 @@ public AcceptTermsOfServiceResponse type(TypeEnum type) {
290283
* The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard**
291284
* @return type
292285
*/
293-
@ApiModelProperty(value = "The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** ")
294286
@JsonProperty(JSON_PROPERTY_TYPE)
295287
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
296288
public TypeEnum getType() {
@@ -301,7 +293,7 @@ public TypeEnum getType() {
301293
* The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard**
302294
*
303295
* @param type
304-
*/
296+
*/
305297
@JsonProperty(JSON_PROPERTY_TYPE)
306298
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
307299
public void setType(TypeEnum type) {

Diff for: src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java

+5-9
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
package com.adyen.model.legalentitymanagement;
1414

1515
import java.util.Objects;
16-
import java.util.Arrays;
1716
import java.util.Map;
1817
import java.util.HashMap;
1918
import com.fasterxml.jackson.annotation.JsonInclude;
2019
import com.fasterxml.jackson.annotation.JsonProperty;
2120
import com.fasterxml.jackson.annotation.JsonCreator;
2221
import com.fasterxml.jackson.annotation.JsonTypeName;
2322
import com.fasterxml.jackson.annotation.JsonValue;
24-
import io.swagger.annotations.ApiModel;
25-
import io.swagger.annotations.ApiModelProperty;
23+
import java.util.Arrays;
2624
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2725
import com.fasterxml.jackson.core.JsonProcessingException;
2826

@@ -43,9 +41,9 @@ public class AdditionalBankIdentification {
4341
* The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.
4442
*/
4543
public enum TypeEnum {
46-
GBSORTCODE("gbSortCode"),
44+
GBSORTCODE(String.valueOf("gbSortCode")),
4745

48-
USROUTINGNUMBER("usRoutingNumber");
46+
USROUTINGNUMBER(String.valueOf("usRoutingNumber"));
4947

5048
private String value;
5149

@@ -95,7 +93,6 @@ public AdditionalBankIdentification code(String code) {
9593
* The value of the additional bank identification.
9694
* @return code
9795
*/
98-
@ApiModelProperty(value = "The value of the additional bank identification.")
9996
@JsonProperty(JSON_PROPERTY_CODE)
10097
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
10198
public String getCode() {
@@ -106,7 +103,7 @@ public String getCode() {
106103
* The value of the additional bank identification.
107104
*
108105
* @param code
109-
*/
106+
*/
110107
@JsonProperty(JSON_PROPERTY_CODE)
111108
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
112109
public void setCode(String code) {
@@ -128,7 +125,6 @@ public AdditionalBankIdentification type(TypeEnum type) {
128125
* The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.
129126
* @return type
130127
*/
131-
@ApiModelProperty(value = "The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.")
132128
@JsonProperty(JSON_PROPERTY_TYPE)
133129
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134130
public TypeEnum getType() {
@@ -139,7 +135,7 @@ public TypeEnum getType() {
139135
* The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.
140136
*
141137
* @param type
142-
*/
138+
*/
143139
@JsonProperty(JSON_PROPERTY_TYPE)
144140
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145141
public void setType(TypeEnum type) {

0 commit comments

Comments
 (0)