Support cart additions to existing Picnic deliveries #5

Merged
HoroTW merged 1 commit from sora/order-extension into main 2026-10-12 15:15:58 +00:00
Owner

FOX-74. Official-app-derived checkout mode detection, delivery-bound confirmation and positive delivery readback. No live purchase authorized or performed. Independent review: 82 checkout tests and typecheck passed on f856cd3; worker reports 388 full tests and build/lint/smoke green.

FOX-74. Official-app-derived checkout mode detection, delivery-bound confirmation and positive delivery readback. No live purchase authorized or performed. Independent review: 82 checkout tests and typecheck passed on f856cd3; worker reports 388 full tests and build/lint/smoke green.
The app has no separate request for "Zur Bestellung hinzufügen": it sends the
same checkout start, payment and confirmation, and leaves the minimum order
value to Picnic's answer (PRICE_TOO_LOW). The preview applied the slot minimum
itself and so refused a 1249 cent addition to a current delivery.

The preview now reads the current deliveries and reports a mode. When exactly
one current delivery uses the cart's selected slot, it names that delivery, its
orders and the additional amount, and the minimum only warns. New orders keep
the minimum blocker. Unclear cases are blockers, not guesses.

picnic_checkout_add_to_delivery commits an addition. Its token is bound to the
mode, the delivery and the order ids in it, so it cannot become a new order and
picnic_checkout_place_order refuses it. Success is reported only when the new
order id is read back in the target delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HoroTW merged commit 2d0217c849 into main 2026-10-12 15:15:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
HoroTW/mcp-picnic!5
No description provided.