• 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

40.36
/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java
1
/*
2
 * Legal Entity Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.legalentitymanagement;
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.legalentitymanagement.AULocalAccountIdentification;
20
import com.adyen.model.legalentitymanagement.AdditionalBankIdentification;
21
import com.adyen.model.legalentitymanagement.CALocalAccountIdentification;
22
import com.adyen.model.legalentitymanagement.CZLocalAccountIdentification;
23
import com.adyen.model.legalentitymanagement.DKLocalAccountIdentification;
24
import com.adyen.model.legalentitymanagement.HKLocalAccountIdentification;
25
import com.adyen.model.legalentitymanagement.HULocalAccountIdentification;
26
import com.adyen.model.legalentitymanagement.IbanAccountIdentification;
27
import com.adyen.model.legalentitymanagement.NOLocalAccountIdentification;
28
import com.adyen.model.legalentitymanagement.NZLocalAccountIdentification;
29
import com.adyen.model.legalentitymanagement.NumberAndBicAccountIdentification;
30
import com.adyen.model.legalentitymanagement.PLLocalAccountIdentification;
31
import com.adyen.model.legalentitymanagement.SELocalAccountIdentification;
32
import com.adyen.model.legalentitymanagement.SGLocalAccountIdentification;
33
import com.adyen.model.legalentitymanagement.UKLocalAccountIdentification;
34
import com.adyen.model.legalentitymanagement.USLocalAccountIdentification;
35
import com.fasterxml.jackson.annotation.JsonInclude;
36
import com.fasterxml.jackson.annotation.JsonProperty;
37
import com.fasterxml.jackson.annotation.JsonCreator;
38
import com.fasterxml.jackson.annotation.JsonTypeName;
39
import com.fasterxml.jackson.annotation.JsonValue;
40
import io.swagger.annotations.ApiModel;
41
import io.swagger.annotations.ApiModelProperty;
42
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
43
import com.fasterxml.jackson.core.JsonProcessingException;
44

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

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

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

73

74
@JsonDeserialize(using = BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationDeserializer.class)
75
@JsonSerialize(using = BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationSerializer.class)
76
public class BankAccountInfoAccountIdentification extends AbstractOpenApiSchema {
77
    private static final Logger log = Logger.getLogger(BankAccountInfoAccountIdentification.class.getName());
1✔
78

79
    public static class BankAccountInfoAccountIdentificationSerializer extends StdSerializer<BankAccountInfoAccountIdentification> {
80
        public BankAccountInfoAccountIdentificationSerializer(Class<BankAccountInfoAccountIdentification> t) {
81
            super(t);
1✔
82
        }
1✔
83

84
        public BankAccountInfoAccountIdentificationSerializer() {
85
            this(null);
1✔
86
        }
1✔
87

88
        @Override
89
        public void serialize(BankAccountInfoAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException {
90
            jgen.writeObject(value.getActualInstance());
1✔
91
        }
1✔
92
    }
93

94
    public static class BankAccountInfoAccountIdentificationDeserializer extends StdDeserializer<BankAccountInfoAccountIdentification> {
95
        public BankAccountInfoAccountIdentificationDeserializer() {
96
            this(BankAccountInfoAccountIdentification.class);
1✔
97
        }
1✔
98

99
        public BankAccountInfoAccountIdentificationDeserializer(Class<?> vc) {
100
            super(vc);
1✔
101
        }
1✔
102

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

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

138

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

166

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

194

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

222

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

250

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

278

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

306

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

334

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

362

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

390

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

418

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

446

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

474

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

502

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

530
            // Throw error if there is no match
531
            if (match == 0) {
1✔
532
                throw new IOException(String.format("Failed deserialization for BankAccountInfoAccountIdentification: %d classes match result, expected 1", match));
×
533
            }
534
            // Log warning if there is more than one match
535
            if (match > 1) {
1✔
536
                log.log(Level.WARNING, String.format("Warning, indecisive deserialization for BankAccountInfoAccountIdentification: %d classes match result, expected 1", match));
×
537
            }
538

539
            BankAccountInfoAccountIdentification ret = new BankAccountInfoAccountIdentification();
1✔
540
            ret.setActualInstance(deserialized);
1✔
541
            return ret;
1✔
542
        }
543

544
        /**
545
         * Handle deserialization of the 'null' value.
546
         */
547
        @Override
548
        public BankAccountInfoAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException {
549
            throw new JsonMappingException(ctxt.getParser(), "BankAccountInfoAccountIdentification cannot be null");
×
550
        }
551
    }
552

