👤 Contact Implementation

Praktische implementatie van de Core Library binnen de Contact-entiteit.

← Terug naar Core Library

📖 Introductie

De Contact implementatie bouwt voort op de Core Library en richt zich op persoonsgegevens, validatie en integratie met accountgegevens.

👉 Core Library = generiek
👉 Contact script = entity-specifiek

🏗️ Architectuur

1. Global namespace

  • onitedContact
  • Voorkomt conflicts

2. Core layer

  • onited.core.*
  • Validatie & utilities

3. Entity logic

  • Naamstructuur
  • Business rules

🚀 OnLoad

  • waitForGlobal
  • Default values
  • Event handlers
  • ISO initialisatie
👉 Belangrijk:
  • Country mapping
  • Phone validation
  • Address handling

📞 Phone validation

  • Phone.isValid
  • Phone.format
  • Notifier feedback

🏠 Address handling

  • Postcode + housenumber validation
  • Auto-fill address
  • NL enrichment

🔌 Core Library usage

  • Field helpers
  • Validation helpers
  • Text utilities
  • Notifier

⚠️ Error handling

  • try/catch
  • Logger gebruik
  • Error codes (CNTxxx)
⚠️ Gebruik consistente error codes

🔗 Source code

👉 Download de source code:
⬇️ Download Contact Library