Class

INBookRestaurantReservationIntent

Requests the creation of a reservation at the specified restaurant.

Overview

An INBookRestaurantReservationIntent object asks you to book the reservation time selected by the user. Maps sends this intent to your Intents extension when the user selects a reservation time from the available options. Use this intent object to obtain the details of the reservation, including the time slot and any special offers that were selected. Use those details to confirm the reservation with the restaurant and store the results in your system.

Booking a reservation is the last step in the reservation creation process. By the time this intent is delivered to your Intents extension, the user has already had an opportunity to view a list of potential reservation times and configure the details of the reservation request. This intent object contains all of the final choices made by the user.

To handle this intent, the handler object in your Intents extension must adopt the INBookRestaurantReservationIntentHandling protocol. Your handler should resolve and confirm any parameters and create an INBookRestaurantReservationIntentResponse object with the status of the reservation.

Additional Intent Attributes

Table 1 lists additional attributes of this intent object.

Table 1

Book restaurant reservation intent attributes

Attribute

Description

Supported by

Maps

Always requires unlocked device

Yes

Topics

Getting the Restaurant Information

var restaurant: INRestaurant

The restaurant to contact regarding the booking.

Getting the Booking Details

var bookingDateComponents: DateComponents

The date and time of the reservation.

var bookingIdentifier: String?

The unique identifier associated with the initial reservation data.

var partySize: Int

The total number of people in the user’s party.

var guest: INRestaurantGuest?

The identity of the guest associated with the reservation.

Getting Special Requests and Offers

var guestProvidedSpecialRequestText: String?

Information about any special requests made by the user.

var selectedOffer: INRestaurantOffer?

The special offer, if any, selected by the user.

Relationships

Inherits From

See Also

Book Restaurant Reservation

protocol INBookRestaurantReservationIntentHandling

Handles the booking of a reservation that the user selected.

class INBookRestaurantReservationIntentResponse

Contains your app’s response to a book restaurant reservation intent.