Represents an Italian Electronic Identity Card (Carta d'Identità Elettronica - CIE) with all the data fields present on the physical card.
The CIE number follows the format: 2 uppercase letters + 5 digits + 2 uppercase letters (e.g., CA12345AA). Validation is performed upon construction to ensure the number matches the expected pattern.
Instances are created via the of factory method in the companion object.
<aside> <img src="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" alt="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" width="40px" />
TABLE OF CONTENT
</aside>
| Package | ‣ dev.tommasop1804.italyutils.classes |
|---|---|
| Since version | 2026-02.1 |
| Serialization | • tools.jackson |
• com.fasterxml.jackson |
|
| Deserialization | • tools.jackson |
• com.fasterxml.jackson |
|
| Data class | ✔️ |
| Type-Aliases | • CIE |
• CartaIdentita |
number| Since version | 2026-02.1 |
|---|---|
| Type | :ij-kt-class: String |
The card number.
surname| Since version | 2026-02.1 |
|---|---|
| Type | :ij-kt-class: String |
The surname of the card holder.
name| Since version | 2026-02.1 |
|---|---|
| Type | :ij-kt-class: String |
The name of the card holder.