Skip to content

Commit fdd9125

Browse files
false[adyen-sdk-automation] automated change
1 parent 8461104 commit fdd9125

File tree

8 files changed

+526
-28
lines changed

8 files changed

+526
-28
lines changed

src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ public void setBalancePlatform(String balancePlatform) {
163163
}
164164

165165
/**
166-
* Unique identifier of the authentication.
166+
* The unique identifier of the authentication.
167167
*
168-
* @param id Unique identifier of the authentication.
168+
* @param id The unique identifier of the authentication.
169169
* @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining
170170
*/
171171
public AuthenticationNotificationData id(String id) {
@@ -174,8 +174,8 @@ public AuthenticationNotificationData id(String id) {
174174
}
175175

176176
/**
177-
* Unique identifier of the authentication.
178-
* @return id Unique identifier of the authentication.
177+
* The unique identifier of the authentication.
178+
* @return id The unique identifier of the authentication.
179179
*/
180180
@JsonProperty(JSON_PROPERTY_ID)
181181
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -184,9 +184,9 @@ public String getId() {
184184
}
185185

186186
/**
187-
* Unique identifier of the authentication.
187+
* The unique identifier of the authentication.
188188
*
189-
* @param id Unique identifier of the authentication.
189+
* @param id The unique identifier of the authentication.
190190
*/
191191
@JsonProperty(JSON_PROPERTY_ID)
192192
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -195,9 +195,9 @@ public void setId(String id) {
195195
}
196196

197197
/**
198-
* Unique identifier of the payment instrument that was used for the authentication.
198+
* The unique identifier of the payment instrument that was used for the authentication.
199199
*
200-
* @param paymentInstrumentId Unique identifier of the payment instrument that was used for the authentication.
200+
* @param paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication.
201201
* @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining
202202
*/
203203
public AuthenticationNotificationData paymentInstrumentId(String paymentInstrumentId) {
@@ -206,8 +206,8 @@ public AuthenticationNotificationData paymentInstrumentId(String paymentInstrume
206206
}
207207

208208
/**
209-
* Unique identifier of the payment instrument that was used for the authentication.
210-
* @return paymentInstrumentId Unique identifier of the payment instrument that was used for the authentication.
209+
* The unique identifier of the payment instrument that was used for the authentication.
210+
* @return paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication.
211211
*/
212212
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
213213
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -216,9 +216,9 @@ public String getPaymentInstrumentId() {
216216
}
217217

218218
/**
219-
* Unique identifier of the payment instrument that was used for the authentication.
219+
* The unique identifier of the payment instrument that was used for the authentication.
220220
*
221-
* @param paymentInstrumentId Unique identifier of the payment instrument that was used for the authentication.
221+
* @param paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication.
222222
*/
223223
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
224224
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public PurchaseInfo() {
4949
}
5050

5151
/**
52-
* Date of the purchase.
52+
* The date of the purchase.
5353
*
54-
* @param date Date of the purchase.
54+
* @param date The date of the purchase.
5555
* @return the current {@code PurchaseInfo} instance, allowing for method chaining
5656
*/
5757
public PurchaseInfo date(String date) {
@@ -60,8 +60,8 @@ public PurchaseInfo date(String date) {
6060
}
6161

6262
/**
63-
* Date of the purchase.
64-
* @return date Date of the purchase.
63+
* The date of the purchase.
64+
* @return date The date of the purchase.
6565
*/
6666
@JsonProperty(JSON_PROPERTY_DATE)
6767
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -70,9 +70,9 @@ public String getDate() {
7070
}
7171

7272
/**
73-
* Date of the purchase.
73+
* The date of the purchase.
7474
*
75-
* @param date Date of the purchase.
75+
* @param date The date of the purchase.
7676
*/
7777
@JsonProperty(JSON_PROPERTY_DATE)
7878
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -81,9 +81,9 @@ public void setDate(String date) {
8181
}
8282

8383
/**
84-
* Name of the merchant.
84+
* The name of the business that the cardholder purchased from.
8585
*
86-
* @param merchantName Name of the merchant.
86+
* @param merchantName The name of the business that the cardholder purchased from.
8787
* @return the current {@code PurchaseInfo} instance, allowing for method chaining
8888
*/
8989
public PurchaseInfo merchantName(String merchantName) {
@@ -92,8 +92,8 @@ public PurchaseInfo merchantName(String merchantName) {
9292
}
9393

9494
/**
95-
* Name of the merchant.
96-
* @return merchantName Name of the merchant.
95+
* The name of the business that the cardholder purchased from.
96+
* @return merchantName The name of the business that the cardholder purchased from.
9797
*/
9898
@JsonProperty(JSON_PROPERTY_MERCHANT_NAME)
9999
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -102,9 +102,9 @@ public String getMerchantName() {
102102
}
103103

104104
/**
105-
* Name of the merchant.
105+
* The name of the business that the cardholder purchased from.
106106
*
107-
* @param merchantName Name of the merchant.
107+
* @param merchantName The name of the business that the cardholder purchased from.
108108
*/
109109
@JsonProperty(JSON_PROPERTY_MERCHANT_NAME)
110110
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
/*
2+
* Transfers API
3+
*
4+
* The version of the OpenAPI document: 4
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.transfers;
14+
15+
import java.util.Objects;
16+
import java.util.Map;
17+
import java.util.HashMap;
18+
import com.fasterxml.jackson.annotation.JsonInclude;
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.annotation.JsonCreator;
21+
import com.fasterxml.jackson.annotation.JsonTypeName;
22+
import com.fasterxml.jackson.annotation.JsonValue;
23+
import java.time.LocalDate;
24+
import java.util.Arrays;
25+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26+
import com.fasterxml.jackson.core.JsonProcessingException;
27+
28+
29+
/**
30+
* ExecutionDate
31+
*/
32+
@JsonPropertyOrder({
33+
ExecutionDate.JSON_PROPERTY_DATE,
34+
ExecutionDate.JSON_PROPERTY_TIMEZONE
35+
})
36+
37+
public class ExecutionDate {
38+
public static final String JSON_PROPERTY_DATE = "date";
39+
private LocalDate date;
40+
41+
public static final String JSON_PROPERTY_TIMEZONE = "timezone";
42+
private String timezone;
43+
44+
public ExecutionDate() {
45+
}
46+
47+
/**
48+
* The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
49+
*
50+
* @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
51+
* @return the current {@code ExecutionDate} instance, allowing for method chaining
52+
*/
53+
public ExecutionDate date(LocalDate date) {
54+
this.date = date;
55+
return this;
56+
}
57+
58+
/**
59+
* The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
60+
* @return date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
61+
*/
62+
@JsonProperty(JSON_PROPERTY_DATE)
63+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64+
public LocalDate getDate() {
65+
return date;
66+
}
67+
68+
/**
69+
* The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
70+
*
71+
* @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
72+
*/
73+
@JsonProperty(JSON_PROPERTY_DATE)
74+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75+
public void setDate(LocalDate date) {
76+
this.date = date;
77+
}
78+
79+
/**
80+
* The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
81+
*
82+
* @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
83+
* @return the current {@code ExecutionDate} instance, allowing for method chaining
84+
*/
85+
public ExecutionDate timezone(String timezone) {
86+
this.timezone = timezone;
87+
return this;
88+
}
89+
90+
/**
91+
* The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
92+
* @return timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
93+
*/
94+
@JsonProperty(JSON_PROPERTY_TIMEZONE)
95+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
96+
public String getTimezone() {
97+
return timezone;
98+
}
99+
100+
/**
101+
* The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
102+
*
103+
* @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
104+
*/
105+
@JsonProperty(JSON_PROPERTY_TIMEZONE)
106+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
107+
public void setTimezone(String timezone) {
108+
this.timezone = timezone;
109+
}
110+
111+
/**
112+
* Return true if this ExecutionDate object is equal to o.
113+
*/
114+
@Override
115+
public boolean equals(Object o) {
116+
if (this == o) {
117+
return true;
118+
}
119+
if (o == null || getClass() != o.getClass()) {
120+
return false;
121+
}
122+
ExecutionDate executionDate = (ExecutionDate) o;
123+
return Objects.equals(this.date, executionDate.date) &&
124+
Objects.equals(this.timezone, executionDate.timezone);
125+
}
126+
127+
@Override
128+
public int hashCode() {
129+
return Objects.hash(date, timezone);
130+
}
131+
132+
@Override
133+
public String toString() {
134+
StringBuilder sb = new StringBuilder();
135+
sb.append("class ExecutionDate {\n");
136+
sb.append(" date: ").append(toIndentedString(date)).append("\n");
137+
sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n");
138+
sb.append("}");
139+
return sb.toString();
140+
}
141+
142+
/**
143+
* Convert the given object to string with each line indented by 4 spaces
144+
* (except the first line).
145+
*/
146+
private String toIndentedString(Object o) {
147+
if (o == null) {
148+
return "null";
149+
}
150+
return o.toString().replace("\n", "\n ");
151+
}
152+
153+
/**
154+
* Create an instance of ExecutionDate given an JSON string
155+
*
156+
* @param jsonString JSON string
157+
* @return An instance of ExecutionDate
158+
* @throws JsonProcessingException if the JSON string is invalid with respect to ExecutionDate
159+
*/
160+
public static ExecutionDate fromJson(String jsonString) throws JsonProcessingException {
161+
return JSON.getMapper().readValue(jsonString, ExecutionDate.class);
162+
}
163+
/**
164+
* Convert an instance of ExecutionDate to an JSON string
165+
*
166+
* @return JSON string
167+
*/
168+
public String toJson() throws JsonProcessingException {
169+
return JSON.getMapper().writeValueAsString(this);
170+
}
171+
}

0 commit comments

Comments
 (0)