faker.providers.ssn.es_CA
¶
Package Contents¶
Classes¶
A Faker provider for the Spanish VAT IDs and DOIs |
|
A Faker provider for the Spanish VAT IDs and DOIs |
- class faker.providers.ssn.es_CA.BaseProvider(generator: Any)¶
Bases:
faker.providers.ssn.Provider
A Faker provider for the Spanish VAT IDs and DOIs
- vat_id_formats = ('ES?########', 'ES########?', 'ES?#######?')¶
- vat_id() str ¶
http://ec.europa.eu/taxation_customs/vies/faq.html#item_11 :return: a random Spanish VAT ID
- nie() str ¶
https://es.wikipedia.org/wiki/N%C3%BAmero_de_identidad_de_extranjero :return: a random Spanish NIE
- nif() str ¶
https://es.wikipedia.org/wiki/N%C3%BAmero_de_identificaci%C3%B3n_fiscal :return: NIF
- cif() str ¶
https://es.wikipedia.org/wiki/C%C3%B3digo_de_identificaci%C3%B3n_fiscal :return: a random Spanish CIF
- doi() str ¶
https://es.wikipedia.org/wiki/Identificador_de_objeto_digital :return: a random Spanish CIF or NIE or NIF
- static _calculate_control_doi(doi: str) str ¶
Calculate the letter that corresponds to the end of a DOI :param doi: calculated value so far needing a control character :return: DOI control character
- classmethod _calculate_control_cif(cif: str) str ¶
Calculate the letter that corresponds to the end of a CIF :param cif: calculated value so far needing a control character :return: CIF control character
Code was converted from the minified js of: https://generadordni.es/
- class faker.providers.ssn.es_CA.Provider(generator: Any)¶
Bases:
faker.providers.ssn.es_ES.Provider
A Faker provider for the Spanish VAT IDs and DOIs