Files
semprini-domain-digital-dat…/data_model/enums.md
T
paulandClaude Opus 5 aeba56e5f2 Add the Digital Core domain model from semprini-blog-dataproducts
The MD-DDL model (domain, entities, enums, the Canonical Party product
declaration) moves into its own repository, owned by the domain's modelling
team. Engineering teams consume its product declarations and generate products
from semprini-data-product-templates.

Adds the MD-DDL agent wrappers (md-ddl init), pyproject with md-ddl, and
README/CLAUDE.md describing the team split and the handoff interface.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 22:51:50 +12:00

10 KiB

Digital Core

Enums

Party Status

Where a party sits in its lifecycle with the business.

values:
  Prospect:
    description: Known to the business but no relationship has started yet
  Active:
    description: Party is active and may hold roles, accounts and agreements
  Suspended:
    description: Party is temporarily blocked from new activity pending resolution of an issue
  Inactive:
    description: Relationship is dormant with no recent activity
  Closed:
    description: Relationship has ended and no new activity is permitted

Party Role Status

Lifecycle status of a specific role a party holds.

values:
  Pending:
    description: Role created but not yet activated
  Active:
    description: Role is active and confers its business permissions
  Suspended:
    description: Role is temporarily paused
  Closed:
    description: Role has ended and is no longer effective

Address Type

Structural type of an address record.

values:
  Street Address:
    description: Standard physical street address
  PO Box:
    description: Postal box address
  Registered Office:
    description: Registered office address for an organisation
  Overseas Address:
    description: Address located outside the primary operating country

Address Purpose

What a party uses an address for.

values:
  Home:
    description: Where an individual lives
  Mailing:
    description: Address used for correspondence
  Business:
    description: Primary business operating address
  Registered Office:
    description: Registered legal address for an organisation
  Billing:
    description: Address used for billing and statement delivery
  Delivery:
    description: Address goods are shipped to

Address Verification Status

Whether an address has been confirmed as real and current.

values:
  Unverified:
    description: Address has not been checked
  Verified:
    description: Address confirmed against acceptable evidence
  Failed:
    description: Verification was attempted and did not succeed
  Expired:
    description: Verification is old enough that it is no longer relied on

Verification Method

How an address was confirmed.

values:
  Documentary:
    description: Confirmed from a document supplied by the party
  Electronic:
    description: Confirmed against a third-party data source
  In Person:
    description: Confirmed face-to-face at a service location
  Self Declared:
    description: Supplied by the party with no independent check

Contact Preference

The channel a customer prefers to be contacted on.

values:
  Email:
    description: Customer prefers communications delivered by email
  SMS:
    description: Customer prefers text message notifications
  Post:
    description: Customer prefers physical mail correspondence
  Phone:
    description: Customer prefers to be contacted by telephone call
  In App:
    description: Customer prefers push notifications and in-app messages
  No Contact:
    description: Customer has opted out of all non-essential outbound communications

The legal form under which an organisation is constituted. Determines who can sign, who is liable, and what the business needs on file.

values:
  Private Company:
    description: Privately held limited liability company not listed on a public exchange
  Public Company:
    description: Company whose shares are listed and traded on a public exchange
  Partnership:
    description: Two or more persons carrying on a business in common
  Sole Trader:
    description: Unincorporated individual carrying on business in their own name
  Trust:
    description: Arrangement where a trustee holds assets for the benefit of beneficiaries
  Cooperative:
    description: Member-owned and democratically controlled organisation
  Government Entity:
    description: Entity owned or controlled by national, state or local government
  Non-Profit:
    description: Organisation operating for a purpose other than profit

Association Type

The nature of a relationship between two parties. Used to map ownership, control and household structures.

values:
  Parent Organisation:
    description: Organisation that owns or controls the related organisation
  Subsidiary:
    description: Organisation owned or controlled by the related organisation
  Owner:
    description: Individual or organisation holding an ownership interest
  Director:
    description: Individual appointed to the board or equivalent governing body
  Authorised Signatory:
    description: Individual authorised to act on behalf of an organisation
  Employer:
    description: Organisation that employs the related party
  Employee:
    description: Individual employed by the related organisation
  Partner:
    description: Spouse or domestic partner
  Family Member:
    description: Related by family
  Household Member:
    description: Shares a household with the related party

