Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add South African Identity Document numberArthur de Jong2020-01-181-0/+90
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/126
* Add temporary and internal ISIN country codesArthur de Jong2020-01-121-0/+1
| | | | | | | | 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
* Add three country codes to ISINanwarbaroudi2020-01-121-0/+1
| | | | | | | | | 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
* Test Argentinian CUIT typeEmmanuel Arias2020-01-111-0/+18
| | | | | | | | 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
* Support new btw-identificatienummerArthur de Jong2020-01-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | 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
* The Italian IVA is also a Codice FiscaleArthur de Jong2020-01-051-1/+9
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/180
* Add Swiss ESR/ISR/QR-referenceKurt Keller2019-11-031-0/+64
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/170
* Update database filesArthur de Jong2019-10-271-4/+4
| | | | | The BIC for some former Record Bank accounts (now ING Belgium) was changed from HBKABE22 to BBRUBEBB (that of ING).
* Add South Korean Resident Registration NumbersDimitri Papadopoulos2019-10-141-0/+124
|
* Add various test numbersArthur de Jong2019-10-134-1/+110
|
* Add Japan Corporate NumberAlan Hettinger2019-10-131-0/+92
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/157
* Handle - and + sign correctly in Swedish PersonnummerAmin Solhizadeh2019-10-131-0/+10
| | | | | | | | | | | 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
* Add Guatemalan NITLeandro Regueiro2019-07-231-0/+105
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/149 Closes https://github.com/arthurdejong/python-stdnum/issues/132
* Fix the Handelsregisternummer number matchingArthur de Jong2019-07-211-0/+15
| | | | | | | | | | 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
* Lookup German Handelsregisternummer in OffeneRegister.deArthur de Jong2019-07-211-0/+47
| | | | | This supports looking up the German Handelsregisternummer using the online OffeneRegister.de web service.
* Add Andorran TINLeandro Regueiro2019-07-071-0/+140
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/145 Closes https://github.com/arthurdejong/python-stdnum/issues/119
* Add Costa Rica foreigners identification numberLeandro Regueiro2019-06-241-0/+71
| | | | | Part of https://github.com/arthurdejong/python-stdnum/issues/141 Closes https://github.com/arthurdejong/python-stdnum/pull/140
* Add Costa Rica Cédula de IdentidadLeandro Regueiro2019-06-241-0/+207
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/139
* Add Costa Rica TIN numberLeandro Regueiro2019-06-241-0/+275
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/109
* Add South Africa TIN numberLeandro Regueiro2019-06-221-0/+65
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/129 Closes https://github.com/arthurdejong/python-stdnum/issues/108
* Add Paraguay RUC numberLeandro Regueiro2019-06-161-0/+261
| | | | | | | | This supports RUC number validation of rphysical persons, non-juridical persons and foreigners. Closes https://github.com/arthurdejong/python-stdnum/issues/122 Closes https://github.com/arthurdejong/python-stdnum/pull/123
* Add Uruguay RUT numberLeandro Regueiro2019-06-141-0/+275
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/121 Closes https://github.com/arthurdejong/python-stdnum/issues/110
* Fix handelsregisternummer to not turn Hamburg into HomburgArthur de Jong2019-06-141-1/+7
| | | | | | | | | | | This changes the minimisation function that is used for comparison and canonicalisation to not reduce Hamburg and Homburg to the same string. This makes the function slightly more strict in which encoding differences to accept. This also adds a few aliases to the court names. Closes https://github.com/arthurdejong/python-stdnum/issues/136
* Support Dominican Republic e-CF within NCFJeffry Jesus De La Rosa2019-06-141-3/+19
| | | | | | | | e-CF is the new way of DGII document, is the same as NCF, but the difference one to another, is that e-CF has 13 digit and is electronic invoice, with this change it will validate the correct NCF and e-CF. Closes https://github.com/arthurdejong/python-stdnum/pull/135
* Add New Zealand IRD numberLeandro Regueiro2019-06-091-0/+68
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/112 Closes https://github.com/arthurdejong/python-stdnum/issues/104
* Add Vergi Kimlik NumarasıArthur de Jong2019-06-021-0/+234
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/99
* Add Venezuelan RIF (VAT number)Arthur de Jong2019-05-121-0/+258
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/97
* Fix remaining issue with encodingArthur de Jong2019-05-041-3/+4
| | | | | | | This also sets the python 2.6 interpreter explicityly because sometimes tox seems to get the wrong one. Fixes 680a95f
* Re-add Python 2.6 supportArthur de Jong2019-04-301-2/+2
| | | | Fixes 48ff92e
* Convert various reasonable unicode digitsArthur de Jong2019-04-291-1/+1
| | | | | This converts many of the "reasonable" unicode digits that are just variations on ASCII 0-9 to their ASCII counterparts.
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-294-9/+42
| | | | | | | | | | | 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
* Add Peruvian CUI (DNI)Arthur de Jong2019-03-241-0/+89
|
* Add Peruvian RUCArthur de Jong2019-03-241-0/+171
|
* Add New Zealand bank account numberArthur de Jong2019-03-101-0/+163
|
* Add Moldavian IDNOArthur de Jong2019-03-031-0/+235
|
* Add more tests for Bulgarian EGNArthur de Jong2019-03-031-0/+42
|
* Rename MAC check_manufacturer to validate_manufacturerArthur de Jong2019-03-031-2/+2
| | | | | For consistency with the other validation modules that have an extra argument to disable or enable certain parts of the validation.
* Add Lithuanian Asmens kodasArthur de Jong2019-03-031-0/+51
|
* Add Greek AMKA social security numberArthur de Jong2019-03-031-0/+147
|
* Add Mexican CURPArthur de Jong2019-02-061-0/+118
|
* Add MAC addressArthur de Jong2018-12-291-0/+104
| | | | | | | | This adds validation of MAC (Ethernet) addresses. It will perform lookups in the IEEE registry for manufacturer names for universally administered addresses. Closes https://github.com/arthurdejong/python-stdnum/issues/93
* Add Swedish PersonnummerIlya Vihtinsky2018-12-241-0/+77
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/88
* Add Norwegian FødselsnummerIlya Vihtinsky2018-12-241-0/+112
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/88
* Raise InvalidComponent on unknown IBAN countryArthur de Jong2018-10-141-1/+9
| | | | | | This partially reverts 58ea7b2. Closes https://github.com/arthurdejong/python-stdnum/issues/82
* Fix issue with minimal IBANArthur de Jong2018-10-091-0/+9
| | | | | | | | This ensures that an IBAN with a missing bban part and unknown country code (while still having a valid MOD 97,10 checksum) is considered valid. Closes https://github.com/arthurdejong/python-stdnum/issues/84
* Bitcoin addressArthur de Jong2018-09-301-0/+119
| | | | | | | This adds validation of Bitcoin addresses. No check is done that the addresses actually exist but only that they are syntactically correct. Closes https://github.com/arthurdejong/python-stdnum/issues/80
* Fix ES test descriptionsGerard Dalmau2018-08-302-2/+2
|
* Improve CIF and NIF validationGerard Dalmau2018-08-301-0/+57
| | | | | | | | NIF starting with K, L or M are NIF instead of CIF. This also adds NIF-DNI-CIF-NIE classification tests. Closes https://github.com/arthurdejong/python-stdnum/pull/81
* Add Norwegian bank account numberArthur de Jong2018-08-221-0/+45
| | | | | | | This includes validation of Norwegian bank account numbers and conversion to IBAN. Closes https://github.com/arthurdejong/python-stdnum/issues/79
* Add Mauritian national ID numberArthur de Jong2018-08-081-0/+94
| | | | | | | Thans to Bradley Smith for providing the needed information to implement this. See https://lists.arthurdejong.org/python-stdnum-users/2018/msg00003.html