Skip to content

refactor: introduce de.speedbanking:iban-commons#160

Merged
spannm merged 1 commit intoSkillPanel:masterfrom
spannm:master
Mar 27, 2026
Merged

refactor: introduce de.speedbanking:iban-commons#160
spannm merged 1 commit intoSkillPanel:masterfrom
spannm:master

Conversation

@spannm
Copy link
Copy Markdown
Collaborator

@spannm spannm commented Mar 27, 2026

Simplifies the IBAN generation logic by migrating from iban4j to the more performant iban-commons library. This change streamlines the DefaultIBANProvider by offloading random IBAN generation directly to the new library's RandomIban utility.

Key changes:

  • Switched dependency from org.iban4j:iban4j to de.speedbanking:iban-commons
  • Refactored DefaultIBANProvider to use IbanRegistry and RandomIban, eliminating the manual Iban.Builder ceremony
  • Removed several redundant fields and setters (accountNumber, bankCode, branchCode, nationalCheckDigit) from IBANProvider and DefaultIBANProvider, favoring the library's internal generation
  • Simplified the IBAN data object by removing unused fields like identificationNumber, accountType, and ownerAccountType
  • Updated IBANProperties to map LanguageCodes directly to IbanRegistry constants
  • Updated test suite to use IbanValidator for verification

link: https://www.speedbanking.de/

Simplifies the IBAN generation logic by migrating from iban4j to the more
performant iban-commons library. This change streamlines the DefaultIBANProvider
by offloading random IBAN generation directly to the new library's
RandomIban utility.

Key changes:
- Switched dependency from org.iban4j:iban4j to de.speedbanking:iban-commons
- Refactored DefaultIBANProvider to use IbanRegistry and RandomIban,
  eliminating the manual Iban.Builder ceremony
- Removed several redundant fields and setters (accountNumber, bankCode,
  branchCode, nationalCheckDigit) from IBANProvider and DefaultIBANProvider,
  favoring the library's internal generation
- Simplified the IBAN data object by removing unused fields like
  identificationNumber, accountType, and ownerAccountType
- Updated IBANProperties to map LanguageCodes directly to IbanRegistry
  constants
- Updated test suite to use IbanValidator for verification

link: https://www.speedbanking.de/
@spannm spannm merged commit fcc8104 into SkillPanel:master Mar 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant