Common Types
This section contains a set of value objects used throughout the domain models of the identified bounded contexts, to avoid repeating them in each diagram.
Result
Represents the outcome of a domain operation, which may result in a success (in which case the result contains a value of type T) or in a failure (which results in a DomainError).
EntityId
Represents how the identity of entities is passed in the system enabling the possibility to distinguish between one another of the same kind.
GeoPoint
Defines a geographical coordinate as a 2D value (using latitude and longitude).
Constraints:
- \(-90 < latitude.value < 90\)
- \(-180 < longitude.value < 180\)
Distance
Represents a linear, non-directed (meaning an absolute value) distance.
Constraints:
- \(kilometers \geq 0\)
Timestamp
Represents a unique point in time, independent of any time zone.
value is the number of milliseconds passed since 01/01/1970 00:00:00 (Epoch).
Nothing
Represents the absence of any value, nothingness.
Created: July 1, 2021 12:55:09