Skip to content
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

Open
TigerC10 opened this issue Mar 25, 2024 · 1 comment
Open

feature: add @IsVatId() decorator #2441

TigerC10 opened this issue Mar 25, 2024 · 1 comment
Labels
type: feature Issues related to new features.

Comments

@TigerC10
Copy link

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.

@TigerC10 TigerC10 added flag: needs discussion Issues which needs discussion before implementation. type: feature Issues related to new features. labels Mar 25, 2024
@andrea809
Copy link

it would be very useful

@NoNameProvided NoNameProvided changed the title feature: Add @IsVatId() Decorator feature: add @IsVatId() Decorator May 5, 2024
@NoNameProvided NoNameProvided changed the title feature: add @IsVatId() Decorator feature: add @IsVatId() decorator May 5, 2024
@NoNameProvided 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
Labels
type: feature Issues related to new features.
Development

No branches or pull requests

3 participants