/* Options: Date: 2024-07-03 12:59:42 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: ResourceTimeExceptionQuery.* //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="/timeexceptions", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) @ValidateRequest(Validator="IsAuthenticated") public static class ResourceTimeExceptionQuery extends QueryDb implements IReturn> { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public UUID CompanyId = null; /** * Enter the resource id's separated by comma that you want to see time exceptions for, if no value is given all time exceptions will be returned */ @ApiMember(Description="Enter the resource id's separated by comma that you want to see time exceptions for, if no value is given all time exceptions will be returned", ParameterType="query") public ArrayList ResourceIds = null; /** * Start of interval to query for time exceptions. UTC+0 and parameter as defined by date-time - RFC3339 */ @ApiMember(DataType="dateTime", Description="Start of interval to query for time exceptions. UTC+0 and parameter as defined by date-time - RFC3339") public Date TimeExceptionStart = null; /** * End of interval to query for time exceptions. UTC+0 and parameter as defined by date-time - RFC3339 */ @ApiMember(DataType="dateTime", Description="End of interval to query for time exceptions. UTC+0 and parameter as defined by date-time - RFC3339") public Date TimeExceptionEnd = null; /** * Include only recurring time exceptions or not, if no value is given, all time exceptions will be returned */ @ApiMember(Description="Include only recurring time exceptions or not, if no value is given, all time exceptions will be returned", ParameterType="query") public Boolean IsRecurring = null; /** * Include only time exceptions that are blocking, if no value is given, all time exceptions will be returned */ @ApiMember(Description="Include only time exceptions that are blocking, if no value is given, all time exceptions will be returned", ParameterType="query") public Boolean IsBlocking = null; /** * If you want to include the resource details */ @ApiMember(DataType="boolean", Description="If you want to include the resource details", ParameterType="query") public Boolean IncludeResourceDetails = null; /** * If you want to include google calendar sync status */ @ApiMember(DataType="boolean", Description="If you want to include google calendar sync status", ParameterType="query") public Boolean IncludeCalendarExportStatus = null; /** * The max limit of records you want to retrieve, default is 200 */ @ApiMember(DataType="int", Description="The max limit of records you want to retrieve, default is 200", ParameterType="query") public Integer MaxLimit = null; public UUID getCompanyId() { return CompanyId; } public ResourceTimeExceptionQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public ArrayList getResourceIds() { return ResourceIds; } public ResourceTimeExceptionQuery setResourceIds(ArrayList value) { this.ResourceIds = value; return this; } public Date getTimeExceptionStart() { return TimeExceptionStart; } public ResourceTimeExceptionQuery setTimeExceptionStart(Date value) { this.TimeExceptionStart = value; return this; } public Date getTimeExceptionEnd() { return TimeExceptionEnd; } public ResourceTimeExceptionQuery setTimeExceptionEnd(Date value) { this.TimeExceptionEnd = value; return this; } public Boolean getIsRecurring() { return IsRecurring; } public ResourceTimeExceptionQuery setIsRecurring(Boolean value) { this.IsRecurring = value; return this; } public Boolean getIsBlocking() { return IsBlocking; } public ResourceTimeExceptionQuery setIsBlocking(Boolean value) { this.IsBlocking = value; return this; } public Boolean isIncludeResourceDetails() { return IncludeResourceDetails; } public ResourceTimeExceptionQuery setIncludeResourceDetails(Boolean value) { this.IncludeResourceDetails = value; return this; } public Boolean isIncludeCalendarExportStatus() { return IncludeCalendarExportStatus; } public ResourceTimeExceptionQuery setIncludeCalendarExportStatus(Boolean value) { this.IncludeCalendarExportStatus = value; return this; } public Integer getMaxLimit() { return MaxLimit; } public ResourceTimeExceptionQuery setMaxLimit(Integer value) { this.MaxLimit = 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 ResourceTimeException extends BaseModel implements IInterval, IBaseModelCreated, IBaseModelUpdated { public ArrayList DayOfWeeks = null; public ArrayList Resources = null; @Ignore() public CalendarExport CalendarExport = null; @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public String ReasonText = null; @Required() public TimeSpan FromTime = null; @Required() public TimeSpan ToTime = null; @Required() public Date UpdatedDate = null; @Required() public Date CreatedDate = null; public String Color = null; public String ReasonTextPublic = null; @Required() public Boolean BlockTime = null; @Required() public Boolean Private = null; public Date ModifiedDate = null; @Required() public Date From = null; @Required() public Date To = null; public ArrayList getDayOfWeeks() { return DayOfWeeks; } public ResourceTimeException setDayOfWeeks(ArrayList value) { this.DayOfWeeks = value; return this; } public ArrayList getResources() { return Resources; } public ResourceTimeException setResources(ArrayList value) { this.Resources = value; return this; } public CalendarExport getCalendarExport() { return CalendarExport; } public ResourceTimeException setCalendarExport(CalendarExport value) { this.CalendarExport = value; return this; } public UUID getCompanyId() { return CompanyId; } public ResourceTimeException setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public ResourceTimeException setId(Integer value) { this.Id = value; return this; } public String getReasonText() { return ReasonText; } public ResourceTimeException setReasonText(String value) { this.ReasonText = value; return this; } public TimeSpan getFromTime() { return FromTime; } public ResourceTimeException setFromTime(TimeSpan value) { this.FromTime = value; return this; } public TimeSpan getToTime() { return ToTime; } public ResourceTimeException setToTime(TimeSpan value) { this.ToTime = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public ResourceTimeException setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public ResourceTimeException setCreatedDate(Date value) { this.CreatedDate = value; return this; } public String getColor() { return Color; } public ResourceTimeException setColor(String value) { this.Color = value; return this; } public String getReasonTextPublic() { return ReasonTextPublic; } public ResourceTimeException setReasonTextPublic(String value) { this.ReasonTextPublic = value; return this; } public Boolean isBlockTime() { return BlockTime; } public ResourceTimeException setBlockTime(Boolean value) { this.BlockTime = value; return this; } public Boolean isPrivate() { return Private; } public ResourceTimeException setPrivate(Boolean value) { this.Private = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public ResourceTimeException setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Date getFrom() { return From; } public ResourceTimeException setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public ResourceTimeException setTo(Date value) { this.To = 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 TimeExceptionReosurceDetails { /** * Ids of the resources that owns this exception */ @ApiMember(Description="Ids of the resources that owns this exception") public Integer Id = null; /** * Name of the resource */ @ApiMember(Description="Name of the resource") public String Name = null; /** * Description of the resource */ @ApiMember(Description="Description of the resource") public String Description = null; /** * Color of the resource */ @ApiMember(Description="Color of the resource") public String Color = null; /** * Image of the resource */ @ApiMember(Description="Image of the resource") public Uri ImageUrl = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public TimeExceptionReosurceDetails setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public TimeExceptionReosurceDetails setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public TimeExceptionReosurceDetails setDescription(String value) { this.Description = value; return this; } public String getColor() { return Color; } public TimeExceptionReosurceDetails setColor(String value) { this.Color = value; return this; } public Uri getImageUrl() { return ImageUrl; } public TimeExceptionReosurceDetails setImageUrl(Uri value) { this.ImageUrl = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public TimeExceptionReosurceDetails setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class ExceptionCalendarExportStatus { public String CalendarId = null; public Integer ExceptionId = null; public Boolean Synced = null; public String getCalendarId() { return CalendarId; } public ExceptionCalendarExportStatus setCalendarId(String value) { this.CalendarId = value; return this; } public Integer getExceptionId() { return ExceptionId; } public ExceptionCalendarExportStatus setExceptionId(Integer value) { this.ExceptionId = value; return this; } public Boolean isSynced() { return Synced; } public ExceptionCalendarExportStatus setSynced(Boolean value) { this.Synced = 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 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 class CalendarExport extends BaseModel { @Required() public UUID CompanyId = null; @Required() public Integer BookingId = null; @Required() public Integer ExceptionId = null; public Boolean CalendarSync = null; public String CalendarId = null; public Boolean IsExceptionDeleted = null; public Date ModifiedDate = null; public Integer Id = null; public UUID getCompanyId() { return CompanyId; } public CalendarExport setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getBookingId() { return BookingId; } public CalendarExport setBookingId(Integer value) { this.BookingId = value; return this; } public Integer getExceptionId() { return ExceptionId; } public CalendarExport setExceptionId(Integer value) { this.ExceptionId = value; return this; } public Boolean isCalendarSync() { return CalendarSync; } public CalendarExport setCalendarSync(Boolean value) { this.CalendarSync = value; return this; } public String getCalendarId() { return CalendarId; } public CalendarExport setCalendarId(String value) { this.CalendarId = value; return this; } public Boolean getIsExceptionDeleted() { return IsExceptionDeleted; } public CalendarExport setIsExceptionDeleted(Boolean value) { this.IsExceptionDeleted = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public CalendarExport setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public CalendarExport setId(Integer value) { this.Id = value; return this; } } 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 interface IBaseModelUpdated { public Date UpdatedDate = null; } public static interface IBaseModelCreated { public Date CreatedDate = 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 ResourceTimeExceptionDayOfWeekRelation extends BaseModel { @Ignore() public BokaMeraDayOfWeek DayOfWeek = null; @Required() public Integer DayOfWeekId = null; @Required() public UUID CompanyId = null; @Required() public Integer ResourceTimeExceptionId = null; public Date ModifiedDate = null; public Integer Id = null; public BokaMeraDayOfWeek getDayOfWeek() { return DayOfWeek; } public ResourceTimeExceptionDayOfWeekRelation setDayOfWeek(BokaMeraDayOfWeek value) { this.DayOfWeek = value; return this; } public Integer getDayOfWeekId() { return DayOfWeekId; } public ResourceTimeExceptionDayOfWeekRelation setDayOfWeekId(Integer value) { this.DayOfWeekId = value; return this; } public UUID getCompanyId() { return CompanyId; } public ResourceTimeExceptionDayOfWeekRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getResourceTimeExceptionId() { return ResourceTimeExceptionId; } public ResourceTimeExceptionDayOfWeekRelation setResourceTimeExceptionId(Integer value) { this.ResourceTimeExceptionId = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public ResourceTimeExceptionDayOfWeekRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public ResourceTimeExceptionDayOfWeekRelation setId(Integer value) { this.Id = value; return this; } } public static class ResourceTimeExceptionResourceRelation extends BaseModel { @Ignore() public Resource Resource = null; @Required() public UUID CompanyId = null; @Required() public Integer ResourceTimeExceptionId = null; @Required() public Integer ResourceId = null; public Integer Id = null; public Date ModifiedDate = null; public Resource getResource() { return Resource; } public ResourceTimeExceptionResourceRelation setResource(Resource value) { this.Resource = value; return this; } public UUID getCompanyId() { return CompanyId; } public ResourceTimeExceptionResourceRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getResourceTimeExceptionId() { return ResourceTimeExceptionId; } public ResourceTimeExceptionResourceRelation setResourceTimeExceptionId(Integer value) { this.ResourceTimeExceptionId = value; return this; } public Integer getResourceId() { return ResourceId; } public ResourceTimeExceptionResourceRelation setResourceId(Integer value) { this.ResourceId = value; return this; } public Integer getId() { return Id; } public ResourceTimeExceptionResourceRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public ResourceTimeExceptionResourceRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } 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 ResourceTimeExceptionQueryResponse { /** * Time exception id */ @ApiMember(Description="Time exception id") public Integer Id = null; /** * Time company id */ @ApiMember(Description="Time company id") public UUID CompanyId = null; /** * If it's locked for editing for the logged in administrator */ @ApiMember(Description="If it's locked for editing for the logged in administrator") public Boolean Locked = null; /** * Resources that owns this exception */ @ApiMember(Description="Resources that owns this exception") public ArrayList ResourceIds = null; /** * Resources that owns this exception */ @ApiMember(Description="Resources that owns this exception") public ArrayList Resources = null; /** * Indicates wheter or not the time exception is recurring */ @ApiMember(Description="Indicates wheter or not the time exception is recurring") public Boolean IsRecurring = null; /** * Time exception starting timestamp */ @ApiMember(Description="Time exception starting timestamp") public Date From = null; /** * Time exception ending timestamp */ @ApiMember(Description="Time exception ending timestamp") public Date To = null; /** * If recurring then this value indicates the time of day when the time exception begins */ @ApiMember(Description="If recurring then this value indicates the time of day when the time exception begins") public TimeSpan FromTime = null; /** * If recurring then this value indicates the time of day when the time exception ends */ @ApiMember(Description="If recurring then this value indicates the time of day when the time exception ends") public TimeSpan ToTime = null; /** * The reason of the time exception, example: Vacation, doctors appointment, ... */ @ApiMember(Description="The reason of the time exception, example: Vacation, doctors appointment, ...") public String ReasonText = null; /** * The reason of the time exception that could be public to customers, example: Vacation, Closed, Sick leave, ... */ @ApiMember(Description="The reason of the time exception that could be public to customers, example: Vacation, Closed, Sick leave, ...") public String ReasonTextPublic = null; /** * What hexadecimal color code the exception should have in the scheduler */ @ApiMember(Description="What hexadecimal color code the exception should have in the scheduler") public String Color = null; /** * If the time exception should block the time in the scheduler so it's not avaialable to book */ @ApiMember(Description="If the time exception should block the time in the scheduler so it's not avaialable to book") public Boolean BlockTime = null; /** * If the ReasonText should only be visible to conncted resources. If false, all resources will be able to see it */ @ApiMember(Description="If the ReasonText should only be visible to conncted resources. If false, all resources will be able to see it") public Boolean Private = null; /** * The status for export to calendars like Gcal */ @ApiMember(Description="The status for export to calendars like Gcal") public ExceptionCalendarExportStatus CalendarExportStatus = 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 datetime the exception was created */ @ApiMember(Description="The datetime the exception was created") public Date Created = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public ResourceTimeExceptionQueryResponse setId(Integer value) { this.Id = value; return this; } public UUID getCompanyId() { return CompanyId; } public ResourceTimeExceptionQueryResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } public Boolean isLocked() { return Locked; } public ResourceTimeExceptionQueryResponse setLocked(Boolean value) { this.Locked = value; return this; } public ArrayList getResourceIds() { return ResourceIds; } public ResourceTimeExceptionQueryResponse setResourceIds(ArrayList value) { this.ResourceIds = value; return this; } public ArrayList getResources() { return Resources; } public ResourceTimeExceptionQueryResponse setResources(ArrayList value) { this.Resources = value; return this; } public Boolean getIsRecurring() { return IsRecurring; } public ResourceTimeExceptionQueryResponse setIsRecurring(Boolean value) { this.IsRecurring = value; return this; } public Date getFrom() { return From; } public ResourceTimeExceptionQueryResponse setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public ResourceTimeExceptionQueryResponse setTo(Date value) { this.To = value; return this; } public TimeSpan getFromTime() { return FromTime; } public ResourceTimeExceptionQueryResponse setFromTime(TimeSpan value) { this.FromTime = value; return this; } public TimeSpan getToTime() { return ToTime; } public ResourceTimeExceptionQueryResponse setToTime(TimeSpan value) { this.ToTime = value; return this; } public String getReasonText() { return ReasonText; } public ResourceTimeExceptionQueryResponse setReasonText(String value) { this.ReasonText = value; return this; } public String getReasonTextPublic() { return ReasonTextPublic; } public ResourceTimeExceptionQueryResponse setReasonTextPublic(String value) { this.ReasonTextPublic = value; return this; } public String getColor() { return Color; } public ResourceTimeExceptionQueryResponse setColor(String value) { this.Color = value; return this; } public Boolean isBlockTime() { return BlockTime; } public ResourceTimeExceptionQueryResponse setBlockTime(Boolean value) { this.BlockTime = value; return this; } public Boolean isPrivate() { return Private; } public ResourceTimeExceptionQueryResponse setPrivate(Boolean value) { this.Private = value; return this; } public ExceptionCalendarExportStatus getCalendarExportStatus() { return CalendarExportStatus; } public ResourceTimeExceptionQueryResponse setCalendarExportStatus(ExceptionCalendarExportStatus value) { this.CalendarExportStatus = value; return this; } public ArrayList getDaysOfWeek() { return DaysOfWeek; } public ResourceTimeExceptionQueryResponse setDaysOfWeek(ArrayList value) { this.DaysOfWeek = value; return this; } public Date getCreated() { return Created; } public ResourceTimeExceptionQueryResponse setCreated(Date value) { this.Created = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public ResourceTimeExceptionQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } }