/* Options: Date: 2024-12-03 18:15:43 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: DateScheduleQuery.* //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/date", Verbs="GET") @ValidateRequest(Validator="IsAuthenticated") public static class DateScheduleQuery 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="query") 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 dates for the schedule */ @ApiMember(DataType="bool", Description="If you want to include the connected dates for the schedule", ParameterType="query") public Boolean IncludeScheduleDates = 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; /** * 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; public UUID getCompanyId() { return CompanyId; } public DateScheduleQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public Date getValidFrom() { return ValidFrom; } public DateScheduleQuery setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public DateScheduleQuery setValidTo(Date value) { this.ValidTo = value; return this; } public Boolean isIncludeScheduleDates() { return IncludeScheduleDates; } public DateScheduleQuery setIncludeScheduleDates(Boolean value) { this.IncludeScheduleDates = value; return this; } public Boolean isIncludeConnectedResources() { return IncludeConnectedResources; } public DateScheduleQuery setIncludeConnectedResources(Boolean value) { this.IncludeConnectedResources = value; return this; } public Boolean isIncludeConnectedServices() { return IncludeConnectedServices; } public DateScheduleQuery setIncludeConnectedServices(Boolean value) { this.IncludeConnectedServices = value; return this; } public Boolean isActive() { return Active; } public DateScheduleQuery setActive(Boolean value) { this.Active = 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 DateSchedule extends BaseModel implements ISchedule, IBaseModelCreated, IBaseModelUpdated { @Ignore() public IList Dates = null; @Ignore() public ScheduleType Type = null; @Ignore() public IList Resources = null; @Ignore() public IList Services = null; @Ignore() public Boolean IsResourceSpecific = null; public ArrayList DateScheduleDate = null; public ArrayList DateScheduleResourceRelation = null; public ArrayList ServiceDateScheduleRelation = null; @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public String Name = null; @Required() public String Description = null; @Required() public Date UpdatedDate = null; @Required() public Date CreatedDate = null; public Date ModifiedDate = null; @Required() public Boolean Active = null; public IList getDates() { return Dates; } public DateSchedule setDates(IList value) { this.Dates = value; return this; } public ScheduleType getType() { return Type; } public DateSchedule setType(ScheduleType value) { this.Type = value; return this; } public IList getResources() { return Resources; } public DateSchedule setResources(IList value) { this.Resources = value; return this; } public IList getServices() { return Services; } public DateSchedule setServices(IList value) { this.Services = value; return this; } public Boolean getIsResourceSpecific() { return IsResourceSpecific; } public DateSchedule setIsResourceSpecific(Boolean value) { this.IsResourceSpecific = value; return this; } public ArrayList getDateScheduleDate() { return DateScheduleDate; } public DateSchedule setDateScheduleDate(ArrayList value) { this.DateScheduleDate = value; return this; } public ArrayList getDateScheduleResourceRelation() { return DateScheduleResourceRelation; } public DateSchedule setDateScheduleResourceRelation(ArrayList value) { this.DateScheduleResourceRelation = value; return this; } public ArrayList getServiceDateScheduleRelation() { return ServiceDateScheduleRelation; } public DateSchedule setServiceDateScheduleRelation(ArrayList value) { this.ServiceDateScheduleRelation = value; return this; } public UUID getCompanyId() { return CompanyId; } public DateSchedule setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public DateSchedule setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public DateSchedule setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public DateSchedule setDescription(String value) { this.Description = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public DateSchedule setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public DateSchedule setCreatedDate(Date value) { this.CreatedDate = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public DateSchedule setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Boolean isActive() { return Active; } public DateSchedule 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 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 DateScheduleDateResponse { public Integer Id = null; public Date From = null; public Date To = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public DateScheduleDateResponse setId(Integer value) { this.Id = value; return this; } public Date getFrom() { return From; } public DateScheduleDateResponse setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public DateScheduleDateResponse setTo(Date value) { this.To = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public DateScheduleDateResponse 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 DateScheduleDate extends BaseModel implements IInterval, IBaseModelCreated, IBaseModelUpdated { @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public Integer DateScheduleId = null; @Required() public Date UpdatedDate = null; @Required() public Date CreatedDate = null; public Date ModifiedDate = null; @Required() public Date From = null; @Required() public Date To = null; public UUID getCompanyId() { return CompanyId; } public DateScheduleDate setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public DateScheduleDate setId(Integer value) { this.Id = value; return this; } public Integer getDateScheduleId() { return DateScheduleId; } public DateScheduleDate setDateScheduleId(Integer value) { this.DateScheduleId = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public DateScheduleDate setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public DateScheduleDate setCreatedDate(Date value) { this.CreatedDate = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public DateScheduleDate setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Date getFrom() { return From; } public DateScheduleDate setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public DateScheduleDate setTo(Date value) { this.To = value; return this; } } public static class DateScheduleResourceRelation extends BaseModel { @Required() public UUID CompanyId = null; @Required() public Integer DateScheduleId = null; @Required() public Integer ResourceId = null; public Integer Id = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public DateScheduleResourceRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getDateScheduleId() { return DateScheduleId; } public DateScheduleResourceRelation setDateScheduleId(Integer value) { this.DateScheduleId = value; return this; } public Integer getResourceId() { return ResourceId; } public DateScheduleResourceRelation setResourceId(Integer value) { this.ResourceId = value; return this; } public Integer getId() { return Id; } public DateScheduleResourceRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public DateScheduleResourceRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class ServiceDateScheduleRelation extends BaseModel { @Required() public UUID CompanyId = null; @Required() public Integer ServiceId = null; @Required() public Integer DateScheduleId = null; public Integer Id = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public ServiceDateScheduleRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getServiceId() { return ServiceId; } public ServiceDateScheduleRelation setServiceId(Integer value) { this.ServiceId = value; return this; } public Integer getDateScheduleId() { return DateScheduleId; } public ServiceDateScheduleRelation setDateScheduleId(Integer value) { this.DateScheduleId = value; return this; } public Integer getId() { return Id; } public ServiceDateScheduleRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public ServiceDateScheduleRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class DateScheduleQueryResponse { /** * 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; /** * 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; /** * Schedule dates */ @ApiMember(Description="Schedule dates") public ArrayList ScheduleDates = 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 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; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public DateScheduleQueryResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public DateScheduleQueryResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public DateScheduleQueryResponse setDescription(String value) { this.Description = value; return this; } public Boolean isActive() { return Active; } public DateScheduleQueryResponse setActive(Boolean value) { this.Active = value; return this; } public Boolean getIsResourceSpecific() { return IsResourceSpecific; } public DateScheduleQueryResponse setIsResourceSpecific(Boolean value) { this.IsResourceSpecific = value; return this; } public ArrayList getScheduleDates() { return ScheduleDates; } public DateScheduleQueryResponse setScheduleDates(ArrayList value) { this.ScheduleDates = value; return this; } public ArrayList getResources() { return Resources; } public DateScheduleQueryResponse setResources(ArrayList value) { this.Resources = value; return this; } public ArrayList getServices() { return Services; } public DateScheduleQueryResponse setServices(ArrayList value) { this.Services = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public DateScheduleQueryResponse setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public DateScheduleQueryResponse setCreatedDate(Date value) { this.CreatedDate = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public DateScheduleQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } }