Skip to content

Commit 645ee9d

Browse files
authored
Checkout API code generation: RakutenPay (#1450)
* Add RakutenPay * Generate models from spec
1 parent c8dd7b4 commit 645ee9d

File tree

208 files changed

+4932
-7170
lines changed

Some content is hidden

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

208 files changed

+4932
-7170
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.adyen.model.checkout;
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+
}

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

+58-85
Large diffs are not rendered by default.

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

+44-62
Large diffs are not rendered by default.

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

+101-43
Large diffs are not rendered by default.

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

+20-32
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
package com.adyen.model.checkout;
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

@@ -48,15 +46,15 @@ public class AdditionalData3DSecure {
4846
* Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen
4947
*/
5048
public enum ChallengeWindowSizeEnum {
51-
_01("01"),
49+
_01(String.valueOf("01")),
5250

53-
_02("02"),
51+
_02(String.valueOf("02")),
5452

55-
_03("03"),
53+
_03(String.valueOf("03")),
5654

57-
_04("04"),
55+
_04(String.valueOf("04")),
5856

59-
_05("05");
57+
_05(String.valueOf("05"));
6058

6159
private String value;
6260

@@ -113,7 +111,7 @@ public AdditionalData3DSecure() {
113111
* @deprecated since Adyen Checkout API v69
114112
* Use &#x60;authenticationData.threeDSRequestData.nativeThreeDS&#x60; instead.
115113
*/
116-
@Deprecated
114+
@Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead.
117115
public AdditionalData3DSecure allow3DS2(String allow3DS2) {
118116
this.allow3DS2 = allow3DS2;
119117
return this;
@@ -122,12 +120,9 @@ public AdditionalData3DSecure allow3DS2(String allow3DS2) {
122120
/**
123121
* Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using &#x60;/payments&#x60; endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). &gt; This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the &#x60;executeThreeD&#x60; parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper&#39;s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration.
124122
* @return allow3DS2
125-
*
126-
* @deprecated since Adyen Checkout API v69
127-
* Use &#x60;authenticationData.threeDSRequestData.nativeThreeDS&#x60; instead.
123+
* @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead.
128124
*/
129-
@Deprecated
130-
@ApiModelProperty(value = "Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. ")
125+
@Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead.
131126
@JsonProperty(JSON_PROPERTY_ALLOW3_D_S2)
132127
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
133128
public String getAllow3DS2() {
@@ -141,8 +136,8 @@ public String getAllow3DS2() {
141136
*
142137
* @deprecated since Adyen Checkout API v69
143138
* Use &#x60;authenticationData.threeDSRequestData.nativeThreeDS&#x60; instead.
144-
*/
145-
@Deprecated
139+
*/
140+
@Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead.
146141
@JsonProperty(JSON_PROPERTY_ALLOW3_D_S2)
147142
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148143
public void setAllow3DS2(String allow3DS2) {
@@ -164,7 +159,6 @@ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challe
164159
* Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen
165160
* @return challengeWindowSize
166161
*/
167-
@ApiModelProperty(value = "Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen")
168162
@JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE)
169163
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170164
public ChallengeWindowSizeEnum getChallengeWindowSize() {
@@ -175,7 +169,7 @@ public ChallengeWindowSizeEnum getChallengeWindowSize() {
175169
* Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen
176170
*
177171
* @param challengeWindowSize
178-
*/
172+
*/
179173
@JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE)
180174
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181175
public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) {
@@ -191,7 +185,7 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize)
191185
* @deprecated since Adyen Checkout API v69
192186
* Use [&#x60;authenticationData.attemptAuthentication&#x60;](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target&#x3D;_blank#request-authenticationData-attemptAuthentication) instead
193187
*/
194-
@Deprecated
188+
@Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead
195189
public AdditionalData3DSecure executeThreeD(String executeThreeD) {
196190
this.executeThreeD = executeThreeD;
197191
return this;
@@ -200,12 +194,9 @@ public AdditionalData3DSecure executeThreeD(String executeThreeD) {
200194
/**
201195
* Indicates if you want to perform 3D Secure authentication on a transaction. &gt; Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don&#39;t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations.
202196
* @return executeThreeD
203-
*
204-
* @deprecated since Adyen Checkout API v69
205-
* Use [&#x60;authenticationData.attemptAuthentication&#x60;](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target&#x3D;_blank#request-authenticationData-attemptAuthentication) instead
197+
* @deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead
206198
*/
207-
@Deprecated
208-
@ApiModelProperty(value = "Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. ")
199+
@Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead
209200
@JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D)
210201
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211202
public String getExecuteThreeD() {
@@ -219,8 +210,8 @@ public String getExecuteThreeD() {
219210
*
220211
* @deprecated since Adyen Checkout API v69
221212
* Use [&#x60;authenticationData.attemptAuthentication&#x60;](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target&#x3D;_blank#request-authenticationData-attemptAuthentication) instead
222-
*/
223-
@Deprecated
213+
*/
214+
@Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead
224215
@JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D)
225216
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
226217
public void setExecuteThreeD(String executeThreeD) {
@@ -242,7 +233,6 @@ public AdditionalData3DSecure mpiImplementationType(String mpiImplementationType
242233
* In case of Secure+, this field must be set to **CUPSecurePlus**.
243234
* @return mpiImplementationType
244235
*/
245-
@ApiModelProperty(value = "In case of Secure+, this field must be set to **CUPSecurePlus**.")
246236
@JsonProperty(JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE)
247237
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
248238
public String getMpiImplementationType() {
@@ -253,7 +243,7 @@ public String getMpiImplementationType() {
253243
* In case of Secure+, this field must be set to **CUPSecurePlus**.
254244
*
255245
* @param mpiImplementationType
256-
*/
246+
*/
257247
@JsonProperty(JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE)
258248
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
259249
public void setMpiImplementationType(String mpiImplementationType) {
@@ -275,7 +265,6 @@ public AdditionalData3DSecure scaExemption(String scaExemption) {
275265
* Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis**
276266
* @return scaExemption
277267
*/
278-
@ApiModelProperty(value = "Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** ")
279268
@JsonProperty(JSON_PROPERTY_SCA_EXEMPTION)
280269
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
281270
public String getScaExemption() {
@@ -286,7 +275,7 @@ public String getScaExemption() {
286275
* Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis**
287276
*
288277
* @param scaExemption
289-
*/
278+
*/
290279
@JsonProperty(JSON_PROPERTY_SCA_EXEMPTION)
291280
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
292281
public void setScaExemption(String scaExemption) {
@@ -308,7 +297,6 @@ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) {
308297
* Indicates your preference for the 3D Secure version. &gt; If you use this parameter, you override the checks from Adyen&#39;s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative &#x60;transStatus&#x60; in the &#x60;ARes&#x60;, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error.
309298
* @return threeDSVersion
310299
*/
311-
@ApiModelProperty(value = "Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. ")
312300
@JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION)
313301
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314302
public String getThreeDSVersion() {
@@ -319,7 +307,7 @@ public String getThreeDSVersion() {
319307
* Indicates your preference for the 3D Secure version. &gt; If you use this parameter, you override the checks from Adyen&#39;s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative &#x60;transStatus&#x60; in the &#x60;ARes&#x60;, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error.
320308
*
321309
* @param threeDSVersion
322-
*/
310+
*/
323311
@JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION)
324312
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
325313
public void setThreeDSVersion(String threeDSVersion) {

0 commit comments

Comments
 (0)