Create and retrieve quotes for stays.
Endpoints
POST /stays/quotes- Create a quoteGET /stays/quotes/{id}- Get a quote
Examples
# Create a quote from a rate
{:ok, response} = Travel.Stays.Quotes.create("rate_123")
# Get a quote by ID
{:ok, response} = Travel.Stays.Quotes.get("quo_123")
Summary
Functions
@spec create(String.t()) :: {:ok, Travel.Types.DuffelResponse.t()} | {:error, Travel.Error.t() | term()}
Create a quote for the selected rate.
Parameters
rate_id- The ID of the rate to quote
Returns
{:ok, %Travel.Types.DuffelResponse{data: %Types.StaysQuote{}}}on success{:error, %Travel.Error{}}on failure
@spec get(String.t()) :: {:ok, Travel.Types.DuffelResponse.t()} | {:error, Travel.Error.t() | term()}
Get a quote by ID.
Parameters
quote_id- The ID of the quote
Returns
{:ok, %Travel.Types.DuffelResponse{data: %Types.StaysQuote{}}}on success{:error, %Travel.Error{}}on failure