Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/do/rnc.py
Commit message (Collapse)AuthorAgeFilesLines
* Scape new line characterevaldez892020-08-021-1/+1
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/233 Closes https://github.com/arthurdejong/python-stdnum/issues/232
* Use HTTPS in URLs where possibleArthur de Jong2020-03-201-1/+1
|
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-2/+2
| | | | | | | | | | | 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
* Return only first response from DGII lookupAndrés R2019-02-161-1/+2
| | | | | | | This fixes an issue when response for check_dgii() comes with 2 records instead of one for same RNC. Closes https://github.com/arthurdejong/python-stdnum/pull/95
* Use HTTPS for WSDL as HTTP was deprecatedGustavo Valverde2018-11-171-1/+1
| | | | | | | The regulator changed their site to use HTTPS by default; making this resource unavailable through HTTP. Closes https://github.com/arthurdejong/python-stdnum/pull/85
* Fix PySimpleSOAP DGII result parsing issueArthur de Jong2018-02-191-3/+7
| | | | | | | | This strips the wrapper that PySimpleSOAP puts around results from the DGII PySimpleSOAP SOAP call. Closes https://github.com/arthurdejong/python-stdnum/issues/64 Closes https://github.com/arthurdejong/python-stdnum/issues/65
* Allow configuring SOAP request timeoutArthur de Jong2018-02-061-7/+7
| | | | | | 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.
* Fix Python 2.6 compatibilityArthur de Jong2018-01-011-3/+3
|
* Add stdnum.do.rnc.check_dgii() and search_dgii()Arthur de Jong2017-10-221-1/+100
| | | | | | This adds functions for querying the Dirección General de Impuestos Internos (DGII) API to validate the RNC and search the register by keyword.
* Also add a whitelist for Dominican Republic RNCArthur de Jong2017-10-141-3/+14
| | | | | | Some RNCs are apparently valid while having an incorrect check digit (though most appear to be inactive). There also appear to be valid RNCs that do not have 9 digits.
* Docstring improvementsArthur de Jong2017-09-111-3/+3
|
* Use zip() instead of enumerate()Arthur de Jong2015-10-051-1/+1
| | | | Makes the code slightly simpler and more compact.
* Add Dominican Republic RNC numberArthur de Jong2015-04-221-0/+79
The RNC (Registro Nacional del Contribuyente) is the Dominican Republic taxpayer registration number for companies.