"Digital Core" is to be the name of a canonical data product the domain will run, so the domain itself is Digital: its title, description and owner address in domain.md, the back-link heading of every entity, enum and product file, and the README, CLAUDE.md, Copilot instructions and package description. A breaking change by MD-DDL's test: a product generated from 1.0.0, such as Canonical Party, names its domain, and would come out different now. So version 2.0.0. v1.0.0 is tagged on the commit Canonical Party was generated from, which was never tagged. Lint: no findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
Digital
Entities
Merchant
A Merchant is a Party Role that accepts payment for goods or services. In a marketplace or platform business the merchants are the sellers; in a payments business they are the businesses being paid.
---
config:
layout: elk
---
classDiagram
class Merchant{
* Merchant Identifier : string
Merchant Category Code : string
Settlement Account Identifier : string
}
Merchant --|> PartyRole
Merchant "1" --> "0..*" Transaction : processes
Merchant "0..*" --> "0..1" Account : settles into
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
class Transaction["<a href='./transaction.md'>Transaction</a>"]
class Account["<a href='./account.md'>Account</a>"]
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Merchant Identifier:
type: string
identifier: primary
description: Unique identifier for the merchant role instance.
Merchant Category Code:
type: string
description: >
ISO 18245 Merchant Category Code describing what the merchant sells. Useful for
analytics and for the pricing and routing rules that vary by category.
Settlement Account Identifier:
type: string
description: The account takings are settled into.
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
Relationships
Merchant Receives Payment
A Merchant receives value through one or more Transactions.
source: Merchant
type: associates_with
target: Transaction
cardinality: one-to-many
granularity: atomic
ownership: Merchant
Merchant Has Settlement Account
A Merchant may have a designated Account into which settlement is paid.
source: Merchant
type: references
target: Account
cardinality: many-to-one
granularity: atomic
ownership: Merchant