553
    // store a list of schema names defined in oneOf
554
    public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
1✔
555

556
    public BankAccountInfoAccountIdentification() {
557
        super("oneOf", Boolean.FALSE);
1✔
558
    }
1✔
559

560
    public BankAccountInfoAccountIdentification(AULocalAccountIdentification o) {
561
        super("oneOf", Boolean.FALSE);
×
562
        setActualInstance(o);
×
563
    }
×
564

565
    public BankAccountInfoAccountIdentification(CALocalAccountIdentification o) {
566
        super("oneOf", Boolean.FALSE);
×
567
        setActualInstance(o);
×
568
    }
×
569

570
    public BankAccountInfoAccountIdentification(CZLocalAccountIdentification o) {
571
        super("oneOf", Boolean.FALSE);
×
572
        setActualInstance(o);
×
573
    }
×
574

575
    public BankAccountInfoAccountIdentification(DKLocalAccountIdentification o) {
576
        super("oneOf", Boolean.FALSE);
×
577
        setActualInstance(o);
×
578
    }
×
579

580
    public BankAccountInfoAccountIdentification(HKLocalAccountIdentification o) {
581
        super("oneOf", Boolean.FALSE);
×
582
        setActualInstance(o);
×
583
    }
×
584

585
    public BankAccountInfoAccountIdentification(HULocalAccountIdentification o) {
586
        super("oneOf", Boolean.FALSE);
×
587
        setActualInstance(o);
×
588
    }
×
589

590
    public BankAccountInfoAccountIdentification(IbanAccountIdentification o) {
591
        super("oneOf", Boolean.FALSE);
×
592
        setActualInstance(o);
×
593
    }
×
594

595
    public BankAccountInfoAccountIdentification(NOLocalAccountIdentification o) {
596
        super("oneOf", Boolean.FALSE);
×
597
        setActualInstance(o);
×
598
    }
×
599

600
    public BankAccountInfoAccountIdentification(NZLocalAccountIdentification o) {
601
        super("oneOf", Boolean.FALSE);
×
602
        setActualInstance(o);
×
603
    }
×
604

605
    public BankAccountInfoAccountIdentification(NumberAndBicAccountIdentification o) {
606
        super("oneOf", Boolean.FALSE);
×
607
        setActualInstance(o);
×
608
    }
×
609

610
    public BankAccountInfoAccountIdentification(PLLocalAccountIdentification o) {
611
        super("oneOf", Boolean.FALSE);
×
612
        setActualInstance(o);
×
613
    }
×
614

615
    public BankAccountInfoAccountIdentification(SELocalAccountIdentification o) {
616
        super("oneOf", Boolean.FALSE);
×
617
        setActualInstance(o);
×
618
    }
×
619

620
    public BankAccountInfoAccountIdentification(SGLocalAccountIdentification o) {
621
        super("oneOf", Boolean.FALSE);
×
622
        setActualInstance(o);
×
623
    }
×
624

625
    public BankAccountInfoAccountIdentification(UKLocalAccountIdentification o) {
626
        super("oneOf", Boolean.FALSE);
×
627
        setActualInstance(o);
×
628
    }
×
629

630
    public BankAccountInfoAccountIdentification(USLocalAccountIdentification o) {
631
        super("oneOf", Boolean.FALSE);
×
632
        setActualInstance(o);
×
633
    }
×
634

635
    static {
636
        schemas.put("AULocalAccountIdentification", new GenericType<AULocalAccountIdentification>() {
1✔
637
        });
638
        schemas.put("CALocalAccountIdentification", new GenericType<CALocalAccountIdentification>() {
1✔
639
        });
640
        schemas.put("CZLocalAccountIdentification", new GenericType<CZLocalAccountIdentification>() {
1✔
641
        });
642
        schemas.put("DKLocalAccountIdentification", new GenericType<DKLocalAccountIdentification>() {
1✔
643
        });
644
        schemas.put("HKLocalAccountIdentification", new GenericType<HKLocalAccountIdentification>() {
1✔
645
        });
646
        schemas.put("HULocalAccountIdentification", new GenericType<HULocalAccountIdentification>() {
1✔
647
        });
648
        schemas.put("IbanAccountIdentification", new GenericType<IbanAccountIdentification>() {
1✔
649
        });
650
        schemas.put("NOLocalAccountIdentification", new GenericType<NOLocalAccountIdentification>() {
1✔
651
        });
652
        schemas.put("NZLocalAccountIdentification", new GenericType<NZLocalAccountIdentification>() {
1✔
653
        });
654
        schemas.put("NumberAndBicAccountIdentification", new GenericType<NumberAndBicAccountIdentification>() {
1✔
655
        });
656
        schemas.put("PLLocalAccountIdentification", new GenericType<PLLocalAccountIdentification>() {
1✔
657
        });
658
        schemas.put("SELocalAccountIdentification", new GenericType<SELocalAccountIdentification>() {
1✔
659
        });
660
        schemas.put("SGLocalAccountIdentification", new GenericType<SGLocalAccountIdentification>() {
1✔
661
        });
662
        schemas.put("UKLocalAccountIdentification", new GenericType<UKLocalAccountIdentification>() {
1✔
663
        });
664
        schemas.put("USLocalAccountIdentification", new GenericType<USLocalAccountIdentification>() {
1✔
665
        });
666
        JSON.registerDescendants(BankAccountInfoAccountIdentification.class, Collections.unmodifiableMap(schemas));
1✔
667
    }
