src/main/java/com/nordea/openbanking/client/resources/DynamicSBXResource.java
private void prepareAccountNumberTypes(List<AccountNumber> accountList) {
        for (int i = 1; i <= 2; i++) {
            AccountNumber accountNumber = new AccountNumber();
            if (i == 1) {
                accountNumber.setType(AccountNumber.TypeEnum.IBAN);
            } else {
                switch(userSession.getCountry()) {
                    case "SE":
                        accountNumber.setType(AccountNumber.TypeEnum.BBAN_SE);
                        break;
                    case "DK":
                        accountNumber.setType(AccountNumber.TypeEnum.BBAN_DK);
                        break;
                    case "NO":
                        accountNumber.setType(AccountNumber.TypeEnum.BBAN_NO);
                        break;
                    case "FI":
                    default:
                        accountNumber.setType(AccountNumber.TypeEnum.IBAN);
                }
            }
            accountList.add(accountNumber);
        }
    }
/**
     * Setup the two account numbers with type of IBAN and BBAN
     * @param accountList
     */
Setup the two account numbers with type of IBAN and BBAN
@param accountList
Setup the two account numbers with type of IBAN and BBAN @param accountList
private void prepareAccountNumberTypes(List<AccountNumber> accountList) {
        for (int i = 1; i <= 2; i++) {
            AccountNumber accountNumber = new AccountNumber();
            if (i == 1) {
                accountNumber.setType(AccountNumber.TypeEnum.IBAN);
            } else {
                switch(userSession.getCountry()) {
                    case "SE":
                        accountNumber.setType(AccountNumber.TypeEnum.BBAN_SE);
                        break;
                    case "DK":
                        accountNumber.setType(AccountNumber.TypeEnum.BBAN_DK);
                        break;
                    case "NO":
                        accountNumber.setType(AccountNumber.TypeEnum.BBAN_NO);
                        break;
                    case "FI":
                    default:
                        accountNumber.setType(AccountNumber.TypeEnum.IBAN);
                }
            }
            accountList.add(accountNumber);
        }
    }
private void prepareAccountNumberTypes ( List < AccountNumber > accountList ) { for ( int i = 1 ; i <= 2 ; i ++ ) { AccountNumber accountNumber = new AccountNumber ( ) ; if ( i == 1 ) { accountNumber . setType ( AccountNumber . TypeEnum . IBAN ) ; } else { switch ( userSession . getCountry ( ) ) { case "SE" : accountNumber . setType ( AccountNumber . TypeEnum . BBAN_SE ) ; break ; case "DK" : accountNumber . setType ( AccountNumber . TypeEnum . BBAN_DK ) ; break ; case "NO" : accountNumber . setType ( AccountNumber . TypeEnum . BBAN_NO ) ; break ; case "FI" : default : accountNumber . setType ( AccountNumber . TypeEnum . IBAN ) ; } } accountList . add ( accountNumber ) ; } }
Setup the two account numbers with type of IBAN and BBAN
 @param accountList
Setup the two account numbers with type of IBAN and BBAN @param accountList