-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allow to chose behavior if country is not supported #65
base: main
Are you sure you want to change the base?
Conversation
@VincentLanglet Personally I am fine throwing a something like an |
Currently the VAT validator check mainly EU countries VAT but
IMHO, in the futur this lib should support all possible VAT prefix and have the related regex. Instead it is better for the API to have
but this still require to expose the We can also throw a custom VatException (?) |
2e14811
to
5d04808
Compare
WDYT @dannyvankooten |
Hi @VincentLanglet, I'd like to go with throwing an Since we're not in need of this functionality ourselves and I am starting a new job soon, I don't have any time to work on this for the next few months though. |
235d6a9
to
9717868
Compare
Hi, I changed to the throw exception behavior. |
9717868
to
e440942
Compare
HI @dannyvankooten ; do you have some time to review/merge this ? Thanks. |
Closes #40
cc @gemal @dannyvankooten
The option doesn't make sens for validateVatNumber, since the
validateVatNumberExistence
only work for EU country since the check is done on https://ec.europa.eu/taxation_customs/vies/#/vat-validation