MVA (Merverdiavgift, Norwegian VAT number).
The VAT number is the standard Norwegian organisation number (Organisasjonsnummer) with ‘MVA’ as suffix.
>>> validate('NO 995 525 828 MVA')
'995525828MVA'
>>> validate('NO 995 525 829 MVA')
Traceback (most recent call last):
...
InvalidChecksum: ...
>>> format('995525828MVA')
'NO 995 525 828 MVA'
Traceback (most recent call last):
...
InvalidChecksum: ...
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Reformat the passed number to the standard format.
Checks to see if the number provided is a valid MVA number. This checks the length, formatting and check digit.
Checks to see if the number provided is a valid MVA number. This checks the length, formatting and check digit.