View Source UkraineTaxidEx (ukraine_tax_id v0.1.3)
Documentation for UkraineTaxidEx
.
Summary
Functions
determine/1
: Takes a tax ID string and identifies its type based on length
parse/1
: Determines the tax ID type and parses it using the appropriate parser
validate/1
: Validates a tax ID by attempting to parse it
Functions
determine/1
: Takes a tax ID string and identifies its type based on length
- Returns
{:ok, UkraineTaxidEx.Itin}
for ITIN numbers - Returns
{:ok, UkraineTaxidEx.Edrpou}
for EDRPOU numbers - Returns an error if the length is invalid
parse/1
: Determines the tax ID type and parses it using the appropriate parser
- Uses
Module.concat
to dynamically find the correct parser module - Returns a tuple with status, result, and type information
validate/1
: Validates a tax ID by attempting to parse it
- Returns
:ok
if valid - Returns error tuples with details if invalid