VatValidatorPrettier
This class formats VAT numbers.
context.enableModules();
const { VatValidatorPrettier } = require("ou.sp.validation.VatValidatorPrettier");
const formatted = VatValidatorPrettier.format("de-306219982");
// DE306219982
Constructors
Constructor
new VatValidatorPrettier():
VatValidatorPrettier
Returns
VatValidatorPrettier
Methods
format()
staticformat(vat):string
Formats the provided VAT
const formatted = VatValidatorPrettier.format("de-306219982");
// "DE306219982"
Parameters
vat
string
Returns
string