Outils pour utilisateurs

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
documentation_technique_scripts [2025/05/19 16:42] ctisseranddocumentation_technique_scripts [2025/05/20 16:38] (Version actuelle) ctisserand
Ligne 1: Ligne 1:
-Demonstration+====== Documentation pour écrire un script custom (LUA) ====== 
 + 
 +<markdown> 
 +Squelette du script
 ``` ```
 -- script title -- script title
Ligne 19: Ligne 22:
 return true or false return true or false
 ``` ```
-# Titre+# Titre du script
 ``` ```
 --- country_alpha2 = title --- country_alpha2 = title
Ligne 35: Ligne 38:
 Si la langue cible n'est pas disponible, EN est utilisé, sinon le premier disponible est utilisé Si la langue cible n'est pas disponible, EN est utilisé, sinon le premier disponible est utilisé
  
-Paramètre+Paramètres
 ``` ```
 --% module | country_alpha2 = name | country_alpha2 = name --% module | country_alpha2 = name | country_alpha2 = name
Ligne 48: Ligne 51:
 Il ne sert pas a définir les tests (cf. Module), ils servent a définir le comportement du code Il ne sert pas a définir les tests (cf. Module), ils servent a définir le comportement du code
  
-Module+Modules (référence pour les script)
 ``` ```
  
Ligne 59: Ligne 62:
 Il définissent les tests qui seront enregistrés dans le rapport archivé Il définissent les tests qui seront enregistrés dans le rapport archivé
  
-Une référence peut être utilisé plusieur fois dans le script, le résultat final sera un OU logique entre tout les retour de la référence+Une référence peut être utilisée plusieurs fois dans le script, le résultat final sera un OU logique entre tous les retours de la référence
  
-Le nom final d'une référence est consitué de tous ces composant nécéssaire + le nom de la référence+Le nom final d'une référence est consitué de tous ces composants nécéssaires + le nom de la référence
  
 exemple exemple
Ligne 70: Ligne 73:
  
 # Services # Services
-Un service fournit des fonctions additionnelles pour certain traitement particulier+Un service permet l'appel à des compsants externes pour certains traitements particuliers 
 + 
 +Ci-dessous la liste des services disponibles ainsi que leur documentation extraite automatiquement
  
 Exemple:  Exemple: 
Ligne 77: Ligne 82:
 services.email.verify(input.data.email[0], false, false) services.email.verify(input.data.email[0], false, false)
 ``` ```
-## inpi+## email
 ``` ```
-by_siret(siretstr)+services.email.verify(emailAny, check_mx: Any = True, check_server_respond: Any = False)
 ``` ```
-Get the information on a company from INPI+Verify the regex and domain of an email
  
-siret: the SIRET number of the company+email: the email address 
 +- check_mx: Check if an MX entry exist for this domain. True by default 
 +- check_server_respond: if check_mx is True, check if the server respond. False by default
  
 +## inpi
 ``` ```
-by_siren(siren: str)+services.inpi.by_siret(siret: str)
 ``` ```
 Get the information on a company from INPI Get the information on a company from INPI
  
-siren: the SIREN number of the company+siret: the SIRET number of the company
  
-## email 
 ``` ```
-verify(emailAny, check_mx: Any = True, check_server_respond: Any = False)+services.inpi.by_siren(sirenstr)
 ``` ```
-Verify the regex and domain of an email+Get the information on a company from INPI
  
-email: the email address +siren: the SIREN number of the company
-- check_mx: Check if an MX entry exist for this domain. True by default +
-- check_server_respond: if check_mx is True, check if the server respond. False by default+
  
 ## country ## country
 ``` ```
-country_exists(country: Any)+services.country.country_exists(country: Any)
 ``` ```
 From the name of a country, find all the real country that match the name From the name of a country, find all the real country that match the name
Ligne 110: Ligne 115:
 - country: Name of the country to search - country: Name of the country to search
  
-# Données fournis en entré du script +# Données fournies en entrée du script 
-Les données fournit par le moteur sont dans le champ `input`+Les données fournies par le moteur sont dans le champ `input`
  
 - data: dict[field_name, list[str]] - data: dict[field_name, list[str]]
Ligne 120: Ligne 125:
 local name = input.data.name local name = input.data.name
 ``` ```
-# Données pouvant etre fournis en sortie du script +# Données pouvant être fournies en sortie du script 
-Les données fournit au moteur sont dans le champ `output`+Les données fournies au moteur sont dans le champ `output`
  
 - identity: PersonalDetails - identity: PersonalDetails
Ligne 132: Ligne 137:
 output.valid[doc.name] = true output.valid[doc.name] = true
 ``` ```
