Class

INRestaurantReservationBooking

A potential reservation that a user can book.

Declaration

@interface INRestaurantReservationBooking : NSObject

Overview

An INRestaurantReservationBooking object contains information about a potential unbooked reservation. When handling a INGetAvailableRestaurantReservationBookingsIntent object, create instances of this class for each time slot that you want to offer to the user. The system presents this information to the user, allowing them to choose which time slot they prefer. Each reservation booking contains details about the restaurant, date, and party size. They also contain information about special offers and any requirements needed to complete the reservation.

The creation of an INRestaurantReservationBooking object does not constitute the booking of the associated reservation. When the user selects a particular time slot, the system sends a INBookRestaurantReservationIntent object to your Intents extension with the selected reservation booking object. At that time, you use the reservation booking object to complete the reservation process.

Topics

Initializing the Reservation Booking Object

- initWithRestaurant:bookingDate:partySize:bookingIdentifier:

Initializes the reservation object with the specified information and status.

Accessing the Reservation Information

restaurant

The restaurant associated with the reservation.

partySize

The total number of guests in the party.

offers

An array of special offers from the restaurant.

Accessing the Booking Information

bookingIdentifier

The unique identifier associated with this reservation.

bookingAvailable

A Boolean value indicating whether the time slot is available for booking.

bookingDate

The date and time of the reservation.

bookingDescription

An optional description of the booking.

Configuring the Required Information

requiresName

A Boolean indicating whether the reservation requires a guest name before booking.

requiresEmailAddress

A Boolean indicating whether the reservation requires an email address before it booking.

requiresPhoneNumber

A Boolean indicating whether the reservation requires a phone number before booking.

requiresManualRequest

A Boolean indicating whether the reservation requires manually contacting the restaurant to confirm the details.

Relationships

Inherits From

See Also

Data Objects

INRestaurant

A restaurant for which your app can make and manage reservations.

INRestaurantGuest

The person assigned to a reservation.

INRestaurantGuestDisplayPreferences

Options about how to display guest information from system interfaces.

INRestaurantOffer

Information about special offers made by a restaurant.

INRestaurantReservationUserBooking

A reservation created by a user.

INTermsAndConditions

The terms and conditions of service when making restaurant reservations.

INRestaurantReservationUserBookingStatus

Constants indicating the status of a user reservation.