helpers/index library

Functions

algorithm10(String firstDigits, String verificationDigitString) bool
Validates a number using the "modulo 10" algorithm, commonly used for Ecuadorian national ID numbers.
algorithm11(String initialDigits, String verificationDigitString, TypeIdentification typeIdentification) bool
Validates a number using the "modulo 11" algorithm, used for Ecuadorian RUC numbers.
initValidate(String identification, TypeIdentification typeIdentification) → void
Validates a numbers used for Ecuadorian RUC or DNI numbers.
validateCodeEstablishment(String codeEstablishment) → void
Validate codeEstablishment of identification number.
validateCodeProvince(String codeProvince) → void
Validate codeProvince of identification number.
validateThirdDigit(String thirdDigit, TypeIdentification typeIdentification) → void
Validate third digit of identification number.