Creates a new RNTRC instance
The RNTRC number
Optional
ignoreInvalid: booleanWhether to skip validation of the RNTRC number
Defines how the object should be converted to a primitive value Called automatically during type coercion operations like string concatenation, mathematical operations, and equality comparisons
The primitive string representation of the TIN
Gets sequential number of the Облікова картка № 1ДР
The sequential number from RNTRC
Gets the birthdate encoded in the RNTRC
The birthdate
Checks if the RNTRC belongs to a female person
True if female, false otherwise
Gets the gender encoded in the RNTRC
The gender ('male' or 'female')
Checks if the RNTRC belongs to a male person
True if male, false otherwise
Gets the RNTRC number string.
RNTRC number string
Validates the RNTRC number
True if the RNTRC is valid, false otherwise
Static
generateGenerate a random RNTRC instance.
Generates a valid RNTRC based on the provided parameters. If parameters are not provided, random valid values will be used. The generated RNTRC will include a birthdate between 1900-01-01 and 2173-10-14, a random record number and a gender digit based on the specified or random gender.
Configuration object for RNTRC generation
Day of birth
Month of birth
Year of birth
Gender of the person
A new valid RNTRC instance
Represents an RNTRC (Ukrainian personal tax identifier with embedded information about birthdate and gender).
See