init(itemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:url:rentalCar:rentalDuration:pickupLocation:dropOffLocation:)
Creates a rental car reservation with the specified contents and attributes.
Declaration
init(itemReference: INSpeakableString, reservationNumber: String?, bookingTime: Date?, reservationStatus: INReservationStatus, reservationHolderName: String?, actions: [INReservationAction]?, url URL: URL?, rentalCar: INRentalCar, rentalDuration: INDateComponentsRange, pickupLocation: CLPlacemark?, dropOffLocation: CLPlacemark?)Parameters
- itemReference:
A unique identifier for the reservation.
- reservationNumber:
The reservation number.
- bookingTime:
The date and time the user made the reservation.
- reservationStatus:
The current status of the reservation.
- reservationHolderName:
The reservation holder’s name.
- actions:
Available actions associated with the reservation.
- URL:
A webpage containing reservation information.
- rentalCar:
Information describing the rental car.
- rentalDuration:
The date and time range that determines the pickup and drop off times for the rental.
- pickupLocation:
The name and location of the place where the user can pick up the car.
- dropOffLocation:
The name and location of the place where the user can drop off the car.
Return Value
A new INRentalCarReservation object or nil if unable to create one.