iban4j icon indicating copy to clipboard operation
iban4j copied to clipboard

Padding bank & account #33

Open michlikv opened this issue 7 years ago • 2 comments

I added zero padding to numeric fields when IBANs are being created. I am not sure about other fields - alphanumeric or alphabetical, but zero padding might come useful - regarding countries mentioned in the issue + CZ and SK.

The padding is in separate method in Builder (addLeftPadding()) and can be called at any point while building the IBAN. Unset fields are not created by this method, so incomplete IBANs stay invalid.

michlikv avatar May 18 '17 13:05 michlikv

Coverage Status

Coverage decreased (-0.9%) to 98.152% when pulling c51641949b10d3d17d818a582bc164bdcb967142 on michlikv:PaddingBankAccount into ce1ca12b947755d1d96aab294d1ea15c78090ca2 on arturmkrtchyan:master.

coveralls avatar May 18 '17 13:05 coveralls

:+1: great solution, doesn't break existing code, would very much like this to be merged.

Dr4K4n avatar Nov 03 '17 15:11 Dr4K4n

Duplicate issue #33

hajk1 avatar Apr 27 '24 10:04 hajk1