ExOpenTravel v0.3.0 ExOpenTravel.Composers.OtaHotelAvailQuery.Request View Source

Link to this section Summary

Link to this section Types

Link to this type

credentials()

View Source
credentials() :: %{user: String.t(), password: String.t(), endpoint: String.t()}
Link to this type

options()

View Source
options() :: keyword() | any()
Link to this type

t()

View Source
t() :: %{hotel_code: String.t()}

Link to this section Functions

Link to this function

build_hotel_avail_query(map, meta)

View Source
build_hotel_avail_query(t(), ExOpenTravel.Meta.t()) ::
  {{atom(), map() | nil, list() | nil}, ExOpenTravel.Meta.t()}
Link to this function

execute(params, credentials, meta, opts)

View Source
execute(t(), credentials(), ExOpenTravel.Meta.t(), options()) ::
  {:ok, struct(), ExOpenTravel.Meta.t()}
  | {:error, any(), ExOpenTravel.Meta.t()}

This method is used to room_stay query.