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

VAT Id Number validators for all EU countries #271

Open
wants to merge 152 commits into
base: master
Choose a base branch
from

Conversation

homebeaver
Copy link
Contributor

Hi @garydgregory ,

here is EUgen from Europe.
With this PR I provide validation and check digit calculation for VAT Id Numbers VATIN for all countries in the EU. This number is neccessary in the intra comunity trades to apply a zero VAT rate.
You can find a documentation of the different VATINs structures in my VATIN wiki (de)

The validator for all is VATINValidator - it implements the jira issue 494

Pls review and merge.
Regards EUGen

Error:  Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.24.0:check (default-cli) on project commons-validator: PMD 7.4.0 has found 1 violation. For more details see: /home/runner/work/commons-validator/commons-validator/target/pmd.xml -> [Help 1]
minor changes in VATidATCheckDigit
Check Digit calculation/validation
It is a subclass from Modulus97CheckDigit, which is also used to
validate the LEI and German Leitweg, see
apache#61

This implemets parts of
https://issues.apache.org/jira/projects/VALIDATOR/issues/VALIDATOR-494
@homebeaver
Copy link
Contributor Author

A nice to have item would be an update to the package-info.java file for the package

Hi @garydgregory

updated the package-info.java in org.apache.commons.validator.routines
Regards - next week I'm on holiday :-)
EUGen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants