ReservationContactRequest - gomeddo/js-sdk GitHub Wiki

Object used to filter reservations on just reservations that have reservation contacts that match this request. Can't be used to retrieve reservation contacts.

Example

const reservationContactRequest = new ReservationContactRequest()
    .withToContact(contact)
const reservationRequest = gm.buildReservationRequest()
    .withReservationContacts(reservationContactRequest)

withContact

Syntax

withContact(contact)

Parameters:

  • contact A Contact object either with an Id or with other fields.

Return value: The updated reservation contact request.

Description

Filter to only match reservation contacts linked to this contact. If an Id is provided it will use that in the filter. Otherwise it will look for reservations that are linked to a contact that match the fields provided.


withCondition

Syntax

withCondition(conditionObject1)
withCondition(conditionObject1, conditionObject2)
withCondition(conditionObject1, conditionObject2, /* … ,*/ conditionObjectN)

Parameters:

  • conditionObjectN The condition(s) you want to filter on. Of type Condition.

Return value: The updated reservation request.

Description

Filter to only match reservation contacts that match the provided conditions. Multiple conditions will be combined using AND.