Calendar

data class Calendar(val calendarId: String, val days: List<AbbreviatedWeekday>? = null, val startDate: BasicLocalDate, val endDate: BasicLocalDate, val exceptedDates: List<BasicLocalDate>? = null)(source)

A calendar defining when on-demand services are available.

Constructors

Link copied to clipboard
constructor(calendarId: String, days: List<AbbreviatedWeekday>? = null, startDate: BasicLocalDate, endDate: BasicLocalDate, exceptedDates: List<BasicLocalDate>? = null)

Properties

Link copied to clipboard
@SerialName(value = "calendar_id")
val calendarId: String

Unique identifier of the calendar.

Link copied to clipboard

Array of abbreviations (first 3 letters) of English names of the days of the week for which this object applies (e.g. "mon", "tue", "wed", "thu", "fri", "sat", "sun"). If days are not defined, it is assumed that the on-demand service is available all days of the week.

Link copied to clipboard
@SerialName(value = "end_date")
val endDate: BasicLocalDate

End date for the calendar. The end date must be subsequent or equal to the start date.

Link copied to clipboard
@SerialName(value = "excepted_dates")
val exceptedDates: List<BasicLocalDate>?

Array of dates removing service availability from the calendar.

Link copied to clipboard
@SerialName(value = "start_date")
val startDate: BasicLocalDate

Start date for the calendar.