Travel.Types.DuffelResponse (travel v0.2.0)

Copy Markdown View Source

Summary

Types

t()

Standard response wrapper from the Duffel API.

Types

t()

@type t() :: %Travel.Types.DuffelResponse{
  data: any() | nil,
  headers: map(),
  meta: (Travel.Types.PaginationMeta.t() | nil) | nil,
  status: integer()
}

Standard response wrapper from the Duffel API.

Fields

  • :data - The response data (type varies by endpoint)
  • :meta - Pagination metadata (present on list endpoints)
  • :headers - Raw HTTP response headers
  • :status - HTTP status code