Allow to chose behavior if country is not supported#65
Allow to chose behavior if country is not supported#65VincentLanglet wants to merge 2 commits intoibericode:mainfrom VincentLanglet:hasPattern
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. |
Hi, I changed to the throw exception behavior. |
|
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
validateVatNumberExistenceonly work for EU country since the check is done on https://ec.europa.eu/taxation_customs/vies/#/vat-validation