Module: apis/guest

Methods

(async, inner) createGuest(data) → {Promise.<response>}

Create a new guest.
Parameters:
Name Type Description
data object The data to create the new guest.
Source:
Returns:
response to the request.
Type
Promise.<response>

(async, inner) getBillsForGuest(guestId) → {Promise.<response>}

Retrieve a list of bills for a guest.
Parameters:
Name Type Description
guestId string ID of the guest.
Source:
Returns:
response to the request.
Type
Promise.<response>

(async, inner) getGuestById(guestId) → {Promise.<response>}

Get a specific guest given its ID.
Parameters:
Name Type Description
guestId string ID of the guest to retrieve.
Source:
Returns:
response to the request.
Type
Promise.<response>

(async, inner) getGuests(params) → {Promise.<response>}

Get all guests for a hotel.
Parameters:
Name Type Default Description
params object {} Optional params to be passed to request.
Source:
Returns:
response to the request.
Type
Promise.<response>

(async, inner) updateGuest(guestId, data) → {Promise.<response>}

Update a specific guest given its ID.
Parameters:
Name Type Description
guestId string ID of the guest to update.
data object The updates to be applied to the guest.
Source:
Returns:
response to the request.
Type
Promise.<response>