/* Options: Date: 2024-06-26 09:30:18 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateHomepageSchedulerSettings.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/homepage/scheduler/settings", Verbs="PUT") @ValidateRequest(Validator="IsAuthenticated") open class UpdateHomepageSchedulerSettings : IReturn, ICompany { /** * 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.") var CompanyId:UUID? = null /** * If the user schedule is activated. */ @ApiMember(Description="If the user schedule is activated.") var Active:Boolean? = null /** * If the user schedule views id. */ @ApiMember(Description="If the user schedule views id.") var ScheduleViewId:Int? = null /** * If the user schedule time slots in minutes. */ @ApiMember(Description="If the user schedule time slots in minutes.") var ScheduleTimeSlotMinutes:Int? = null /** * If the user schedule time start time. */ @ApiMember(Description="If the user schedule time start time.") var StartTime:TimeSpan? = null /** * If the user schedule time end time. */ @ApiMember(Description="If the user schedule time end time.") var EndTime:TimeSpan? = null /** * If the user schedule should contain time exceptions. */ @ApiMember(Description="If the user schedule should contain time exceptions.") var ShowTimeExceptions:Boolean? = null /** * If allow booking in the scheduler. */ @ApiMember(Description="If allow booking in the scheduler.") var EnableBooking:Boolean? = null /** * What resources you want to be shown in scheduler. */ @ApiMember(Description="What resources you want to be shown in scheduler.") var Resources:ArrayList = ArrayList() /** * What services you want to be shown in scheduler. */ @ApiMember(Description="What services you want to be shown in scheduler.") var Services:ArrayList = ArrayList() /** * What fields you want to be shown in scheduler. */ @ApiMember(Description="What fields you want to be shown in scheduler.") var Fields:ArrayList = ArrayList() companion object { private val responseType = HomepageSchedulerSettingsQueryResponse::class.java } override fun getResponseType(): Any? = UpdateHomepageSchedulerSettings.responseType } open class HomepageSchedulerSettingsQueryResponse { /** * The company id. */ @ApiMember(Description="The company id.") var CompanyId:UUID? = null /** * If the user schedule is activated. */ @ApiMember(Description="If the user schedule is activated.") var Active:Boolean? = null /** * If the user schedule views id. */ @ApiMember(Description="If the user schedule views id.") var ScheduleViewId:Int? = null /** * If the user schedule time slots in minutes. */ @ApiMember(Description="If the user schedule time slots in minutes.") var ScheduleTimeSlotMinutes:Int? = null /** * If the user schedule time start time. */ @ApiMember(Description="If the user schedule time start time.") var StartTime:TimeSpan? = null /** * If the user schedule time end time. */ @ApiMember(Description="If the user schedule time end time.") var EndTime:TimeSpan? = null /** * If the user schedule should contain time exceptions. */ @ApiMember(Description="If the user schedule should contain time exceptions.") var ShowTimeExceptions:Boolean? = null /** * If allow booking in the scheduler. */ @ApiMember(Description="If allow booking in the scheduler.") var EnableBooking:Boolean? = null /** * The homepage schedule services that are selected */ @ApiMember(Description="The homepage schedule services that are selected") var Services:ArrayList = ArrayList() /** * The homepage schedule resources that are selected */ @ApiMember(Description="The homepage schedule resources that are selected") var Resources:ArrayList = ArrayList() /** * The homepage schedule fields that are selected */ @ApiMember(Description="The homepage schedule fields that are selected") var Fields:ArrayList = ArrayList() /** * The homepage schedule fields select from */ @ApiMember(Description="The homepage schedule fields select from") var FieldOptions:ArrayList = ArrayList() /** * The available schedule view options to choose from */ @ApiMember(Description="The available schedule view options to choose from") var ScheduleViewOptions:ArrayList = ArrayList() } open interface ICompany { var CompanyId:UUID? } open class HomepageSchedulerResource { /** * The resource id. */ @ApiMember(Description="The resource id.") var Id:Int? = null } open class HomepageSchedulerService { /** * The service id. */ @ApiMember(Description="The service id.") var Id:Int? = null } open class HomepageScheduleField { /** * The field id. */ @ApiMember(Description="The field id.", IsRequired=true) var Id:Int? = null /** * If the field showed on the booking. */ @ApiMember(Description="If the field showed on the booking.", IsRequired=true) var ShowOnBooking:Boolean? = null /** * If the field showed on the bookings tooltip. */ @ApiMember(Description="If the field showed on the bookings tooltip.", IsRequired=true) var ShowOnTooltip:Boolean? = null } open class HomepageSchedulerServiceResponse { /** * The service id. */ @ApiMember(Description="The service id.") var Id:Int? = null /** * The service name. */ @ApiMember(Description="The service name.") var Name:String? = null /** * The service description. */ @ApiMember(Description="The service description.") var Description:String? = null /** * The service image url. */ @ApiMember(Description="The service image url.") var ImageUrl:Uri? = null } open class HomepageSchedulerResourceResponse { /** * The resource id. */ @ApiMember(Description="The resource id.") var Id:Int? = null /** * The resource name. */ @ApiMember(Description="The resource name.") var Name:String? = null /** * The resource description. */ @ApiMember(Description="The resource description.") var Description:String? = null /** * The resource image url. */ @ApiMember(Description="The resource image url.") var ImageUrl:Uri? = null } open class HomepageSchedulerFieldResponse { /** * The field id. */ @ApiMember(Description="The field id.") var Id:Int? = null /** * If the field should be shown on booking. */ @ApiMember(Description="If the field should be shown on booking.") var ShowOnBooking:Boolean? = null /** * If the field should be shown on tooltip. */ @ApiMember(Description="If the field should be shown on tooltip.") var ShowOnTooltip:Boolean? = null } open class HomepageSchedulerFieldOptionsResponse { /** * The field id. */ @ApiMember(Description="The field id.") var Id:Int? = null /** * The field name. */ @ApiMember(Description="The field name.") var Name:String? = null /** * The field description. */ @ApiMember(Description="The field description.") var Description:String? = null /** * The field sort order when listing. */ @ApiMember(Description="The field sort order when listing.") var SortOrder:Int? = null } open class ScheduleViewResponse { var Id:Int? = null var Name:String? = null }