Reservation cancels settle later

API

Two changes to what a Reservation can report.

What changed

  • unresolved can move to cancelled. A reservation that ends unresolved with failure.code cancel_unconfirmed is no longer final. For 7 days, while the table is still ahead, Layout keeps reading the person's booking account, and moves it to cancelled once it proves the cancel. reservation.updated is sent when it does. Every other unresolved reservation stays final.
  • A table that is gone fails as slot_unavailable. When OpenTable refuses to hold a time it still lists in search, the booking now fails with slot_unavailable instead of provider_declined. Nothing was booked. Search again and offer another time.

What to do

Keep listening for reservation.updated after a reservation ends unresolved with cancel_unconfirmed. If you treat slot_unavailable as a cue to search again, it now covers these tables too.

All changes