/* Options: Date: 2025-09-14 02:56:04 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TestRecurringSchedule.* //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/recurring/test", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class TestRecurringSchedule : 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 /** * 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 to be faked if there is no Service selected */ @ApiMember(Description="The Service Duration to be faked if there is no Service selected") open var Duration:Int? = null /** * Time interval for available times. Here you set the interval at which times should appear. For example, if you select the range 15minutes, and your service has an duration of 1 hour and opening hours are 9AM to 6PM you will see the following suggested times: 09AM-10AM 09:15AM-10:15AM, 09:30AM-10:30AM , ..... 04:45PM-05:45, 05:00PM-06:00PM */ @ApiMember(Description="Time interval for available times. Here you set the interval at which times should appear. For example, if you select the range 15minutes, and your service has an duration of 1 hour and opening hours are 9AM to 6PM you will see the following suggested times: 09AM-10AM 09:15AM-10:15AM, 09:30AM-10:30AM , ..... 04:45PM-05:45, 05:00PM-06:00PM", IsRequired=true) open var TimeInterval:Int? = null /** * Allow bookings end time exceeds the opening hours Here you can choose whether it should be possible to make a reservation exceeding the opening hours. This should be ticked when a service duration is longer than 24 hours (possible to book over midnight). */ @ApiMember(Description="Allow bookings end time exceeds the opening hours Here you can choose whether it should be possible to make a reservation exceeding the opening hours. This should be ticked when a service duration is longer than 24 hours (possible to book over midnight).", IsRequired=true) open var EnableBookingUntilClosingTime:Boolean? = null /** * The timestamp to which the schedule is valid from */ @ApiMember(Description="The timestamp to which the schedule is valid from", IsRequired=true) open var ValidFrom:Date? = null /** * The timestamp to which the schedule is valid to */ @ApiMember(Description="The timestamp to which the schedule is valid to", IsRequired=true) open var ValidTo:Date? = null /** * The time for the schedule opening hours (starttime) */ @ApiMember(Description="The time for the schedule opening hours (starttime)", IsRequired=true) open var StartTime:TimeSpan? = null /** * The time for the schedule opening hours (endtime) */ @ApiMember(Description="The time for the schedule opening hours (endtime)", IsRequired=true) open var EndTime:TimeSpan? = null /** * The number of days the schedule is valid from todays date */ @ApiMember(Description="The number of days the schedule is valid from todays date", IsRequired=true) open var NumberOfScheduleDays:Int? = null /** * If recurring, an array indicating which days of the week the schedule recures on where 1 = Monday .. 7 = Sunday. When recurring then the time portion of the Fields From and To indicates the time of day the recurrence occurs */ @ApiMember(Description="If recurring, an array indicating which days of the week the schedule recures on where 1 = Monday .. 7 = Sunday. When recurring then the time portion of the Fields From and To indicates the time of day the recurrence occurs") open var DaysOfWeek:ArrayList? = null /** * If not recuring, an array indicating which dates that are open for the schedule. */ @ApiMember(Description="If not recuring, an array indicating which dates that are open for the schedule.") open var ScheduleDates:ArrayList? = null /** * Schedule exceptions. For example closed on lunch time between 12AM and 1PM. These times will be removed from the recurring schedule. */ @ApiMember(Description="Schedule exceptions. For example closed on lunch time between 12AM and 1PM. These times will be removed from the recurring schedule.") open var Exceptions:ArrayList? = null @ApiMember() open var Services:ArrayList? = null @ApiMember() open var Resources:ArrayList? = null companion object { private val responseType = AvailableTimesResponse::class.java } override fun getResponseType(): Any? = TestRecurringSchedule.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? } enum class BookingStatusEnum(val value:Int) { Booked(1), Unbooked(2), Reserved(3), Canceled(4), AwaitingPayment(5), AwaitingPaymentNoTimeLimit(6), Payed(7), AwaitingPaymentRequestFromAdmin(8), AwaitingPaymentFromProvider(9), Invoiced(10), } interface IInterval { var From:Date? var To:Date? } open class CustomFieldConfig : BaseModel() { @Ignore() open var Values:ArrayList? = null open var CustomField:CustomField? = null @Ignore() open var RegEx:RegEx? = null @Ignore() open var Services:ArrayList? = null open var CustomFieldServiceRelation:ArrayList? = null @Required() open var CompanyId:UUID? = null open var Id:Int? = null open var GroupId:Int? = null @Required() open var FieldId:Int? = null @Required() open var IconId:Int? = null open var RegExId:Int? = null @Required() open var Name:String? = null @Required() open var Description:String? = null @Required() open var Datatype:String? = null @Required() open var MaxLength:Int? = null @Required() open var IsPublic:Boolean? = null @Required() open var IsHidden:Boolean? = null @Required() open var IsMandatory:Boolean? = null open var DefaultValue:String? = null open var RegExErrorMessage:String? = null open var MandatoryErrorMessage:String? = null open var Width:Int? = null @Required() open var MultipleLineText:Boolean? = null open var ModifiedDate:Date? = null } open class Resource : BaseModel(), ICustomFieldTable, IBaseModelCreated, IBaseModelUpdated { @Ignore() open var Priority:Int? = null @Ignore() open var Schedules:IList? = null @Ignore() open var Exceptions:IList? = null @Ignore() open var Bookings:IList? = null @Ignore() override var CustomFieldsConfig:IList? = null @Ignore() override var CustomFieldsData:IList? = null @Required() open var CompanyId:UUID? = null open var Id:Int? = null @Required() open var Name:String? = null @Required() open var Active:Boolean? = null open var Description:String? = null open var ImageUrl:String? = null @Required() override var UpdatedDate:Date? = null @Required() override var CreatedDate:Date? = null @Required() open var Color:String? = null open var Email:String? = null open var MobilePhone:String? = null open var EmailNotification:Boolean? = null open var SMSNotification:Boolean? = null @Required() open var SendSMSReminder:Boolean? = null @Required() open var SendEmailReminder:Boolean? = null open var ModifiedDate:Date? = null open var AccessGroup:String? = null override var TextField1:String? = null override var TextField2:String? = null override var TextField3:String? = null override var TextField4:String? = null override var TextField5:String? = null override var TextField6:String? = null override var TextField7:String? = null override var TextField8:String? = null override var TextField9:String? = null override var TextField10:String? = null override var TextField11:String? = null override var TextField12:String? = null override var TextField13:String? = null override var TextField14:String? = null override var TextField15:String? = null override var TextField16:String? = null override var TextField17:String? = null override var TextField18:String? = null override var TextField19:String? = null override var TextField20:String? = null } open class AddRecurringScheduleDate { /** * The date for the schedule opening (only date part is used here */ @ApiMember(Description="The date for the schedule opening (only date part is used here", IsRequired=true) open var Date:Date? = null /** * The time for the schedule opening hours (starttime) */ @ApiMember(Description="The time for the schedule opening hours (starttime)", IsRequired=true) open var StartTime:TimeSpan? = null /** * The time for the schedule opening hours (endtime) */ @ApiMember(Description="The time for the schedule opening hours (endtime)", IsRequired=true) open var EndTime:TimeSpan? = null } open class ScheduleException { open var StartTime:TimeSpan? = null open var EndTime:TimeSpan? = null } open class AddScheduleService { /** * The service id */ @ApiMember(Description="The service id", IsRequired=true) open var Id:Int? = null } open class CustomFieldDataResponse { open var Id:Int? = null open var Column:String? = null open var Name:String? = null open var Description:String? = null open var Value:String? = null /** * Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' */ @ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'") open var DataType:String? = null } open class BookedCustomer { open var Id:UUID? = null open var Firstname:String? = null open var Lastname:String? = null open var Email:String? = null open var Phone:String? = null open var FacebookUserName:String? = null open var ImageUrl:String? = null open var CorporateIdentityNumber:String? = null open var InvoiceAddress1:String? = null open var InvoiceAddress2:String? = null open var InvoiceCity:String? = null open var InvoicePostalCode:String? = null open var InvoiceCountryCode:String? = 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 } enum class ScheduleType { NotDefined, RecurringSchedule, DateSchedule, } open class BaseModel { } interface IBaseModelCreated { var CreatedDate:Date? } interface IBaseModelUpdated { var UpdatedDate:Date? } interface ICustomFieldTable { var CustomFieldsConfig:IList? var CustomFieldsData:IList? var TextField1:String? var TextField2:String? var TextField3:String? var TextField4:String? var TextField5:String? var TextField6:String? var TextField7:String? var TextField8:String? var TextField9:String? var TextField10:String? var TextField11:String? var TextField12:String? var TextField13:String? var TextField14:String? var TextField15:String? var TextField16:String? var TextField17:String? var TextField18:String? var TextField19:String? var TextField20:String? } open class CustomFieldValue : BaseModel() { @Required() open var CompanyId:UUID? = null open var Id:Int? = null @Required() open var Value:String? = null @Required() open var Active:Boolean? = null open var SortOrder:Short? = null open var ModifiedDate:Date? = null } open class CustomField : BaseModel() { @Required() open var Table:String? = null @Required() open var Column:String? = null @Required() open var DataType:String? = null @Required() open var Description:String? = null @Required() open var Active:Boolean? = null open var ModifiedDate:Date? = null open var Id:Int? = null } open class RegEx : BaseModel() { @Required() open var Name:String? = null @Required() open var Description:String? = null @Required() open var RegExCode:String? = null open var ErrorMessage:String? = null open var ModifiedDate:Date? = null open var Id:Int? = null } open class CustomFieldServiceRelation : BaseModel() { @Required() open var CompanyId:UUID? = null open var Id:Int? = null @Required() open var CustomFieldConfigId:Int? = null @Required() open var ServiceId:Int? = null open var ModifiedDate:Date? = null } interface ISchedule { var CompanyId:UUID? var Resources:IList? var Type:ScheduleType? var Active:Boolean? var IsResourceSpecific:Boolean? } interface ITimeException : IInterval { var Id:Int? var ReasonText:String? var IsBlock:Boolean? var ReasonTextPublic:String? var IsRecurring:Boolean? var ResourceIds:ArrayList? } interface IBookedTime : IInterval { var Id:Int? var ServiceId:Int? var BookedSpots:Int? var TotalSpots:Int? var PauseAfterInMinutes:Int? var Status:BookingStatusEnum? var StatusId:Int? var Customer:BookedCustomer? } open class ExceptionText { open var Reason:String? = null open var ReasonPublic:String? = null } interface IAvailableTime : IInterval { var Free:Int? }