Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Ukraine РНОКПП numberLeandro Regueiro2021-01-101-0/+152
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/242 Closes https://github.com/arthurdejong/python-stdnum/issues/117
* Add support for Ukraine ЄДРПОУ numberLeandro Regueiro2021-01-101-0/+304
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/242 Closes https://github.com/arthurdejong/python-stdnum/issues/117
* Remove GB from EU member statesViggo de Vries2021-01-102-40/+46
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/246
* Support VAT numbers that are only valid with country prefixArthur de Jong2021-01-021-0/+3
| | | | | | | | | 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
* Add Liechtenstein PersonenidentifikationsnummerMatthias Schmid, M.Sc2020-11-081-0/+94
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/241 Closes https://github.com/arthurdejong/python-stdnum/issues/125
* Expanded validation for BE VAT numbersJonas Geuens2020-11-071-0/+37
| | | | | | Specifically invalidated all-zero numbers Closes https://github.com/arthurdejong/python-stdnum/pull/240
* Retain RO prefix in Romanian VAT numbersArthur de Jong2020-11-011-0/+7
| | | | | | | | 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
* Add module to check any VAT numberLeandro Regueiro2020-08-091-0/+75
| | | | | | | 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
* Add GS1-128 formatArthur de Jong2020-08-081-0/+148
| | | | | | | | | | 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
* Add Romanian Trade Register identifierArthur de Jong2020-08-021-0/+274
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/229 Closes https://github.com/arthurdejong/python-stdnum/pull/234
* Add English Unique Tax ReferenceMohammed Salman2020-08-021-0/+46
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/227
* Scape new line characterevaldez892020-08-021-0/+4
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/233 Closes https://github.com/arthurdejong/python-stdnum/issues/232
* Add support for Taiwan TIN numberLeandro Regueiro2020-07-051-0/+208
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/214 Closes https://github.com/arthurdejong/python-stdnum/issues/209
* Add support for Indonesian NPWPLeandro Regueiro2020-06-281-0/+160
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/106 Closes https://github.com/arthurdejong/python-stdnum/pull/198
* Add support for Vietnam TIN numberLeandro Regueiro2020-06-281-0/+230
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/217 Closes https://github.com/arthurdejong/python-stdnum/pull/218
* Add an online check for the South Korean BRNArthur de Jong2020-06-281-0/+46
|
* Add support for South Korea Business Registration NumberLeandro Regueiro2020-06-281-0/+303
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/197 Closes https://github.com/arthurdejong/python-stdnum/issues/101
* Add support for Singapore Unique Entity NumberLeandro Regueiro2020-05-171-0/+301
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/111 Closes https://github.com/arthurdejong/python-stdnum/pull/203
* Add support for Chinese TIN numberLeandro Regueiro2020-04-271-0/+261
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/207 Closes https://github.com/arthurdejong/python-stdnum/pull/210
* Add support for El Salvador TIN numberLeandro Regueiro2020-04-261-0/+263
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/133 Closes https://github.com/arthurdejong/python-stdnum/pull/215
* Add Israeli TIN numberLeandro Regueiro2020-04-251-0/+257
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/208 Closes https://github.com/arthurdejong/python-stdnum/issues/107
* Add Italian AIC codesFabrizioMontanari2020-03-141-0/+128
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/193
* Add Bellarus УНП numberArthur de Jong2020-03-082-0/+160
| | | | | | This also adds a function to do an online lookup of the number. Closes https://github.com/arthurdejong/python-stdnum/issues/196
* Implement get_birth_date() for no.fodselsnummerLeon Sandøy2020-03-011-45/+52
| | | | | | | | | | | | | | | | | | | | | 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
* Support validating temporary Finnish personal identity codesAleksi Hoffman2020-03-011-2/+9
| | | | | | | This adds an optional allow_temporary parameter, which defaults to False, to the validate() function. Closes https://github.com/arthurdejong/python-stdnum/pull/191
* Fix issue with extra plus or minus in se.personnummerArthur de Jong2020-02-121-2/+10
| | | | | Fixes 5441ffa Closes https://github.com/arthurdejong/python-stdnum/issues/188
* 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