@@ -639,6 +639,42 @@ public BankAccountV3AccountIdentification(USLocalAccountIdentification o) {
639639 schemas .put ("USLocalAccountIdentification" , new GenericType <USLocalAccountIdentification >() {});
640640 JSON .registerDescendants (
641641 BankAccountV3AccountIdentification .class , Collections .unmodifiableMap (schemas ));
642+ // Initialize and register the discriminator mappings.
643+ Map <String , Class <?>> mappings = new HashMap <>();
644+ mappings .put ("auLocal" , AULocalAccountIdentification .class );
645+ mappings .put ("brLocal" , BRLocalAccountIdentification .class );
646+ mappings .put ("caLocal" , CALocalAccountIdentification .class );
647+ mappings .put ("czLocal" , CZLocalAccountIdentification .class );
648+ mappings .put ("dkLocal" , DKLocalAccountIdentification .class );
649+ mappings .put ("hkLocal" , HKLocalAccountIdentification .class );
650+ mappings .put ("huLocal" , HULocalAccountIdentification .class );
651+ mappings .put ("iban" , IbanAccountIdentification .class );
652+ mappings .put ("noLocal" , NOLocalAccountIdentification .class );
653+ mappings .put ("numberAndBic" , NumberAndBicAccountIdentification .class );
654+ mappings .put ("nzLocal" , NZLocalAccountIdentification .class );
655+ mappings .put ("plLocal" , PLLocalAccountIdentification .class );
656+ mappings .put ("seLocal" , SELocalAccountIdentification .class );
657+ mappings .put ("sgLocal" , SGLocalAccountIdentification .class );
658+ mappings .put ("ukLocal" , UKLocalAccountIdentification .class );
659+ mappings .put ("usLocal" , USLocalAccountIdentification .class );
660+ mappings .put ("AULocalAccountIdentification" , AULocalAccountIdentification .class );
661+ mappings .put ("BRLocalAccountIdentification" , BRLocalAccountIdentification .class );
662+ mappings .put ("CALocalAccountIdentification" , CALocalAccountIdentification .class );
663+ mappings .put ("CZLocalAccountIdentification" , CZLocalAccountIdentification .class );
664+ mappings .put ("DKLocalAccountIdentification" , DKLocalAccountIdentification .class );
665+ mappings .put ("HKLocalAccountIdentification" , HKLocalAccountIdentification .class );
666+ mappings .put ("HULocalAccountIdentification" , HULocalAccountIdentification .class );
667+ mappings .put ("IbanAccountIdentification" , IbanAccountIdentification .class );
668+ mappings .put ("NOLocalAccountIdentification" , NOLocalAccountIdentification .class );
669+ mappings .put ("NZLocalAccountIdentification" , NZLocalAccountIdentification .class );
670+ mappings .put ("NumberAndBicAccountIdentification" , NumberAndBicAccountIdentification .class );
671+ mappings .put ("PLLocalAccountIdentification" , PLLocalAccountIdentification .class );
672+ mappings .put ("SELocalAccountIdentification" , SELocalAccountIdentification .class );
673+ mappings .put ("SGLocalAccountIdentification" , SGLocalAccountIdentification .class );
674+ mappings .put ("UKLocalAccountIdentification" , UKLocalAccountIdentification .class );
675+ mappings .put ("USLocalAccountIdentification" , USLocalAccountIdentification .class );
676+ mappings .put ("BankAccountV3_accountIdentification" , BankAccountV3AccountIdentification .class );
677+ JSON .registerDiscriminator (BankAccountV3AccountIdentification .class , "type" , mappings );
642678 }
643679
644680 @ Override
0 commit comments