Skip to content

Commit 7003886

Browse files
Update all services (#1380)
* false[adyen-sdk-automation] automated change * Update ModificationResult.java Adjusted enums by removing underscore prefix --------- Co-authored-by: Djoyke Reijans <[email protected]>
1 parent fde1c4c commit 7003886

9 files changed

+814
-37
lines changed

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

+108-4
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
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+
13+
package com.adyen.model.checkout;
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+
* EBankingFinlandDetails
32+
*/
33+
@JsonPropertyOrder({
34+
EBankingFinlandDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
35+
EBankingFinlandDetails.JSON_PROPERTY_ISSUER,
36+
EBankingFinlandDetails.JSON_PROPERTY_TYPE
37+
})
38+
39+
public class EBankingFinlandDetails {
40+
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
41+
private String checkoutAttemptId;
42+
43+
public static final String JSON_PROPERTY_ISSUER = "issuer";
44+
private String issuer;
45+
46+
/**
47+
* **ebanking_FI**
48+
*/
49+
public enum TypeEnum {
50+
EBANKING_FI("ebanking_FI");
51+
52+
private String value;
53+
54+
TypeEnum(String value) {
55+
this.value = value;
56+
}
57+
58+
@JsonValue
59+
public String getValue() {
60+
return value;
61+
}
62+
63+
@Override
64+
public String toString() {
65+
return String.valueOf(value);
66+
}
67+
68+
@JsonCreator
69+
public static TypeEnum fromValue(String value) {
70+
for (TypeEnum b : TypeEnum.values()) {
71+
if (b.value.equals(value)) {
72+
return b;
73+
}
74+
}
75+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
76+
}
77+
}
78+
79+
public static final String JSON_PROPERTY_TYPE = "type";
80+
private TypeEnum type;
81+
82+
public EBankingFinlandDetails() {
83+
}
84+
85+
/**
86+
* The checkout attempt identifier.
87+
*
88+
* @param checkoutAttemptId
89+
* @return the current {@code EBankingFinlandDetails} instance, allowing for method chaining
90+
*/
91+
public EBankingFinlandDetails checkoutAttemptId(String checkoutAttemptId) {
92+
this.checkoutAttemptId = checkoutAttemptId;
93+
return this;
94+
}
95+
96+
/**
97+
* The checkout attempt identifier.
98+
* @return checkoutAttemptId
99+
*/
100+
@ApiModelProperty(value = "The checkout attempt identifier.")
101+
@JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
102+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103+
public String getCheckoutAttemptId() {
104+
return checkoutAttemptId;
105+
}
106+
107+
/**
108+
* The checkout attempt identifier.
109+
*
110+
* @param checkoutAttemptId
111+
*/
112+
@JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
113+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114+
public void setCheckoutAttemptId(String checkoutAttemptId) {
115+
this.checkoutAttemptId = checkoutAttemptId;
116+
}
117+
118+
/**
119+
* The Ebanking Finland issuer value of the shopper&#39;s selected bank.
120+
*
121+
* @param issuer
122+
* @return the current {@code EBankingFinlandDetails} instance, allowing for method chaining
123+
*/
124+
public EBankingFinlandDetails issuer(String issuer) {
125+
this.issuer = issuer;
126+
return this;
127+
}
128+
129+
/**
130+
* The Ebanking Finland issuer value of the shopper&#39;s selected bank.
131+
* @return issuer
132+
*/
133+
@ApiModelProperty(value = "The Ebanking Finland issuer value of the shopper's selected bank.")
134+
@JsonProperty(JSON_PROPERTY_ISSUER)
135+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
136+
public String getIssuer() {
137+
return issuer;
138+
}
139+
140+
/**
141+
* The Ebanking Finland issuer value of the shopper&#39;s selected bank.
142+
*
143+
* @param issuer
144+
*/
145+
@JsonProperty(JSON_PROPERTY_ISSUER)
146+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147+
public void setIssuer(String issuer) {
148+
this.issuer = issuer;
149+
}
150+
151+
/**
152+
* **ebanking_FI**
153+
*
154+
* @param type
155+
* @return the current {@code EBankingFinlandDetails} instance, allowing for method chaining
156+
*/
157+
public EBankingFinlandDetails type(TypeEnum type) {
158+
this.type = type;
159+
return this;
160+
}
161+
162+
/**
163+
* **ebanking_FI**
164+
* @return type
165+
*/
166+
@ApiModelProperty(required = true, value = "**ebanking_FI**")
167+
@JsonProperty(JSON_PROPERTY_TYPE)
168+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
169+
public TypeEnum getType() {
170+
return type;
171+
}
172+
173+
/**
174+
* **ebanking_FI**
175+
*
176+
* @param type
177+
*/
178+
@JsonProperty(JSON_PROPERTY_TYPE)
179+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180+
public void setType(TypeEnum type) {
181+
this.type = type;
182+
}
183+
184+
/**
185+
* Return true if this EBankingFinlandDetails object is equal to o.
186+
*/
187+
@Override
188+
public boolean equals(Object o) {
189+
if (this == o) {
190+
return true;
191+
}
192+
if (o == null || getClass() != o.getClass()) {
193+
return false;
194+
}
195+
EBankingFinlandDetails ebankingFinlandDetails = (EBankingFinlandDetails) o;
196+
return Objects.equals(this.checkoutAttemptId, ebankingFinlandDetails.checkoutAttemptId) &&
197+
Objects.equals(this.issuer, ebankingFinlandDetails.issuer) &&
198+
Objects.equals(this.type, ebankingFinlandDetails.type);
199+
}
200+
201+
@Override
202+
public int hashCode() {
203+
return Objects.hash(checkoutAttemptId, issuer, type);
204+
}
205+
206+
@Override
207+
public String toString() {
208+
StringBuilder sb = new StringBuilder();
209+
sb.append("class EBankingFinlandDetails {\n");
210+
sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
211+
sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n");
212+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
213+
sb.append("}");
214+
return sb.toString();
215+
}
216+
217+
/**
218+
* Convert the given object to string with each line indented by 4 spaces
219+
* (except the first line).
220+
*/
221+
private String toIndentedString(Object o) {
222+
if (o == null) {
223+
return "null";
224+
}
225+
return o.toString().replace("\n", "\n ");
226+
}
227+
228+
/**
229+
* Create an instance of EBankingFinlandDetails given an JSON string
230+
*
231+
* @param jsonString JSON string
232+
* @return An instance of EBankingFinlandDetails
233+
* @throws JsonProcessingException if the JSON string is invalid with respect to EBankingFinlandDetails
234+
*/
235+
public static EBankingFinlandDetails fromJson(String jsonString) throws JsonProcessingException {
236+
return JSON.getMapper().readValue(jsonString, EBankingFinlandDetails.class);
237+
}
238+
/**
239+
* Convert an instance of EBankingFinlandDetails to an JSON string
240+
*
241+
* @return JSON string
242+
*/
243+
public String toJson() throws JsonProcessingException {
244+
return JSON.getMapper().writeValueAsString(this);
245+
}
246+
}

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

+17-17
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class FundRecipient {
8484
private String walletOwnerTaxId;
8585

8686
/**
87-
* The purpose of a digital wallet transaction
87+
* The purpose of a digital wallet transaction.
8888
*/
8989
public enum WalletPurposeEnum {
9090
IDENTIFIEDBOLETO("identifiedBoleto"),
@@ -131,7 +131,7 @@ public FundRecipient() {
131131
}
132132

133133
/**
134-
* Fund Recipient Iban for C2C payments
134+
* The IBAN of the bank account where the funds are being transferred to.
135135
*
136136
* @param IBAN
137137
* @return the current {@code FundRecipient} instance, allowing for method chaining
@@ -142,18 +142,18 @@ public FundRecipient IBAN(String IBAN) {
142142
}
143143

144144
/**
145-
* Fund Recipient Iban for C2C payments
145+
* The IBAN of the bank account where the funds are being transferred to.
146146
* @return IBAN
147147
*/
148-
@ApiModelProperty(value = "Fund Recipient Iban for C2C payments")
148+
@ApiModelProperty(value = "The IBAN of the bank account where the funds are being transferred to.")
149149
@JsonProperty(JSON_PROPERTY_I_B_A_N)
150150
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151151
public String getIBAN() {
152152
return IBAN;
153153
}
154154

155155
/**
156-
* Fund Recipient Iban for C2C payments
156+
* The IBAN of the bank account where the funds are being transferred to.
157157
*
158158
* @param IBAN
159159
*/
@@ -428,7 +428,7 @@ public void setTelephoneNumber(String telephoneNumber) {
428428
}
429429

430430
/**
431-
* Indicates where the money is going.
431+
* The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.
432432
*
433433
* @param walletIdentifier
434434
* @return the current {@code FundRecipient} instance, allowing for method chaining
@@ -439,18 +439,18 @@ public FundRecipient walletIdentifier(String walletIdentifier) {
439439
}
440440

441441
/**
442-
* Indicates where the money is going.
442+
* The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.
443443
* @return walletIdentifier
444444
*/
445-
@ApiModelProperty(value = "Indicates where the money is going.")
445+
@ApiModelProperty(value = "The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.")
446446
@JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER)
447447
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
448448
public String getWalletIdentifier() {
449449
return walletIdentifier;
450450
}
451451

452452
/**
453-
* Indicates where the money is going.
453+
* The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.
454454
*
455455
* @param walletIdentifier
456456
*/
@@ -461,7 +461,7 @@ public void setWalletIdentifier(String walletIdentifier) {
461461
}
462462

463463
/**
464-
* Indicates the tax identifier of the fund recipient
464+
* The tax identifier of the person receiving the funds.
465465
*
466466
* @param walletOwnerTaxId
467467
* @return the current {@code FundRecipient} instance, allowing for method chaining
@@ -472,18 +472,18 @@ public FundRecipient walletOwnerTaxId(String walletOwnerTaxId) {
472472
}
473473

474474
/**
475-
* Indicates the tax identifier of the fund recipient
475+
* The tax identifier of the person receiving the funds.
476476
* @return walletOwnerTaxId
477477
*/
478-
@ApiModelProperty(value = "Indicates the tax identifier of the fund recipient")
478+
@ApiModelProperty(value = "The tax identifier of the person receiving the funds.")
479479
@JsonProperty(JSON_PROPERTY_WALLET_OWNER_TAX_ID)
480480
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
481481
public String getWalletOwnerTaxId() {
482482
return walletOwnerTaxId;
483483
}
484484

485485
/**
486-
* Indicates the tax identifier of the fund recipient
486+
* The tax identifier of the person receiving the funds.
487487
*
488488
* @param walletOwnerTaxId
489489
*/
@@ -494,7 +494,7 @@ public void setWalletOwnerTaxId(String walletOwnerTaxId) {
494494
}
495495

496496
/**
497-
* The purpose of a digital wallet transaction
497+
* The purpose of a digital wallet transaction.
498498
*
499499
* @param walletPurpose
500500
* @return the current {@code FundRecipient} instance, allowing for method chaining
@@ -505,18 +505,18 @@ public FundRecipient walletPurpose(WalletPurposeEnum walletPurpose) {
505505
}
506506

507507
/**
508-
* The purpose of a digital wallet transaction
508+
* The purpose of a digital wallet transaction.
509509
* @return walletPurpose
510510
*/
511-
@ApiModelProperty(value = "The purpose of a digital wallet transaction")
511+
@ApiModelProperty(value = "The purpose of a digital wallet transaction.")
512512
@JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
513513
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
514514
public WalletPurposeEnum getWalletPurpose() {
515515
return walletPurpose;
516516
}
517517

518518
/**
519-
* The purpose of a digital wallet transaction
519+
* The purpose of a digital wallet transaction.
520520
*
521521
* @param walletPurpose
522522
*/

0 commit comments

Comments
 (0)