Coder Social home page Coder Social logo

eu-vat-check's Introduction

eu-vat-check

Verify the validity of a VAT number issued by any Member State of the European Union.

More info about this subject is found here.

Requirements

  • Java 1.7+

Usage

Add the linkID repositories to your pom file:

<!-- REMOTE ARTIFACT REPOSITORIES -->
<repositories>
    <repository>
        <id>repo.linkid.be.release</id>
        <name>LinkID Public Repository</name>
        <url>http://repo.linkid.be/releases</url>
        <snapshots>
            <enabled>false</enabled>
            <updatePolicy>never</updatePolicy>
        </snapshots>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
        </releases>
    </repository>
    <repository>
        <id>repo.linkid.be.snapshot</id>
        <name>LinkID Public Repository</name>
        <url>http://repo.linkid.be/snapshots</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
        <releases>
            <enabled>false</enabled>
            <updatePolicy>never</updatePolicy>
        </releases>
    </repository>
</repositories>

Add the eu-vat-check-client dependency to your pom file:

<dependency>
    <groupId>net.lin-k.eu.eu-vat-check</groupId>
    <artifactId>eu-vat-check-client</artifactId>
    <version>0.4</version>
</dependency>

Example code:

CountryCode countryCode = CountryCode.BE;
String vatNumber        = "0446495156";

logger.inf( "VAT Number check for %s %s", countryCode, vatNumber );

VatCheckServiceClient vatCheckServiceClient = new VatCheckServiceClient( countryCode, vatNumber );

boolean valid = vatCheckServiceClient.isVatNumberValid();

//After isVatNumberValid() you can get the name and address of the enterprise
logger.inf( "Returned: valid=%s; name=%s; address=%s",
        valid, vatCheckServiceClient.getName(), vatCheckServiceClient.getAddress() );

RELEASE NOTES

v0.5 (2016-06-23)

  • Release for repo.linkid.be move

v0.4 (2014-03-11)

  • Added some utility methods. (See VATUtil class)

v0.3 (2013-12-17)

  • Updated the WSDL location.

v0.2 (2013-12-02)

  • Implemented all country codes.

v0.1 (2013-11-29)

  • Initial release.

eu-vat-check's People

Contributors

dependabot[bot] avatar dhouthoo avatar giannivh avatar sgdesmet avatar wvdhaute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eu-vat-check's Issues

Not accessible maven repository

Hello, I want to ask, if your maven will be available again. We have this library as an dependency in our project and it stops compiling last time we try to deploy it, as it can't contact your maven repository.

If you have a time to reply, we only need to know, if we need to replace this depencency, or it will be accessible later.

Thanks a lot,

Jakub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.