ExVatcheck.VAT (ExVatcheck v0.3.1) 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

Specs

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

Link to this section Functions

Specs

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.