ExVatcheck v0.1.3 ExVatcheck.VAT View Source

The ExVatcheck.VAT module provides a struct that encapsulates the properties of a VAT identification number after validation.

Link to this section Summary

Functions

Normalizes a VAT identification number by stripping non-alphanumeric characters and capitalizing any letters.

Link to this section Types

Link to this type

t() View Source
t() :: %ExVatcheck.VAT{
  exists: boolean(),
  valid: boolean(),
  vies_available: boolean(),
  vies_response: map()
}

Link to this section Functions

Link to this function

normalize(vat) View Source
normalize(binary()) :: binary()

Normalizes a VAT identification number by stripping non-alphanumeric characters and capitalizing any letters.

Returns a binary representing the normalized VAT number.