Extracted method.
Renamed 'lineCost' to 'amount' in OrderLine.
Renamed 'totalPrice' to 'amount'.
Added TODOs.
Extracted method.
Renamed methods.
Added TODOs.
Added listener for PurchaseRegisteredEvent.