domain
Loyalty
The Loyalty subdomain rewards customers for shopping with Acme Inc. It awards points when orders complete, reverses them when orders are cancelled, and keeps each customer's points balance.
DomainSupporting subdomain
Overview
The Loyalty subdomain is part of the CustomerCustomerDomainv1.0.0The Customer domain owns who our customers are — how they register, how their profile is maintained, and how they are au...Ownercustomer-platformMapView docs domain. It listens to the order lifecycle from the Ordering domain and turns completed orders into loyalty points that customers can redeem on future purchases.
| Trigger | Outcome |
|---|---|
| Order CompletedOrder CompletedEventv1.0.0Published when an order has been fulfilled and completed. Ownerordering-platformSchemaMapView docs | Points are awarded and Loyalty Points EarnedLoyalty Points EarnedEventv1.0.0Published when a customer earns loyalty points for a completed order. Ownercustomer-platformSchemaMapView docs is published. |
| Order CancelledOrder CancelledEventv1.0.0Published when an order has been cancelled. Ownerordering-platformSchemaMapView docs | Previously awarded points are removed and Loyalty Points ReversedLoyalty Points ReversedEventv1.0.0Published when loyalty points are removed from a customer because the order that earned them was cancelled. Ownercustomer-platformSchemaMapView docs is published. |
Architecture diagram
Event-driven architecture documentation: Acme Inc