Travel.Types (travel v0.2.0)

Copy Markdown View Source

Shared types used across the Travel API client.

Summary

Functions

Parses a raw HTTP response into a DuffelResponse struct.

Functions

parse_response(body, status, headers)

@spec parse_response(map(), integer(), map()) :: Travel.Types.DuffelResponse.t()

Parses a raw HTTP response into a DuffelResponse struct.

Handles both single-item and paginated responses.