2024-03-05 11:02:58 +00:00
|
|
|
defmodule IbanEx.Country.LU do
|
|
|
|
@moduledoc """
|
|
|
|
Luxembourg 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: "LU",
|
|
|
|
...> check_digits: "28",
|
|
|
|
...> bank_code: "001",
|
|
|
|
...> branch_code: nil,
|
|
|
|
...> national_check: nil,
|
|
|
|
...> account_number: "9400644750000"
|
|
|
|
...> }
|
|
|
|
...> |> IbanEx.Country.LU.to_string()
|
|
|
|
"LU 28 001 9400644750000"
|
|
|
|
```
|
2024-03-05 11:02:58 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
@size 20
|
|
|
|
@rule ~r/^(?<bank_code>[0-9]{3})(?<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
|