initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:lodgingBusinessLocation:reservationDuration:numberOfAdults:numberOfChildren:
Creates a new lodging reservation with the provided information.
Declaration
- (instancetype) initWithItemReference:(INSpeakableString *) itemReference reservationNumber:(NSString *) reservationNumber bookingTime:(NSDate *) bookingTime reservationStatus:(INReservationStatus) reservationStatus reservationHolderName:(NSString *) reservationHolderName actions:(NSArray<INReservationAction *> *) actions lodgingBusinessLocation:(CLPlacemark *) lodgingBusinessLocation reservationDuration:(INDateComponentsRange *) reservationDuration numberOfAdults:(NSNumber *) numberOfAdults numberOfChildren:(NSNumber *) numberOfChildren;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 name of the person the reservation is under.
- actions:
The available actions for the reservation. For example, checking in for the reservation from your phone.
- lodgingBusinessLocation:
The name and location of the lodging establishment.
- reservationDuration:
The date and time range that indicates the start and end times for the reservation.
- numberOfAdults:
The number of adults staying in the lodging.
- numberOfChildren:
The number of children staying in the lodging.
Return Value
A new INLodgingReservation object or nil if unable to create one.