Duffel.Schema.Stays.Room (Duffel v0.1.0)

Copy Markdown View Source

A room within an accommodation, with its bookable rates.

rates is a list of Duffel.Schema.Stays.Rate structs. photos and beds are kept as raw maps.

Summary

Functions

Decodes a raw stays room map into a Duffel.Schema.Stays.Room.

Types

t()

@type t() :: %Duffel.Schema.Stays.Room{
  beds: [map()],
  name: String.t() | nil,
  photos: [map()],
  rates: [Duffel.Schema.Stays.Rate.t()]
}

Functions

from_map(decoded)

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

Decodes a raw stays room map into a Duffel.Schema.Stays.Room.