Account Holder Type

How a customer holds an account.

values:
  Primary Holder:
    description: The principal account owner responsible for the relationship
  Joint Holder:
    description: Co-owner with equal rights to the primary holder
  Authorised User:
    description: Permitted to use the account but without ownership rights
  Guardian:
    description: Acting on behalf of a minor or someone unable to act for themselves

Account Status

Operational lifecycle state of an account.

values:
  Pending:
    description: Account created but not yet activated
  Active:
    description: Account is open and available for use
  Dormant:
    description: No customer activity for an extended period
  Suspended:
    description: Temporarily blocked pending resolution of a dispute or overdue balance
  Closed:
    description: Permanently closed; no further activity is permitted

Account Type

Classification of an account by what it is for.

values:
  Billing:
    description: Account charges accrue to and invoices are raised against
  Subscription:
    description: Account tracking a recurring service and its billing cycle
  Prepaid:
    description: Account funded in advance and drawn down by usage
  Wallet:
    description: Stored-value account holding a spendable balance
  Credit:
    description: Account representing an extended line of credit
  Savings:
    description: Account holding funds for accumulation
  Settlement:
    description: Account used to settle amounts owed to a merchant or partner
  Loyalty:
    description: Account holding points, credits or rewards rather than money

Agreement Status

Lifecycle state of an agreement.

values:
  Draft:
    description: Created but not yet accepted by all parties
  Active:
    description: Fully executed and currently in force
  Suspended:
    description: Temporarily paused pending resolution of a dispute
  Expired:
    description: Reached its scheduled end date with obligations fulfilled
  Terminated:
    description: Ended early by agreement or under agreed termination rights
  Cancelled:
    description: Cancelled before it took effect

Transaction Type

The mechanism by which value moved.

values:
  Card Payment:
    description: Payment made with a debit or credit card
  Bank Transfer:
    description: Credit transfer between bank accounts
  Direct Debit:
    description: Pull payment authorised by the account holder and initiated by the biller
  Direct Credit:
    description: Push payment credited directly to a beneficiary account
  Wallet Transfer:
    description: Movement of stored value between wallet accounts
  Internal Transfer:
    description: Movement between two accounts held by the same business
  Refund:
    description: Return of value to a payer for a previous transaction
  Chargeback:
    description: Reversal forced by the payer's provider following a dispute
  Adjustment:
    description: Correction raised by the business to fix a prior error
  Fee:
    description: Charge raised by the business for a service

Transaction Status

Lifecycle state of a transaction, from request to settlement.

values:
  Pending:
    description: Submitted and awaiting authorisation
  Authorised:
    description: Authorised but not yet settled
  Settled:
    description: Final settlement has occurred and value has moved
  Failed:
    description: Could not be processed and no value moved
  Reversed:
    description: A previously settled transaction has been reversed
  Cancelled:
    description: Cancelled before settlement at the request of an authorised party
  Under Review:
    description: Held pending a fraud or dispute review; settlement is suspended

Transaction Channel

Where the transaction came from.

values:
  Web:
    description: Initiated through the business's website
  Mobile App:
    description: Initiated through the business's mobile application
  Point Of Sale:
    description: Initiated at a physical point-of-sale terminal
  Service Location:
    description: Handled by a service agent at a physical location
  Contact Centre:
    description: Initiated by phone or chat through the contact centre
  Partner API:
    description: Submitted by an authorised third party through an API
  Batch:
    description: Submitted as part of a scheduled bulk file
  Internal System:
    description: Generated automatically by an internal process, such as a recurring fee

Currency Code

ISO 4217 alphabetic currency codes used across account balances and transaction amounts. This is a representative subset — the full ISO 4217 code list is the normative reference.

Standard: ISO 4217 — Currency codes

values:
  AUD:
    description: Australian Dollar
  NZD:
    description: New Zealand Dollar
  USD:
    description: United States Dollar
  EUR:
    description: Euro
  GBP:
    description: Pound Sterling
  JPY:
    description: Japanese Yen
  SGD:
    description: Singapore Dollar
  HKD:
    description: Hong Kong Dollar
  CHF:
    description: Swiss Franc
  CAD:
    description: Canadian Dollar