Files
iban-ex/lib/iban_ex/country/ps.ex

26 lines
583 B
Elixir
Raw Normal View History

2025-11-29 23:08:52 -05:00
defmodule IbanEx.Country.PS do
@moduledoc """
Palestine IBAN parsing rules
## Examples
```elixir
iex> %IbanEx.Iban{
...> country_code: "PS",
...> check_digits: "92",
...> bank_code: "PALS",
...> branch_code: nil,
...> national_check: nil,
...> account_number: "000000000400123456702"
...> }
...> |> IbanEx.Country.PS.to_string()
"PS 92 PALS 000000000400123456702"
```
"""
@size 29
@rule ~r/^(?<bank_code>[A-Z]{4})(?<account_number>[A-Z0-9]{21})$/i
use IbanEx.Country.Template
end