2024-03-05 11:02:58 +00:00
|
|
|
defmodule IbanEx.Country.UA do
|
|
|
|
@moduledoc """
|
|
|
|
Ukrainian IBAN parsing rules
|
2024-03-11 00:02:20 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
iex> %IbanEx.Iban{country_code: "UA", check_digits: "21", bank_code: "322313", branch_code: nil, national_check: nil, account_number: "0000026007233566001"}
|
|
|
|
iex> |> IbanEx.Country.UA.to_string()
|
|
|
|
"UA 21 322313 0000026007233566001"
|
|
|
|
|
2024-03-05 11:02:58 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
@size 29
|
|
|
|
@rule ~r/^(?<bank_code>[0-9]{6})(?<account_number>[0-9A-Z]{19})$/i
|
2024-03-07 23:33:38 +00:00
|
|
|
use IbanEx.Country.Template
|
2024-03-05 11:02:58 +00:00
|
|
|
end
|