Class diagram with 3 class(es) and 2 relation(s).
Classes:
- Class Order
with:
- public method 'markAsPaid', without parameters, return type void
- private attribute 'id' of type UUID
- private attribute 'createdAt' of type LocalDateTime
- private attribute 'status' of type OrderStatus
- Class OrderLine
with:
- private attribute 'productId' of type UUID
- private attribute 'quantity' of type int
- private attribute 'unitPrice' of type Money
- no methods
- Class Customer
with:
- private attribute 'id' of type UUID
- private attribute 'name' of type String
- no methods
Relations:
- Order has a composition-relationship named 'contains' with OrderLine, multiplicity 1 to *
- Order has an association-relationship named 'placedBy' with Customer, multiplicity 1