Duffel.Schema.ItineraryView.Brand (Duffel v0.1.0)

Copy Markdown View Source

A fare brand available on an itinerary, and the offers priced under it.

Offers stay raw maps: Duffel's guide shows only some of their fields for this shape, so a struct would drop the rest. Each one carries a "type" of "single_ticket" or "split_ticket", and names its airline under "owner" as an ID for Duffel.Schema.ItineraryView.airline/2.

Summary

Types

t()

@type t() :: %Duffel.Schema.ItineraryView.Brand{
  fare_brand_name: String.t() | nil,
  offers: [map()]
}

Functions

from_map(decoded)

@spec from_map(map() | t()) :: t()

Decodes a raw fare brand into a Duffel.Schema.ItineraryView.Brand.