Module: apis/ratePlan

Methods

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

Get the price of a rate plan.
Parameters:
Name Type Default Description
ratePlanId string ID of the rate plan.
params object {} Params to be passed to request.
Source:
Returns:
response to the request.
Type
Promise.<response>

(async, inner) getRatePlanById(ratePlanId) → {Promise.<response>}

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

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

Get all rate plans 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) updatePriceForRatePlan(ratePlanId, data) → {Promise.<response>}

Update the price of a rate plan.
Parameters:
Name Type Default Description
ratePlanId string ID of the rate plan to update.
data object {} The updates to be applied to the rate plan.
Source:
Returns:
response to the request.
Type
Promise.<response>