2024-03-05 11:02:58 +00:00
|
|
|
defmodule IbanEx.Country.CZ do
|
|
|
|
@moduledoc """
|
|
|
|
Czech Republic 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: "CZ",
|
|
|
|
...> check_digits: "65",
|
|
|
|
...> bank_code: "0800",
|
|
|
|
...> branch_code: nil,
|
|
|
|
...> national_check: nil,
|
|
|
|
...> account_number: "0000192000145399"
|
|
|
|
...> }
|
|
|
|
...> |> IbanEx.Country.CZ.to_string()
|
|
|
|
"CZ 65 0800 0000192000145399"
|
|
|
|
```
|
2024-03-05 11:02:58 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
@size 24
|
|
|
|
@rule ~r/^(?<bank_code>[0-9]{4})(?<account_number>[0-9]{16})$/i
|
|
|
|
|
2024-03-07 23:33:38 +00:00
|
|
|
use IbanEx.Country.Template
|
2024-03-05 11:02:58 +00:00
|
|
|
end
|