Kantoor.Bookings.Page (Kantoor v1.0.0)

A person's public booking page: the settings behind /book/<token>.

The token is public by design (it is the address people are given). The page decides which times are offered: the working hours per weekday ("mon" => [["09:00", "17:00"]]), the durations a visitor may choose, the buffer kept free on both sides of an appointment, how far ahead bookings are taken and how much notice is needed. The availability itself comes from the person's calendars at the moment a slot is asked for or booked (Kantoor.Bookings), so a change made in CalDAV is respected at once.

Summary

Functions

Changes the public settings of the page.

Types

t()

@type t() :: %Kantoor.Bookings.Page{
  __meta__: term(),
  bookings: term(),
  buffer_minutes: term(),
  calendar: term(),
  days_ahead: term(),
  description: term(),
  durations: term(),
  enabled: term(),
  id: term(),
  inserted_at: term(),
  notice_minutes: term(),
  title: term(),
  token: term(),
  updated_at: term(),
  user: term(),
  user_id: term(),
  working_hours: term()
}

Functions

changeset(page, attrs)

Changes the public settings of the page.