VSK number (Virðisaukaskattsnúmer, Icelandic VAT number).
The Icelandic VAT number is five or six digits.
>>> validate('IS 00621')
'00621'
>>> validate('IS 0062199')
Traceback (most recent call last):
...
InvalidLength: ...
Traceback (most recent call last):
...
InvalidLength: ...
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Checks to see if the number provided is a valid VAT number. This checks the length and formatting.
Checks to see if the number provided is a valid VAT number. This checks the length and formatting.