@Schema(name="id",description="unique identifier of the calendar period",requiredMode=Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
publicStringgetId(){
returnid;
}
publicvoidsetId(Stringid){
this.id=id;
}
publicCalendarPeriodday(Stringday){
this.day=day;
returnthis;
}
/**
* Day where the calendar status applies (e.g.: monday, mon-to-fri, weekdays, weekend, all week, ...)
* @return day
*/
@Schema(name="day",description="Day where the calendar status applies (e.g.: monday, mon-to-fri, weekdays, weekend, all week, ...)",requiredMode=Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("day")
publicStringgetDay(){
returnday;
}
@@ -34,14 +79,18 @@ public class CalendarPeriod extends BaseRootEntity {
this.day=day;
}
publicStringgetStatus(){
returnstatus;
publicCalendarPeriodtimeZone(StringtimeZone){
this.timeZone=timeZone;
returnthis;
}
publicvoidsetStatus(Stringstatus){
this.status=status;
}
/**
* Indication of the timezone applicable to the calendar information (e.g.: Paris, GMT+1)
* @return timeZone
*/
@Schema(name="timeZone",description="Indication of the timezone applicable to the calendar information (e.g.: Paris, GMT+1)",requiredMode=Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("timeZone")
publicStringgetTimeZone(){
returntimeZone;
}
@@ -50,39 +99,92 @@ public class CalendarPeriod extends BaseRootEntity {
* Indication of the availability of the caledar period (e.g.: available, booked, etc.)
* @return status
*/
@NotNull
@Schema(name="status",description="Indication of the availability of the caledar period (e.g.: available, booked, etc.)",requiredMode=Schema.RequiredMode.REQUIRED)