Skip to content

Commit 5d428db

Browse files
[balanceplatform] Automated update from Adyen/adyen-openapi@bee086f
1 parent bca8a14 commit 5d428db

19 files changed

Lines changed: 4219 additions & 18 deletions
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"service": "balanceplatform",
33
"project": "java",
4-
"generatedAt": "2026-07-21T12:28:58Z",
5-
"openapiCommitSha": "c2ff0637d25d1c34aa1b19113e1b4e5eaa289960",
6-
"automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397",
7-
"libraryCommitSha": "5ff17f11a78b035f0dd862e1157bec9e026adcf1"
4+
"generatedAt": "2026-08-21T13:01:30Z",
5+
"openapiCommitSha": "bee086f2cd666ac7cb5b5ba2813a8b5dc943c2d2",
6+
"automationCommitSha": "558d1dba9655b0e6616d54ed90419a69d51c335f",
7+
"libraryCommitSha": "bca8a14bd8bfd031e109bbf12684150f37b17a2b"
88
}
Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
/*
2+
* Configuration API
3+
*
4+
* The version of the OpenAPI document: 2
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.balanceplatform;
13+
14+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
15+
import com.fasterxml.jackson.annotation.JsonIgnore;
16+
import com.fasterxml.jackson.annotation.JsonInclude;
17+
import com.fasterxml.jackson.annotation.JsonProperty;
18+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
19+
import com.fasterxml.jackson.core.JsonProcessingException;
20+
import java.util.*;
21+
22+
/** AmountDTO */
23+
@JsonPropertyOrder({AmountDTO.JSON_PROPERTY_CURRENCY, AmountDTO.JSON_PROPERTY_VALUE})
24+
public class AmountDTO {
25+
public static final String JSON_PROPERTY_CURRENCY = "currency";
26+
private String currency;
27+
28+
/** Mark when the attribute has been explicitly set. */
29+
private boolean isSetCurrency = false;
30+
31+
public static final String JSON_PROPERTY_VALUE = "value";
32+
private Long value;
33+
34+
/** Mark when the attribute has been explicitly set. */
35+
private boolean isSetValue = false;
36+
37+
/**
38+
* Sets whether attributes with null values should be explicitly included in the JSON payload.
39+
* Default is false.
40+
*/
41+
@JsonIgnore private boolean includeNullValues = false;
42+
43+
public AmountDTO() {}
44+
45+
/**
46+
* The three-character [ISO currency
47+
* code](https://docs.adyen.com/development-resources/currency-codes).
48+
*
49+
* @param currency The three-character [ISO currency
50+
* code](https://docs.adyen.com/development-resources/currency-codes).
51+
* @return the current {@code AmountDTO} instance, allowing for method chaining
52+
*/
53+
public AmountDTO currency(String currency) {
54+
this.currency = currency;
55+
isSetCurrency = true; // mark as set
56+
return this;
57+
}
58+
59+
/**
60+
* The three-character [ISO currency
61+
* code](https://docs.adyen.com/development-resources/currency-codes).
62+
*
63+
* @return currency The three-character [ISO currency
64+
* code](https://docs.adyen.com/development-resources/currency-codes).
65+
*/
66+
@JsonProperty(JSON_PROPERTY_CURRENCY)
67+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68+
public String getCurrency() {
69+
return currency;
70+
}
71+
72+
/**
73+
* The three-character [ISO currency
74+
* code](https://docs.adyen.com/development-resources/currency-codes).
75+
*
76+
* @param currency The three-character [ISO currency
77+
* code](https://docs.adyen.com/development-resources/currency-codes).
78+
*/
79+
@JsonProperty(JSON_PROPERTY_CURRENCY)
80+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81+
public void setCurrency(String currency) {
82+
this.currency = currency;
83+
isSetCurrency = true; // mark as set
84+
}
85+
86+
/**
87+
* The amount of the transaction, in [minor
88+
* units](https://docs.adyen.com/development-resources/currency-codes).
89+
*
90+
* @param value The amount of the transaction, in [minor
91+
* units](https://docs.adyen.com/development-resources/currency-codes).
92+
* @return the current {@code AmountDTO} instance, allowing for method chaining
93+
*/
94+
public AmountDTO value(Long value) {
95+
this.value = value;
96+
isSetValue = true; // mark as set
97+
return this;
98+
}
99+
100+
/**
101+
* The amount of the transaction, in [minor
102+
* units](https://docs.adyen.com/development-resources/currency-codes).
103+
*
104+
* @return value The amount of the transaction, in [minor
105+
* units](https://docs.adyen.com/development-resources/currency-codes).
106+
*/
107+
@JsonProperty(JSON_PROPERTY_VALUE)
108+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109+
public Long getValue() {
110+
return value;
111+
}
112+
113+
/**
114+
* The amount of the transaction, in [minor
115+
* units](https://docs.adyen.com/development-resources/currency-codes).
116+
*
117+
* @param value The amount of the transaction, in [minor
118+
* units](https://docs.adyen.com/development-resources/currency-codes).
119+
*/
120+
@JsonProperty(JSON_PROPERTY_VALUE)
121+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122+
public void setValue(Long value) {
123+
this.value = value;
124+
isSetValue = true; // mark as set
125+
}
126+
127+
/**
128+
* Configures whether null values are explicitly serialized in the JSON payload. Default is false.
129+
*/
130+
public AmountDTO includeNullValues(boolean includeNullValues) {
131+
this.includeNullValues = includeNullValues;
132+
return this;
133+
}
134+
135+
/** Returns whether null values are explicitly serialized in the JSON payload. */
136+
public boolean isIncludeNullValues() {
137+
return includeNullValues;
138+
}
139+
140+
/**
141+
* Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
142+
*/
143+
public void setIncludeNullValues(boolean includeNullValues) {
144+
this.includeNullValues = includeNullValues;
145+
}
146+
147+
/** Return true if this AmountDTO object is equal to o. */
148+
@Override
149+
public boolean equals(Object o) {
150+
if (this == o) {
151+
return true;
152+
}
153+
if (o == null || getClass() != o.getClass()) {
154+
return false;
155+
}
156+
AmountDTO amountDTO = (AmountDTO) o;
157+
return Objects.equals(this.currency, amountDTO.currency)
158+
&& Objects.equals(this.isSetCurrency, amountDTO.isSetCurrency)
159+
&& Objects.equals(this.value, amountDTO.value)
160+
&& Objects.equals(this.isSetValue, amountDTO.isSetValue);
161+
}
162+
163+
@Override
164+
public int hashCode() {
165+
return Objects.hash(currency, isSetCurrency, value, isSetValue);
166+
}
167+
168+
@Override
169+
public String toString() {
170+
StringBuilder sb = new StringBuilder();
171+
sb.append("class AmountDTO {\n");
172+
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
173+
sb.append(" value: ").append(toIndentedString(value)).append("\n");
174+
sb.append("}");
175+
return sb.toString();
176+
}
177+
178+
/**
179+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
180+
*/
181+
private String toIndentedString(Object o) {
182+
if (o == null) {
183+
return "null";
184+
}
185+
return o.toString().replace("\n", "\n ");
186+
}
187+
188+
/** Returns a map of properties to be merged into the JSON payload as explicit null values. */
189+
@JsonInclude(JsonInclude.Include.ALWAYS)
190+
@JsonAnyGetter
191+
public Map<String, Object> getExplicitNulls() {
192+
if (!this.includeNullValues) {
193+
return Collections.emptyMap();
194+
}
195+
196+
Map<String, Object> nulls = new HashMap<>();
197+
198+
if (isSetCurrency) {
199+
addIfNull(nulls, JSON_PROPERTY_CURRENCY, this.currency);
200+
}
201+
if (isSetValue) {
202+
addIfNull(nulls, JSON_PROPERTY_VALUE, this.value);
203+
}
204+
205+
return nulls;
206+
}
207+
208+
// add to map when value is null
209+
private void addIfNull(Map<String, Object> map, String key, Object value) {
210+
if (value == null) {
211+
map.put(key, null);
212+
}
213+
}
214+
215+
/**
216+
* Create an instance of AmountDTO given an JSON string
217+
*
218+
* @param jsonString JSON string
219+
* @return An instance of AmountDTO
220+
* @throws JsonProcessingException if the JSON string is invalid with respect to AmountDTO
221+
*/
222+
public static AmountDTO fromJson(String jsonString) throws JsonProcessingException {
223+
return JSON.getMapper().readValue(jsonString, AmountDTO.class);
224+
}
225+
226+
/**
227+
* Convert an instance of AmountDTO to an JSON string
228+
*
229+
* @return JSON string
230+
*/
231+
public String toJson() throws JsonProcessingException {
232+
return JSON.getMapper().writeValueAsString(this);
233+
}
234+
}

0 commit comments

Comments
 (0)