1✔
668

669
    @Override
670
    public Map<String, GenericType> getSchemas() {
671
        return BankAccountInfoAccountIdentification.schemas;
×
672
    }
673

674
    /**
675
     * Set the instance that matches the oneOf child schema, check
676
     * the instance parameter is valid against the oneOf child schemas:
677
     * AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification
678
     *
679
     * It could be an instance of the 'oneOf' schemas.
680
     * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf).
681
     */
682
    @Override
683
    public void setActualInstance(Object instance) {
684
        if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
685
            super.setActualInstance(instance);
1✔
686
            return;
1✔
687
        }
688

689
        if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
690
            super.setActualInstance(instance);
×
691
            return;
×
692
        }
693

694
        if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
695
            super.setActualInstance(instance);
×
696
            return;
×
697
        }
698

699
        if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
700
            super.setActualInstance(instance);
×
701
            return;
×
702
        }
703

704
        if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
705
            super.setActualInstance(instance);
×
706
            return;
×
707
        }
708

709
        if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
710
            super.setActualInstance(instance);
×
711
            return;
×
712
        }
713

714
        if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
715
            super.setActualInstance(instance);
×
716
            return;
×
717
        }
718

719
        if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
720
            super.setActualInstance(instance);
×
721
            return;
×
722
        }
723

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

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

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

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

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

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

754
        if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<Class<?>>())) {
1✔
755
            super.setActualInstance(instance);
1✔
756
            return;
1✔
757
        }
758

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

762
    /**
763
     * Get the actual instance, which can be the following:
764
     * AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification
765
     *
766
     * @return The actual instance (AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification)
767
     */
768
    @Override
769
    public Object getActualInstance() {
770
        return super.getActualInstance();
1✔
771
    }
772

773
    /**
774
     * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`,
775
     * the ClassCastException will be thrown.
776
     *
777
     * @return The actual instance of `AULocalAccountIdentification`
778
     * @throws ClassCastException if the instance is not `AULocalAccountIdentification`
779
     */
780
    public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException {
781
        return (AULocalAccountIdentification)super.getActualInstance();
×
782
    }
783

784
    /**
785
     * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`,
786
     * the ClassCastException will be thrown.
787
     *
788
     * @return The actual instance of `CALocalAccountIdentification`
789
     * @throws ClassCastException if the instance is not `CALocalAccountIdentification`
790
     */
791
    public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException {
792
        return (CALocalAccountIdentification)super.getActualInstance();
×
793
    }
794

795
    /**
796
     * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`,
797
     * the ClassCastException will be thrown.
798
     *
799
     * @return The actual instance of `CZLocalAccountIdentification`
800
     * @throws ClassCastException if the instance is not `CZLocalAccountIdentification`
801
     */
802
    public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException {
803
        return (CZLocalAccountIdentification)super.getActualInstance();
×
804
    }
805

806
    /**
807
     * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`,
808
     * the ClassCastException will be thrown.
809
     *
810
     * @return The actual instance of `DKLocalAccountIdentification`
811
     * @throws ClassCastException if the instance is not `DKLocalAccountIdentification`
812
     */
813
    public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException {
814
        return (DKLocalAccountIdentification)super.getActualInstance();
×
815
    }
816

817
    /**
818
     * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`,
819
     * the ClassCastException will be thrown.
820
     *
821
     * @return The actual instance of `HKLocalAccountIdentification`
822
     * @throws ClassCastException if the instance is not `HKLocalAccountIdentification`
823
     */
824
    public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException {
825
        return (HKLocalAccountIdentification)super.getActualInstance();
×
826
    }
827

