README.md in ibandit-0.6.5 vs README.md in ibandit-0.6.6

- old
+ new

@@ -181,26 +181,34 @@ branch_code: '9661' account_number: '1020345678' ) iban.iban # => "BG80BNBG96611020345678" +# Croatia +iban = Ibandit::IBAN.new( + country_code: 'HR', + account_number: '1001005-1863000160', +) +iban.iban # => "HR1210010051863000160" + # Cyprus iban = Ibandit::IBAN.new( country_code: 'CY', account_number: '1200527600', bank_code: '002', branch_code: '00128' ) iban.iban # => "CY17002001280000001200527600" -# Germany +# Czech Republic iban = Ibandit::IBAN.new( - country_code: 'DE', - bank_code: '37040044', - account_number: '0532013000' + country_code: 'CZ', + bank_code: '0800', + account_number_prefix: '19', + account_number: '2000145399' ) -iban.iban # => "DE89370400440532013000" +iban.iban # => "CZ6508000000192000145399" # Denmark iban = Ibandit::IBAN.new( country_code: 'DK', account_number: '345-3179681', @@ -229,18 +237,17 @@ branch_code: '01005', account_number: '0500013M02606', ) iban.iban # => "FR1420041010050500013M02606" -# United Kingdom +# Germany iban = Ibandit::IBAN.new( - country_code: 'GB', - bank_code: 'BARC', # optional if a BIC finder is configured - branch_code: '200000', - account_number: '55779911' + country_code: 'DE', + bank_code: '37040044', + account_number: '0532013000' ) -iban.iban # => "GB60BARC20000055779911" +iban.iban # => "DE89370400440532013000" # Greece iban = Ibandit::IBAN.new( country_code: 'GR', bank_code: '011', @@ -390,28 +397,28 @@ iban.iban # => "SI56191000000123438" # Spain iban = Ibandit::IBAN.new( country_code: 'ES', - bank_code: '2310', - branch_code: '0001', - account_number: '180000012345' -) -iban.iban # => "ES8023100001180000012345" - -# Spain with 20 digit account number -iban = Ibandit::IBAN.new( - country_code: 'ES', account_number: '23100001180000012345' ) iban.iban # => "ES8023100001180000012345" # Sweden iban = Ibandit::IBAN.new( country_code: 'SE', account_number: '7507-1211203' ) iban.iban # => "SE2680000000075071211203" + +# United Kingdom +iban = Ibandit::IBAN.new( + country_code: 'GB', + bank_code: 'BARC', # optional if a BIC finder is configured + branch_code: '200000', + account_number: '55779911' +) +iban.iban # => "GB60BARC20000055779911" ``` ## Other libraries Another gem, [iban-tools](https://github.com/alphasights/iban-tools), also