public OrderId OrderIdAll Types / MusicStore.Domain
class PaidOrder [Typestate]
public sealed class PaidOrder
Terminal state representing a paid, ready-to-fulfill order.
Typestate Transitions
stateDiagram-v2
[*] --> DraftCart
DraftCart --> DraftCart : ApplyPromo()
DraftCart --> ReservedOrder : ReserveInventory()
DraftCart --> CancelledOrder : Abandon()
ReservedOrder --> PaidOrder : CapturePayment()
ReservedOrder --> CancelledOrder : ReleaseInventory()
PaidOrder --> [*]
CancelledOrder --> [*]
Properties
public AlbumId AlbumIdpublic NonZero<int> Quantitypublic CustomerEmail Emailpublic decimal TotalAmountpublic string ReceiptIdMethods
public Order ToOrderEntity()Projects this terminal paid order into the persisted Order entity.