Contents

initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:lodgingBusinessLocation:reservationDuration:numberOfAdults:numberOfChildren:

Creates a lodging reservation with the specified contents and attributes.

Declaration

- (instancetype) initWithItemReference:(INSpeakableString *) itemReference reservationNumber:(NSString *) reservationNumber bookingTime:(NSDate *) bookingTime reservationStatus:(INReservationStatus) reservationStatus reservationHolderName:(NSString *) reservationHolderName actions:(NSArray<INReservationAction *> *) actions URL:(NSURL *) URL lodgingBusinessLocation:(CLPlacemark *) lodgingBusinessLocation reservationDuration:(INDateComponentsRange *) reservationDuration numberOfAdults:(NSNumber *) numberOfAdults numberOfChildren:(NSNumber *) numberOfChildren;

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.

  • lodgingBusinessLocation:

    The name and location of the lodging establishment.

  • reservationDuration:

    The date and time range that defines the beginning and end of 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.

See Also

Creating a Lodging Reservation