package stwbremen

type RestaurantList struct {
	Items []string `json:"items"`
}

type Restaurant struct {
	Title   string `json:"title"`
	ID      string `json:"id"`
	Image   string `json:"image"`
	Address string `json:"address"`

	OpeningHours
}

type OpeningHours struct {
	OpeningTimes          []OpeningTime `json:"openingTimes"`
	OffseasonOpeningTimes []OpeningTime `json:"offseasonOpeningTimes"`
	OffseasonStart        DateOnly      `json:"offseasonStart"`
	OffseasonEnd          DateOnly      `json:"offseasonEnd"`
	ChangedTimes          []ChangedTime `json:"changedTimes"`
}

type OpeningTime struct {
	Weekday     string   `json:"weekday"`
	OpeningTime TimeOnly `json:"openingTime"`
	ClosingTime TimeOnly `json:"closingTime"`
}

type ChangedTime struct {
	StartDate   DateOnly `json:"startDate"`
	EndDate     DateOnly `json:"endDate"`
	OpeningTime TimeOnly `json:"openingTime"`
	ClosingTime TimeOnly `json:"closingTime"`
}
