Class: Events::DeliveryArrivedAtWarehouse
- Inherits:
-
ApplicationEvent
- Object
- RubyEventStore::Event
- ApplicationEvent
- Events::DeliveryArrivedAtWarehouse
- Defined in:
- app/events/events.rb
Overview
Domain event signalling that a Delivery has just transitioned into the
at_warehouse state and the originating store should be pinged so its
warehouse dashboards / Slack channels surface the work item. Published
from Delivery#notify_store via after_all_transactions_commit and
consumed by DeliveryArrivedAtWarehouseNotificationHandler, which
re-queries by id and emails the store's operations contacts.
Payload: data: { delivery_id: Integer }