ExVatcheck v0.1.1 ExVatcheck.Countries View Source
A module for checking to see whether or not a VAT matches one of the expected patterns for EU countries. Countries handled include:
AT: Austria
BE: Belgium
BG: Bulgaria
CY: Cyprus
CZ: Czech Republic
DE: Germany
DK: Denmark
EE: Estonia
EL: Greece
ES: Spain
FI: Finland
FR: France
GB: United Kingdom
HR: Croatia
HU: Hungary
IE: Ireland
IT: Italy
LT: Lithuania
LU: Luxembourg
LV: Latvia
MT: Malta
NL: Netherlands
PL: Poland
PT: Portugal
RO: Romania
SE: Sweden
SI: Slovenia
SK: Slovakia
Link to this section Summary
Functions
Determines whether or not a VAT identification number has a valid format by checking to see if it matches any of the country-specific regexes.
Link to this section Functions
Link to this function
valid_format?(vat) View Source
Determines whether or not a VAT identification number has a valid format by checking to see if it matches any of the country-specific regexes.
Returns true
if the VAT number matches one of the regexes, and returns false
otherwise.