Added main module to analize format of tax_id and define EDRPOU or ITIN

Bumped to 0.1.3
This commit is contained in:
2024-12-28 20:10:01 -05:00
parent 2fa1c94a22
commit 48672584c7
5 changed files with 114 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ defmodule UkraineTaxidEx.BaseParser do
@impl BaseParser
@spec parse(data :: string_or_ok, options :: BaseParser.options()) :: struct_or_error()
def parse(data, options \\ [normalize?: false, clean?: false])
def parse(data, options \\ [normalize?: false, clean?: true])
def parse({:ok, string}, options), do: parse(string, options)
def parse({:error, error}, _options), do: {:error, error}