-# Functions +# Functions utilisables dans le script
-## custom_info +
-``` +
-custom_info(infos: list[tuple[str | Any]], is_valid: Any, ref: Any, threshold: Any = None, score: Any = None) +
-``` +
-Write a bloc to indicate the state of a custom verification +
-- infos: List of name, value used for this verification +
-- is_valid: The end result of the verification +
-- ref: a description to indicate the verification done for the report +
-- threshold: if used, indicate the threshold used for this verification +
-- score: if used, indicate the score obtain with this verification +
- +
-## save_error +
-``` +
-save_error(codes: list[tuple[EnrollmentStatusCodeEnum | str] | ErrorCodeException | EnrollmentStatusCode]) +
-``` +
- +
-- codes: save an instance of EnrollmentStatusCode or ErrorCodeException or (EnrollmentStatusCodeEnum, text) +
- +
-## create_date_mask +
-``` +
-create_date_mask(d: str, date_format: Any = "%y%m%d"+
-``` +
-Create a valid mask for the date given (ex: 1990 -> YYYY, 901212 -> YYMMDD) +
-- d: the date as a string +
-- date_format: the format of the date to parse +
- +
-## to_lua +
-``` +
-to_lua(x: Any) +
-``` +
-convert an object from python to LUA +
-- x: a python compatible object +
- +
-## generator +
-``` +
-generator(co: list[Any]) +
-``` +
-Make a python coroutine usable. Available: #(...), .first(), .all() +
-- co: Python coroutine to use +
- +
-## list +
-``` +
-list(x: list[Any]) +
-``` +
-convert a list from lua to python +
-- x: a LUA compatible list +
 ## check ## check
 ``` ```
-check(doc: PersonalDetails | MRZDocument | DocumentWrapperfield: str | list[str]fn: bool (list[str] | Any)ref: strparse: bool = Falsehide: bool = Falseall_values: bool = False)+check( 
 + doc: PersonalDetails | MRZDocument | DocumentWrapper 
 + field: str | list[str] 
 + fn: bool (list[str] | Any) 
 + ref: str 
 + parse: bool = False 
 + hide: bool = False 
 + all_values: bool = False 
 +)
 ``` ```
 Verify the validity of a field with the function given Verify the validity of a field with the function given
Ligne 192: Ligne 158:
 - hide: True to hide this verification from the report - hide: True to hide this verification from the report
 - all_values: If False, the first value to return true is used, else every value must return true - all_values: If False, the first value to return true is used, else every value must return true
 +
 +## check_concat
 +```
 +check_concat(
 + doc: DocumentWrapper
 + field: str | list[str]
 + fn: bool (list[str] | Any)
 + ref: str
 + hide: bool = False
 + parse: bool = False
 + allow_missing_field: bool = False
 +)
 +```
 +Verify the validity of the concatenation of multiple field with the function given
 +- doc: a DocumentWrapper to get the value from
 +- field: standardize field name or a list of standardize field name to get from the document
 +- fn: the function to verify the validity of the data
 +- ref: a description to indicate the verification done for the report
 +- hide: True to hide this verification from the report
 +- parse: True to try to parse the data before giving it to the function, False to have a string
 +- allow_missing_field: True to allow the fields to not be found, else an error will be raised if a field is not found in the document
 +
 +## compare
 +```
 +compare(
 + doc1: PersonalDetails | MRZDocument | dict
 + field1: str | list[str]
 + doc2: DocumentWrapper | dict
 + field2: str | list[str]
 + fn: float (str | str)
 + tr: int
 + ref: str
 + parse: bool = False
 + hide: bool = False
 +)
 +```
 +Compare 2 fields from 2 different document
 +- doc1: a PersonalDetails or MRZDocument to get the value from
 +- field1: standardize field name or a list of standardize field name to get from the document doc1
 +- doc2: a DocumentWrapper to get the value from
 +- field2: standardize field name or a list of standardize field name to get from the document doc2
 +- fn: the function to verify the validity of the data
 +- tr: the minimum value to consider this verification valid
 +- ref: a description to indicate the verification done for the report
 +- parse: True to try to parse the data of doc2 before giving it to the function, False to have a string
 +- hide: True if the verification is valid
  
 ## contains ## contains
 ``` ```
-contains(_list: list[Any]item: Any)+contains( 
 + _list: list[Any] 
 + item: Any 
 +)
 ``` ```
 Test if y is contains in x Test if y is contains in x
Ligne 203: Ligne 218:
 ## correct ## correct
 ``` ```
-correct(ref: str = ""doc: DocumentWrapperfield: str | list[str]fn: str (str)ref: str = ""hide: bool = False)+correct( 
 + ref: str = "" 
 + doc: DocumentWrapper 
 + field: str | list[str] 
 + fn: str (str) 
 + ref: str = "" 
 + hide: bool = False 
 +)
 ``` ```
 Correct a field in a document following the function given. The result of the correction replace the old value Correct a field in a document following the function given. The result of the correction replace the old value
