Added all SEPA countries (IBANs from European Union countries) and minimal test coverage for countries
This commit is contained in:
17
lib/iban_ex/country/ro.ex
Normal file
17
lib/iban_ex/country/ro.ex
Normal file
@@ -0,0 +1,17 @@
|
||||
defmodule IbanEx.Country.RO do
|
||||
@moduledoc """
|
||||
Romania IBAN parsing rules
|
||||
|
||||
## Examples
|
||||
|
||||
iex> %IbanEx.Iban{country_code: "RO", check_digits: "49", bank_code: "AAAA", branch_code: nil, national_check: nil, account_number: "1B31007593840000"}
|
||||
iex> |> IbanEx.Country.RO.to_string()
|
||||
"RO 49 AAAA 1B31007593840000"
|
||||
|
||||
"""
|
||||
|
||||
@size 24
|
||||
@rule ~r/^(?<bank_code>[A-Z]{4})(?<account_number>[0-9A-Z]{16})$/i
|
||||
|
||||
use IbanEx.Country.Template
|
||||
end
|
||||
Reference in New Issue
Block a user