The canonical data product for the Digital Core domain, copied unchanged from the blog repository's products/canonical-party (generated by /agent-product from data_model/data_products/canonical.md, 65 of 65 checks on the blog's stack on 2026-09-09). The next commit adapts it to the domain platform. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
72 lines
3.5 KiB
JSON
72 lines
3.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "urn:digital-core:canonical-party:contact_address",
|
|
"title": "Contact Address",
|
|
"description": "A Contact Address is the link between a Party and an Address: what the address is used for, whether it has been confirmed, and the period it was in use. It is not the address itself; the location lives in the Address entity and is shared. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by contact_address_id).",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["contact_address_id", "party_id", "address_id"],
|
|
"properties": {
|
|
"contact_address_id": {
|
|
"type": "string",
|
|
"format": "uuid",
|
|
"description": "Globally unique identifier for this party-to-address association."
|
|
},
|
|
"address_purpose": {
|
|
"type": ["string", "null"],
|
|
"enum": ["Home", "Mailing", "Business", "Registered Office", "Billing", "Delivery", null],
|
|
"description": "What the party uses this address for. A party can hold several addresses at once for different purposes: home, billing and delivery are frequently different places."
|
|
},
|
|
"is_primary": {
|
|
"type": ["boolean", "null"],
|
|
"default": false,
|
|
"description": "Whether this is the party's main address for the given purpose. At most one address may be primary per purpose at any point in time."
|
|
},
|
|
"verification_status": {
|
|
"type": ["string", "null"],
|
|
"enum": ["Unverified", "Verified", "Failed", "Expired", null],
|
|
"description": "Whether this address has been confirmed as real and current. Unverified addresses are usable but should not be relied on for anything expensive, such as a physical delivery."
|
|
},
|
|
"verification_date": {
|
|
"type": ["string", "null"],
|
|
"format": "date",
|
|
"description": "When the address was last confirmed. Verification ages: an address confirmed five years ago is weaker evidence than one confirmed last month."
|
|
},
|
|
"verification_method": {
|
|
"type": ["string", "null"],
|
|
"enum": ["Documentary", "Electronic", "In Person", "Self Declared", null],
|
|
"description": "How the address was confirmed. Recorded because the methods are not equally strong, and knowing which was used determines how much weight to put on the result."
|
|
},
|
|
"valid_from": {
|
|
"type": ["string", "null"],
|
|
"format": "date",
|
|
"description": "The date the party started using this address for the stated purpose."
|
|
},
|
|
"valid_to": {
|
|
"type": ["string", "null"],
|
|
"format": "date",
|
|
"description": "The date the party stopped using it. Null means still in use. Closed associations are kept rather than deleted, so historical lookups stay accurate."
|
|
},
|
|
"party_id": {
|
|
"type": "string",
|
|
"format": "uuid",
|
|
"description": "Identifier of the owning Party (Party Has Contact Addresses)."
|
|
},
|
|
"address_id": {
|
|
"type": "string",
|
|
"format": "uuid",
|
|
"description": "Identifier of the referenced Address (Contact Address References Address)."
|
|
},
|
|
"created_at": {
|
|
"type": ["string", "null"],
|
|
"format": "date-time",
|
|
"description": "Set by the ODS. Optional on the inbound topic."
|
|
},
|
|
"updated_at": {
|
|
"type": ["string", "null"],
|
|
"format": "date-time",
|
|
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
|
}
|
|
}
|
|
}
|