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