iban-ex/lib/iban_ex/country/lt.ex

26 lines
563 B
Elixir
Raw Permalink Normal View History

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