镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

VAT Id Number validators for all EU countries - #271

Closed
homebeaver wants to merge 185 commits into
apache:masterfrom
homebeaver:master+vatin
Closed

homebeaver wants to merge 185 commits into
apache:masterfrom
homebeaver:master+vatin

Conversation

@homebeaver

Copy link
Copy Markdown
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
#61

This implemets parts of
https://issues.apache.org/jira/projects/VALIDATOR/issues/VALIDATOR-494
@homebeaver
homebeaver requested a review from sebbASF February 26, 2025 23:46
@homebeaver

Copy link
Copy Markdown
Contributor Author

Hi @sebbASF , @sebbASF

when merging apache/master to my repo branch I got an error in pom.xml

- cvc-elt.1.a: Cannot find the declaration of element 'project'.
- Downloading external resources is disabled.

The solution is https instead http in pom element 'project'

I resolve this in my pull request and hope you accept this pull. It is waiting to be accepted for more then one year!

regards EUGen

Comment thread pom.xml Outdated
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert these changes. They are not valid.

Although the values look like URLs, they are not; they are unique identifiers so must be left as is

@raboof

raboof commented Oct 27, 2025

Copy link
Copy Markdown
Member

I resolve this in my pull request and hope you accept this pull. It is waiting to be accepted for more then one year!

As mentioned earlier in #271 (comment): keeping this up-to-date looks like quite a maintenance burden. This means the work is valuable to share - but only if we're confident that there will be someone looking after this code after it's merged. I assume you're using this and would be ready to take some of that maintainership on yourself, but it'd be good to have one or two other people showing up.

@homebeaver

Copy link
Copy Markdown
Contributor Author

tkx @raboof.
Changes can be cleanly merged. @garydgregory

@garydgregory

Copy link
Copy Markdown
Member

I resolve this in my pull request and hope you accept this pull. It is waiting to be accepted for more then one year!

As mentioned earlier in #271 (comment): keeping this up-to-date looks like quite a maintenance burden. This means the work is valuable to share - but only if we're confident that there will be someone looking after this code after it's merged. I assume you're using this and would be ready to take some of that maintainership on yourself, but it'd be good to have one or two other people showing up.

There has been no reply from @homebeaver to your comment @raboof, which doesn't inspire confidence that this will be maintained.

@garydgregory garydgregory left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@homebeaver At least one of my comments hasn't been addressed; it was marked resolved, which is not appropriate IMO, so I stopped looking. Beyond that, I'm not sure there is consensus to bring this in due to the maintenance burden. What do others think?

@sebbASF

sebbASF commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

I agree that this is likely to become too much of a maintenance burden.

Seems to me this would be better as a separate project (with its own package name).
This could of course use existing Validator methods where appropriate.

It might be worth considering adding some or all of the new ModulusCheckDigit classes, if the algorithm is standardised and in general use.

@sebbASF
sebbASF marked this pull request as draft November 25, 2025 15:51
@homebeaver

Copy link
Copy Markdown
Contributor Author

... would be better as a separate project (with its own package name).

I'll do it.

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.

5 participants