Album | class | An album in the music store catalog with strongly-typed IDs and refined title. |
AlbumId [Newtype] | struct | Strongly-typed album identifier (prevents swapping with ArtistId or OrderId). |
ArtistId [Newtype] | struct | Strongly-typed artist identifier. |
CancelledOrder [Typestate] | class | Terminal state representing a cancelled or abandoned checkout. |
CheckoutRequest | record | Request payload to place an order. |
CustomerEmail [Newtype] | struct | Validated customer email address. |
DraftCart [Typestate] | class | Initial state of the linear checkout protocol. Cannot be paid or shipped until inventory is reserved via ReserveInventory (enforced at compile time by FE0300–FE0303). |
GenreId [Newtype] | struct | Strongly-typed genre identifier. |
Order | class | A customer order with strongly-typed IDs, non-zero quantity, and validated email. |
OrderId [Newtype] | struct | Strongly-typed order identifier. |
OrderStatus | enum | Classic mutable order status enum — replaced by linear [Typestate] in Chapter 4. |
PaidOrder [Typestate] | class | Terminal state representing a paid, ready-to-fulfill order. |
PromoCode [Newtype] | struct | Optional promotional discount code. |
ReservedOrder [Typestate] | class | Intermediate state holding reserved inventory. Must transition to either PaidOrder or CancelledOrder before leaving scope (otherwise FE0301 flags a resource leak). |
StoreError [DiscriminatedUnion] | struct | Exhaustive, zero-boxing discriminated union of all domain errors in the Music Store. Replaces KeyNotFoundException, ArgumentException, and InvalidOperationException with compile-time exhaustiveness checking. |