Skip to content

feat(cri): Add Costa Rica cédula validator #56

@AngusHsu

Description

@AngusHsu

Description

Add support for Costa Rica Cédula de Identidad.

Parent Epic

#14 - Add support for new countries

Costa Rica Cédula Format

  • 9 digits
  • Format: P-NNNN-NNNN
  • P: Province digit (1-9)
  • NNNN-NNNN: Sequential number

Tasks

  • Research and verify format
  • Create src/countries/cri/ directory
  • Implement Cedula validator class
  • Implement validate() with checksum (if any)
  • Implement parse() function
  • Add to main dispatcher
  • Add to getCountryIdFormat()
  • Write comprehensive tests (80%+ coverage)

Acceptance Criteria

  • Validation works correctly
  • Handles format with/without dashes
  • Test coverage 80%+

Labels

enhancement, new-country, costa-rica

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions