init(itemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:rentalCar:rentalDuration:pickupLocation:dropOffLocation:)
Creates a new rental car reservation with the specified contents and attributes.
Declaration
convenience init(itemReference: INSpeakableString, reservationNumber: String?, bookingTime: Date?, reservationStatus: INReservationStatus, reservationHolderName: String?, actions: [INReservationAction]?, rentalCar: INRentalCar, rentalDuration: INDateComponentsRange, pickupLocation: CLPlacemark?, dropOffLocation: CLPlacemark?)Parameters
- itemReference:
A unique value for the reservation item.
- reservationNumber:
The reservation or booking number provided by the app.
- bookingTime:
The date and time the user made the reservation.
- reservationStatus:
The current status of the reservation.
- reservationHolderName:
The reservation holder’s name.
- actions:
The available actions for the reservation. For example, checking in for the reservation from your phone.
- rentalCar:
The rental car object that provides detailed information on 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.