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

Copy Markdown View Source

One slice of an offer request in the itineraries shape.

origin and destination are place IDs — resolve them with Duffel.Schema.ItineraryView.place/2.

Summary

Types

t()

@type t() :: %Duffel.Schema.ItineraryView.Slice{
  destination: String.t() | nil,
  itineraries: [Duffel.Schema.ItineraryView.Itinerary.t()],
  origin: String.t() | nil
}

Functions

from_map(decoded)

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

Decodes a raw slice into a Duffel.Schema.ItineraryView.Slice.