Ligne 213: Ligne 235:
 - hide: True to hide this correction from the report - hide: True to hide this correction from the report
  
-## is_available+## create_date_mask
 ``` ```
-is_available(doc: DocumentWrapper, field: str)+create_date_mask( 
 + d: str 
 + date_format: Any = "%y%m%d" 
 +)
 ``` ```
-Determine if the field is available in document +Create valid mask for the date given (ex: 1990 -> YYYY, 901212 -> YYMMDD) 
-doca DocumentWrapper to get the value from +d: the date as a string 
-fieldstandardize field name to get from the document+date_format: the format of the date to parse
  
-## check_concat+## custom_info
 ``` ```
-check_concat(docDocumentWrapper, field: str | list[str], fn: bool (list[str| Any), ref: str, hidebool False, parsebool = False, allow_missing_field: bool False)+custom_info( 
 + infos: list[tuple[str | Any]] 
 + is_valid: Any 
 + ref: Any 
 + thresholdAny None 
 + scoreAny None 
 +)
 ``` ```
-Verify the validity of the concatenation of multiple field with the function given +Write a bloc to indicate the state of a custom verification 
-- doc: DocumentWrapper to get the value from +infosList of name, value used for this verification 
-fieldstandardize field name or a list of standardize field name to get from the document +is_validThe end result of the verification
-fnthe function to verify the validity of the data+
 - ref: a description to indicate the verification done for the report - ref: a description to indicate the verification done for the report
-hideTrue to hide this verification from the report +thresholdif used, indicate the threshold used for this verification 
-parseTrue to try to parse the data before giving it to the function, False to have a string +scoreif used, indicate the score obtain with this verification 
-allow_missing_field: True to allow the fields to not be found, else an error will be raised if field is not found in the document+ 
 +## error_type 
 +``` 
 +error_type( 
 + error: Exception 
 +
 +``` 
 +Get the name of a python exception 
 +- error: The exception to have the name from 
 + 
 +## fuzzy 
 +``` 
 +fuzzy( 
 + x: str 
 + y: str 
 + ignore_special_chars: bool = True 
 +
 +``` 
 +Do a string compare with the algorithme fuzzy search 
 +x: The first string 
 +- y: The second string 
 +- ignore_special_chars: True to transform inputs into an ASCII variant 
 + 
 +## generator 
 +``` 
 +generator( 
 + co: list[Any] 
 +
 +``` 
 +Make python coroutine usable. Available: #(...), .first(), .all() 
 +- co: Python coroutine to use
  
 ## get_value ## get_value
 ``` ```
-get_value(doc: DocumentWrapperfield: str | list[str]parse: bool = False)+get_value( 
 + doc: DocumentWrapper 
 + field: str | list[str] 
 + parse: bool = False 
 +)
 ``` ```
 Get the value of a field in a document Get the value of a field in a document
Ligne 243: Ligne 307:
 - parse: True to try to parse the result, False to have a string - parse: True to try to parse the result, False to have a string
  
-## parse_date+## is_available
 ``` ```
-parse_date()+is_available( 
 + doc: DocumentWrapper 
 + field: str 
 +)
 ``` ```
 +Determine if the field is available in a document
 +- doc: a DocumentWrapper to get the value from
 +- field: standardize field name to get from the document
  
- +## list
-## fuzzy+
 ``` ```
-fuzzy(x: str, y: str, ignore_special_chars: bool = True)+list( 
 + x: list[Any] 
 +)
 ``` ```
-Do string compare with the algorithme fuzzy search +convert list from lua to python 
-- x: The first string +- x: a LUA compatible list
-- y: The second string +
-- ignore_special_chars: True to transform inputs into an ASCII variant+
  
-## compare+## parse_date
 ``` ```
-compare(doc1: PersonalDetails | MRZDocument | dict, field1: str | list[str], doc2: DocumentWrapper | dict, field2: str | list[str], fn: float (str | str), tr: int, ref: str, parse: bool = False, hide: bool = False)+parse_date( 
 +  
 +)
 ``` ```
-Compare 2 fields from 2 different document 
-- doc1: a PersonalDetails or MRZDocument to get the value from 
-- field1: standardize field name or a list of standardize field name to get from the document doc1 
-- doc2: a DocumentWrapper to get the value from 
-- field2: standardize field name or a list of standardize field name to get from the document doc2 
-- fn: the function to verify the validity of the data 
-- tr: the minimum value to consider this verification valid 
-- ref: a description to indicate the verification done for the report 
-- parse: True to try to parse the data of doc2 before giving it to the function, False to have a string 
-- hide: True if the verification is valid 
  
-## error_type+ 
 +## save_error
 ``` ```
-error_type(errorException)+save_error( 
 + codeslist[tuple[EnrollmentStatusCodeEnum | str] | ErrorCodeException | EnrollmentStatusCode] 
 +)
 ``` ```
-Get the name of a python exception + 
-errorThe exception to have the name from+codessave an instance of EnrollmentStatusCode or ErrorCodeException or (EnrollmentStatusCodeEnum, text)
  
 ## throw ## throw
 ``` ```
-throw(code: EnrollmentStatusCodeEnummsg: str = "")+throw( 
 + code: EnrollmentStatusCodeEnum 
 + msg: str = "" 
 +)
 ``` ```
 Raise a python ErrorCodeException containing an EnrollmentStatusCode created with the code and message given Raise a python ErrorCodeException containing an EnrollmentStatusCode created with the code and message given
 - code: One of EnrollmentStatusCodeEnum possibility - code: One of EnrollmentStatusCodeEnum possibility
 - msg: A text to join with the code - msg: A text to join with the code
 +
 +## to_lua
 +```
 +to_lua(
 + x: Any
 +)
 +```
 +convert an object from python to LUA
 +- x: a python compatible object
  
 # Enums # Enums
Ligne 334: Ligne 410:
 - CG_FR_V1 - CG_FR_V1
  
-# Other 
-``` 
-output: object 
-``` 
-``` 
-MRZ_TYPES: dict[MRZDocumentType | IdentityDocument] 
-``` 
-``` 
-services: object 
-``` 
 # Lua modules allowed # Lua modules allowed
-pcall+_G 
 +- _VERSION 
 +- assert 
 +- bit 
 +- collectgarbage
 - coroutine - coroutine
-assert +debug 
-tostring +error 
-tonumber +math
-- print+
 - module - module
-bit+next 
 +- os 
 +  - date 
 +  - difftime 
 +  - time
 - package - package
-error +pairs 
-debug+pcall 
 +- print
 - rawequal - rawequal
-unpack +string
-- pairs+
 - table - table
-next +tonumber 
-math +tostring
-- _G +
-- _VERSION +
-- string+
 - type - type
 +- unpack
 - utf8 - utf8
-- collectgarbage 
-- os 
-  - date 
-  - time 
-  - difftime 
  
-Extracted Data Classes +Définition des classes utilisés pour les données pivots
-## PROOF_OF_AGE +
-``` +
-AgeProofExtractedData(services: dict[str | dict] | null, is_of_age: bool | null, minimum_age: int | null) +
-```+
 ## BANK_DETAILS ## BANK_DETAILS
 ``` ```
-BankDetailsExtractedData(services: dict[str | dict] | null, iban: str | null, full_name: str | null, bic: str | null, dmx_full_name: str | null, dmx_iban: str | null, dmx_bic: str | null)+BANK_DETAILS( 
 + services: dict[str | dict] | null,  
 + iban: str | null,  
 + full_name: str | null,  
 + bic: str | null,  
 + dmx_full_name: str | null,  
 + dmx_iban: str | null,  
 + dmx_bic: str | null 
 +)
 ``` ```
 ## CAR_REGISTRATION ## CAR_REGISTRATION
 ``` ```
-CarRegistrationExtractedData(services: dict[str | dict] | null, mrz_document_format: str | null, mrz_issuing_country: str | null, mrz_type: str | null, mrz_valid: str | null, mrz_line1: str | null, mrz_line2: str | null, mrz_document_number: str | null, mrz_id_vehicle_number: str | null, mrz_registration_date: date | null, mrz_national_type: str | null, mrz_vehicle_body: str | null, mrz_brand: str | null, mrz_denomination: str | null, mrz_last_digit: str | null, mrz_formula_number: str | null, A: str | null, B: date | null, C1: str | null, C3: str | null, C41_n_owners: str | null, C41_co_owner: str | null, D1: str | null, D2: str | null, D21: str | null, D3: str | null, E: str | null, F1: str | null, F2: str | null, F3: str | null, G: str | null, G1: str | null, H: str | null, I: date | null, J: str | null, J1: str | null, J2: str | null, J3: str | null, K: str | null, P1: str | null, P2: str | null, P3: str | null, P6: str | null, Q: str | null, S1: str | null, S2: str | null, U1: str | null, U2: str | null, V7: str | null, V9: str | null, X1: date | null, Y1: str | null, Y2: str | null, Y3: str | null, Y4: str | null, Y5: str | null, Y6: str | null, Z1: str | null, Z2: str | null, Z3: str | null, Z4: str | null)+CAR_REGISTRATION( 
 + services: dict[str | dict] | null,  
 + mrz_document_format: str | null,  
 + mrz_issuing_country: str | null,  
 + mrz_type: str | null,  
 + mrz_valid: str | null,  
 + mrz_line1: str | null,  
 + mrz_line2: str | null,  
 + mrz_document_number: str | null,  
 + mrz_id_vehicle_number: str | null,  
 + mrz_registration_date: date | null,  
 + mrz_national_type: str | null,  
 + mrz_vehicle_body: str | null,  
 + mrz_brand: str | null,  
 + mrz_denomination: str | null,  
 + mrz_last_digit: str | null,  
 + mrz_formula_number: str | null,  
 + A: str | null,  
 + B: date | null,  
 + C1: str | null,  
 + C3: str | null,  
 + C41_n_owners: str | null,  
 + C41_co_owner: str | null,  
 + D1: str | null,  
 + D2: str | null,  
 + D21: str | null,  
 + D3: str | null,  
 + E: str | null,  
 + F1: str | null,  
 + F2: str | null,  
 + F3: str | null,  
 + G: str | null,  
 + G1: str | null,  
 + H: str | null,  
 + I: date | null,  
 + J: str | null,  
 + J1: str | null,  
 + J2: str | null,  
 + J3: str | null,  
 + K: str | null,  
 + P1: str | null,  
 + P2: str | null,  
 + P3: str | null,  
 + P6: str | null,  
 + Q: str | null,  
 + S1: str | null,  
 + S2: str | null,  
 + U1: str | null,  
 + U2: str | null,  
 + V7: str | null,  
 + V9: str | null,  
 + X1: date | null,  
 + Y1: str | null,  
 + Y2: str | null,  
 + Y3: str | null,  
 + Y4: str | null,  
 + Y5: str | null,  
 + Y6: str | null,  
 + Z1: str | null,  
 + Z2: str | null,  
 + Z3: str | null,  
 + Z4: str | null 
 +)
 ``` ```
-## HEALTH_INSURANCE_CARD+## DIGITAL_IDENTITY
 ``` ```
-HealthInsuranceExtractedData(services: dict[str | dict] | null, full_name: str | null, amc: str | null, csr: str | null, adherent_number: str | null, convention: str | null, starting_datedate | null, ending_date: date | null)+DIGITAL_IDENTITY( 
 + services: dict[str | dict] | null,  
 + type: str | null,  
 + name: str | null,  
 + email: str | null,  
 + phone_number: str | null,  
 + birth_name: str | null,  
 + first_namestr | null,  
 + first_names: list[str] | null,  
 + address: str | null,  
 + zip_code: str | null,  
 + city: str | null,  
 + country: str | null,  
 + birth_date: date | null,  
 + birth_date_mask: str | null,  
 + gender: str | null,  
 + birth_place: str | null,  
 + birth_country: str | null,  
 + nationality: str | null,  
 + dmx_first_names: list[str] | null,  
 + dmx_name: str | null,  
 + dmx_nationality: str | null,  
 + dmx_gender: str | null,  
 + dmx_type: str | null,  
 + dmx_birth_country: str | null,  
 + extra: IdentityExtractedDataExtra | null,  
 + nfc_compatible: bool | null 
 +)
 ``` ```
-## IDENTITY_DOCUMENT+### DIGITAL_IDENTITY_EXTRA
 ``` ```
-IdentityExtractedData(servicesdict[str | dict] | null, typestr | null, namestr | null, email: str | null, phone_number: str | null, birth_name: str | null, first_name: str | null, first_names: list[str] | null, address: str | null, zip_code: str | null, city: str | null, country: str | null, birth_date: date | null, birth_date_mask: str | null, gender: str | null, birth_place: str | null, birth_country: str | null, nationality: str | null, dmx_first_names: list[str] | null, dmx_name: str | null, dmx_nationality: str | null, dmx_gender: str | null, dmx_type: str | null, dmx_birth_country: str | null, extra: IdentityExtractedDataExtra | null, nfc_compatible: bool | null)+DIGITAL_IDENTITY_EXTRA( 
 + id_number: str | null,  
 + issuing_datedatetime | null,  
 + expiration_datedatetime | null,  
 + issuing_country: str | null,  
 + issuer: str | null,  
 + address: str | null,  
 + dmx_id_number: str | null,  
 + dmx_signature_status: str | null,  
 + mrz_line_1: str | null,  
 + mrz_line_2: str | null,  
 + mrz_line_3: str | null,  
 + nfc_compatible: bool | null 
 +)
 ``` ```
-### IDENTITY_DOCUMENT_EXTRA+## HEALTH_INSURANCE_CARD
 ``` ```
-IdentityExtractedData(id_number: str | null, issuing_date: datetime | null, expiration_date: datetime | null, issuing_country: str | null, issuer: str | null, address: str | null, dmx_id_number: str | null, dmx_signature_status: str | null, mrz_line_1str | null, mrz_line_2: str | null, mrz_line_3: str | null, nfc_compatiblebool | null)+HEALTH_INSURANCE_CARD( 
 + servicesdict[str | dict] | null,  
 + full_name: str | null,  
 + amc: str | null,  
 + csr: str | null,  
 + adherent_number: str | null,  
 + convention: str | null,  
 + starting_datedate | null,  
 + ending_datedate | null 
 +)
 ``` ```
-## DIGITAL_IDENTITY+## IDENTITY
 ``` ```
-IdentityExtractedData(services: dict[str | dict] | null, type: str | null, name: str | null, email: str | null, phone_number: str | null, birth_name: str | null, first_name: str | null, first_names: list[str] | null, address: str | null, zip_code: str | null, city: str | null, country: str | null, birth_date: date | null, birth_date_mask: str | null, gender: str | null, birth_place: str | null, birth_country: str | null, nationality: str | null, dmx_first_names: list[str] | null, dmx_name: str | null, dmx_nationality: str | null, dmx_gender: str | null, dmx_type: str | null, dmx_birth_country: str | null, extra: IdentityExtractedDataExtra | null, nfc_compatible: bool | null)+IDENTITY( 
 + services: dict[str | dict] | null,  
 + type: str | null,  
 + name: str | null,  
 + email: str | null,  
 + phone_number: str | null,  
 + birth_name: str | null,  
 + first_name: str | null,  
 + first_names: list[str] | null,  
 + address: str | null,  
 + zip_code: str | null,  
 + city: str | null,  
 + country: str | null,  
 + birth_date: date | null,  
 + birth_date_mask: str | null,  
 + gender: str | null,  
 + birth_place: str | null,  
 + birth_country: str | null,  
 + nationality: str | null,  
 + dmx_first_names: list[str] | null,  
 + dmx_name: str | null,  
 + dmx_nationality: str | null,  
 + dmx_gender: str | null,  
 + dmx_type: str | null,  
 + dmx_birth_country: str | null,  
 + extra: IdentityExtractedDataExtra | null,  
 + nfc_compatible: bool | null 
 +)
 ``` ```
-### DIGITAL_IDENTITY_EXTRA+### IDENTITY_EXTRA
 ``` ```
-IdentityExtractedData(id_number: str | null, issuing_date: datetime | null, expiration_date: datetime | null, issuing_country: str | null, issuer: str | null, address: str | null, dmx_id_number: str | null, dmx_signature_status: str | null, mrz_line_1: str | null, mrz_line_2: str | null, mrz_line_3: str | null, nfc_compatible: bool | null)+IDENTITY_EXTRA( 
 + id_number: str | null,  
 + issuing_date: datetime | null,  
 + expiration_date: datetime | null,  
 + issuing_country: str | null,  
 + issuer: str | null,  
 + address: str | null,  
 + dmx_id_number: str | null,  
 + dmx_signature_status: str | null,  
 + mrz_line_1: str | null,  
 + mrz_line_2: str | null,  
 + mrz_line_3: str | null,  
 + nfc_compatible: bool | null 
 +)
 ``` ```
-## IDENTITY+## IDENTITY_DOCUMENT
 ``` ```
-IdentityExtractedData(services: dict[str | dict] | null, type: str | null, name: str | null, email: str | null, phone_number: str | null, birth_name: str | null, first_name: str | null, first_names: list[str] | null, address: str | null, zip_code: str | null, city: str | null, country: str | null, birth_date: date | null, birth_date_mask: str | null, gender: str | null, birth_place: str | null, birth_country: str | null, nationality: str | null, dmx_first_names: list[str] | null, dmx_name: str | null, dmx_nationality: str | null, dmx_gender: str | null, dmx_type: str | null, dmx_birth_country: str | null, extra: IdentityExtractedDataExtra | null, nfc_compatible: bool | null)+IDENTITY_DOCUMENT( 
 + services: dict[str | dict] | null,  
 + type: str | null,  
 + name: str | null,  
 + email: str | null,  
 + phone_number: str | null,  
 + birth_name: str | null,  
 + first_name: str | null,  
 + first_names: list[str] | null,  
 + address: str | null,  
 + zip_code: str | null,  
 + city: str | null,  
 + country: str | null,  
 + birth_date: date | null,  
 + birth_date_mask: str | null,  
 + gender: str | null,  
 + birth_place: str | null,  
 + birth_country: str | null,  
 + nationality: str | null,  
 + dmx_first_names: list[str] | null,  
 + dmx_name: str | null,  
 + dmx_nationality: str | null,  
 + dmx_gender: str | null,  
 + dmx_type: str | null,  
 + dmx_birth_country: str | null,  
 + extra: IdentityExtractedDataExtra | null,  
 + nfc_compatible: bool | null 
 +)
 ``` ```
-### IDENTITY_EXTRA+### IDENTITY_DOCUMENT_EXTRA
 ``` ```
-IdentityExtractedData(id_number: str | null, issuing_date: datetime | null, expiration_date: datetime | null, issuing_country: str | null, issuer: str | null, address: str | null, dmx_id_number: str | null, dmx_signature_status: str | null, mrz_line_1: str | null, mrz_line_2: str | null, mrz_line_3: str | null, nfc_compatible: bool | null)+IDENTITY_DOCUMENT_EXTRA( 
 + id_number: str | null,  
 + issuing_date: datetime | null,  
 + expiration_date: datetime | null,  
 + issuing_country: str | null,  
 + issuer: str | null,  
 + address: str | null,  
 + dmx_id_number: str | null,  
 + dmx_signature_status: str | null,  
 + mrz_line_1: str | null,  
 + mrz_line_2: str | null,  
 + mrz_line_3: str | null,  
 + nfc_compatible: bool | null 
 +)
 ``` ```
 ## INCOME_TAX ## INCOME_TAX
 ``` ```
-IncomeTaxExtractedData(services: dict[str | dict] | null, type: str | null, full_name_1: str | null, full_name_2: str | null, due_date: date | null, reference: str | null, year: str | null, tax_payer_id_number_1: str | null, tax_payer_id_number_2: str | null, taxable_income_reference: int | null, signature_status: str | null)+INCOME_TAX( 
 + services: dict[str | dict] | null,  
 + type: str | null,  
 + full_name_1: str | null,  
 + full_name_2: str | null,  
 + due_date: date | null,  
 + reference: str | null,  
 + year: str | null,  
 + tax_payer_id_number_1: str | null,  
 + tax_payer_id_number_2: str | null,  
 + taxable_income_reference: int | null,  
 + signature_status: str | null 
 +)
 ``` ```
 ## KBIS ## KBIS
 ``` ```
-KbisExtractedData(services: dict[str | dict] | null, name: str | null, address: str | null, directions: list[dict], issuing_date: date | null, registration_date: date | null, siren: str | null, legal_form: str | null)+KBIS( 
 + services: dict[str | dict] | null,  
 + name: str | null,  
 + address: str | null,  
 + directions: list[dict],  
 + issuing_date: date | null,  
 + registration_date: date | null,  
 + siren: str | null,  
 + legal_form: str | null 
 +)
 ``` ```
 ## PAY_SLIP ## PAY_SLIP
 ``` ```
-PaySlipExtractedData(services: dict[str | dict] | null, siret: str | null, ape: str | null, nir: str | null, hire_date: date | null, period: date | null, gross_income: float | null, net_income: float | null, net_taxable_income: float | null, full_name: str | null, address: str | null, zip_code: str | null, city: str | null, company_address_1: str | null, company_address_2: str | null, company_address_3: str | null)+PAY_SLIP( 
 + services: dict[str | dict] | null,  
 + siret: str | null,  
 + ape: str | null,  
 + nir: str | null,  
 + hire_date: date | null,  
 + period: date | null,  
 + gross_income: float | null,  
 + net_income: float | null,  
 + net_taxable_income: float | null,  
 + full_name: str | null,  
 + address: str | null,  
 + zip_code: str | null,  
 + city: str | null,  
 + company_address_1: str | null,  
 + company_address_2: str | null,  
 + company_address_3: str | null 
 +)
 ``` ```
 ## PROOF_OF_ADDRESS ## PROOF_OF_ADDRESS
 ``` ```
-ProofOfAddressExtractedData(services: dict[str | dict] | null, full_name: str | null, address_1: str | null, address_2: str | null, address_3: str | null, zip_code: str | null, city: str | null, date: null, dmx_full_name: str | null, dmx_address_street: str | null, dmx_address_complement: str | null, dmx_zip_code: str | null, dmx_city: str | null, dmx_date: null)+PROOF_OF_ADDRESS( 
 + services: dict[str | dict] | null,  
 + full_name: str | null,  
 + address_1: str | null,  
 + address_2: str | null,  
 + address_3: str | null,  
 + zip_code: str | null,  
 + city: str | null,  
 + date: null,  
 + dmx_full_name: str | null,  
 + dmx_address_street: str | null,  
 + dmx_address_complement: str | null,  
 + dmx_zip_code: str | null,  
 + dmx_city: str | null,  
 + dmx_date: null 
 +
 +``` 
 +## PROOF_OF_AGE 
 +``` 
 +PROOF_OF_AGE( 
 + services: dict[str | dict] | null,  
 + is_of_age: bool | null,  
 + minimum_age: int | null 
 +)
 ``` ```
 ## PROPERTY_TAX ## PROPERTY_TAX
 ``` ```
-PropertyTaxExtractedData(services: dict[str | dict] | null, name: str | null, first_name: str | null, address_1: str | null, address_2: str | null, address_3: str | null, zip_code: str | null, city: str | null, year: str | null)+PROPERTY_TAX( 
 + services: dict[str | dict] | null,  
 + name: str | null,  
 + first_name: str | null,  
 + address_1: str | null,  
 + address_2: str | null,  
 + address_3: str | null,  
 + zip_code: str | null,  
 + city: str | null,  
 + year: str | null 
 +)
 ``` ```
 ## SOCIAL_SECURITY ## SOCIAL_SECURITY
 ``` ```
-SocialSecurityExtractedData(services: dict[str | dict] | null, full_name: str | null, social_security_number: str | null, delivery_date: date | null, expiration_date: date | null, birth_date: date | null, full_name_right_holder: str | null, social_security_number_right_holder: str | null, rgx_first_name: list[str], rgx_surname: list[str], rxg_birth_date: list[date], rgx_social_security_number: list[str])+SOCIAL_SECURITY( 
 + services: dict[str | dict] | null,  
 + full_name: str | null,  
 + social_security_number: str | null,  
 + delivery_date: date | null,  
 + expiration_date: date | null,  
 + birth_date: date | null,  
 + full_name_right_holder: str | null,  
 + social_security_number_right_holder: str | null,  
 + rgx_first_name: list[str],  
 + rgx_surname: list[str],  
 + rxg_birth_date: list[date],  
 + rgx_social_security_number: list[str] 
 +)
 ``` ```
-Classes +Définition des objets utilisés dans les scripts 
-## IdentityExtractedDataExtra +## DocumentWrapper 
-id_number: str | null +document 
-issuing_date: datetime | null +name 
-expiration_date: datetime | null +iteration 
-issuing_country: str | null +mode 
-issuer: str | null +engine 
-address: str | null +type 
-dmx_id_number: str | null +content 
-dmx_signature_status: str | null +input_documents 
-mrz_line_1: str | null +is_internal 
-mrz_line_2: str | null +step_step_documents 
-mrz_line_3: str | null +ignore_validation 
-nfc_compatible: bool | null+tags 
 +- is_valid 
 +- document_provider 
 +- enrollment_steps 
 + 
 + 
 +## EnrollmentStatusCode 
 +- id 
 +- code 
 +- message 
 +- step 
 +- external_method_step 
 +- enrollment 
 +- validation 
 +- document
  
 +- pk: _empty
  
 ## ErrorCodeException ## ErrorCodeException
Ligne 458: Ligne 818:
 - status_code: EnrollmentStatusCode - status_code: EnrollmentStatusCode
  
-## PersonalDetails 
 ## IdentityDocument ## IdentityDocument
-- definition: list[dict[str | IdentityDocumentPart]] +- definition 
-- type: MRZDocumentType +- type 
-- name: str +- name 
-- line_size: int +- line_size 
-- nb_line: int+- nb_line
  
  
-## EnrollmentStatusCode +## IdentityExtractedDataExtra 
-## DocumentWrapper +- id_number 
-document: Document +- issuing_date 
-- name: str +- expiration_date 
-iteration: int | None +- issuing_country 
-mode: DocumentWrapperModeEnum +- issuer 
-engine: EngineTypes +- address 
-type: list[DocumentTypeEnum] +- dmx_id_number 
-content: dict | null +- dmx_signature_status 
-input_documents: list[Document] +- mrz_line_1 
-is_internal: bool +- mrz_line_2 
-step_step_documents: list[StepStepDocument] +- mrz_line_3 
-ignore_validation: bool +- nfc_compatible 
-tags: list[object] + 
-is_valid: bool | null + 
-document_provider: str | null +## PersonalDetails 
-enrollment_steps: list[EnrollmentStep]+id 
 +- name 
 +birth_name 
 +- first_name 
 +- first_names 
 +- email 
 +address 
 +zip_code 
 +city 
 +country 
 +phone_number 
 +birth_date 
 +gender 
 +birth_place 
 +birth_country 
 +nationality 
 +identity_valid 
 +enrollment
  
 +- pk: _empty
  
 # Exemple # Exemple
Ligne 577: Ligne 954:
 ``` ```
  
 +</markdown>

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

Plus d’informations