ReservationContactsResult - gomeddo/js-sdk GitHub Wiki
Object containing the results of a ReservationContactsRequest, including methods to get the all or individual reservation contacts.
Example
const reservationContactsResult = gm.buildReservationContactsRequest()
.withReservation("a0jWy0000003CxVIAU")
.getResults()
Instance methods
getReservationContactIds
Syntax
getReservationContactIds()
Return value: A list of reservation contacts Ids.
Description
Gets a list of reservation contacts Ids in the result.
numberOfReservationContacts
Syntax
numberOfReservationContacts()
Return value: The number of reservation contacts in the result.
Description
Gets the number of reservation contacts in the result.
getReservationContact
Syntax
getReservationContact(idOrName)
Parameters:
idOrName
The Id or the Name of the reservation contact to retrieve.
Return value:
A single ReservationContact object or undefined
Description
Get a reservation contact based on its Id or Name.