Skip to content

Add validation for Kazakhstani TINs - #514

Open
lucasicr wants to merge 14 commits into
arthurdejong:masterfrom
lucasicr:master
Open

lucasicr wants to merge 14 commits into
arthurdejong:masterfrom
lucasicr:master

Conversation

@lucasicr

Copy link
Copy Markdown
Contributor

This includes methods to get and validate the check-digit, date of birth and gender.

The test numbers have been transcribed from photographs of Kazakhstani id cards and driving licenses found online.

No AI was used.

@lucasicr
lucasicr marked this pull request as draft September 21, 2026 20:26
@lucasicr
lucasicr marked this pull request as ready for review September 21, 2026 21:39
@lucasicr lucasicr changed the title Add validation for Kazakhstani Individual identity number Add validation for Kazakhstani TINs Sep 22, 2026
@lucasicr

Copy link
Copy Markdown
Contributor Author

Since the Kazakhstani Business number (BIN) uses the same checksum algorithm, I have now added it to the pull request. It thus now fixes #114, and closes #322.
All numbers included in the BIN doctest pass the checksum verification.

If the date returned is of the current year, it could be in the future,
and thus invalidate the number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants