← Index

DDD — Aggregates & Bounded Contexts

Payments domain decomposition · Click any node to explore

Aggregate Root
Entity
Value Object
Domain Event
ACL
Billing Context Identity Context Notifications Context Payment «Aggregate Root» PaymentMethod «Entity» LineItem «Entity» Money «Value Object» Currency «Value Object» PaymentStatus «Value Object» Invoice «Aggregate Root» PaymentCreated «Domain Event» PaymentFailed «Domain Event» InvoiceIssued «Domain Event» RefundPolicy «Domain Service» Customer «Aggregate Root» Address «Value Object» Email «Value Object» CustomerTranslator «ACL → Billing» CustomerRegistered «Domain Event» Notification «Aggregate Root» Channel «Value Object» Template «Entity» NotificationACL «ACL → Billing/Identity» NotificationSent «Domain Event» publishes event subscribes via ACL ⚡ Dashed borders = Domain Events    ⛔ Red dashed = ACL (Anti-Corruption Layer) 🔗 Orange arrows = cross-context event flow    💜 Purple = immutable Value Objects