828
    /**
829
     * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`,
830
     * the ClassCastException will be thrown.
831
     *
832
     * @return The actual instance of `HULocalAccountIdentification`
833
     * @throws ClassCastException if the instance is not `HULocalAccountIdentification`
834
     */
835
    public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException {
836
        return (HULocalAccountIdentification)super.getActualInstance();
×
837
    }
838

839
    /**
840
     * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`,
841
     * the ClassCastException will be thrown.
842
     *
843
     * @return The actual instance of `IbanAccountIdentification`
844
     * @throws ClassCastException if the instance is not `IbanAccountIdentification`
845
     */
846
    public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException {
847
        return (IbanAccountIdentification)super.getActualInstance();
×
848
    }
849

850
    /**
851
     * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`,
852
     * the ClassCastException will be thrown.
853
     *
854
     * @return The actual instance of `NOLocalAccountIdentification`
855
     * @throws ClassCastException if the instance is not `NOLocalAccountIdentification`
856
     */
857
    public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException {
858
        return (NOLocalAccountIdentification)super.getActualInstance();
×
859
    }
860

861
    /**
862
     * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`,
863
     * the ClassCastException will be thrown.
864
     *
865
     * @return The actual instance of `NZLocalAccountIdentification`
866
     * @throws ClassCastException if the instance is not `NZLocalAccountIdentification`
867
     */
868
    public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException {
869
        return (NZLocalAccountIdentification)super.getActualInstance();
×
870
    }
871

872
    /**
873
     * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`,
874
     * the ClassCastException will be thrown.
875
     *
876
     * @return The actual instance of `NumberAndBicAccountIdentification`
877
     * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification`
878
     */
879
    public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException {
880
        return (NumberAndBicAccountIdentification)super.getActualInstance();
×
881
    }
882

883
    /**
884
     * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`,
885
     * the ClassCastException will be thrown.
886
     *
887
     * @return The actual instance of `PLLocalAccountIdentification`
888
     * @throws ClassCastException if the instance is not `PLLocalAccountIdentification`
889
     */
890
    public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException {
891
        return (PLLocalAccountIdentification)super.getActualInstance();
×
892
    }
893

894
    /**
895
     * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`,
896
     * the ClassCastException will be thrown.
897
     *
898
     * @return The actual instance of `SELocalAccountIdentification`
899
     * @throws ClassCastException if the instance is not `SELocalAccountIdentification`
900
     */
901
    public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException {
902
        return (SELocalAccountIdentification)super.getActualInstance();
×
903
    }
904

905
    /**
906
     * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`,
907
     * the ClassCastException will be thrown.
908
     *
909
     * @return The actual instance of `SGLocalAccountIdentification`
910
     * @throws ClassCastException if the instance is not `SGLocalAccountIdentification`
911
     */
912
    public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException {
913
        return (SGLocalAccountIdentification)super.getActualInstance();
×
914
    }
915

916
    /**
917
     * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`,
918
     * the ClassCastException will be thrown.
919
     *
920
     * @return The actual instance of `UKLocalAccountIdentification`
921
     * @throws ClassCastException if the instance is not `UKLocalAccountIdentification`
922
     */
923
    public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException {
924
        return (UKLocalAccountIdentification)super.getActualInstance();
×
925
    }
926

927
    /**
928
     * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`,
929
     * the ClassCastException will be thrown.
930
     *
931
     * @return The actual instance of `USLocalAccountIdentification`
932
     * @throws ClassCastException if the instance is not `USLocalAccountIdentification`
933
     */
934
    public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException {
935
        return (USLocalAccountIdentification)super.getActualInstance();
×
936
    }
937

938
    /**
939
    * Create an instance of BankAccountInfoAccountIdentification given an JSON string
940
    *
941
    * @param jsonString JSON string
942
    * @return An instance of BankAccountInfoAccountIdentification
943
    * @throws IOException if the JSON string is invalid with respect to BankAccountInfoAccountIdentification
944
    */
945
    public static BankAccountInfoAccountIdentification fromJson(String jsonString) throws IOException {
946
        return JSON.getMapper().readValue(jsonString, BankAccountInfoAccountIdentification.class);
×
947
    }
948

949
    /**
950
    * Convert an instance of BankAccountInfoAccountIdentification to an JSON string
951
    *
952
    * @return JSON string
953
    */
954
    public String toJson() throws JsonProcessingException {
955
        return JSON.getMapper().writeValueAsString(this);
×
956
    }
957
}
958

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

© 2026 Coveralls, Inc