ExOpenTravel v0.3.0 ExOpenTravel.Response View Source

Struct for response given by soap call.

Link to this section Summary

Functions

Executing with xml response body as string.

Link to this section Types

Link to this type

t()

View Source
t() :: %ExOpenTravel.Response{
  body: any(),
  headers: [tuple()],
  request_url: String.t(),
  status_code: pos_integer()
}

Link to this section Functions

Link to this function

parse_response(e, mapping_struct)

View Source
parse_response(tuple(), any()) ::
  {:ok, map(), map()} | {:error, atom(), map()}

Executing with xml response body as string.

Function parse/1 returns a full parsed response structure as map.