diff --git a/CHANGELOG.md b/CHANGELOG.md index 943de41..bc935fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.11.26 - January 30, 2019 + +- Add support for US pseudo-IBANs + ## 0.11.25 - January 10, 2019 - Prevent account numbers from being all-zero in Australia diff --git a/README.md b/README.md index a89c56d..c2b611b 100644 --- a/README.md +++ b/README.md @@ -562,6 +562,21 @@ iban.country_code # => "NZ" iban.bank_code # => "01" iban.branch_code # => "0004" iban.account_number # => "3333333044" + +# USA +iban = Ibandit::IBAN.new( + country_code: 'US', + bank_code: '965498456', # 9-digit routing number + account_number: '0123456789' # 1 to 17 digits +) +iban.pseudo_iban # => "USZZ965498456_______0123456789" +iban.iban # => nil + +iban = Ibandit::IBAN.new('USZZ965498456_______0123456789') +iban.country_code # => "US" +iban.bank_code # => "965498456" +iban.account_number # => "_______0123456789" +iban.iban # => nil ``` ## Other libraries diff --git a/lib/ibandit/version.rb b/lib/ibandit/version.rb index df8187f..7ec41cf 100644 --- a/lib/ibandit/version.rb +++ b/lib/ibandit/version.rb @@ -1,3 +1,3 @@ module Ibandit - VERSION = "0.11.25".freeze + VERSION = "0.11.26".freeze end