/* Options: Date: 2025-09-18 13:13:32 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TestDateSchedule.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/schedules/date/test", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class TestDateSchedule : IReturn, ICompany, IInterval { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") override var CompanyId:UUID? = null /** * The dates for the schedule. This is the actual timeslots. */ @ApiMember(Description="The dates for the schedule. This is the actual timeslots.", IsRequired=true) open var ScheduleDates:ArrayList = ArrayList() /** * From what datetime to show available times */ @ApiMember(DataType="dateTime", Description="From what datetime to show available times", IsRequired=true, ParameterType="query") override var From:Date? = null /** * To what datetime to show available times */ @ApiMember(DataType="dateTime", Description="To what datetime to show available times", IsRequired=true, ParameterType="query") override var To:Date? = null /** * The Service Duration */ @ApiMember(Description="The Service Duration") open var ServiceId:Int? = null companion object { private val responseType = AvailableTimesResponse::class.java } override fun getResponseType(): Any? = TestDateSchedule.responseType } open class AvailableTimesResponse { open var CompanyId:UUID? = null open var ServiceId:Int? = null open var TimesFreeTextSingle:String? = null open var TimesFreeTextMultiple:String? = null open var Times:ArrayList? = null } interface ICompany { var CompanyId:UUID? } interface IInterval { var From:Date? var To:Date? } open class AddDateScheduleDate { /** * The from date for the timeslot */ @ApiMember(Description="The from date for the timeslot", IsRequired=true) open var From:Date? = null /** * The to date for the timeslot */ @ApiMember(Description="The to date for the timeslot", IsRequired=true) open var To:Date? = null } open class AvailableTimesSum : IAvailableTime { open var From:Date? = null open var To:Date? = null override var Free:Int? = null open var FreeSpots:Int? = null open var ExceptionTexts:ArrayList? = null } open class ExceptionText { open var Reason:String? = null open var ReasonPublic:String? = null } interface IAvailableTime : IInterval { var Free:Int? }