- Added `iban` field to the `IbanEx.Iban` struct to hold the full IBAN value. - Updated the parsing logic to populate the new field. - Adjusted BBAN rules and tests for France and Brazil to reflect updated structures. - Improved error handling and format validation routines.
26 lines
583 B
Elixir
26 lines
583 B
Elixir
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
|