2024-12-11 08:02:07 +00:00
|
|
|
defmodule UkraineTaxidEx.Edrpou do
|
|
|
|
@moduledoc """
|
|
|
|
Documentation for `UkraineTaxidEx.Edrpou`.
|
|
|
|
|
|
|
|
The EDRPOU is a unique 8-digit number that identifies legal entities in Ukraine. It is issued to all companies when they are formed and registered in the official business register. The Unified State Register of Enterprises and Organizations of Ukraine (USREOU/EDRPOU) is an automated system that collects, stores, and processes data on legal entities in Ukraine.
|
|
|
|
"""
|
|
|
|
|
|
|
|
@length 8
|
2024-12-12 06:32:31 +00:00
|
|
|
alias UkraineTaxidEx.Edrpou.Parser
|
2024-12-11 08:02:07 +00:00
|
|
|
use UkraineTaxidEx.Base
|
|
|
|
|
|
|
|
@type t :: %__MODULE__{
|
|
|
|
code: String.t(),
|
|
|
|
check_digit: C.digit(),
|
|
|
|
check_sum: C.digit()
|
|
|
|
}
|
|
|
|
|
|
|
|
defstruct code: nil, check_digit: nil, check_sum: nil
|
2024-12-12 06:32:31 +00:00
|
|
|
|
|
|
|
@impl Base
|
|
|
|
@spec parse(data :: {:ok, String.t()} | String.t(), options :: Keyword.t()) ::
|
|
|
|
{:ok, t()} | {:error, atom()}
|
|
|
|
defdelegate parse(data, options \\ [normalize?: false, clean?: false]), to: Parser
|
2024-12-11 08:02:07 +00:00
|
|
|
end
|