Skip to content

Commit 008d267

Browse files
AdyenAutomationBotAdyenAutomationBot
andauthored
Code generation: update services and models (#1545)
* false[adyen-sdk-automation] automated change * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <AdyenAutomationBot [email protected]>
1 parent 81ca39f commit 008d267

File tree

11 files changed

+644
-563
lines changed

11 files changed

+644
-563
lines changed

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
CardDetails.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER,
3232
CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH,
3333
CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR,
34+
CardDetails.JSON_PROPERTY_ENCRYPTED_PASSWORD,
3435
CardDetails.JSON_PROPERTY_ENCRYPTED_SECURITY_CODE,
3536
CardDetails.JSON_PROPERTY_EXPIRY_MONTH,
3637
CardDetails.JSON_PROPERTY_EXPIRY_YEAR,
@@ -75,6 +76,9 @@ public class CardDetails {
7576
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear";
7677
private String encryptedExpiryYear;
7778

79+
public static final String JSON_PROPERTY_ENCRYPTED_PASSWORD = "encryptedPassword";
80+
private String encryptedPassword;
81+
7882
public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode";
7983
private String encryptedSecurityCode;
8084

@@ -508,6 +512,45 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) {
508512
this.encryptedExpiryYear = encryptedExpiryYear;
509513
}
510514

515+
/**
516+
* This field contains an encrypted, one-time password or an authentication code provided by the
517+
* cardholder.
518+
*
519+
* @param encryptedPassword This field contains an encrypted, one-time password or an
520+
* authentication code provided by the cardholder.
521+
* @return the current {@code CardDetails} instance, allowing for method chaining
522+
*/
523+
public CardDetails encryptedPassword(String encryptedPassword) {
524+
this.encryptedPassword = encryptedPassword;
525+
return this;
526+
}
527+
528+
/**
529+
* This field contains an encrypted, one-time password or an authentication code provided by the
530+
* cardholder.
531+
*
532+
* @return encryptedPassword This field contains an encrypted, one-time password or an
533+
* authentication code provided by the cardholder.
534+
*/
535+
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
536+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
537+
public String getEncryptedPassword() {
538+
return encryptedPassword;
539+
}
540+
541+
/**
542+
* This field contains an encrypted, one-time password or an authentication code provided by the
543+
* cardholder.
544+
*
545+
* @param encryptedPassword This field contains an encrypted, one-time password or an
546+
* authentication code provided by the cardholder.
547+
*/
548+
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
549+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
550+
public void setEncryptedPassword(String encryptedPassword) {
551+
this.encryptedPassword = encryptedPassword;
552+
}
553+
511554
/**
512555
* The encrypted card verification code.
513556
*
@@ -1162,6 +1205,7 @@ public boolean equals(Object o) {
11621205
&& Objects.equals(this.encryptedCardNumber, cardDetails.encryptedCardNumber)
11631206
&& Objects.equals(this.encryptedExpiryMonth, cardDetails.encryptedExpiryMonth)
11641207
&& Objects.equals(this.encryptedExpiryYear, cardDetails.encryptedExpiryYear)
1208+
&& Objects.equals(this.encryptedPassword, cardDetails.encryptedPassword)
11651209
&& Objects.equals(this.encryptedSecurityCode, cardDetails.encryptedSecurityCode)
11661210
&& Objects.equals(this.expiryMonth, cardDetails.expiryMonth)
11671211
&& Objects.equals(this.expiryYear, cardDetails.expiryYear)
@@ -1193,6 +1237,7 @@ public int hashCode() {
11931237
encryptedCardNumber,
11941238
encryptedExpiryMonth,
11951239
encryptedExpiryYear,
1240+
encryptedPassword,
11961241
encryptedSecurityCode,
11971242
expiryMonth,
11981243
expiryYear,
@@ -1232,6 +1277,7 @@ public String toString() {
12321277
sb.append(" encryptedExpiryYear: ")
12331278
.append(toIndentedString(encryptedExpiryYear))
12341279
.append("\n");
1280+
sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n");
12351281
sb.append(" encryptedSecurityCode: ")
12361282
.append(toIndentedString(encryptedSecurityCode))
12371283
.append("\n");

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
CardDonations.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER,
3232
CardDonations.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH,
3333
CardDonations.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR,
34+
CardDonations.JSON_PROPERTY_ENCRYPTED_PASSWORD,
3435
CardDonations.JSON_PROPERTY_ENCRYPTED_SECURITY_CODE,
3536
CardDonations.JSON_PROPERTY_EXPIRY_MONTH,
3637
CardDonations.JSON_PROPERTY_EXPIRY_YEAR,
@@ -75,6 +76,9 @@ public class CardDonations {
7576
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear";
7677
private String encryptedExpiryYear;
7778

79+
public static final String JSON_PROPERTY_ENCRYPTED_PASSWORD = "encryptedPassword";
80+
private String encryptedPassword;
81+
7882
public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode";
7983
private String encryptedSecurityCode;
8084

@@ -508,6 +512,45 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) {
508512
this.encryptedExpiryYear = encryptedExpiryYear;
509513
}
510514

515+
/**
516+
* This field contains an encrypted, one-time password or an authentication code provided by the
517+
* cardholder.
518+
*
519+
* @param encryptedPassword This field contains an encrypted, one-time password or an
520+
* authentication code provided by the cardholder.
521+
* @return the current {@code CardDonations} instance, allowing for method chaining
522+
*/
523+
public CardDonations encryptedPassword(String encryptedPassword) {
524+
this.encryptedPassword = encryptedPassword;
525+
return this;
526+
}
527+
528+
/**
529+
* This field contains an encrypted, one-time password or an authentication code provided by the
530+
* cardholder.
531+
*
532+
* @return encryptedPassword This field contains an encrypted, one-time password or an
533+
* authentication code provided by the cardholder.
534+
*/
535+
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
536+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
537+
public String getEncryptedPassword() {
538+
return encryptedPassword;
539+
}
540+
541+
/**
542+
* This field contains an encrypted, one-time password or an authentication code provided by the
543+
* cardholder.
544+
*
545+
* @param encryptedPassword This field contains an encrypted, one-time password or an
546+
* authentication code provided by the cardholder.
547+
*/
548+
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
549+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
550+
public void setEncryptedPassword(String encryptedPassword) {
551+
this.encryptedPassword = encryptedPassword;
552+
}
553+
511554
/**
512555
* The encrypted card verification code.
513556
*
@@ -1162,6 +1205,7 @@ public boolean equals(Object o) {
11621205
&& Objects.equals(this.encryptedCardNumber, cardDonations.encryptedCardNumber)
11631206
&& Objects.equals(this.encryptedExpiryMonth, cardDonations.encryptedExpiryMonth)
11641207
&& Objects.equals(this.encryptedExpiryYear, cardDonations.encryptedExpiryYear)
1208+
&& Objects.equals(this.encryptedPassword, cardDonations.encryptedPassword)
11651209
&& Objects.equals(this.encryptedSecurityCode, cardDonations.encryptedSecurityCode)
11661210
&& Objects.equals(this.expiryMonth, cardDonations.expiryMonth)
11671211
&& Objects.equals(this.expiryYear, cardDonations.expiryYear)
@@ -1193,6 +1237,7 @@ public int hashCode() {
11931237
encryptedCardNumber,
11941238
encryptedExpiryMonth,
11951239
encryptedExpiryYear,
1240+
encryptedPassword,
11961241
encryptedSecurityCode,
11971242
expiryMonth,
11981243
expiryYear,
@@ -1232,6 +1277,7 @@ public String toString() {
12321277
sb.append(" encryptedExpiryYear: ")
12331278
.append(toIndentedString(encryptedExpiryYear))
12341279
.append("\n");
1280+
sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n");
12351281
sb.append(" encryptedSecurityCode: ")
12361282
.append(toIndentedString(encryptedSecurityCode))
12371283
.append("\n");
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
/*
2+
* Adyen Checkout API
3+
*
4+
* The version of the OpenAPI document: 71
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+
package com.adyen.model.checkout;
13+
14+
import com.fasterxml.jackson.annotation.JsonInclude;
15+
import com.fasterxml.jackson.annotation.JsonProperty;
16+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
17+
import com.fasterxml.jackson.core.JsonProcessingException;
18+
import java.util.*;
19+
20+
/** ResponseAdditionalDataSwish */
21+
@JsonPropertyOrder({ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS})
22+
public class ResponseAdditionalDataSwish {
23+
public static final String JSON_PROPERTY_SWISH_PAYER_ALIAS = "swish.payerAlias";
24+
private String swishPayerAlias;
25+
26+
public ResponseAdditionalDataSwish() {}
27+
28+
/**
29+
* A Swish shopper&#39;s telephone number.
30+
*
31+
* @param swishPayerAlias A Swish shopper&#39;s telephone number.
32+
* @return the current {@code ResponseAdditionalDataSwish} instance, allowing for method chaining
33+
*/
34+
public ResponseAdditionalDataSwish swishPayerAlias(String swishPayerAlias) {
35+
this.swishPayerAlias = swishPayerAlias;
36+
return this;
37+
}
38+
39+
/**
40+
* A Swish shopper&#39;s telephone number.
41+
*
42+
* @return swishPayerAlias A Swish shopper&#39;s telephone number.
43+
*/
44+
@JsonProperty(JSON_PROPERTY_SWISH_PAYER_ALIAS)
45+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
46+
public String getSwishPayerAlias() {
47+
return swishPayerAlias;
48+
}
49+
50+
/**
51+
* A Swish shopper&#39;s telephone number.
52+
*
53+
* @param swishPayerAlias A Swish shopper&#39;s telephone number.
54+
*/
55+
@JsonProperty(JSON_PROPERTY_SWISH_PAYER_ALIAS)
56+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
57+
public void setSwishPayerAlias(String swishPayerAlias) {
58+
this.swishPayerAlias = swishPayerAlias;
59+
}
60+
61+
/** Return true if this ResponseAdditionalDataSwish object is equal to o. */
62+
@Override
63+
public boolean equals(Object o) {
64+
if (this == o) {
65+
return true;
66+
}
67+
if (o == null || getClass() != o.getClass()) {
68+
return false;
69+
}
70+
ResponseAdditionalDataSwish responseAdditionalDataSwish = (ResponseAdditionalDataSwish) o;
71+
return Objects.equals(this.swishPayerAlias, responseAdditionalDataSwish.swishPayerAlias);
72+
}
73+
74+
@Override
75+
public int hashCode() {
76+
return Objects.hash(swishPayerAlias);
77+
}
78+
79+
@Override
80+
public String toString() {
81+
StringBuilder sb = new StringBuilder();
82+
sb.append("class ResponseAdditionalDataSwish {\n");
83+
sb.append(" swishPayerAlias: ").append(toIndentedString(swishPayerAlias)).append("\n");
84+
sb.append("}");
85+
return sb.toString();
86+
}
87+
88+
/**
89+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
90+
*/
91+
private String toIndentedString(Object o) {
92+
if (o == null) {
93+
return "null";
94+
}
95+
return o.toString().replace("\n", "\n ");
96+
}
97+
98+
/**
99+
* Create an instance of ResponseAdditionalDataSwish given an JSON string
100+
*
101+
* @param jsonString JSON string
102+
* @return An instance of ResponseAdditionalDataSwish
103+
* @throws JsonProcessingException if the JSON string is invalid with respect to
104+
* ResponseAdditionalDataSwish
105+
*/
106+
public static ResponseAdditionalDataSwish fromJson(String jsonString)
107+
throws JsonProcessingException {
108+
return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSwish.class);
109+
}
110+
111+
/**
112+
* Convert an instance of ResponseAdditionalDataSwish to an JSON string
113+
*
114+
* @return JSON string
115+
*/
116+
public String toJson() throws JsonProcessingException {
117+
return JSON.getMapper().writeValueAsString(this);
118+
}
119+
}

0 commit comments

Comments
 (0)