-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add @IsVatId()
decorator
#2441
Labels
type: feature
Issues related to new features.
Comments
TigerC10
added
flag: needs discussion
Issues which needs discussion before implementation.
type: feature
Issues related to new features.
labels
Mar 25, 2024
it would be very useful |
NoNameProvided
changed the title
feature: Add @IsVatId() Decorator
feature: add May 5, 2024
@IsVatId()
Decorator
NoNameProvided
changed the title
feature: add
feature: add May 5, 2024
@IsVatId()
Decorator@IsVatId()
decorator
NoNameProvided
removed
the
flag: needs discussion
Issues which needs discussion before implementation.
label
May 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Add an
@IsVatId()
Decorator for countries that use VAT.Proposed solution
ValidatorJS has an
isVAT(str, countryCode)
function, where countryCode is one of['AL', 'AR', 'AT', 'AU', 'BE', 'BG', 'BO', 'BR', 'BY', 'CA', 'CH', 'CL', 'CO', 'CR', 'CY', 'CZ', 'DE', 'DK', 'DO', 'EC', 'EE', 'EL', 'ES', 'FI', 'FR', 'GB', 'GT', 'HN', 'HR', 'HU', 'ID', 'IE', 'IL', 'IN', 'IS', 'IT', 'KZ', 'LT', 'LU', 'LV', 'MK', 'MT', 'MX', 'NG', 'NI', 'NL', 'NO', 'NZ', 'PA', 'PE', 'PH', 'PL', 'PT', 'PY', 'RO', 'RS', 'RU', 'SA', 'SE', 'SI', 'SK', 'SM', 'SV', 'TR', 'UA', 'UY', 'UZ', 'VE']
.Should be a fairly straight forward addition.
The text was updated successfully, but these errors were encountered: