---
title: "init(restaurant:booking:partySize:bookingIdentifier:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inrestaurantreservationbooking/init(restaurant:booking:partysize:bookingidentifier:)"
---

# init(restaurant:booking:partySize:bookingIdentifier:)

Initializes the reservation object with the specified information and status.

## Declaration

```swift
init(restaurant: INRestaurant, booking bookingDate: Date, partySize: Int, bookingIdentifier: String)
```

## Parameters

- `restaurant`: The restaurant at which the reservation is to be made.
- `bookingDate`: The date and time of the reservation.
- `partySize`: The number of guests in the party.
- `bookingIdentifier`: The unique identifier for the reservation in your system.

## Return Value

Return Value An initialized reservation booking object or nil if the object could not be created.

## Discussion

Discussion After initializing the reservation booking object, update the other properties of the object with details about special offers or the requirements for completing the reservation.
