Skip to content

Commit

Permalink
Merge pull request #134 from gocardless/vinay/us-ach-bank-account-num…
Browse files Browse the repository at this point in the history
…ber-validations

Bump version to 0.11.26
  • Loading branch information
vinayvinay authored Jan 30, 2019
2 parents 39a3cae + 3f5f15c commit adbc5d0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/ibandit/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Ibandit
VERSION = "0.11.25".freeze
VERSION = "0.11.26".freeze
end

0 comments on commit adbc5d0

Please sign in to comment.