arturmkrtchyan / iban4j

A Java library for generation and validation of the International Bank Account Numbers (IBAN ISO_13616) and Business Identifier Codes (BIC ISO_9362).
http://iban4j.org
Apache License 2.0
271 stars 124 forks source link

#74: fix BY iban structure #77

Open ccostin93 opened 3 years ago

ccostin93 commented 3 years ago

fixes https://github.com/arturmkrtchyan/iban4j/issues/74

see https://bank.codes/iban/structure/belarus/ The strange thing is that the best was already correct.

{new Iban.Builder()
    .countryCode(CountryCode.BY)
    .bankCode("NBRB")
    .branchCode("3600") // <-- branchCode was given, not accountType
    .accountNumber("900000002Z00AB00")
    .build(), "BY13NBRB3600900000002Z00AB00"},