Skip to content

Commit

Permalink
add MG (Madagascar) country (PR050)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHossfeld committed Dec 2, 2020
1 parent 3208c3f commit 69af7f1
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,15 @@ public static Map<String, Iban> getIbanData() {
.accountNumber("0000123456789")
.nationalCheckDigit("51")
.build());
put(
"MG5791389127383694554421212",
Iban.builder()
.countryCode(CountryCode.MG)
.bankCode("91389")
.branchCode("12738")
.accountNumber("36945544212")
.nationalCheckDigit("12")
.build());
put(
"NL91ABNA0417164300",
Iban.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,15 @@ public static Map<String, Iban> getIbanData() {
.accountNumber("0000123456789")
.nationalCheckDigit("51")
.build());
put(
"MG5791389127383694554421212",
Iban.builder()
.countryCode(CountryCode.MG)
.bankCode("91389")
.branchCode("12738")
.accountNumber("36945544212")
.nationalCheckDigit("12")
.build());
put(
"NL91ABNA0417164300",
Iban.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,16 @@ public static Collection<Object[]> getIbanData() {
.build(),
"ME25505000012345678951"
},
{
Iban.builder()
.countryCode(CountryCode.MG)
.bankCode("91389")
.branchCode("12738")
.accountNumber("36945544212")
.nationalCheckDigit("12")
.build(),
"MG5791389127383694554421212"
},
{
Iban.builder()
.countryCode(CountryCode.NL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ public class BbanStructure {
BbanStructureEntry.accountNumber(13, 'n'),
BbanStructureEntry.nationalCheckDigit(2, 'n')));

structures.put(
CountryCode.MG,
new BbanStructure(
BbanStructureEntry.bankCode(5, 'n'),
BbanStructureEntry.branchCode(5, 'n'),
BbanStructureEntry.accountNumber(11, 'c'),
BbanStructureEntry.nationalCheckDigit(2, 'n')));

structures.put(
CountryCode.NL,
new BbanStructure(
Expand Down

0 comments on commit 69af7f1

Please sign in to comment.