/* Options: Date: 2024-12-03 18:26:54 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: UpdateRecurringSchedule.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial 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)] public virtual DateTime Date { get; set; } /// ///The time for the schedule opening hours (starttime) /// [ApiMember(Description="The time for the schedule opening hours (starttime)", IsRequired=true)] public virtual TimeSpan StartTime { get; set; } /// ///The time for the schedule opening hours (endtime) /// [ApiMember(Description="The time for the schedule opening hours (endtime)", IsRequired=true)] public virtual TimeSpan EndTime { get; set; } } public partial class AddScheduleResource { /// ///The resource id /// [ApiMember(Description="The resource id", IsRequired=true)] public virtual int Id { get; set; } } public partial class AddScheduleService { /// ///The service id /// [ApiMember(Description="The service id", IsRequired=true)] public virtual int Id { get; set; } } public partial class DayOfWeekDto { public virtual int DayOfWeekId { get; set; } public virtual int DotNetDayOfWeekId { get; set; } public virtual string DayOfWeek { get; set; } } public partial class RecurringScheduleDateResponse { public virtual int Id { get; set; } public virtual DateTime Date { get; set; } public virtual TimeSpan StartTime { get; set; } public virtual TimeSpan EndTime { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } public partial class RecurringScheduleExceptionResponse { /// ///Start time of the schedule exception. /// [ApiMember(Description="Start time of the schedule exception.")] public virtual TimeSpan StartTime { get; set; } /// ///End time of the schedule exception. /// [ApiMember(Description="End time of the schedule exception.")] public virtual TimeSpan EndTime { get; set; } } public partial class RecurringScheduleQueryResponse { public RecurringScheduleQueryResponse() { DaysOfWeek = new List{}; Resources = new List{}; Services = new List{}; Exceptions = new List{}; ScheduleDates = new List{}; } /// ///The schedule id /// [ApiMember(Description="The schedule id")] public virtual int Id { get; set; } /// ///Name of the schedule /// [ApiMember(Description="Name of the schedule")] public virtual string Name { get; set; } /// ///Description of the schedule /// [ApiMember(Description="Description of the schedule")] public virtual string Description { get; set; } /// ///If the schedule is active or not /// [ApiMember(Description="If the schedule is active or not")] public virtual bool Active { get; set; } /// ///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-10PM 09:15AM-10:15PM, 09:30AM-10:30PM , ..... 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-10PM 09:15AM-10:15PM, 09:30AM-10:30PM , ..... 04:45PM-05:45, 05:00PM-06:00PM", IsRequired=true)] public virtual int TimeInterval { get; set; } /// ///The timestamp to which the schedule is valid from /// [ApiMember(Description="The timestamp to which the schedule is valid from", IsRequired=true)] public virtual DateTime ValidFrom { get; set; } /// ///The timestamp to which the schedule is valid to /// [ApiMember(Description="The timestamp to which the schedule is valid to", IsRequired=true)] public virtual DateTime ValidTo { get; set; } /// ///The time for the schedule opening hours (starttime) /// [ApiMember(Description="The time for the schedule opening hours (starttime)", IsRequired=true)] public virtual TimeSpan StartTime { get; set; } /// ///The time for the schedule opening hours (endtime) /// [ApiMember(Description="The time for the schedule opening hours (endtime)", IsRequired=true)] public virtual TimeSpan EndTime { get; set; } /// ///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)] public virtual int NumberOfScheduleDays { get; set; } /// ///If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this. /// [ApiMember(Description="If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this.", IsRequired=true)] public virtual bool? IsResourceSpecific { get; set; } /// ///The timestamp when the schedule was updated /// [ApiMember(Description="The timestamp when the schedule was updated", IsRequired=true)] public virtual DateTime UpdatedDate { get; set; } /// ///The timestamp when the schedule was created /// [ApiMember(Description="The timestamp when the schedule was created", IsRequired=true)] public virtual DateTime CreatedDate { get; set; } /// ///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)] public virtual bool EnableBookingUntilClosingTime { get; set; } /// ///If recurring, an array indicating which days of the week the exception 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 exception 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")] public virtual List DaysOfWeek { get; set; } /// ///The resources that is connected to the schedule /// [ApiMember(Description="The resources that is connected to the schedule")] public virtual List Resources { get; set; } /// ///The services that is connected to the schedule /// [ApiMember(Description="The services that is connected to the schedule")] public virtual List Services { get; set; } /// ///The exceptions that is added to the schedule /// [ApiMember(Description="The exceptions that is added to the schedule")] public virtual List Exceptions { get; set; } /// ///Schedule dates, used when the schedule is not a rolling schedule using days of week /// [ApiMember(Description="Schedule dates, used when the schedule is not a rolling schedule using days of week")] public virtual List ScheduleDates { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } public partial class ScheduleException { public virtual TimeSpan StartTime { get; set; } public virtual TimeSpan EndTime { get; set; } } public partial class ScheduleResources { public virtual int Id { get; set; } /// ///Name of the resource /// [ApiMember(Description="Name of the resource")] public virtual string Name { get; set; } /// ///The image url of the resource /// [ApiMember(Description="The image url of the resource")] public virtual Uri ImageUrl { get; set; } } public partial class ScheduleServices { public virtual int Id { get; set; } /// ///Name of the service /// [ApiMember(Description="Name of the service")] public virtual string Name { get; set; } /// ///The image url of the service /// [ApiMember(Description="The image url of the service")] public virtual Uri ImageUrl { get; set; } } [Route("/schedules/recurring/{Id}", "PUT")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class UpdateRecurringSchedule : IReturn, ICompany { public UpdateRecurringSchedule() { DaysOfWeek = new int[]{}; ScheduleDates = new List{}; Exceptions = new List{}; Resources = new List{}; Services = new List{}; } /// ///Id of the schedule to update /// [ApiMember(Description="Id of the schedule to update", IsRequired=true, ParameterType="path")] public virtual int Id { get; set; } /// ///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.")] public virtual Guid? CompanyId { get; set; } /// ///The schedule name /// [ApiMember(Description="The schedule name")] public virtual string Name { get; set; } /// ///The schedule description /// [ApiMember(Description="The schedule description")] public virtual string Description { get; set; } /// ///If schedule is active or not /// [ApiMember(Description="If schedule is active or not")] public virtual bool? Active { get; set; } /// ///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-10PM 09:15AM-10:15PM, 09:30AM-10:30PM , ..... 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-10PM 09:15AM-10:15PM, 09:30AM-10:30PM , ..... 04:45PM-05:45, 05:00PM-06:00PM", IsRequired=true)] public virtual int? TimeInterval { get; set; } /// ///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)] public virtual bool? EnableBookingUntilClosingTime { get; set; } /// ///The timestamp to which the schedule is valid from /// [ApiMember(Description="The timestamp to which the schedule is valid from", IsRequired=true)] public virtual DateTime? ValidFrom { get; set; } /// ///The timestamp to which the schedule is valid to /// [ApiMember(Description="The timestamp to which the schedule is valid to", IsRequired=true)] public virtual DateTime? ValidTo { get; set; } /// ///The time for the schedule opening hours (starttime) /// [ApiMember(Description="The time for the schedule opening hours (starttime)", IsRequired=true)] public virtual TimeSpan? StartTime { get; set; } /// ///The time for the schedule opening hours (endtime) /// [ApiMember(Description="The time for the schedule opening hours (endtime)", IsRequired=true)] public virtual TimeSpan? EndTime { get; set; } /// ///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)] public virtual int? NumberOfScheduleDays { get; set; } /// ///A comma separated list of which days this day exception belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. /// [ApiMember(Description="A comma separated list of which days this day exception belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")] public virtual int[] DaysOfWeek { get; set; } /// ///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.")] public virtual List ScheduleDates { get; set; } /// ///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.")] public virtual List Exceptions { get; set; } /// ///If the schedule is only connected to some resources, add them here. If empty, it will be used by all resources. /// [ApiMember(Description="If the schedule is only connected to some resources, add them here. If empty, it will be used by all resources.")] public virtual List Resources { get; set; } /// ///Set what services the schedule should be connected to. /// [ApiMember(Description="Set what services the schedule should be connected to.")] public virtual List Services { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }