---
title: "init(restaurant:booking:partySize:bookingIdentifier:guest:status:dateStatusModified:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inrestaurantreservationuserbooking/init(restaurant:booking:partysize:bookingidentifier:guest:status:datestatusmodified:)"
---

# init(restaurant:booking:partySize:bookingIdentifier:guest:status:dateStatusModified:)

Initializes the reservation object with the specified information and status.

## Declaration

```swift
init(restaurant: INRestaurant, booking bookingDate: Date, partySize: Int, bookingIdentifier: String, guest: INRestaurantGuest, status: INRestaurantReservationUserBookingStatus, dateStatusModified: Date)
```

## Parameters

- `restaurant`: The restaurant at which the reservation was 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.
- `guest`: The guest whose name is associated with the reservation.
- `status`: A value indicating whether the reservation was confirmed, declined, or is still pending.
- `dateStatusModified`: The date when the reservation’s status last changed.

## Return Value

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