# [Digital Core](../domain.md) ## 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. ```mermaid --- 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["Party Role"] class Transaction["Transaction"] class Account["Account"] ``` ```yaml 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. ``` ```yaml 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. ```yaml 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. ```yaml source: Merchant type: references target: Account cardinality: many-to-one granularity: atomic ownership: Merchant ```