Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/eu/vat.py
Commit message (Collapse)AuthorAgeFilesLines
* Validate European VAT numbers with EU or IM prefixArthur de Jong2023-08-131-0/+3
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/417
* Support xi country code for Northern IrelandArthur de Jong2021-01-211-4/+7
| | | | | | | | | While Great Brittain is no longer an EU member state some GB VAT numbers are still valid if the company meets certain requirements. See https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business Closes https://github.com/arthurdejong/python-stdnum/issues/250
* Remove GB from EU member statesViggo de Vries2021-01-101-3/+3
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/246
* Retain RO prefix in Romanian VAT numbersArthur de Jong2020-11-011-4/+12
| | | | | | | | This does not strip the RO prefix from Romanian VAT numbers to be able to keep the distinction between a CUI/CIF that is registered for VAT (which commonly has the RO prefix) and those that don't. Closes https://github.com/arthurdejong/python-stdnum/issues/231
* Make list of EU member states list of public APIArthur de Jong2020-09-191-4/+4
| | | | | | | | This provides stdnum.eu.vat.MEMBER_STATES. Note that Greece is listed with a country code of "gr" while the prefix used in VAT numbers is "el". Closes https://github.com/arthurdejong/python-stdnum/issues/238
* Use HTTPS instead of HTTP fox VIES lookupsgrzekru2020-03-201-1/+1
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/204 Closes https://github.com/arthurdejong/python-stdnum/pull/205
* Allow configuring SOAP request timeoutArthur de Jong2018-02-061-8/+9
| | | | | | This adds a timeout parameter to all checks that use a SOAP web service to reduce the blocking time. The default timeout for all checks is 30 seconds.
* Exclude EU country codes from documentationChris Lamb2018-01-071-3/+3
| | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0], we noticed that python-stdnum could not be built reproducibly as it relies on a stable set ordering when generating the documentation. This has been filed in Debian as #88652 [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/886522 Closes: https://github.com/arthurdejong/python-stdnum/pull/61 Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
* Add tests for the VIES VAT validation functionsArthur de Jong2017-10-221-1/+1
| | | | | | These tests are not normally run as part of the normal test suite and have to be explicitly enabled by setting the ONLINE_TESTS environment variable to avoid overloading these online services.
* Cache SOAP client in get_soap_client()Arthur de Jong2017-10-221-15/+4
| | | | | This caches the instantiated SOAP client classes in the util module instead of doing the caching in every module that performs requests.
* Docstring improvementsArthur de Jong2017-09-111-13/+13
|
* Introduce get_cc_module() utility functionArthur de Jong2016-09-101-3/+3
| | | | | | This changes the get_vat_module() function to a more generic get_cc_module() function so that it can also be used for other things like IBAN checking.
* Implement online TC Kimlik checkArthur de Jong2016-04-091-13/+2
| | | | | This refactors out the SOAP client function that was implemented for VIES to the stdnum.utils module.
* Fix SOAP client re-useArthur de Jong2015-10-281-1/+1
| | | | | | | This fixes a bug when checking re-use of the global SOAP client object. The object could not be evaluated in boolean context so is no explicitly compared to None. For suds a MethodNotFound exception would be raised for __nonzero__() (which Python uses for boolean comparison).
* Fix problem with check_vies_approx()Lionel Elie Mamane2015-10-281-1/+1
|
* Move finding VAT module to utilArthur de Jong2015-10-051-5/+2
| | | | | This moves the finding of a VAT module to the util module so that it can be more easily re-used for non-EU countries.
* Fall back to pysimplesoap if suds is unavailableArthur de Jong2015-07-121-4/+10
| | | | | Initial testing seems to suggest that proxy-support is not complete with pysimplesoap (at least httplib2 and PySocks seem to be required).
* Implement alternate VIES checkLionel Elie Mamane2015-07-121-12/+35
| | | | | | | | Add a function to stdnum.eu.vat so that when one does a VIES VAT number check, one gets a proof (certificate) that one did the check, as defence against the VAT administration later putting this in doubt. This certificate is provided by the VIES service, if one provides one's own VAT number.
* Adding HR (Croatia) to the list of available countriesEmiliano Castro2015-04-171-1/+1
|
* Added a simple backwards compability checkJussi Räsänen2014-03-051-1/+4
|
* Add support for proxyCédric Krier2013-12-301-1/+2
|
* Implement validate() for European VAT numbersArthur de Jong2013-06-081-13/+27
|
* some more documentation improvementsArthur de Jong2012-02-261-4/+9
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@168 9dea7c4f-944c-4273-ac1a-574ede026edc
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-1/+5
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a stdnum.eu.vat.check_vies() function to do an ↵Arthur de Jong2012-02-201-0/+21
| | | | | | on-line check of the VAT number git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@157 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (European Union VAT number) moduleArthur de Jong2012-02-191-0/+85
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@155 9dea7c4f-944c-4273-ac1a-574ede026edc