You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently don't publish any event on order cancellation which actually leaves both the inventory and accountancy in invalid state. We should introduce such an event, revert the inventory update and create a compensating accountancy entry.
The text was updated successfully, but these errors were encountered:
…eral.
We now publish an OrderCancelled event if an Order instance is cancelled, potentially roll back the inventory updates and create a compensating ProductPaymentEntry in the accountancy.
Fixed event handling in accountancy to handle OrderPaid events, not OrderCompleted ones. Polished implementation of InventoryOrderEventListener by tweaking the APIs in OrderCompletionReport for better composability.
Added Order.addOrderLine(…) as a replacement for ….add(OrderLine) and added lookup method to find OrderLine instances by product as the Order doesn't deduplicate them like the Cart does.
Added notes on the published events to state transitioning methods in OrderManager.
We currently don't publish any event on order cancellation which actually leaves both the inventory and accountancy in invalid state. We should introduce such an event, revert the inventory update and create a compensating accountancy entry.
The text was updated successfully, but these errors were encountered: