Travel.Stays.SearchResults (travel v0.2.0)

Copy Markdown View Source

Fetch all rates for a search result.

Endpoint

POST /stays/search_results/{id}/actions/fetch_all_rates

Examples

{:ok, response} = Travel.Stays.SearchResults.fetch_all_rates("ser_123")

@link https://duffel.com/docs/api/stays/search-results

Summary

Functions

Fetch all rates for the given search result.

Functions

fetch_all_rates(search_result_id)

@spec fetch_all_rates(String.t()) ::
  {:ok, Travel.Types.DuffelResponse.t()} | {:error, Travel.Error.t() | term()}

Fetch all rates for the given search result.

Parameters

  • search_result_id - The ID of the search result

Returns

  • {:ok, %Travel.Types.DuffelResponse{data: %Types.StaysSearchResult{}}} on success
  • {:error, %Travel.Error{}} on failure