• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #2658

18 Sep 2023 12:11PM UTC coverage: 13.219%. First build
#2658

push

web-flow
Merge 477a9da03 into ba706cfa8

1770 of 1770 new or added lines in 34 files covered. (100.0%)

10287 of 77817 relevant lines covered (13.22%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java
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

13
package com.adyen.model.balanceplatform;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.balanceplatform.AULocalAccountIdentification;
20
import com.adyen.model.balanceplatform.AdditionalBankIdentification;
21
import com.adyen.model.balanceplatform.BRLocalAccountIdentification;
22
import com.adyen.model.balanceplatform.CALocalAccountIdentification;
23
import com.adyen.model.balanceplatform.CZLocalAccountIdentification;
24
import com.adyen.model.balanceplatform.DKLocalAccountIdentification;
25
import com.adyen.model.balanceplatform.HKLocalAccountIdentification;
26
import com.adyen.model.balanceplatform.HULocalAccountIdentification;
27
import com.adyen.model.balanceplatform.IbanAccountIdentification;
28
import com.adyen.model.balanceplatform.NOLocalAccountIdentification;
29
import com.adyen.model.balanceplatform.NZLocalAccountIdentification;
30
import com.adyen.model.balanceplatform.NumberAndBicAccountIdentification;
31
import com.adyen.model.balanceplatform.PLLocalAccountIdentification;
32
import com.adyen.model.balanceplatform.SELocalAccountIdentification;
33
import com.adyen.model.balanceplatform.SGLocalAccountIdentification;
34
import com.adyen.model.balanceplatform.UKLocalAccountIdentification;
35
import com.adyen.model.balanceplatform.USLocalAccountIdentification;
36
import com.fasterxml.jackson.annotation.JsonInclude;
37
import com.fasterxml.jackson.annotation.JsonProperty;
38
import com.fasterxml.jackson.annotation.JsonCreator;
39
import com.fasterxml.jackson.annotation.JsonTypeName;
40
import com.fasterxml.jackson.annotation.JsonValue;
41
import io.swagger.annotations.ApiModel;
42
import io.swagger.annotations.ApiModelProperty;
43
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
44
import com.fasterxml.jackson.core.JsonProcessingException;
45

46
import com.fasterxml.jackson.core.type.TypeReference;
47

48
import jakarta.ws.rs.core.GenericType;
49
import jakarta.ws.rs.core.Response;
50
import java.io.IOException;
51
import java.util.logging.Level;
52
import java.util.logging.Logger;
53
import java.util.ArrayList;
54
import java.util.Collections;
55
import java.util.HashSet;
56

57
import com.fasterxml.jackson.core.JsonGenerator;
58
import com.fasterxml.jackson.core.JsonParser;
59
import com.fasterxml.jackson.core.JsonProcessingException;
60
import com.fasterxml.jackson.core.JsonToken;
61
import com.fasterxml.jackson.core.type.TypeReference;
62
import com.fasterxml.jackson.databind.DeserializationContext;
63
import com.fasterxml.jackson.databind.JsonMappingException;
64
import com.fasterxml.jackson.databind.JsonNode;
65
import com.fasterxml.jackson.databind.MapperFeature;
66
import com.fasterxml.jackson.databind.ObjectMapper;
67
import com.fasterxml.jackson.databind.SerializerProvider;
68
import com.fasterxml.jackson.databind.DeserializationFeature;
69
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
70
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
71
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
72
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
73

74

75
@JsonDeserialize(using = BankAccountAccountIdentification.BankAccountAccountIdentificationDeserializer.class)
76
@JsonSerialize(using = BankAccountAccountIdentification.BankAccountAccountIdentificationSerializer.class)
77
public class BankAccountAccountIdentification extends AbstractOpenApiSchema {
78
    private static final Logger log = Logger.getLogger(BankAccountAccountIdentification.class.getName());
×
79

80
    public static class BankAccountAccountIdentificationSerializer extends StdSerializer<BankAccountAccountIdentification> {
81
        public BankAccountAccountIdentificationSerializer(Class<BankAccountAccountIdentification> t) {
82
            super(t);
×
83
        }
×
84

85
        public BankAccountAccountIdentificationSerializer() {
86
            this(null);
×
87
        }
×
88

89
        @Override
90
        public void serialize(BankAccountAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException {
91
            jgen.writeObject(value.getActualInstance());
×
92
        }
×
93
    }
94

95
    public static class BankAccountAccountIdentificationDeserializer extends StdDeserializer<BankAccountAccountIdentification> {
96
        public BankAccountAccountIdentificationDeserializer() {
97
            this(BankAccountAccountIdentification.class);
×
98
        }
×
99

100
        public BankAccountAccountIdentificationDeserializer(Class<?> vc) {
101
            super(vc);
×
102
        }
×
103

104
        @Override
105
        public BankAccountAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
106
            JsonNode tree = jp.readValueAsTree();
×
107
            Object deserialized = null;
×
108
            boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
×
109
            int match = 0;
×
110
            JsonToken token = tree.traverse(jp.getCodec()).nextToken();
×
111

112
            // deserialize AULocalAccountIdentification
113
            try {
114
                boolean attemptParsing = true;
×
115
                // ensure that we respect type coercion as set on the client ObjectMapper
116
                if (AULocalAccountIdentification.class.equals(Integer.class) || AULocalAccountIdentification.class.equals(Long.class) || AULocalAccountIdentification.class.equals(Float.class) || AULocalAccountIdentification.class.equals(Double.class) || AULocalAccountIdentification.class.equals(Boolean.class) || AULocalAccountIdentification.class.equals(String.class)) {
×
117
                    attemptParsing = typeCoercion;
×
118
                    if (!attemptParsing) {
×
119
                        attemptParsing |= ((AULocalAccountIdentification.class.equals(Integer.class) || AULocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
120
                        attemptParsing |= ((AULocalAccountIdentification.class.equals(Float.class) || AULocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
121
                        attemptParsing |= (AULocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
122
                        attemptParsing |= (AULocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
123
                    }
124
                }
125
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
126
                boolean typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
127
                if (attemptParsing || typeMatch) {
×
128
                    // Strict deserialization for oneOf models
129
                    deserialized = JSON.getMapper().readValue(tree.toString(), AULocalAccountIdentification.class);
×
130
                    // typeMatch should enforce proper deserialization
131
                    match++;
×
132
                    log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'");
×
133
                }
134
            } catch (Exception e) {
×
135
                // deserialization failed, continue
136
                log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e);
×
137
            }
×
138

139

140
            // deserialize BRLocalAccountIdentification
141
            try {
142
                boolean attemptParsing = true;
×
143
                // ensure that we respect type coercion as set on the client ObjectMapper
144
                if (BRLocalAccountIdentification.class.equals(Integer.class) || BRLocalAccountIdentification.class.equals(Long.class) || BRLocalAccountIdentification.class.equals(Float.class) || BRLocalAccountIdentification.class.equals(Double.class) || BRLocalAccountIdentification.class.equals(Boolean.class) || BRLocalAccountIdentification.class.equals(String.class)) {
×
145
                    attemptParsing = typeCoercion;
×
146
                    if (!attemptParsing) {
×
147
                        attemptParsing |= ((BRLocalAccountIdentification.class.equals(Integer.class) || BRLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
148
                        attemptParsing |= ((BRLocalAccountIdentification.class.equals(Float.class) || BRLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
149
                        attemptParsing |= (BRLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
150
                        attemptParsing |= (BRLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
151
                    }
152
                }
153
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
154
                boolean typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
155
                if (attemptParsing || typeMatch) {
×
156
                    // Strict deserialization for oneOf models
157
                    deserialized = JSON.getMapper().readValue(tree.toString(), BRLocalAccountIdentification.class);
×
158
                    // typeMatch should enforce proper deserialization
159
                    match++;
×
160
                    log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'");
×
161
                }
162
            } catch (Exception e) {
×
163
                // deserialization failed, continue
164
                log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e);
×
165
            }
×
166

167

168
            // deserialize CALocalAccountIdentification
169
            try {
170
                boolean attemptParsing = true;
×
171
                // ensure that we respect type coercion as set on the client ObjectMapper
172
                if (CALocalAccountIdentification.class.equals(Integer.class) || CALocalAccountIdentification.class.equals(Long.class) || CALocalAccountIdentification.class.equals(Float.class) || CALocalAccountIdentification.class.equals(Double.class) || CALocalAccountIdentification.class.equals(Boolean.class) || CALocalAccountIdentification.class.equals(String.class)) {
×
173
                    attemptParsing = typeCoercion;
×
174
                    if (!attemptParsing) {
×
175
                        attemptParsing |= ((CALocalAccountIdentification.class.equals(Integer.class) || CALocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
176
                        attemptParsing |= ((CALocalAccountIdentification.class.equals(Float.class) || CALocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
177
                        attemptParsing |= (CALocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
178
                        attemptParsing |= (CALocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
179
                    }
180
                }
181
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
182
                boolean typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
183
                if (attemptParsing || typeMatch) {
×
184
                    // Strict deserialization for oneOf models
185
                    deserialized = JSON.getMapper().readValue(tree.toString(), CALocalAccountIdentification.class);
×
186
                    // typeMatch should enforce proper deserialization
187
                    match++;
×
188
                    log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'");
×
189
                }
190
            } catch (Exception e) {
×
191
                // deserialization failed, continue
192
                log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e);
×
193
            }
×
194

195

196
            // deserialize CZLocalAccountIdentification
197
            try {
198
                boolean attemptParsing = true;
×
199
                // ensure that we respect type coercion as set on the client ObjectMapper
200
                if (CZLocalAccountIdentification.class.equals(Integer.class) || CZLocalAccountIdentification.class.equals(Long.class) || CZLocalAccountIdentification.class.equals(Float.class) || CZLocalAccountIdentification.class.equals(Double.class) || CZLocalAccountIdentification.class.equals(Boolean.class) || CZLocalAccountIdentification.class.equals(String.class)) {
×
201
                    attemptParsing = typeCoercion;
×
202
                    if (!attemptParsing) {
×
203
                        attemptParsing |= ((CZLocalAccountIdentification.class.equals(Integer.class) || CZLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
204
                        attemptParsing |= ((CZLocalAccountIdentification.class.equals(Float.class) || CZLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
205
                        attemptParsing |= (CZLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
206
                        attemptParsing |= (CZLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
207
                    }
208
                }
209
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
210
                boolean typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
211
                if (attemptParsing || typeMatch) {
×
212
                    // Strict deserialization for oneOf models
213
                    deserialized = JSON.getMapper().readValue(tree.toString(), CZLocalAccountIdentification.class);
×
214
                    // typeMatch should enforce proper deserialization
215
                    match++;
×
216
                    log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'");
×
217
                }
218
            } catch (Exception e) {
×
219
                // deserialization failed, continue
220
                log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e);
×
221
            }
×
222

223

224
            // deserialize DKLocalAccountIdentification
225
            try {
226
                boolean attemptParsing = true;
×
227
                // ensure that we respect type coercion as set on the client ObjectMapper
228
                if (DKLocalAccountIdentification.class.equals(Integer.class) || DKLocalAccountIdentification.class.equals(Long.class) || DKLocalAccountIdentification.class.equals(Float.class) || DKLocalAccountIdentification.class.equals(Double.class) || DKLocalAccountIdentification.class.equals(Boolean.class) || DKLocalAccountIdentification.class.equals(String.class)) {
×
229
                    attemptParsing = typeCoercion;
×
230
                    if (!attemptParsing) {
×
231
                        attemptParsing |= ((DKLocalAccountIdentification.class.equals(Integer.class) || DKLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
232
                        attemptParsing |= ((DKLocalAccountIdentification.class.equals(Float.class) || DKLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
233
                        attemptParsing |= (DKLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
234
                        attemptParsing |= (DKLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
235
                    }
236
                }
237
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
238
                boolean typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
239
                if (attemptParsing || typeMatch) {
×
240
                    // Strict deserialization for oneOf models
241
                    deserialized = JSON.getMapper().readValue(tree.toString(), DKLocalAccountIdentification.class);
×
242
                    // typeMatch should enforce proper deserialization
243
                    match++;
×
244
                    log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'");
×
245
                }
246
            } catch (Exception e) {
×
247
                // deserialization failed, continue
248
                log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e);
×
249
            }
×
250

251

252
            // deserialize HKLocalAccountIdentification
253
            try {
254
                boolean attemptParsing = true;
×
255
                // ensure that we respect type coercion as set on the client ObjectMapper
256
                if (HKLocalAccountIdentification.class.equals(Integer.class) || HKLocalAccountIdentification.class.equals(Long.class) || HKLocalAccountIdentification.class.equals(Float.class) || HKLocalAccountIdentification.class.equals(Double.class) || HKLocalAccountIdentification.class.equals(Boolean.class) || HKLocalAccountIdentification.class.equals(String.class)) {
×
257
                    attemptParsing = typeCoercion;
×
258
                    if (!attemptParsing) {
×
259
                        attemptParsing |= ((HKLocalAccountIdentification.class.equals(Integer.class) || HKLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
260
                        attemptParsing |= ((HKLocalAccountIdentification.class.equals(Float.class) || HKLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
261
                        attemptParsing |= (HKLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
262
                        attemptParsing |= (HKLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
263
                    }
264
                }
265
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
266
                boolean typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
267
                if (attemptParsing || typeMatch) {
×
268
                    // Strict deserialization for oneOf models
269
                    deserialized = JSON.getMapper().readValue(tree.toString(), HKLocalAccountIdentification.class);
×
270
                    // typeMatch should enforce proper deserialization
271
                    match++;
×
272
                    log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'");
×
273
                }
274
            } catch (Exception e) {
×
275
                // deserialization failed, continue
276
                log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e);
×
277
            }
×
278

279

280
            // deserialize HULocalAccountIdentification
281
            try {
282
                boolean attemptParsing = true;
×
283
                // ensure that we respect type coercion as set on the client ObjectMapper
284
                if (HULocalAccountIdentification.class.equals(Integer.class) || HULocalAccountIdentification.class.equals(Long.class) || HULocalAccountIdentification.class.equals(Float.class) || HULocalAccountIdentification.class.equals(Double.class) || HULocalAccountIdentification.class.equals(Boolean.class) || HULocalAccountIdentification.class.equals(String.class)) {
×
285
                    attemptParsing = typeCoercion;
×
286
                    if (!attemptParsing) {
×
287
                        attemptParsing |= ((HULocalAccountIdentification.class.equals(Integer.class) || HULocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
288
                        attemptParsing |= ((HULocalAccountIdentification.class.equals(Float.class) || HULocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
289
                        attemptParsing |= (HULocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
290
                        attemptParsing |= (HULocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
291
                    }
292
                }
293
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
294
                boolean typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
295
                if (attemptParsing || typeMatch) {
×
296
                    // Strict deserialization for oneOf models
297
                    deserialized = JSON.getMapper().readValue(tree.toString(), HULocalAccountIdentification.class);
×
298
                    // typeMatch should enforce proper deserialization
299
                    match++;
×
300
                    log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'");
×
301
                }
302
            } catch (Exception e) {
×
303
                // deserialization failed, continue
304
                log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e);
×
305
            }
×
306

307

308
            // deserialize IbanAccountIdentification
309
            try {
310
                boolean attemptParsing = true;
×
311
                // ensure that we respect type coercion as set on the client ObjectMapper
312
                if (IbanAccountIdentification.class.equals(Integer.class) || IbanAccountIdentification.class.equals(Long.class) || IbanAccountIdentification.class.equals(Float.class) || IbanAccountIdentification.class.equals(Double.class) || IbanAccountIdentification.class.equals(Boolean.class) || IbanAccountIdentification.class.equals(String.class)) {
×
313
                    attemptParsing = typeCoercion;
×
314
                    if (!attemptParsing) {
×
315
                        attemptParsing |= ((IbanAccountIdentification.class.equals(Integer.class) || IbanAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
316
                        attemptParsing |= ((IbanAccountIdentification.class.equals(Float.class) || IbanAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
317
                        attemptParsing |= (IbanAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
318
                        attemptParsing |= (IbanAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
319
                    }
320
                }
321
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
322
                boolean typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
323
                if (attemptParsing || typeMatch) {
×
324
                    // Strict deserialization for oneOf models
325
                    deserialized = JSON.getMapper().readValue(tree.toString(), IbanAccountIdentification.class);
×
326
                    // typeMatch should enforce proper deserialization
327
                    match++;
×
328
                    log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'");
×
329
                }
330
            } catch (Exception e) {
×
331
                // deserialization failed, continue
332
                log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e);
×
333
            }
×
334

335

336
            // deserialize NOLocalAccountIdentification
337
            try {
338
                boolean attemptParsing = true;
×
339
                // ensure that we respect type coercion as set on the client ObjectMapper
340
                if (NOLocalAccountIdentification.class.equals(Integer.class) || NOLocalAccountIdentification.class.equals(Long.class) || NOLocalAccountIdentification.class.equals(Float.class) || NOLocalAccountIdentification.class.equals(Double.class) || NOLocalAccountIdentification.class.equals(Boolean.class) || NOLocalAccountIdentification.class.equals(String.class)) {
×
341
                    attemptParsing = typeCoercion;
×
342
                    if (!attemptParsing) {
×
343
                        attemptParsing |= ((NOLocalAccountIdentification.class.equals(Integer.class) || NOLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
344
                        attemptParsing |= ((NOLocalAccountIdentification.class.equals(Float.class) || NOLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
345
                        attemptParsing |= (NOLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
346
                        attemptParsing |= (NOLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
347
                    }
348
                }
349
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
350
                boolean typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
351
                if (attemptParsing || typeMatch) {
×
352
                    // Strict deserialization for oneOf models
353
                    deserialized = JSON.getMapper().readValue(tree.toString(), NOLocalAccountIdentification.class);
×
354
                    // typeMatch should enforce proper deserialization
355
                    match++;
×
356
                    log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'");
×
357
                }
358
            } catch (Exception e) {
×
359
                // deserialization failed, continue
360
                log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e);
×
361
            }
×
362

363

364
            // deserialize NZLocalAccountIdentification
365
            try {
366
                boolean attemptParsing = true;
×
367
                // ensure that we respect type coercion as set on the client ObjectMapper
368
                if (NZLocalAccountIdentification.class.equals(Integer.class) || NZLocalAccountIdentification.class.equals(Long.class) || NZLocalAccountIdentification.class.equals(Float.class) || NZLocalAccountIdentification.class.equals(Double.class) || NZLocalAccountIdentification.class.equals(Boolean.class) || NZLocalAccountIdentification.class.equals(String.class)) {
×
369
                    attemptParsing = typeCoercion;
×
370
                    if (!attemptParsing) {
×
371
                        attemptParsing |= ((NZLocalAccountIdentification.class.equals(Integer.class) || NZLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
372
                        attemptParsing |= ((NZLocalAccountIdentification.class.equals(Float.class) || NZLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
373
                        attemptParsing |= (NZLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
374
                        attemptParsing |= (NZLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
375
                    }
376
                }
377
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
378
                boolean typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
379
                if (attemptParsing || typeMatch) {
×
380
                    // Strict deserialization for oneOf models
381
                    deserialized = JSON.getMapper().readValue(tree.toString(), NZLocalAccountIdentification.class);
×
382
                    // typeMatch should enforce proper deserialization
383
                    match++;
×
384
                    log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'");
×
385
                }
386
            } catch (Exception e) {
×
387
                // deserialization failed, continue
388
                log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e);
×
389
            }
×
390

391

392
            // deserialize NumberAndBicAccountIdentification
393
            try {
394
                boolean attemptParsing = true;
×
395
                // ensure that we respect type coercion as set on the client ObjectMapper
396
                if (NumberAndBicAccountIdentification.class.equals(Integer.class) || NumberAndBicAccountIdentification.class.equals(Long.class) || NumberAndBicAccountIdentification.class.equals(Float.class) || NumberAndBicAccountIdentification.class.equals(Double.class) || NumberAndBicAccountIdentification.class.equals(Boolean.class) || NumberAndBicAccountIdentification.class.equals(String.class)) {
×
397
                    attemptParsing = typeCoercion;
×
398
                    if (!attemptParsing) {
×
399
                        attemptParsing |= ((NumberAndBicAccountIdentification.class.equals(Integer.class) || NumberAndBicAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
400
                        attemptParsing |= ((NumberAndBicAccountIdentification.class.equals(Float.class) || NumberAndBicAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
401
                        attemptParsing |= (NumberAndBicAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
402
                        attemptParsing |= (NumberAndBicAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
403
                    }
404
                }
405
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
406
                boolean typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
407
                if (attemptParsing || typeMatch) {
×
408
                    // Strict deserialization for oneOf models
409
                    deserialized = JSON.getMapper().readValue(tree.toString(), NumberAndBicAccountIdentification.class);
×
410
                    // typeMatch should enforce proper deserialization
411
                    match++;
×
412
                    log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'");
×
413
                }
414
            } catch (Exception e) {
×
415
                // deserialization failed, continue
416
                log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e);
×
417
            }
×
418

419

420
            // deserialize PLLocalAccountIdentification
421
            try {
422
                boolean attemptParsing = true;
×
423
                // ensure that we respect type coercion as set on the client ObjectMapper
424
                if (PLLocalAccountIdentification.class.equals(Integer.class) || PLLocalAccountIdentification.class.equals(Long.class) || PLLocalAccountIdentification.class.equals(Float.class) || PLLocalAccountIdentification.class.equals(Double.class) || PLLocalAccountIdentification.class.equals(Boolean.class) || PLLocalAccountIdentification.class.equals(String.class)) {
×
425
                    attemptParsing = typeCoercion;
×
426
                    if (!attemptParsing) {
×
427
                        attemptParsing |= ((PLLocalAccountIdentification.class.equals(Integer.class) || PLLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
428
                        attemptParsing |= ((PLLocalAccountIdentification.class.equals(Float.class) || PLLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
429
                        attemptParsing |= (PLLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
430
                        attemptParsing |= (PLLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
431
                    }
432
                }
433
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
434
                boolean typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
435
                if (attemptParsing || typeMatch) {
×
436
                    // Strict deserialization for oneOf models
437
                    deserialized = JSON.getMapper().readValue(tree.toString(), PLLocalAccountIdentification.class);
×
438
                    // typeMatch should enforce proper deserialization
439
                    match++;
×
440
                    log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'");
×
441
                }
442
            } catch (Exception e) {
×
443
                // deserialization failed, continue
444
                log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e);
×
445
            }
×
446

447

448
            // deserialize SELocalAccountIdentification
449
            try {
450
                boolean attemptParsing = true;
×
451
                // ensure that we respect type coercion as set on the client ObjectMapper
452
                if (SELocalAccountIdentification.class.equals(Integer.class) || SELocalAccountIdentification.class.equals(Long.class) || SELocalAccountIdentification.class.equals(Float.class) || SELocalAccountIdentification.class.equals(Double.class) || SELocalAccountIdentification.class.equals(Boolean.class) || SELocalAccountIdentification.class.equals(String.class)) {
×
453
                    attemptParsing = typeCoercion;
×
454
                    if (!attemptParsing) {
×
455
                        attemptParsing |= ((SELocalAccountIdentification.class.equals(Integer.class) || SELocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
456
                        attemptParsing |= ((SELocalAccountIdentification.class.equals(Float.class) || SELocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
457
                        attemptParsing |= (SELocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
458
                        attemptParsing |= (SELocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
459
                    }
460
                }
461
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
462
                boolean typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
463
                if (attemptParsing || typeMatch) {
×
464
                    // Strict deserialization for oneOf models
465
                    deserialized = JSON.getMapper().readValue(tree.toString(), SELocalAccountIdentification.class);
×
466
                    // typeMatch should enforce proper deserialization
467
                    match++;
×
468
                    log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'");
×
469
                }
470
            } catch (Exception e) {
×
471
                // deserialization failed, continue
472
                log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e);
×
473
            }
×
474

475

476
            // deserialize SGLocalAccountIdentification
477
            try {
478
                boolean attemptParsing = true;
×
479
                // ensure that we respect type coercion as set on the client ObjectMapper
480
                if (SGLocalAccountIdentification.class.equals(Integer.class) || SGLocalAccountIdentification.class.equals(Long.class) || SGLocalAccountIdentification.class.equals(Float.class) || SGLocalAccountIdentification.class.equals(Double.class) || SGLocalAccountIdentification.class.equals(Boolean.class) || SGLocalAccountIdentification.class.equals(String.class)) {
×
481
                    attemptParsing = typeCoercion;
×
482
                    if (!attemptParsing) {
×
483
                        attemptParsing |= ((SGLocalAccountIdentification.class.equals(Integer.class) || SGLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
484
                        attemptParsing |= ((SGLocalAccountIdentification.class.equals(Float.class) || SGLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
485
                        attemptParsing |= (SGLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
486
                        attemptParsing |= (SGLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
487
                    }
488
                }
489
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
490
                boolean typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
491
                if (attemptParsing || typeMatch) {
×
492
                    // Strict deserialization for oneOf models
493
                    deserialized = JSON.getMapper().readValue(tree.toString(), SGLocalAccountIdentification.class);
×
494
                    // typeMatch should enforce proper deserialization
495
                    match++;
×
496
                    log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'");
×
497
                }
498
            } catch (Exception e) {
×
499
                // deserialization failed, continue
500
                log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e);
×
501
            }
×
502

503

504
            // deserialize UKLocalAccountIdentification
505
            try {
506
                boolean attemptParsing = true;
×
507
                // ensure that we respect type coercion as set on the client ObjectMapper
508
                if (UKLocalAccountIdentification.class.equals(Integer.class) || UKLocalAccountIdentification.class.equals(Long.class) || UKLocalAccountIdentification.class.equals(Float.class) || UKLocalAccountIdentification.class.equals(Double.class) || UKLocalAccountIdentification.class.equals(Boolean.class) || UKLocalAccountIdentification.class.equals(String.class)) {
×
509
                    attemptParsing = typeCoercion;
×
510
                    if (!attemptParsing) {
×
511
                        attemptParsing |= ((UKLocalAccountIdentification.class.equals(Integer.class) || UKLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
512
                        attemptParsing |= ((UKLocalAccountIdentification.class.equals(Float.class) || UKLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
513
                        attemptParsing |= (UKLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
514
                        attemptParsing |= (UKLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
515
                    }
516
                }
517
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
518
                boolean typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
519
                if (attemptParsing || typeMatch) {
×
520
                    // Strict deserialization for oneOf models
521
                    deserialized = JSON.getMapper().readValue(tree.toString(), UKLocalAccountIdentification.class);
×
522
                    // typeMatch should enforce proper deserialization
523
                    match++;
×
524
                    log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'");
×
525
                }
526
            } catch (Exception e) {
×
527
                // deserialization failed, continue
528
                log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e);
×
529
            }
×
530

531

532
            // deserialize USLocalAccountIdentification
533
            try {
534
                boolean attemptParsing = true;
×
535
                // ensure that we respect type coercion as set on the client ObjectMapper
536
                if (USLocalAccountIdentification.class.equals(Integer.class) || USLocalAccountIdentification.class.equals(Long.class) || USLocalAccountIdentification.class.equals(Float.class) || USLocalAccountIdentification.class.equals(Double.class) || USLocalAccountIdentification.class.equals(Boolean.class) || USLocalAccountIdentification.class.equals(String.class)) {
×
537
                    attemptParsing = typeCoercion;
×
538
                    if (!attemptParsing) {
×
539
                        attemptParsing |= ((USLocalAccountIdentification.class.equals(Integer.class) || USLocalAccountIdentification.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
×
540
                        attemptParsing |= ((USLocalAccountIdentification.class.equals(Float.class) || USLocalAccountIdentification.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
×
541
                        attemptParsing |= (USLocalAccountIdentification.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
×
542
                        attemptParsing |= (USLocalAccountIdentification.class.equals(String.class) && token == JsonToken.VALUE_STRING);
×
543
                    }
544
                }
545
                // Checks if the unique type of the oneOf json matches any of the object TypeEnum values
546
                boolean typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText()));
×
547
                if (attemptParsing || typeMatch) {
×
548
                    // Strict deserialization for oneOf models
549
                    deserialized = JSON.getMapper().readValue(tree.toString(), USLocalAccountIdentification.class);
×
550
                    // typeMatch should enforce proper deserialization
551
                    match++;
×
552
                    log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'");
×
553
                }
554
            } catch (Exception e) {
×
555
                // deserialization failed, continue
556
                log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e);
×
557
            }
×
558

559
            // Throw error if there is no match
560
            if (match == 0) {
×
561
                throw new IOException(String.format("Failed deserialization for BankAccountAccountIdentification: %d classes match result, expected 1", match));
×
562
            }
563
            // Log warning if there is more than one match
564
            if (match > 1) {
×
565
                log.log(Level.WARNING, String.format("Warning, indecisive deserialization for BankAccountAccountIdentification: %d classes match result, expected 1", match));
×
566
            }
567

568
            BankAccountAccountIdentification ret = new BankAccountAccountIdentification();
×
569
            ret.setActualInstance(deserialized);
×
570
            return ret;
×
571
        }
572

573
        /**
574
         * Handle deserialization of the 'null' value.
575
         */
576
        @Override
577
        public BankAccountAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException {
578
            throw new JsonMappingException(ctxt.getParser(), "BankAccountAccountIdentification cannot be null");
×
579
        }
580
    }
581

582
    // store a list of schema names defined in oneOf
583
    public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
×
584

585
    public BankAccountAccountIdentification() {
586
        super("oneOf", Boolean.FALSE);
×
587
    }
×
588

589
    public BankAccountAccountIdentification(AULocalAccountIdentification o) {
590
        super("oneOf", Boolean.FALSE);
×
591
        setActualInstance(o);
×
592
    }
×
593

594
    public BankAccountAccountIdentification(BRLocalAccountIdentification o) {
595
        super("oneOf", Boolean.FALSE);
×
596
        setActualInstance(o);
×
597
    }
×
598

599
    public BankAccountAccountIdentification(CALocalAccountIdentification o) {
600
        super("oneOf", Boolean.FALSE);
×
601
        setActualInstance(o);
×
602
    }
×
603

604
    public BankAccountAccountIdentification(CZLocalAccountIdentification o) {
605
        super("oneOf", Boolean.FALSE);
×
606
        setActualInstance(o);
×
607
    }
×
608

609
    public BankAccountAccountIdentification(DKLocalAccountIdentification o) {
610
        super("oneOf", Boolean.FALSE);
×
611
        setActualInstance(o);
×
612
    }
×
613

614
    public BankAccountAccountIdentification(HKLocalAccountIdentification o) {
615
        super("oneOf", Boolean.FALSE);
×
616
        setActualInstance(o);
×
617
    }
×
618

619
    public BankAccountAccountIdentification(HULocalAccountIdentification o) {
620
        super("oneOf", Boolean.FALSE);
×
621
        setActualInstance(o);
×
622
    }
×
623

624
    public BankAccountAccountIdentification(IbanAccountIdentification o) {
625
        super("oneOf", Boolean.FALSE);
×
626
        setActualInstance(o);
×
627
    }
×
628

629
    public BankAccountAccountIdentification(NOLocalAccountIdentification o) {
630
        super("oneOf", Boolean.FALSE);
×
631
        setActualInstance(o);
×
632
    }
×
633

634
    public BankAccountAccountIdentification(NZLocalAccountIdentification o) {
635
        super("oneOf", Boolean.FALSE);
×
636
        setActualInstance(o);
×
637
    }
×
638

639
    public BankAccountAccountIdentification(NumberAndBicAccountIdentification o) {
640
        super("oneOf", Boolean.FALSE);
×
641
        setActualInstance(o);
×
642
    }
×
643

644
    public BankAccountAccountIdentification(PLLocalAccountIdentification o) {
645
        super("oneOf", Boolean.FALSE);
×
646
        setActualInstance(o);
×
647
    }
×
648

649
    public BankAccountAccountIdentification(SELocalAccountIdentification o) {
650
        super("oneOf", Boolean.FALSE);
×
651
        setActualInstance(o);
×
652
    }
×
653

654
    public BankAccountAccountIdentification(SGLocalAccountIdentification o) {
655
        super("oneOf", Boolean.FALSE);
×
656
        setActualInstance(o);
×
657
    }
×
658

659
    public BankAccountAccountIdentification(UKLocalAccountIdentification o) {
660
        super("oneOf", Boolean.FALSE);
×
661
        setActualInstance(o);
×
662
    }
×
663

664
    public BankAccountAccountIdentification(USLocalAccountIdentification o) {
665
        super("oneOf", Boolean.FALSE);
×
666
        setActualInstance(o);
×
667
    }
×
668

669
    static {
670
        schemas.put("AULocalAccountIdentification", new GenericType<AULocalAccountIdentification>() {
×
671
        });
672
        schemas.put("BRLocalAccountIdentification", new GenericType<BRLocalAccountIdentification>() {
×
673
        });
674
        schemas.put("CALocalAccountIdentification", new GenericType<CALocalAccountIdentification>() {
×
675
        });
676
        schemas.put("CZLocalAccountIdentification", new GenericType<CZLocalAccountIdentification>() {
×
677
        });
678
        schemas.put("DKLocalAccountIdentification", new GenericType<DKLocalAccountIdentification>() {
×
679
        });
680
        schemas.put("HKLocalAccountIdentification", new GenericType<HKLocalAccountIdentification>() {
×
681
        });
682
        schemas.put("HULocalAccountIdentification", new GenericType<HULocalAccountIdentification>() {
×
683
        });
684
        schemas.put("IbanAccountIdentification", new GenericType<IbanAccountIdentification>() {
×
685
        });
686
        schemas.put("NOLocalAccountIdentification", new GenericType<NOLocalAccountIdentification>() {
×
687
        });
688
        schemas.put("NZLocalAccountIdentification", new GenericType<NZLocalAccountIdentification>() {
×
689
        });
690
        schemas.put("NumberAndBicAccountIdentification", new GenericType<NumberAndBicAccountIdentification>() {
×
691
        });
692
        schemas.put("PLLocalAccountIdentification", new GenericType<PLLocalAccountIdentification>() {
×
693
        });
694
        schemas.put("SELocalAccountIdentification", new GenericType<SELocalAccountIdentification>() {
×
695
        });
696
        schemas.put("SGLocalAccountIdentification", new GenericType<SGLocalAccountIdentification>() {
×
697
        });
698
        schemas.put("UKLocalAccountIdentification", new GenericType<UKLocalAccountIdentification>() {
×
699
        });
700
        schemas.put("USLocalAccountIdentification", new GenericType<USLocalAccountIdentification>() {
×
701
        });
702
        JSON.registerDescendants(BankAccountAccountIdentification.class, Collections.unmodifiableMap(schemas));
×
703
    }
×
704

705
    @Override
706
    public Map<String, GenericType> getSchemas() {
707
        return BankAccountAccountIdentification.schemas;
×
708
    }
709

710
    /**
711
     * Set the instance that matches the oneOf child schema, check
712
     * the instance parameter is valid against the oneOf child schemas:
713
     * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification
714
     *
715
     * It could be an instance of the 'oneOf' schemas.
716
     * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf).
717
     */
718
    @Override
719
    public void setActualInstance(Object instance) {
720
        if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
721
            super.setActualInstance(instance);
×
722
            return;
×
723
        }
724

725
        if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
726
            super.setActualInstance(instance);
×
727
            return;
×
728
        }
729

730
        if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
731
            super.setActualInstance(instance);
×
732
            return;
×
733
        }
734

735
        if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
736
            super.setActualInstance(instance);
×
737
            return;
×
738
        }
739

740
        if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
741
            super.setActualInstance(instance);
×
742
            return;
×
743
        }
744

745
        if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
746
            super.setActualInstance(instance);
×
747
            return;
×
748
        }
749

750
        if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
751
            super.setActualInstance(instance);
×
752
            return;
×
753
        }
754

755
        if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
756
            super.setActualInstance(instance);
×
757
            return;
×
758
        }
759

760
        if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
761
            super.setActualInstance(instance);
×
762
            return;
×
763
        }
764

765
        if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
766
            super.setActualInstance(instance);
×
767
            return;
×
768
        }
769

770
        if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
771
            super.setActualInstance(instance);
×
772
            return;
×
773
        }
774

775
        if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
776
            super.setActualInstance(instance);
×
777
            return;
×
778
        }
779

780
        if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
781
            super.setActualInstance(instance);
×
782
            return;
×
783
        }
784

785
        if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
786
            super.setActualInstance(instance);
×
787
            return;
×
788
        }
789

790
        if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
791
            super.setActualInstance(instance);
×
792
            return;
×
793
        }
794

795
        if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
×
796
            super.setActualInstance(instance);
×
797
            return;
×
798
        }
799

800
        throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification");
×
801
    }
802

803
    /**
804
     * Get the actual instance, which can be the following:
805
     * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification
806
     *
807
     * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification)
808
     */
809
    @Override
810
    public Object getActualInstance() {
811
        return super.getActualInstance();
×
812
    }
813

814
    /**
815
     * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`,
816
     * the ClassCastException will be thrown.
817
     *
818
     * @return The actual instance of `AULocalAccountIdentification`
819
     * @throws ClassCastException if the instance is not `AULocalAccountIdentification`
820
     */
821
    public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException {
822
        return (AULocalAccountIdentification)super.getActualInstance();
×
823
    }
824

825
    /**
826
     * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`,
827
     * the ClassCastException will be thrown.
828
     *
829
     * @return The actual instance of `BRLocalAccountIdentification`
830
     * @throws ClassCastException if the instance is not `BRLocalAccountIdentification`
831
     */
832
    public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException {
833
        return (BRLocalAccountIdentification)super.getActualInstance();
×
834
    }
835

836
    /**
837
     * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`,
838
     * the ClassCastException will be thrown.
839
     *
840
     * @return The actual instance of `CALocalAccountIdentification`
841
     * @throws ClassCastException if the instance is not `CALocalAccountIdentification`
842
     */
843
    public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException {
844
        return (CALocalAccountIdentification)super.getActualInstance();
×
845
    }
846

847
    /**
848
     * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`,
849
     * the ClassCastException will be thrown.
850
     *
851
     * @return The actual instance of `CZLocalAccountIdentification`
852
     * @throws ClassCastException if the instance is not `CZLocalAccountIdentification`
853
     */
854
    public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException {
855
        return (CZLocalAccountIdentification)super.getActualInstance();
×
856
    }
857

858
    /**
859
     * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`,
860
     * the ClassCastException will be thrown.
861
     *
862
     * @return The actual instance of `DKLocalAccountIdentification`
863
     * @throws ClassCastException if the instance is not `DKLocalAccountIdentification`
864
     */
865
    public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException {
866
        return (DKLocalAccountIdentification)super.getActualInstance();
×
867
    }
868

869
    /**
870
     * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`,
871
     * the ClassCastException will be thrown.
872
     *
873
     * @return The actual instance of `HKLocalAccountIdentification`
874
     * @throws ClassCastException if the instance is not `HKLocalAccountIdentification`
875
     */
876
    public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException {
877
        return (HKLocalAccountIdentification)super.getActualInstance();
×
878
    }
879

880
    /**
881
     * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`,
882
     * the ClassCastException will be thrown.
883
     *
884
     * @return The actual instance of `HULocalAccountIdentification`
885
     * @throws ClassCastException if the instance is not `HULocalAccountIdentification`
886
     */
887
    public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException {
888
        return (HULocalAccountIdentification)super.getActualInstance();
×
889
    }
890

891
    /**
892
     * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`,
893
     * the ClassCastException will be thrown.
894
     *
895
     * @return The actual instance of `IbanAccountIdentification`
896
     * @throws ClassCastException if the instance is not `IbanAccountIdentification`
897
     */
898
    public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException {
899
        return (IbanAccountIdentification)super.getActualInstance();
×
900
    }
901

902
    /**
903
     * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`,
904
     * the ClassCastException will be thrown.
905
     *
906
     * @return The actual instance of `NOLocalAccountIdentification`
907
     * @throws ClassCastException if the instance is not `NOLocalAccountIdentification`
908
     */
909
    public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException {
910
        return (NOLocalAccountIdentification)super.getActualInstance();
×
911
    }
912

913
    /**
914
     * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`,
915
     * the ClassCastException will be thrown.
916
     *
917
     * @return The actual instance of `NZLocalAccountIdentification`
918
     * @throws ClassCastException if the instance is not `NZLocalAccountIdentification`
919
     */
920
    public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException {
921
        return (NZLocalAccountIdentification)super.getActualInstance();
×
922
    }
923

924
    /**
925
     * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`,
926
     * the ClassCastException will be thrown.
927
     *
928
     * @return The actual instance of `NumberAndBicAccountIdentification`
929
     * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification`
930
     */
931
    public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException {
932
        return (NumberAndBicAccountIdentification)super.getActualInstance();
×
933
    }
934

935
    /**
936
     * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`,
937
     * the ClassCastException will be thrown.
938
     *
939
     * @return The actual instance of `PLLocalAccountIdentification`
940
     * @throws ClassCastException if the instance is not `PLLocalAccountIdentification`
941
     */
942
    public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException {
943
        return (PLLocalAccountIdentification)super.getActualInstance();
×
944
    }
945

946
    /**
947
     * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`,
948
     * the ClassCastException will be thrown.
949
     *
950
     * @return The actual instance of `SELocalAccountIdentification`
951
     * @throws ClassCastException if the instance is not `SELocalAccountIdentification`
952
     */
953
    public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException {
954
        return (SELocalAccountIdentification)super.getActualInstance();
×
955
    }
956

957
    /**
958
     * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`,
959
     * the ClassCastException will be thrown.
960
     *
961
     * @return The actual instance of `SGLocalAccountIdentification`
962
     * @throws ClassCastException if the instance is not `SGLocalAccountIdentification`
963
     */
964
    public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException {
965
        return (SGLocalAccountIdentification)super.getActualInstance();
×
966
    }
967

968
    /**
969
     * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`,
970
     * the ClassCastException will be thrown.
971
     *
972
     * @return The actual instance of `UKLocalAccountIdentification`
973
     * @throws ClassCastException if the instance is not `UKLocalAccountIdentification`
974
     */
975
    public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException {
976
        return (UKLocalAccountIdentification)super.getActualInstance();
×
977
    }
978

979
    /**
980
     * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`,
981
     * the ClassCastException will be thrown.
982
     *
983
     * @return The actual instance of `USLocalAccountIdentification`
984
     * @throws ClassCastException if the instance is not `USLocalAccountIdentification`
985
     */
986
    public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException {
987
        return (USLocalAccountIdentification)super.getActualInstance();
×
988
    }
989

990
    /**
991
    * Create an instance of BankAccountAccountIdentification given an JSON string
992
    *
993
    * @param jsonString JSON string
994
    * @return An instance of BankAccountAccountIdentification
995
    * @throws IOException if the JSON string is invalid with respect to BankAccountAccountIdentification
996
    */
997
    public static BankAccountAccountIdentification fromJson(String jsonString) throws IOException {
998
        return JSON.getMapper().readValue(jsonString, BankAccountAccountIdentification.class);
×
999
    }
1000

1001
    /**
1002
    * Convert an instance of BankAccountAccountIdentification to an JSON string
1003
    *
1004
    * @return JSON string
1005
    */
1006
    public String toJson() throws JsonProcessingException {
1007
        return JSON.getMapper().writeValueAsString(this);
×
1008
    }
1009
}
1010

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc