Design a Recurring Grocery Subscription Domain
Model a grocery plan whose scheduled cycles can be edited, skipped, renewed, and converted into at most one order.
Design the object model and interaction contracts for a recurring grocery subscription. For this exercise, assume a subscriber chooses a weekly or biweekly plan, delivery address, payment reference, reusable grocery selection, and substitution preferences.
Before a cycle cutoff, the subscriber may edit or skip that cycle, pause and resume the subscription, or cancel future cycles. At the cutoff, a renewal workflow validates the selection, reserves available items, authorizes payment, and creates at most one grocery order for that cycle.
If a required item is unavailable, the cycle needs subscriber action unless an approved substitution succeeds. A confirmed order is not recalled by later subscription cancellation. Keep pricing campaigns, warehouse optimization, courier routing, and transport infrastructure outside the first version.
Produce a design-only class model and walk through one renewal, including retry and failure behavior.