OutBox (v1.0.0)

Outbox domain entity, encapsulates outbox information and business rules

Overview

The outbox entity represents an outbox in the orders domain. It encapsulates outbox information and business rules such as a unique identifier, the recipient’s name and email, the subject and body of the notification, whether the notification has been sent, and timestamps for when the notification was created and sent. This entity is used by the notification service to send notifications to customers about their order status.

Entity Properties

NameTypeRequiredDescription
idUUIDRequiredUnique identifier for the outbox
toNamestringRequiredName of the recipient
toEmailstringRequiredEmail of the recipient
subjectstringRequiredSubject of the notification
bodystringRequiredBody of the notification
isSentbooleanRequiredWhether the notification has been sent
sentAtDateTimeOptionalTime when the notification was sent
createdAtDateTimeRequiredTime when the notification was created