Skip to content

Implement MiCA-Required Field Validations for EEA Users - #33

Open
Megamind51 wants to merge 1 commit into
masterfrom
support/implement-mica-required-field-validations-for-eea-users
Open

Implement MiCA-Required Field Validations for EEA Users#33
Megamind51 wants to merge 1 commit into
masterfrom
support/implement-mica-required-field-validations-for-eea-users

Conversation

@Megamind51

Copy link
Copy Markdown
Contributor

Implement MiCA-Required Field Validations for EEA Users

This issue involves validating identity fields to meet the requirements set by the ESMA MiFID II National Client Identifier Table. The validation ensures compliance with Commission Delegated Regulation (EU) 2017/590.

Ticket:
https://uphold.atlassian.net/browse/BKO-6685

Copilot AI review requested due to automatic review settings July 3, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the EU TIN validation layer to better align natural-person identifiers with MiFID II/ESMA National Client Identifier requirements (as referenced in the PR description), by expanding per-country formats and adding internal checksum validation where appropriate.

Changes:

  • Expanded accepted TIN/NCI formats for CY, GR, LI, NL, and SI in the per-country validator configuration.
  • Added internal validation algorithms for NL (BSN 11-proof) and SI (EMŠO structure/check digit) and wired them into internal validation flow.
  • Updated internal validation to optionally run a country-specific validate() function after a format match.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/validators/validators-by-country.js Adds NL/SI checksum validators and updates country format configs (CY/GR/LI/NL/SI).
src/validators/eu-tin-validator.js Enhances internal validation to run optional per-country validation callbacks.
test/src/validators/test-cases-by-country.js Updates test vectors/masked outputs to reflect the new accepted formats and validations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/validators/validators-by-country.js Outdated
Comment thread test/src/validators/test-cases-by-country.js Outdated
Comment thread src/validators/validators-by-country.js
Comment thread src/validators/validators-by-country.js Outdated
@Megamind51
Megamind51 force-pushed the support/implement-mica-required-field-validations-for-eea-users branch from 9d6e162 to 1b29951 Compare July 7, 2026 13:14
Comment thread src/validators/validators-by-country.js Outdated
Comment thread test/src/validators/test-cases-by-country.js Outdated
Comment thread src/validators/eu-tin-validator.js Outdated
@Megamind51
Megamind51 force-pushed the support/implement-mica-required-field-validations-for-eea-users branch from 1b29951 to 9cbd54d Compare July 15, 2026 16:04

@FrancoOrtiz74 FrancoOrtiz74 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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.

3 participants