| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/422
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/417
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
We have some long URLs in the code (mostly in docstrings) and wrapping
them does not improve readability (and is difficult in docstrings) so
the E501 ignore is now put inside each file instead of globally.
Closes https://github.com/arthurdejong/python-stdnum/pull/302
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/246
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/204
Closes https://github.com/arthurdejong/python-stdnum/pull/205
|
| |
|
|
|
|
|
|
| |
Nowadays flake8 seems to report this as D401 (First line should be in
imperative mood) while before it was D402 (First line should not be the
function’s signature).
|
|
|
|
|
| |
The BIC for some former Record Bank accounts (now ING Belgium) was
changed from HBKABE22 to BBRUBEBB (that of ING).
|
|
|
|
| |
Fixes 170e599
|
|
|
|
|
| |
To be more consistent with other similar functions. This deprecates the
old function which now is a wrapper around get_label().
|
|
|
|
|
|
|
|
|
|
|
| |
The problem with the latter is that it will also accept all kinds of
unicode digits that are not the ASCII 0-9 digits causing all kinds of
problems in check digit calculations.
Some of these unicode characters are also considered digits by int() but
some are not (such as the SUPERSCRIPT TWO unicode character).
Closes https://github.com/arthurdejong/python-stdnum/issues/96
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Note that the Swift IBAN Registry in txt format is currently unavailable
so hasn't been updated.
|
|
|
|
| |
This adds validation of serial numbers that appear on Euro bills.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This caches the instantiated SOAP client classes in the util module
instead of doing the caching in every module that performs requests.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This number is used to classify business. Validation is done based on a
downloaded registry.
|
|
|
|
| |
Creditor (AT-02)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This refactors out the SOAP client function that was implemented for
VIES to the stdnum.utils module.
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Initial testing seems to suggest that proxy-support is not complete with
pysimplesoap (at least httplib2 and PySocks seem to be required).
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|