iban-ex/lib/iban_ex/country/template.ex

13 lines
352 B
Elixir
Raw Normal View History

2024-03-05 11:02:58 +00:00
defmodule IbanEx.Country.Template do
alias IbanEx.Iban
@type size() :: non_neg_integer()
@type rule() :: Regex.t()
@type country_code() :: <<_::16>> | atom()
@type joiner() :: String.t()
@callback size() :: size()
@callback rule() :: rule()
@callback to_s(Iban.t(), joiner()) :: String.t()
@callback to_s(Iban.t()) :: String.t()
end