OrderItem (v1.0.0)

OrderItem domain entity, encapsulates order item information and business rules

Overview

The order item entity represents an order item in the orders domain. It encapsulates order item information and business rules such as a unique identifier. The order item is the final step in the ordering process and is associated with the order and book.

Entity Properties

NameTypeRequiredDescription
idUUIDRequiredUnique identifier for the order item
bookIdUUIDRequiredUnique identifier of the book
quantityintRequiredQuantity of the order item
pricedecimalRequiredPrice of the order item
orderIdUUIDRequiredUnique identifier of the order

Entity Relationships

  • An order consists of one or more order items
  • A book is associated with one order item