eu_vat_id

Crates.ioeu_vat_id
lib.rseu_vat_id
version0.1.0
sourcesrc
created_at2018-08-01 08:52:06.792219
updated_at2018-08-01 08:52:06.792219
descriptionEuropean Union VAT ID validation/verification
homepage
repositoryhttps://github.com/lordarthas/eu_vat_id
max_upload_size
id76926
size27,380
Michele Beltrame (lordarthas)

documentation

README

eu_vat_id

This crate provides validation of European Union VAT IDs, which are (basically, even though there are exceptions) the company registration numbers within the EU.

Please have a look at the function definitions for usage examples.

All countries which have Value Added Tax have VAT IDs, so not only European Union states. This crate works with EU VAT IDs only.

We implement and pass all tests for the sample VIES IDs: http://ec.europa.eu/taxation_customs/vies/faq.html#item_11

TODO

  • Make regulax expressions more specific so they can check more state-specific things such are check digits.
  • Add interface with VIES to provide, at which, an online verification of the existence of a VAT ID. This may be a stand-alone crate, as it will need to pull in a few dependencies and I'd prefer this crate to stay light.

License: MPL-2.0

Commit count: 14

cargo fmt