README.md in ibandit-0.11.13 vs README.md in ibandit-0.11.14

- old
+ new

@@ -44,10 +44,11 @@ | Luxembourg | :white_check_mark: | :white_check_mark: | | | Monaco | :white_check_mark: | :white_check_mark: | | | Malta | :white_check_mark: | :white_check_mark: | | | Netherlands | :white_check_mark: | :white_check_mark: | | | Norway | :white_check_mark: | :white_check_mark: | | +| New Zealand | | | :white_check_mark: | | Poland | :white_check_mark: | :white_check_mark: | | | Portugal | :white_check_mark: | :white_check_mark: | | | Romania | :white_check_mark: | :white_check_mark: | | | San Marino | :white_check_mark: | :white_check_mark: | | | Slovakia | :white_check_mark: | :white_check_mark: | | @@ -514,10 +515,35 @@ iban = Ibandit::IBAN.new('AUZZ123456123456789') iban.country_code # => "AU" iban.branch_code # => "123456" iban.account_number # => "123456789" iban.iban # => nil + +# New Zealand +iban = Ibandit::IBAN.new( + country_code: 'NZ', + bank_code: '01', + branch_code: '5659', + account_number: '3333333-44' # 7 digit account number and 2/3-digit account suffix +) +iban.pseudo_iban # => "NZZZ0156593333333044" +iban.iban # => nil + +iban = Ibandit::IBAN.new( + country_code: 'NZ', + account_number: '01-5659-3333333-44' +) +iban.pseudo_iban # => "NZZZ0156593333333044" +iban.bank_code # => "01" +iban.branch_code # => "5659" +iban.account_number # => "3333333044" + +iban = Ibandit::IBAN.new('NZZZ0156593333333044') +iban.country_code # => "NZ" +iban.bank_code # => "01" +iban.branch_code # => "5659" +iban.account_number # => "3333333044" ``` ## Other libraries Another gem, [iban-tools](https://github.com/alphasights/iban-tools), also @@ -526,6 +552,6 @@ interface for the construction and deconstruction of IBANs into national details. --- -GoCardless ♥ open source. If you do too, come [join us](https://gocardless.com/about/jobs/software-engineer). \ No newline at end of file +GoCardless ♥ open source. If you do too, come [join us](https://gocardless.com/about/jobs/software-engineer).