| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This changes a few inline imports in the code to pass with the new
isort.
Reverts 291b831
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/233
Closes https://github.com/arthurdejong/python-stdnum/issues/232
|
| |
|
|
|
|
|
|
| |
The old endpoint has been deprecated.
Closes https://github.com/arthurdejong/python-stdnum/pull/190
|
|
|
|
|
|
|
|
| |
These document types are in the official documentation, but were not
being validated:
https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscales/Paginas/tiposComprobantes.aspx
Closes https://github.com/arthurdejong/python-stdnum/pull/186
|
|
|
|
|
| |
This avoids an extra dependency on BeautifulSoup and makes the code more
consistent.
|
|
|
|
|
|
|
| |
DGII has changed its page, all the link have been broken, so they
changed some URL.
Closes https://github.com/arthurdejong/python-stdnum/pull/153
|
|
|
|
|
|
|
|
| |
DGII has changed their validation mechanism, so we first exract the
__EVENTVALIDATION and __VIEWSTATE from the form and put them in the post
request for validation.
Closes https://github.com/arthurdejong/python-stdnum/pull/165
|
|
|
|
|
|
|
| |
The document type values are different from the NCF document types
https://dgii.gov.do/contribuyentes/personasFisicas/inicioOperaciones/ComprobantesFiscales/Paginas/comprobantesFiscalesElectronicos.aspx
Closes https://github.com/arthurdejong/python-stdnum/pull/138
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This tries to screen-scrape the new DGII form that is used to validate
the new format of NCF numbers.
Closes https://github.com/arthurdejong/python-stdnum/issues/71
|
|
|
|
|
|
|
|
|
| |
This adds support for validating Dominican Republic invoice numbers that
should be used since from 2018-05-01.
http://www.dgii.gov.do/contribuyentes/personasFisicas/inicioOperaciones/ComprobantesFiscales/Paginas/SecuenciaDeNCF.aspx
Closes https://github.com/arthurdejong/python-stdnum/issues/69
|
|
|
|
|
|
|
| |
This exposes the stdnum.do.rnc.check_dgii() in the stdnum.do.cedula
module with but rename the rnc result entry to cedula.
Closes https://github.com/arthurdejong/python-stdnum/issues/63
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-enable the flake8 test for unused imports by explicitly marking
imports for namespace purposes. This allows us to remove a few unused
imports.
A few more cleanups that allow us to reduce the number of ignored flake8
ignored tests. The remaining ignored tests are now documented.
Ignore a flake8 warning about print statements because we use print in
the update scripts.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
This adds functions for querying the Dirección General de Impuestos
Internos (DGII) API to check if the RNC and NCF combination provided is
valid.
|
|
|
|
|
|
| |
This adds functions for querying the Dirección General de Impuestos
Internos (DGII) API to validate the RNC and search the register by
keyword.
|
|
|
|
|
| |
This number does not have a check digit but uses a distinctive enough
format that it should not be too great of a problem.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
These numbers were found to be valid but had an invalid check digit
nonetheless (though most appear to be inactive). Also there appear to be
a few valid Cedula that do not have 11 digits.
|
| |
|
| |
|
|
|
|
| |
Makes the code slightly simpler and more compact.
|
|
|
|
|
|
| |
This is based on the list of Cedula found at
http://prd.org.do/2013/07/30/lista-del-cen-del-prd-actualizada-y-registrada-en-la-junta-central-electoral/
(link provided by José Arturo García)
|
|
|
|
|
|
|
|
|
| |
The Cedule is a Dominican Republic national identification number for
persons.
The number uses the Luhn checksum but apparently there are a lof of
valid numbers in use that do not match the checksum. For this a
whitelist is used.
|
|
The RNC (Registro Nacional del Contribuyente) is the Dominican Republic
taxpayer registration number for companies.
|