Bugfixes. Bump to 0.1.1
This commit is contained in:
@@ -2,20 +2,20 @@ defmodule UkraineTaxidEx.Itin.Error do
|
||||
@type error() ::
|
||||
:invalid_length
|
||||
| :invalid_checksum
|
||||
| :length_to_long
|
||||
| :length_to_short
|
||||
| :length_too_long
|
||||
| :length_too_short
|
||||
@type errors() :: [error()]
|
||||
@errors [
|
||||
:invalid_length,
|
||||
:invalid_checksum,
|
||||
:length_to_long,
|
||||
:length_to_short
|
||||
:length_too_long,
|
||||
:length_too_short
|
||||
]
|
||||
@messages [
|
||||
invalid_length: "ITIN violates the required length",
|
||||
invalid_checksum: "ITIN checksum is invalid",
|
||||
length_to_long: "ITIN longer then required length",
|
||||
length_to_short: "ITIN shorter then required length"
|
||||
length_too_long: "ITIN longer then required length",
|
||||
length_too_short: "ITIN shorter then required length"
|
||||
]
|
||||
|
||||
@spec message(error()) :: String.t()
|
||||
|
||||
@@ -59,7 +59,7 @@ defmodule UkraineTaxidEx.Itin.Parser do
|
||||
|
||||
use UkraineTaxidEx.BaseParser
|
||||
|
||||
defp generate({:ok, string}) do
|
||||
defp generate(string) do
|
||||
digits = digits(string)
|
||||
|
||||
%{
|
||||
|
||||
Reference in New Issue
Block a user