Skip to content

Commit

Permalink
adding BBAN Structure of RU (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Os1 committed Dec 20, 2023
1 parent 8dce806 commit cf63318
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/iban4j/bban/BbanStructure.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ private BbanStructure(final BbanStructureEntry... entries) {
BbanStructureEntry.accountNumber(13, 'n'),
BbanStructureEntry.nationalCheckDigit(2, 'n')));

structures.put(CountryCode.RU,
new BbanStructure(
BbanStructureEntry.bankCode(9, 'n'),
BbanStructureEntry.branchCode(5,'n'),
BbanStructureEntry.accountNumber(15, 'c')));

structures.put(CountryCode.SK,
new BbanStructure(
BbanStructureEntry.bankCode(4, 'n'),
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/org/iban4j/TestDataHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ public static Collection<Object[]> getIbanData() {
.accountNumber("0056010016113")
.nationalCheckDigit("79")
.build(), "RS35260005601001611379"},
{new Iban.Builder()
.countryCode(CountryCode.RU)
.bankCode("044525600")
.branchCode("40702")
.accountNumber("810412345678901")
.build(), "RU0204452560040702810412345678901"},
{new Iban.Builder()
.countryCode(CountryCode.SK)
.bankCode("1200")
Expand Down

0 comments on commit cf63318

Please sign in to comment.