2024-03-05 11:02:58 +00:00
|
|
|
defmodule IbanEx.Country.NL do
|
|
|
|
@moduledoc """
|
|
|
|
Netherlands IBAN parsing rules
|
2024-03-11 00:02:20 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2024-05-14 23:15:55 +00:00
|
|
|
```elixir
|
|
|
|
iex> %IbanEx.Iban{
|
|
|
|
...> country_code: "NL",
|
|
|
|
...> check_digits: "91",
|
|
|
|
...> bank_code: "ABNA",
|
|
|
|
...> branch_code: nil,
|
|
|
|
...> national_check: nil,
|
|
|
|
...> account_number: "0417164300"
|
|
|
|
...> }
|
|
|
|
...> |> IbanEx.Country.NL.to_string()
|
|
|
|
"NL 91 ABNA 0417164300"
|
|
|
|
```
|
2024-03-05 11:02:58 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
@size 18
|
|
|
|
@rule ~r/^(?<bank_code>[A-Z]{4})(?<account_number>[0-9]{10})$/i
|
|
|
|
|
2024-03-07 23:33:38 +00:00
|
|
|
use IbanEx.Country.Template
|
2024-03-05 11:02:58 +00:00
|
|
|
end
|