| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/261
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/269
|
|
|
|
|
|
| |
Identity number)
Closes https://github.com/arthurdejong/python-stdnum/pull/265
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/248
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that matching numbers is done consistently when the numdb
database file has conflicting information about the length of numbers.
This also refactors the _find() function to be simpler and reduces the
number of recursive calls that have to be done.
The tests have been re-formatted to use pprint to make it easier to spot
differences if any of the tests fail (instead of just saying expected
True, got False).
Closes https://github.com/arthurdejong/python-stdnum/issues/257
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/251
|
|
|
|
|
|
|
|
|
| |
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/242
Closes https://github.com/arthurdejong/python-stdnum/issues/117
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/242
Closes https://github.com/arthurdejong/python-stdnum/issues/117
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/246
|
|
|
|
|
|
|
|
|
| |
The Swish VAT number has the CH prefix embedded as a required part of
the number. This ensures that the international VAT number module also
supports that.
Closes https://github.com/arthurdejong/python-stdnum/issues/245
Fixes ff188bd
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/241
Closes https://github.com/arthurdejong/python-stdnum/issues/125
|
|
|
|
|
|
| |
Specifically invalidated all-zero numbers
Closes https://github.com/arthurdejong/python-stdnum/pull/240
|
|
|
|
|
|
|
|
| |
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 effectively mimics vatnumber's `check_vat` function, so people can
easily replace the outdated vatnumber library with stdnum.
Closes https://github.com/arthurdejong/python-stdnum/pull/199
|
|
|
|
|
|
|
|
|
|
| |
This adds validation, parsing and encoding functions for GS1-128. It is
based on the lists of formats as published by the GS1 organisation.
Based on the implementation provided by Sergi Almacellas Abellana
<sergi@koolpi.com>.
Closes https://github.com/arthurdejong/python-stdnum/pull/144
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/229
Closes https://github.com/arthurdejong/python-stdnum/pull/234
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/227
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/233
Closes https://github.com/arthurdejong/python-stdnum/issues/232
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/214
Closes https://github.com/arthurdejong/python-stdnum/issues/209
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/106
Closes https://github.com/arthurdejong/python-stdnum/pull/198
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/217
Closes https://github.com/arthurdejong/python-stdnum/pull/218
|
| |
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/197
Closes https://github.com/arthurdejong/python-stdnum/issues/101
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/111
Closes https://github.com/arthurdejong/python-stdnum/pull/203
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/207
Closes https://github.com/arthurdejong/python-stdnum/pull/210
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/133
Closes https://github.com/arthurdejong/python-stdnum/pull/215
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/208
Closes https://github.com/arthurdejong/python-stdnum/issues/107
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/193
|
|
|
|
|
|
| |
This also adds a function to do an online lookup of the number.
Closes https://github.com/arthurdejong/python-stdnum/issues/196
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a function that allows you to determine a persons birth date
from a Norwegian fødselsnummer.
This also accounts for D-numbers, H-numbers, and FH-numbers, which
contain special exceptions and modifications to the birthdate portion of
the number.
Most of the information this is based on was found here:
https://no.wikipedia.org/wiki/F%C3%B8dselsnummer#H-nummer
It also updates the list of valid fødselsnummer in the tests, since this
list contained many numbers that are not valid by this new validation
that now accounts for dates.
Additionally, this updates all tests that were failing under the new
validation, and adds a few new tests to bring the coverage to 100%.
Closes https://github.com/arthurdejong/python-stdnum/pull/187
|
|
|
|
|
|
|
| |
This adds an optional allow_temporary parameter, which defaults to
False, to the validate() function.
Closes https://github.com/arthurdejong/python-stdnum/pull/191
|
|
|
|
|
| |
Fixes 5441ffa
Closes https://github.com/arthurdejong/python-stdnum/issues/188
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/126
|
|
|
|
|
|
|
|
| |
This adds a few temporary and internal country codes that are used by
various agencies so that they can also be validated. This does not mean
that all these numbers are globally valid.
Closes https://github.com/arthurdejong/python-stdnum/issues/158
|
|
|
|
|
|
|
|
|
| |
This adds three missing country codes: 'AN' for 'Netherlands Antilles',
'CS' for 'Serbia and Montenegro' and 'XK' for 'Kosovo'.
Closes https://github.com/arthurdejong/python-stdnum/issues/173
Closes https://github.com/arthurdejong/python-stdnum/pull/174
Closes https://github.com/arthurdejong/python-stdnum/pull/176
|
|
|
|
|
|
|
|
| |
The first two digits of the CUIT indicate the type of CUIT (personal,
company or international) and can only have certain values.
Closes https://github.com/arthurdejong/python-stdnum/issues/179
Closes https://github.com/arthurdejong/python-stdnum/pull/181
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The btw-identificatienummer has been introduced on January 1st 2020 in
the Netherlands as an alternative to the btw-nummer that contains the
BSN personal identifier. The number has the same structure and function
but does not contain a BSN and uses a different check digit algorithm.
Thanks to Cas Vissers, Jeroen van Heiningen, Jerome Hanke, Nicolas
Martinelli, Ronald Portier and Tim Muller for contributing to the fix.
More information:
* http://kleineondernemer.nl/index.php/nieuw-btw-identificatienummer-vanaf-1-januari-2020-voor-eenmanszaken
* https://nl.wikipedia.org/wiki/Btw-nummer_(Nederland)
* https://www.belastingdienst.nl/wps/wcm/connect/bldcontenten/belastingdienst/business/vat/new-vat-id/
* https://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/belastingdienst/zakelijk/btw/administratie_bijhouden/btw_nummers_controleren/uw_btw_nummer
Closes https://github.com/arthurdejong/python-stdnum/issues/182
Closes https://github.com/arthurdejong/python-stdnum/pull/183
Closes https://github.com/arthurdejong/python-stdnum/pull/184
Closes https://github.com/arthurdejong/python-stdnum/pull/185
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/180
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/170
|
|
|
|
|
| |
The BIC for some former Record Bank accounts (now ING Belgium) was
changed from HBKABE22 to BBRUBEBB (that of ING).
|
| |
|
| |
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/157
|
|
|
|
|
|
|
|
|
|
|
| |
For people aged 100 and up, the minus/dash in the personnummer is
changed to a plus, on new year's eve the year they turn 100. See
Folkbokföringslagen (1991:481), §18.
This makes the - or + sign part of the number.
Closes https://github.com/arthurdejong/python-stdnum/issues/156
Closes https://github.com/arthurdejong/python-stdnum/pull/160
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/149
Closes https://github.com/arthurdejong/python-stdnum/issues/132
|
|
|
|
|
|
|
|
|
|
| |
This ensures that numbers of 1 digit are also accepted and that trailing
characters are not silently discardede in the validation.
This also adds a few test cases for this and makes "Paderborn früher
Höxter" an alias for "Paderborn".
Closes https://github.com/arthurdejong/python-stdnum/issues/143
|
|
|
|
|
| |
This supports looking up the German Handelsregisternummer using the
online OffeneRegister.de web service.
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/145
Closes https://github.com/arthurdejong/python-stdnum/issues/119
|
|
|
|
|
| |
Part of https://github.com/arthurdejong/python-stdnum/issues/141
Closes https://github.com/arthurdejong/python-stdnum/pull/140
|