faker.providers.ssn.es_CO
¶
Package Contents¶
Classes¶
Functions¶
|
Calculate the check digit of a NIT. |
- class faker.providers.ssn.es_CO.BaseProvider(generator: Any)¶
Bases:
faker.providers.BaseProvider
- faker.providers.ssn.es_CO.nit_check_digit(nit: str) str ¶
Calculate the check digit of a NIT.
The check digit is calculated by multiplying the reversed digits of a NIT by (3, 7, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 59, 67, 71), respectively, adding the results and applying MOD 11. If the result is greater than or equal to 2, the check digit is 11 minus the result. Otherwise, the check digit is the result.
- class faker.providers.ssn.es_CO.Provider(generator: Any)¶
Bases:
faker.providers.ssn.Provider
- nuip_formats¶
- legal_person_nit_formats = ['8########', '9########']¶
- natural_person_nit¶
- nuip() str ¶
https://es.wikipedia.org/wiki/C%C3%A9dula_de_Ciudadan%C3%ADa_(Colombia) :example: ‘1095312769’
- legal_person_nit() str ¶
https://es.wikipedia.org/wiki/N%C3%BAmero_de_Identificaci%C3%B3n_Tributaria :example: ‘967807269’