Added new countries

This commit is contained in:
2025-11-29 23:08:52 -05:00
parent 858439713a
commit d197a86454
21 changed files with 849 additions and 10 deletions

26
lib/iban_ex/country/ps.ex Normal file
View File

@@ -0,0 +1,26 @@
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