Skip to content

Commit

Permalink
Added Angola Iban validation (#139)
Browse files Browse the repository at this point in the history
* add angola iban valid

* Add test data

---------

Co-authored-by: 王书然 <wangsr@9186.com>
  • Loading branch information
wangshuran and 王书然 authored May 14, 2024
1 parent d1f6e2b commit cbda99e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/iban4j/bban/BbanStructure.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ private BbanStructure(final BbanStructureEntry... entries) {
BbanStructureEntry.branchCode(4, 'n'),
BbanStructureEntry.accountNumber(12, 'c')));

structures.put(CountryCode.AO,
new BbanStructure(
BbanStructureEntry.bankCode(4, 'n'),
BbanStructureEntry.branchCode(4, 'n'),
BbanStructureEntry.accountNumber(11, 'n'),
BbanStructureEntry.nationalCheckDigit(2, 'n')));

structures.put(CountryCode.AT,
new BbanStructure(
BbanStructureEntry.bankCode(5, 'n'),
Expand Down
7 changes: 7 additions & 0 deletions src/test/java/org/iban4j/TestDataHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public static Collection<Object[]> getIbanData() {
.branchCode("2030")
.accountNumber("200359100100")
.build(), "AD1200012030200359100100"},
{new Iban.Builder()
.countryCode(CountryCode.AO)
.bankCode("0006")
.branchCode("0000")
.accountNumber("53518203301")
.nationalCheckDigit("69")
.build(), "AO06000600005351820330169"},
{new Iban.Builder()
.countryCode(CountryCode.AT)
.bankCode("19043")
Expand Down

0 comments on commit cbda99e

Please sign in to comment.