/* Options: Date: 2024-12-03 18:10:45 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: RecuringScheduleQuery.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/schedules/recurring", Verbs="GET") @ValidateRequest(Validator="IsAuthenticated") public static class RecuringScheduleQuery extends QueryDb implements IReturn> { /** * Enter the company you want to see news for, if blank and you are an admin, your company id will be used */ @ApiMember(Description="Enter the company you want to see news for, if blank and you are an admin, your company id will be used", ParameterType="path") public UUID CompanyId = null; /** * Enter the From Date you want to see news from, only allowed if admin */ @ApiMember(DataType="dateTime", Description="Enter the From Date you want to see news from, only allowed if admin", ParameterType="query") public Date ValidFrom = null; /** * Enter the To Date you want to see news to, only allowed if admin */ @ApiMember(DataType="dateTime", Description="Enter the To Date you want to see news to, only allowed if admin", ParameterType="query") public Date ValidTo = null; /** * If you want to include the connected days for the schedule */ @ApiMember(DataType="bool", Description="If you want to include the connected days for the schedule", ParameterType="query") public Boolean IncludeRecurringDays = null; /** * If you want to include the connected resources for the schedule */ @ApiMember(DataType="bool", Description="If you want to include the connected resources for the schedule", ParameterType="query") public Boolean IncludeConnectedResources = null; /** * If you want to include the connected services for the schedule */ @ApiMember(DataType="bool", Description="If you want to include the connected services for the schedule", ParameterType="query") public Boolean IncludeConnectedServices = null; /** * If you want to include the exceptions for the schedule */ @ApiMember(DataType="bool", Description="If you want to include the exceptions for the schedule", ParameterType="query") public Boolean IncludeExceptions = null; /** * Use this parameter if you want to only show active news */ @ApiMember(DataType="boolean", Description="Use this parameter if you want to only show active news") public Boolean Active = null; /** * If you want to include the connected dates for the schedule. This is used when the schedule having setting, different opening hours per week (not rolling schedule using days of week). */ @ApiMember(DataType="bool", Description="If you want to include the connected dates for the schedule. This is used when the schedule having setting, different opening hours per week (not rolling schedule using days of week).", ParameterType="query") public Boolean IncludeScheduleDates = null; public UUID getCompanyId() { return CompanyId; } public RecuringScheduleQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public Date getValidFrom() { return ValidFrom; } public RecuringScheduleQuery setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public RecuringScheduleQuery setValidTo(Date value) { this.ValidTo = value; return this; } public Boolean isIncludeRecurringDays() { return IncludeRecurringDays; } public RecuringScheduleQuery setIncludeRecurringDays(Boolean value) { this.IncludeRecurringDays = value; return this; } public Boolean isIncludeConnectedResources() { return IncludeConnectedResources; } public RecuringScheduleQuery setIncludeConnectedResources(Boolean value) { this.IncludeConnectedResources = value; return this; } public Boolean isIncludeConnectedServices() { return IncludeConnectedServices; } public RecuringScheduleQuery setIncludeConnectedServices(Boolean value) { this.IncludeConnectedServices = value; return this; } public Boolean isIncludeExceptions() { return IncludeExceptions; } public RecuringScheduleQuery setIncludeExceptions(Boolean value) { this.IncludeExceptions = value; return this; } public Boolean isActive() { return Active; } public RecuringScheduleQuery setActive(Boolean value) { this.Active = value; return this; } public Boolean isIncludeScheduleDates() { return IncludeScheduleDates; } public RecuringScheduleQuery setIncludeScheduleDates(Boolean value) { this.IncludeScheduleDates = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } @DataContract public static class QueryResponse { @DataMember(Order=1) public Integer Offset = null; @DataMember(Order=2) public Integer Total = null; @DataMember(Order=3) public ArrayList Results = null; @DataMember(Order=4) public HashMap Meta = null; @DataMember(Order=5) public ResponseStatus ResponseStatus = null; public Integer getOffset() { return Offset; } public QueryResponse setOffset(Integer value) { this.Offset = value; return this; } public Integer getTotal() { return Total; } public QueryResponse setTotal(Integer value) { this.Total = value; return this; } public ArrayList getResults() { return Results; } public QueryResponse setResults(ArrayList value) { this.Results = value; return this; } public HashMap getMeta() { return Meta; } public QueryResponse setMeta(HashMap value) { this.Meta = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public QueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class QueryDb extends QueryBase { } public static enum BookingStatusEnum { Booked(1), Unbooked(2), Reserved(3), Canceled(4), AwaitingPayment(5), AwaitingPaymentNoTimeLimit(6), Payed(7), AwaitingPaymentRequestFromAdmin(8), AwaitingPaymentFromProvider(9), Invoiced(10); private final int value; BookingStatusEnum(final int intValue) { value = intValue; } public int getValue() { return value; } } public static interface IInterval { public Date From = null; public Date To = null; } public static class CustomFieldConfig extends BaseModel { @Ignore() public ArrayList Values = null; public CustomField CustomField = null; @Ignore() public RegEx RegEx = null; @Ignore() public ArrayList Services = null; public ArrayList CustomFieldServiceRelation = null; @Required() public UUID CompanyId = null; public Integer Id = null; public Integer GroupId = null; @Required() public Integer FieldId = null; @Required() public Integer IconId = null; public Integer RegExId = null; @Required() public String Name = null; @Required() public String Description = null; @Required() public String Datatype = null; @Required() public Integer MaxLength = null; @Required() public Boolean IsPublic = null; @Required() public Boolean IsHidden = null; @Required() public Boolean IsMandatory = null; public String DefaultValue = null; public String RegExErrorMessage = null; public String MandatoryErrorMessage = null; public Integer Width = null; @Required() public Boolean MultipleLineText = null; public Date ModifiedDate = null; public ArrayList getValues() { return Values; } public CustomFieldConfig setValues(ArrayList value) { this.Values = value; return this; } public CustomField getCustomField() { return CustomField; } public CustomFieldConfig setCustomField(CustomField value) { this.CustomField = value; return this; } public RegEx getRegEx() { return RegEx; } public CustomFieldConfig setRegEx(RegEx value) { this.RegEx = value; return this; } public ArrayList getServices() { return Services; } public CustomFieldConfig setServices(ArrayList value) { this.Services = value; return this; } public ArrayList getCustomFieldServiceRelation() { return CustomFieldServiceRelation; } public CustomFieldConfig setCustomFieldServiceRelation(ArrayList value) { this.CustomFieldServiceRelation = value; return this; } public UUID getCompanyId() { return CompanyId; } public CustomFieldConfig setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public CustomFieldConfig setId(Integer value) { this.Id = value; return this; } public Integer getGroupId() { return GroupId; } public CustomFieldConfig setGroupId(Integer value) { this.GroupId = value; return this; } public Integer getFieldId() { return FieldId; } public CustomFieldConfig setFieldId(Integer value) { this.FieldId = value; return this; } public Integer getIconId() { return IconId; } public CustomFieldConfig setIconId(Integer value) { this.IconId = value; return this; } public Integer getRegExId() { return RegExId; } public CustomFieldConfig setRegExId(Integer value) { this.RegExId = value; return this; } public String getName() { return Name; } public CustomFieldConfig setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public CustomFieldConfig setDescription(String value) { this.Description = value; return this; } public String getDatatype() { return Datatype; } public CustomFieldConfig setDatatype(String value) { this.Datatype = value; return this; } public Integer getMaxLength() { return MaxLength; } public CustomFieldConfig setMaxLength(Integer value) { this.MaxLength = value; return this; } public Boolean getIsPublic() { return IsPublic; } public CustomFieldConfig setIsPublic(Boolean value) { this.IsPublic = value; return this; } public Boolean getIsHidden() { return IsHidden; } public CustomFieldConfig setIsHidden(Boolean value) { this.IsHidden = value; return this; } public Boolean getIsMandatory() { return IsMandatory; } public CustomFieldConfig setIsMandatory(Boolean value) { this.IsMandatory = value; return this; } public String getDefaultValue() { return DefaultValue; } public CustomFieldConfig setDefaultValue(String value) { this.DefaultValue = value; return this; } public String getRegExErrorMessage() { return RegExErrorMessage; } public CustomFieldConfig setRegExErrorMessage(String value) { this.RegExErrorMessage = value; return this; } public String getMandatoryErrorMessage() { return MandatoryErrorMessage; } public CustomFieldConfig setMandatoryErrorMessage(String value) { this.MandatoryErrorMessage = value; return this; } public Integer getWidth() { return Width; } public CustomFieldConfig setWidth(Integer value) { this.Width = value; return this; } public Boolean isMultipleLineText() { return MultipleLineText; } public CustomFieldConfig setMultipleLineText(Boolean value) { this.MultipleLineText = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public CustomFieldConfig setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class Resource extends BaseModel implements ICustomFieldTable, IBaseModelCreated, IBaseModelUpdated { @Ignore() public Integer Priority = null; @Ignore() public IList Schedules = null; @Ignore() public IList Exceptions = null; @Ignore() public IList Bookings = null; @Ignore() public IList CustomFieldsConfig = null; @Ignore() public IList CustomFieldsData = null; @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public String Name = null; @Required() public Boolean Active = null; public String Description = null; public String ImageUrl = null; @Required() public Date UpdatedDate = null; @Required() public Date CreatedDate = null; @Required() public String Color = null; public String Email = null; public String MobilePhone = null; public Boolean EmailNotification = null; public Boolean SMSNotification = null; @Required() public Boolean SendSMSReminder = null; @Required() public Boolean SendEmailReminder = null; public Date ModifiedDate = null; public String AccessGroup = null; public String TextField1 = null; public String TextField2 = null; public String TextField3 = null; public String TextField4 = null; public String TextField5 = null; public String TextField6 = null; public String TextField7 = null; public String TextField8 = null; public String TextField9 = null; public String TextField10 = null; public String TextField11 = null; public String TextField12 = null; public String TextField13 = null; public String TextField14 = null; public String TextField15 = null; public String TextField16 = null; public String TextField17 = null; public String TextField18 = null; public String TextField19 = null; public String TextField20 = null; public Integer getPriority() { return Priority; } public Resource setPriority(Integer value) { this.Priority = value; return this; } public IList getSchedules() { return Schedules; } public Resource setSchedules(IList value) { this.Schedules = value; return this; } public IList getExceptions() { return Exceptions; } public Resource setExceptions(IList value) { this.Exceptions = value; return this; } public IList getBookings() { return Bookings; } public Resource setBookings(IList value) { this.Bookings = value; return this; } public IList getCustomFieldsConfig() { return CustomFieldsConfig; } public Resource setCustomFieldsConfig(IList value) { this.CustomFieldsConfig = value; return this; } public IList getCustomFieldsData() { return CustomFieldsData; } public Resource setCustomFieldsData(IList value) { this.CustomFieldsData = value; return this; } public UUID getCompanyId() { return CompanyId; } public Resource setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public Resource setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public Resource setName(String value) { this.Name = value; return this; } public Boolean isActive() { return Active; } public Resource setActive(Boolean value) { this.Active = value; return this; } public String getDescription() { return Description; } public Resource setDescription(String value) { this.Description = value; return this; } public String getImageUrl() { return ImageUrl; } public Resource setImageUrl(String value) { this.ImageUrl = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public Resource setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public Resource setCreatedDate(Date value) { this.CreatedDate = value; return this; } public String getColor() { return Color; } public Resource setColor(String value) { this.Color = value; return this; } public String getEmail() { return Email; } public Resource setEmail(String value) { this.Email = value; return this; } public String getMobilePhone() { return MobilePhone; } public Resource setMobilePhone(String value) { this.MobilePhone = value; return this; } public Boolean isEmailNotification() { return EmailNotification; } public Resource setEmailNotification(Boolean value) { this.EmailNotification = value; return this; } public Boolean isSmsNotification() { return SMSNotification; } public Resource setSmsNotification(Boolean value) { this.SMSNotification = value; return this; } public Boolean isSendSMSReminder() { return SendSMSReminder; } public Resource setSendSMSReminder(Boolean value) { this.SendSMSReminder = value; return this; } public Boolean isSendEmailReminder() { return SendEmailReminder; } public Resource setSendEmailReminder(Boolean value) { this.SendEmailReminder = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public Resource setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public String getAccessGroup() { return AccessGroup; } public Resource setAccessGroup(String value) { this.AccessGroup = value; return this; } public String getTextField1() { return TextField1; } public Resource setTextField1(String value) { this.TextField1 = value; return this; } public String getTextField2() { return TextField2; } public Resource setTextField2(String value) { this.TextField2 = value; return this; } public String getTextField3() { return TextField3; } public Resource setTextField3(String value) { this.TextField3 = value; return this; } public String getTextField4() { return TextField4; } public Resource setTextField4(String value) { this.TextField4 = value; return this; } public String getTextField5() { return TextField5; } public Resource setTextField5(String value) { this.TextField5 = value; return this; } public String getTextField6() { return TextField6; } public Resource setTextField6(String value) { this.TextField6 = value; return this; } public String getTextField7() { return TextField7; } public Resource setTextField7(String value) { this.TextField7 = value; return this; } public String getTextField8() { return TextField8; } public Resource setTextField8(String value) { this.TextField8 = value; return this; } public String getTextField9() { return TextField9; } public Resource setTextField9(String value) { this.TextField9 = value; return this; } public String getTextField10() { return TextField10; } public Resource setTextField10(String value) { this.TextField10 = value; return this; } public String getTextField11() { return TextField11; } public Resource setTextField11(String value) { this.TextField11 = value; return this; } public String getTextField12() { return TextField12; } public Resource setTextField12(String value) { this.TextField12 = value; return this; } public String getTextField13() { return TextField13; } public Resource setTextField13(String value) { this.TextField13 = value; return this; } public String getTextField14() { return TextField14; } public Resource setTextField14(String value) { this.TextField14 = value; return this; } public String getTextField15() { return TextField15; } public Resource setTextField15(String value) { this.TextField15 = value; return this; } public String getTextField16() { return TextField16; } public Resource setTextField16(String value) { this.TextField16 = value; return this; } public String getTextField17() { return TextField17; } public Resource setTextField17(String value) { this.TextField17 = value; return this; } public String getTextField18() { return TextField18; } public Resource setTextField18(String value) { this.TextField18 = value; return this; } public String getTextField19() { return TextField19; } public Resource setTextField19(String value) { this.TextField19 = value; return this; } public String getTextField20() { return TextField20; } public Resource setTextField20(String value) { this.TextField20 = value; return this; } } public static class RecurringSchedule extends BaseModel implements ISchedule, IBaseModelCreated, IBaseModelUpdated { @Ignore() public ScheduleType Type = null; @Ignore() public IList Dates = null; @Ignore() public IList Resources = null; @Ignore() public IList Services = null; public ArrayList RecurringScheduleResourceRelation = null; public ArrayList RecurringScheduleDates = null; public ArrayList RecurringScheduleDayOfWeekRelation = null; public ArrayList ServiceRecurringScheduleRelation = null; public ArrayList RecurringScheduleExceptions = null; @Ignore() public IList Exceptions = null; @Ignore() public Boolean IsRecurringByDayOfWeek = null; @Ignore() public Boolean IsRecurringByDates = null; @Ignore() public Boolean IsResourceSpecific = null; @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public String Name = null; @Required() public String Description = null; @Required() public Integer TimeInterval = null; @Required() public TimeSpan StartTime = null; @Required() public TimeSpan EndTime = null; @Required() public Integer NumberOfScheduleDays = null; @Required() public Date UpdatedDate = null; @Required() public Date CreatedDate = null; @Required() public Boolean EnableBookingUntilClosingTime = null; @Required() public Date ValidFrom = null; @Required() public Date ValidTo = null; public Date ModifiedDate = null; @Required() public Boolean Active = null; public ScheduleType getType() { return Type; } public RecurringSchedule setType(ScheduleType value) { this.Type = value; return this; } public IList getDates() { return Dates; } public RecurringSchedule setDates(IList value) { this.Dates = value; return this; } public IList getResources() { return Resources; } public RecurringSchedule setResources(IList value) { this.Resources = value; return this; } public IList getServices() { return Services; } public RecurringSchedule setServices(IList value) { this.Services = value; return this; } public ArrayList getRecurringScheduleResourceRelation() { return RecurringScheduleResourceRelation; } public RecurringSchedule setRecurringScheduleResourceRelation(ArrayList value) { this.RecurringScheduleResourceRelation = value; return this; } public ArrayList getRecurringScheduleDates() { return RecurringScheduleDates; } public RecurringSchedule setRecurringScheduleDates(ArrayList value) { this.RecurringScheduleDates = value; return this; } public ArrayList getRecurringScheduleDayOfWeekRelation() { return RecurringScheduleDayOfWeekRelation; } public RecurringSchedule setRecurringScheduleDayOfWeekRelation(ArrayList value) { this.RecurringScheduleDayOfWeekRelation = value; return this; } public ArrayList getServiceRecurringScheduleRelation() { return ServiceRecurringScheduleRelation; } public RecurringSchedule setServiceRecurringScheduleRelation(ArrayList value) { this.ServiceRecurringScheduleRelation = value; return this; } public ArrayList getRecurringScheduleExceptions() { return RecurringScheduleExceptions; } public RecurringSchedule setRecurringScheduleExceptions(ArrayList value) { this.RecurringScheduleExceptions = value; return this; } public IList getExceptions() { return Exceptions; } public RecurringSchedule setExceptions(IList value) { this.Exceptions = value; return this; } public Boolean getIsRecurringByDayOfWeek() { return IsRecurringByDayOfWeek; } public RecurringSchedule setIsRecurringByDayOfWeek(Boolean value) { this.IsRecurringByDayOfWeek = value; return this; } public Boolean getIsRecurringByDates() { return IsRecurringByDates; } public RecurringSchedule setIsRecurringByDates(Boolean value) { this.IsRecurringByDates = value; return this; } public Boolean getIsResourceSpecific() { return IsResourceSpecific; } public RecurringSchedule setIsResourceSpecific(Boolean value) { this.IsResourceSpecific = value; return this; } public UUID getCompanyId() { return CompanyId; } public RecurringSchedule setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public RecurringSchedule setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public RecurringSchedule setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public RecurringSchedule setDescription(String value) { this.Description = value; return this; } public Integer getTimeInterval() { return TimeInterval; } public RecurringSchedule setTimeInterval(Integer value) { this.TimeInterval = value; return this; } public TimeSpan getStartTime() { return StartTime; } public RecurringSchedule setStartTime(TimeSpan value) { this.StartTime = value; return this; } public TimeSpan getEndTime() { return EndTime; } public RecurringSchedule setEndTime(TimeSpan value) { this.EndTime = value; return this; } public Integer getNumberOfScheduleDays() { return NumberOfScheduleDays; } public RecurringSchedule setNumberOfScheduleDays(Integer value) { this.NumberOfScheduleDays = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public RecurringSchedule setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public RecurringSchedule setCreatedDate(Date value) { this.CreatedDate = value; return this; } public Boolean isEnableBookingUntilClosingTime() { return EnableBookingUntilClosingTime; } public RecurringSchedule setEnableBookingUntilClosingTime(Boolean value) { this.EnableBookingUntilClosingTime = value; return this; } public Date getValidFrom() { return ValidFrom; } public RecurringSchedule setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public RecurringSchedule setValidTo(Date value) { this.ValidTo = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RecurringSchedule setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Boolean isActive() { return Active; } public RecurringSchedule setActive(Boolean value) { this.Active = value; return this; } } public static class CustomFieldDataResponse { public Integer Id = null; public String Column = null; public String Name = null; public String Description = null; public String Value = 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'") public String DataType = null; public Integer getId() { return Id; } public CustomFieldDataResponse setId(Integer value) { this.Id = value; return this; } public String getColumn() { return Column; } public CustomFieldDataResponse setColumn(String value) { this.Column = value; return this; } public String getName() { return Name; } public CustomFieldDataResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public CustomFieldDataResponse setDescription(String value) { this.Description = value; return this; } public String getValue() { return Value; } public CustomFieldDataResponse setValue(String value) { this.Value = value; return this; } public String getDataType() { return DataType; } public CustomFieldDataResponse setDataType(String value) { this.DataType = value; return this; } } public static class BookedCustomer { public UUID Id = null; public String Firstname = null; public String Lastname = null; public String Email = null; public String Phone = null; public String FacebookUserName = null; public String ImageUrl = null; public String CorporateIdentityNumber = null; public String InvoiceAddress1 = null; public String InvoiceAddress2 = null; public String InvoiceCity = null; public String InvoicePostalCode = null; public String InvoiceCountryCode = null; public UUID getId() { return Id; } public BookedCustomer setId(UUID value) { this.Id = value; return this; } public String getFirstname() { return Firstname; } public BookedCustomer setFirstname(String value) { this.Firstname = value; return this; } public String getLastname() { return Lastname; } public BookedCustomer setLastname(String value) { this.Lastname = value; return this; } public String getEmail() { return Email; } public BookedCustomer setEmail(String value) { this.Email = value; return this; } public String getPhone() { return Phone; } public BookedCustomer setPhone(String value) { this.Phone = value; return this; } public String getFacebookUserName() { return FacebookUserName; } public BookedCustomer setFacebookUserName(String value) { this.FacebookUserName = value; return this; } public String getImageUrl() { return ImageUrl; } public BookedCustomer setImageUrl(String value) { this.ImageUrl = value; return this; } public String getCorporateIdentityNumber() { return CorporateIdentityNumber; } public BookedCustomer setCorporateIdentityNumber(String value) { this.CorporateIdentityNumber = value; return this; } public String getInvoiceAddress1() { return InvoiceAddress1; } public BookedCustomer setInvoiceAddress1(String value) { this.InvoiceAddress1 = value; return this; } public String getInvoiceAddress2() { return InvoiceAddress2; } public BookedCustomer setInvoiceAddress2(String value) { this.InvoiceAddress2 = value; return this; } public String getInvoiceCity() { return InvoiceCity; } public BookedCustomer setInvoiceCity(String value) { this.InvoiceCity = value; return this; } public String getInvoicePostalCode() { return InvoicePostalCode; } public BookedCustomer setInvoicePostalCode(String value) { this.InvoicePostalCode = value; return this; } public String getInvoiceCountryCode() { return InvoiceCountryCode; } public BookedCustomer setInvoiceCountryCode(String value) { this.InvoiceCountryCode = value; return this; } } public static class DayOfWeekDto { public Integer DayOfWeekId = null; public Integer DotNetDayOfWeekId = null; public String DayOfWeek = null; public Integer getDayOfWeekId() { return DayOfWeekId; } public DayOfWeekDto setDayOfWeekId(Integer value) { this.DayOfWeekId = value; return this; } public Integer getDotNetDayOfWeekId() { return DotNetDayOfWeekId; } public DayOfWeekDto setDotNetDayOfWeekId(Integer value) { this.DotNetDayOfWeekId = value; return this; } public String getDayOfWeek() { return DayOfWeek; } public DayOfWeekDto setDayOfWeek(String value) { this.DayOfWeek = value; return this; } } public static class ScheduleResources { public Integer Id = null; /** * Name of the resource */ @ApiMember(Description="Name of the resource") public String Name = null; /** * The image url of the resource */ @ApiMember(Description="The image url of the resource") public Uri ImageUrl = null; public Integer getId() { return Id; } public ScheduleResources setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public ScheduleResources setName(String value) { this.Name = value; return this; } public Uri getImageUrl() { return ImageUrl; } public ScheduleResources setImageUrl(Uri value) { this.ImageUrl = value; return this; } } public static class ScheduleServices { public Integer Id = null; /** * Name of the service */ @ApiMember(Description="Name of the service") public String Name = null; /** * The image url of the service */ @ApiMember(Description="The image url of the service") public Uri ImageUrl = null; public Integer getId() { return Id; } public ScheduleServices setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public ScheduleServices setName(String value) { this.Name = value; return this; } public Uri getImageUrl() { return ImageUrl; } public ScheduleServices setImageUrl(Uri value) { this.ImageUrl = value; return this; } } public static class RecurringScheduleExceptionResponse { /** * Start time of the schedule exception. */ @ApiMember(Description="Start time of the schedule exception.") public TimeSpan StartTime = null; /** * End time of the schedule exception. */ @ApiMember(Description="End time of the schedule exception.") public TimeSpan EndTime = null; public TimeSpan getStartTime() { return StartTime; } public RecurringScheduleExceptionResponse setStartTime(TimeSpan value) { this.StartTime = value; return this; } public TimeSpan getEndTime() { return EndTime; } public RecurringScheduleExceptionResponse setEndTime(TimeSpan value) { this.EndTime = value; return this; } } public static class RecurringScheduleDateResponse { public Integer Id = null; public Date Date = null; public TimeSpan StartTime = null; public TimeSpan EndTime = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public RecurringScheduleDateResponse setId(Integer value) { this.Id = value; return this; } public Date getDate() { return Date; } public RecurringScheduleDateResponse setDate(Date value) { this.Date = value; return this; } public TimeSpan getStartTime() { return StartTime; } public RecurringScheduleDateResponse setStartTime(TimeSpan value) { this.StartTime = value; return this; } public TimeSpan getEndTime() { return EndTime; } public RecurringScheduleDateResponse setEndTime(TimeSpan value) { this.EndTime = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public RecurringScheduleDateResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static enum ScheduleType { NotDefined, RecurringSchedule, DateSchedule; } @DataContract public static class QueryBase { /** * Skip over a given number of elements in a sequence and then return the remainder. Use this when you need paging.

Example:
?skip=10&orderBy=Id */ @DataMember(Order=1) public Integer Skip = null; /** * Return a given number of elements in a sequence and then skip over the remainder. Use this when you need paging.

Example:
?take=20 */ @DataMember(Order=2) public Integer Take = null; /** * Comma separated list of fields to order by. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderBy=Id,-Age,FirstName */ @DataMember(Order=3) public String OrderBy = null; /** * Comma separated list of fields to order by in descending order. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderByDesc=Id,-Age,FirstName */ @DataMember(Order=4) public String OrderByDesc = null; /** * Include any of the aggregates AVG, COUNT, FIRST, LAST, MAX, MIN, SUM in your result set. The results will be returned in the meta field.

Example:
?include=COUNT(*) as Total

or multiple fields with
?include=Count(*) Total, Min(Age), AVG(Age) AverageAge

or unique with
?include=COUNT(DISTINCT LivingStatus) as UniqueStatus */ @DataMember(Order=5) public String Include = null; @DataMember(Order=6) public String Fields = null; @DataMember(Order=7) public HashMap Meta = null; public Integer getSkip() { return Skip; } public QueryBase setSkip(Integer value) { this.Skip = value; return this; } public Integer getTake() { return Take; } public QueryBase setTake(Integer value) { this.Take = value; return this; } public String getOrderBy() { return OrderBy; } public QueryBase setOrderBy(String value) { this.OrderBy = value; return this; } public String getOrderByDesc() { return OrderByDesc; } public QueryBase setOrderByDesc(String value) { this.OrderByDesc = value; return this; } public String getInclude() { return Include; } public QueryBase setInclude(String value) { this.Include = value; return this; } public String getFields() { return Fields; } public QueryBase setFields(String value) { this.Fields = value; return this; } public HashMap getMeta() { return Meta; } public QueryBase setMeta(HashMap value) { this.Meta = value; return this; } } public static class BaseModel { } public static interface IBaseModelCreated { public Date CreatedDate = null; } public static interface IBaseModelUpdated { public Date UpdatedDate = null; } public static interface ICustomFieldTable { public IList CustomFieldsConfig = null; public IList CustomFieldsData = null; public String TextField1 = null; public String TextField2 = null; public String TextField3 = null; public String TextField4 = null; public String TextField5 = null; public String TextField6 = null; public String TextField7 = null; public String TextField8 = null; public String TextField9 = null; public String TextField10 = null; public String TextField11 = null; public String TextField12 = null; public String TextField13 = null; public String TextField14 = null; public String TextField15 = null; public String TextField16 = null; public String TextField17 = null; public String TextField18 = null; public String TextField19 = null; public String TextField20 = null; } public static class CustomFieldValue extends BaseModel { @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public String Value = null; @Required() public Boolean Active = null; public Short SortOrder = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public CustomFieldValue setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public CustomFieldValue setId(Integer value) { this.Id = value; return this; } public String getValue() { return Value; } public CustomFieldValue setValue(String value) { this.Value = value; return this; } public Boolean isActive() { return Active; } public CustomFieldValue setActive(Boolean value) { this.Active = value; return this; } public Short getSortOrder() { return SortOrder; } public CustomFieldValue setSortOrder(Short value) { this.SortOrder = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public CustomFieldValue setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class CustomField extends BaseModel { @Required() public String Table = null; @Required() public String Column = null; @Required() public String DataType = null; @Required() public String Description = null; @Required() public Boolean Active = null; public Date ModifiedDate = null; public Integer Id = null; public String getTable() { return Table; } public CustomField setTable(String value) { this.Table = value; return this; } public String getColumn() { return Column; } public CustomField setColumn(String value) { this.Column = value; return this; } public String getDataType() { return DataType; } public CustomField setDataType(String value) { this.DataType = value; return this; } public String getDescription() { return Description; } public CustomField setDescription(String value) { this.Description = value; return this; } public Boolean isActive() { return Active; } public CustomField setActive(Boolean value) { this.Active = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public CustomField setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public CustomField setId(Integer value) { this.Id = value; return this; } } public static class RegEx extends BaseModel { @Required() public String Name = null; @Required() public String Description = null; @Required() public String RegExCode = null; public String ErrorMessage = null; public Date ModifiedDate = null; public Integer Id = null; public String getName() { return Name; } public RegEx setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public RegEx setDescription(String value) { this.Description = value; return this; } public String getRegExCode() { return RegExCode; } public RegEx setRegExCode(String value) { this.RegExCode = value; return this; } public String getErrorMessage() { return ErrorMessage; } public RegEx setErrorMessage(String value) { this.ErrorMessage = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RegEx setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public RegEx setId(Integer value) { this.Id = value; return this; } } public static class CustomFieldServiceRelation extends BaseModel { @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public Integer CustomFieldConfigId = null; @Required() public Integer ServiceId = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public CustomFieldServiceRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public CustomFieldServiceRelation setId(Integer value) { this.Id = value; return this; } public Integer getCustomFieldConfigId() { return CustomFieldConfigId; } public CustomFieldServiceRelation setCustomFieldConfigId(Integer value) { this.CustomFieldConfigId = value; return this; } public Integer getServiceId() { return ServiceId; } public CustomFieldServiceRelation setServiceId(Integer value) { this.ServiceId = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public CustomFieldServiceRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static interface ISchedule { public IList Resources = null; public ScheduleType Type = null; public Boolean Active = null; public Boolean IsResourceSpecific = null; } public static interface ITimeException implements IInterval { public Integer Id = null; public String ReasonText = null; public Boolean IsBlock = null; public String ReasonTextPublic = null; public Boolean IsRecurring = null; public ArrayList ResourceIds = null; } public static interface IBookedTime implements IInterval { public Integer Id = null; public Integer ServiceId = null; public Integer BookedSpots = null; public Integer TotalSpots = null; public Integer PauseAfterInMinutes = null; public BookingStatusEnum Status = null; public Integer StatusId = null; public BookedCustomer Customer = null; } public static class RecurringScheduleDate extends BaseModel implements IInterval { @Ignore() public Date From = null; @Ignore() public Date To = null; @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public Integer RecurringScheduleId = null; @Required() public Date Date = null; @Required() public TimeSpan StartTime = null; @Required() public TimeSpan EndTime = null; public Date ModifiedDate = null; public Date getFrom() { return From; } public RecurringScheduleDate setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public RecurringScheduleDate setTo(Date value) { this.To = value; return this; } public UUID getCompanyId() { return CompanyId; } public RecurringScheduleDate setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public RecurringScheduleDate setId(Integer value) { this.Id = value; return this; } public Integer getRecurringScheduleId() { return RecurringScheduleId; } public RecurringScheduleDate setRecurringScheduleId(Integer value) { this.RecurringScheduleId = value; return this; } public Date getDate() { return Date; } public RecurringScheduleDate setDate(Date value) { this.Date = value; return this; } public TimeSpan getStartTime() { return StartTime; } public RecurringScheduleDate setStartTime(TimeSpan value) { this.StartTime = value; return this; } public TimeSpan getEndTime() { return EndTime; } public RecurringScheduleDate setEndTime(TimeSpan value) { this.EndTime = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RecurringScheduleDate setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class RecurringScheduleResourceRelation extends BaseModel { @Required() public UUID CompanyId = null; @Required() public Integer RecurringScheduleId = null; @Required() public Integer ResourceId = null; public Integer Id = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public RecurringScheduleResourceRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getRecurringScheduleId() { return RecurringScheduleId; } public RecurringScheduleResourceRelation setRecurringScheduleId(Integer value) { this.RecurringScheduleId = value; return this; } public Integer getResourceId() { return ResourceId; } public RecurringScheduleResourceRelation setResourceId(Integer value) { this.ResourceId = value; return this; } public Integer getId() { return Id; } public RecurringScheduleResourceRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RecurringScheduleResourceRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class RecurringScheduleDayOfWeekRelation extends BaseModel { @Ignore() public BokaMeraDayOfWeek DayOfWeek = null; @Required() public Integer DayOfWeekId = null; @Required() public UUID CompanyId = null; @Required() public Integer RecurringScheduleId = null; public Integer Id = null; public Date ModifiedDate = null; public BokaMeraDayOfWeek getDayOfWeek() { return DayOfWeek; } public RecurringScheduleDayOfWeekRelation setDayOfWeek(BokaMeraDayOfWeek value) { this.DayOfWeek = value; return this; } public Integer getDayOfWeekId() { return DayOfWeekId; } public RecurringScheduleDayOfWeekRelation setDayOfWeekId(Integer value) { this.DayOfWeekId = value; return this; } public UUID getCompanyId() { return CompanyId; } public RecurringScheduleDayOfWeekRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getRecurringScheduleId() { return RecurringScheduleId; } public RecurringScheduleDayOfWeekRelation setRecurringScheduleId(Integer value) { this.RecurringScheduleId = value; return this; } public Integer getId() { return Id; } public RecurringScheduleDayOfWeekRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RecurringScheduleDayOfWeekRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class ServiceRecurringScheduleRelation extends BaseModel { @Required() public UUID CompanyId = null; @Required() public Integer ServiceId = null; @Required() public Integer RecurringScheduleId = null; public Integer Id = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public ServiceRecurringScheduleRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getServiceId() { return ServiceId; } public ServiceRecurringScheduleRelation setServiceId(Integer value) { this.ServiceId = value; return this; } public Integer getRecurringScheduleId() { return RecurringScheduleId; } public ServiceRecurringScheduleRelation setRecurringScheduleId(Integer value) { this.RecurringScheduleId = value; return this; } public Integer getId() { return Id; } public ServiceRecurringScheduleRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public ServiceRecurringScheduleRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class RecurringScheduleException extends BaseModel implements IScheduleException { @Required() public UUID CompanyId = null; @Required() public Integer RecurringScheduleId = null; public Integer Id = null; public Date ModifiedDate = null; @Required() public TimeSpan StartTime = null; @Required() public TimeSpan EndTime = null; public UUID getCompanyId() { return CompanyId; } public RecurringScheduleException setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getRecurringScheduleId() { return RecurringScheduleId; } public RecurringScheduleException setRecurringScheduleId(Integer value) { this.RecurringScheduleId = value; return this; } public Integer getId() { return Id; } public RecurringScheduleException setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RecurringScheduleException setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public TimeSpan getStartTime() { return StartTime; } public RecurringScheduleException setStartTime(TimeSpan value) { this.StartTime = value; return this; } public TimeSpan getEndTime() { return EndTime; } public RecurringScheduleException setEndTime(TimeSpan value) { this.EndTime = value; return this; } } public static interface IScheduleException { public TimeSpan StartTime = null; public TimeSpan EndTime = null; } public static enum BokaMeraDayOfWeek { Monday(1), Tuesday(2), Wednesday(3), Thursday(4), Friday(5), Saturday(6), Sunday(7); private final int value; BokaMeraDayOfWeek(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class RecurringScheduleQueryResponse { /** * The schedule id */ @ApiMember(Description="The schedule id") public Integer Id = null; /** * Name of the schedule */ @ApiMember(Description="Name of the schedule") public String Name = null; /** * Description of the schedule */ @ApiMember(Description="Description of the schedule") public String Description = null; /** * If the schedule is active or not */ @ApiMember(Description="If the schedule is active or not") public Boolean Active = 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-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 Integer TimeInterval = null; /** * The timestamp to which the schedule is valid from */ @ApiMember(Description="The timestamp to which the schedule is valid from", IsRequired=true) public Date ValidFrom = null; /** * The timestamp to which the schedule is valid to */ @ApiMember(Description="The timestamp to which the schedule is valid to", IsRequired=true) public Date ValidTo = null; /** * The time for the schedule opening hours (starttime) */ @ApiMember(Description="The time for the schedule opening hours (starttime)", IsRequired=true) public TimeSpan StartTime = null; /** * The time for the schedule opening hours (endtime) */ @ApiMember(Description="The time for the schedule opening hours (endtime)", IsRequired=true) public TimeSpan EndTime = 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) public Integer NumberOfScheduleDays = null; /** * 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 Boolean IsResourceSpecific = null; /** * The timestamp when the schedule was updated */ @ApiMember(Description="The timestamp when the schedule was updated", IsRequired=true) public Date UpdatedDate = null; /** * The timestamp when the schedule was created */ @ApiMember(Description="The timestamp when the schedule was created", IsRequired=true) public Date CreatedDate = 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) public Boolean EnableBookingUntilClosingTime = null; /** * 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 ArrayList DaysOfWeek = null; /** * The resources that is connected to the schedule */ @ApiMember(Description="The resources that is connected to the schedule") public ArrayList Resources = null; /** * The services that is connected to the schedule */ @ApiMember(Description="The services that is connected to the schedule") public ArrayList Services = null; /** * The exceptions that is added to the schedule */ @ApiMember(Description="The exceptions that is added to the schedule") public ArrayList Exceptions = null; /** * 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 ArrayList ScheduleDates = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public RecurringScheduleQueryResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public RecurringScheduleQueryResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public RecurringScheduleQueryResponse setDescription(String value) { this.Description = value; return this; } public Boolean isActive() { return Active; } public RecurringScheduleQueryResponse setActive(Boolean value) { this.Active = value; return this; } public Integer getTimeInterval() { return TimeInterval; } public RecurringScheduleQueryResponse setTimeInterval(Integer value) { this.TimeInterval = value; return this; } public Date getValidFrom() { return ValidFrom; } public RecurringScheduleQueryResponse setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public RecurringScheduleQueryResponse setValidTo(Date value) { this.ValidTo = value; return this; } public TimeSpan getStartTime() { return StartTime; } public RecurringScheduleQueryResponse setStartTime(TimeSpan value) { this.StartTime = value; return this; } public TimeSpan getEndTime() { return EndTime; } public RecurringScheduleQueryResponse setEndTime(TimeSpan value) { this.EndTime = value; return this; } public Integer getNumberOfScheduleDays() { return NumberOfScheduleDays; } public RecurringScheduleQueryResponse setNumberOfScheduleDays(Integer value) { this.NumberOfScheduleDays = value; return this; } public Boolean getIsResourceSpecific() { return IsResourceSpecific; } public RecurringScheduleQueryResponse setIsResourceSpecific(Boolean value) { this.IsResourceSpecific = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public RecurringScheduleQueryResponse setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public RecurringScheduleQueryResponse setCreatedDate(Date value) { this.CreatedDate = value; return this; } public Boolean isEnableBookingUntilClosingTime() { return EnableBookingUntilClosingTime; } public RecurringScheduleQueryResponse setEnableBookingUntilClosingTime(Boolean value) { this.EnableBookingUntilClosingTime = value; return this; } public ArrayList getDaysOfWeek() { return DaysOfWeek; } public RecurringScheduleQueryResponse setDaysOfWeek(ArrayList value) { this.DaysOfWeek = value; return this; } public ArrayList getResources() { return Resources; } public RecurringScheduleQueryResponse setResources(ArrayList value) { this.Resources = value; return this; } public ArrayList getServices() { return Services; } public RecurringScheduleQueryResponse setServices(ArrayList value) { this.Services = value; return this; } public ArrayList getExceptions() { return Exceptions; } public RecurringScheduleQueryResponse setExceptions(ArrayList value) { this.Exceptions = value; return this; } public ArrayList getScheduleDates() { return ScheduleDates; } public RecurringScheduleQueryResponse setScheduleDates(ArrayList value) { this.ScheduleDates = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public RecurringScheduleQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } }