2024-03-05 11:02:58 +00:00
|
|
|
defmodule IbanEx.Country.AT do
|
|
|
|
@moduledoc """
|
|
|
|
Austria IBAN parsing rules
|
2024-03-11 00:02:20 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2024-03-11 00:20:15 +00:00
|
|
|
```elixir
|
|
|
|
iex> %IbanEx.Iban{
|
|
|
|
...> country_code: "AT",
|
|
|
|
...> check_digits: "61",
|
|
|
|
...> bank_code: "19043",
|
|
|
|
...> branch_code: nil,
|
|
|
|
...> national_check: nil,
|
|
|
|
...> account_number: "00234573201"
|
|
|
|
...> }
|
|
|
|
...> |> IbanEx.Country.AT.to_string()
|
|
|
|
"AT 61 19043 00234573201"
|
|
|
|
```
|
2024-03-05 11:02:58 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
@size 20
|
|
|
|
@rule ~r/^(?<bank_code>[0-9]{5})(?<account_number>[0-9]{11})$/i
|
|
|
|
|
2024-03-07 23:33:38 +00:00
|
|
|
use IbanEx.Country.Template
|
2024-03-05 11:02:58 +00:00
|
|
|
end
|