/* Options: Date: 2024-07-03 13:35:58 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: ResourceQuery.* //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="/resource", 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 ResourceQuery extends QueryDb implements IReturn> { /** * Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown */ @ApiMember(Description="Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", IsRequired=true, ParameterType="query") public UUID CompanyId = null; public Integer Id = null; public Boolean Active = null; /** * If you want to include the exceptions for each resource, only allowed for administrators. Select between what dates in the parameters [ExceptionsQueryFromDate] and [ExceptionsQueryToDate] , if no dates added */ @ApiMember(DataType="boolean", Description="If you want to include the exceptions for each resource, only allowed for administrators. Select between what dates in the parameters [ExceptionsQueryFromDate] and [ExceptionsQueryToDate] , if no dates added ", ParameterType="query") public Boolean IncludeExceptions = null; /** * If [IncludeExceptions], choose what from and to date to search exceptions between, if nothing entered i will search from todays date. */ @ApiMember(DataType="dateTime", Description="If [IncludeExceptions], choose what from and to date to search exceptions between, if nothing entered i will search from todays date.", ParameterType="query") public Date ExceptionsQueryFromDate = null; /** * If [IncludeExceptions], choose what from and to date to search exceptions between, if nothing entered i will search to 1 year forward from todays date. */ @ApiMember(DataType="dateTime", Description="If [IncludeExceptions], choose what from and to date to search exceptions between, if nothing entered i will search to 1 year forward from todays date.", ParameterType="query") public Date ExceptionsQueryToDate = null; /** * If you want to include the bookings for each resource, only allowed for administrators. Select between what dates in the parameters [BookingsQueryFromDate] and [BookingsQueryToDate] , if nothing entered i will search to 1 year forward from todays date. */ @ApiMember(DataType="boolean", Description="If you want to include the bookings for each resource, only allowed for administrators. Select between what dates in the parameters [BookingsQueryFromDate] and [BookingsQueryToDate] , if nothing entered i will search to 1 year forward from todays date.", ParameterType="query") public Boolean IncludeBookings = null; /** * If [IncludeBookings], choose what from and to date to search bookings between, if nothing entered i will search from todays date. */ @ApiMember(DataType="dateTime", Description="If [IncludeBookings], choose what from and to date to search bookings between, if nothing entered i will search from todays date.", ParameterType="query") public Date BookingsQueryFromDate = null; /** * If [IncludeBookings], choose what from and to date to search bookings between, if nothing entered i will search to 1 year forward from todays date. */ @ApiMember(DataType="dateTime", Description="If [IncludeBookings], choose what from and to date to search bookings between, if nothing entered i will search to 1 year forward from todays date.", ParameterType="query") public Date BookingsQueryToDate = null; public UUID getCompanyId() { return CompanyId; } public ResourceQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public ResourceQuery setId(Integer value) { this.Id = value; return this; } public Boolean isActive() { return Active; } public ResourceQuery setActive(Boolean value) { this.Active = value; return this; } public Boolean isIncludeExceptions() { return IncludeExceptions; } public ResourceQuery setIncludeExceptions(Boolean value) { this.IncludeExceptions = value; return this; } public Date getExceptionsQueryFromDate() { return ExceptionsQueryFromDate; } public ResourceQuery setExceptionsQueryFromDate(Date value) { this.ExceptionsQueryFromDate = value; return this; } public Date getExceptionsQueryToDate() { return ExceptionsQueryToDate; } public ResourceQuery setExceptionsQueryToDate(Date value) { this.ExceptionsQueryToDate = value; return this; } public Boolean isIncludeBookings() { return IncludeBookings; } public ResourceQuery setIncludeBookings(Boolean value) { this.IncludeBookings = value; return this; } public Date getBookingsQueryFromDate() { return BookingsQueryFromDate; } public ResourceQuery setBookingsQueryFromDate(Date value) { this.BookingsQueryFromDate = value; return this; } public Date getBookingsQueryToDate() { return BookingsQueryToDate; } public ResourceQuery setBookingsQueryToDate(Date value) { this.BookingsQueryToDate = 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 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 TimeException implements ITimeException { /** * Time exception id */ @ApiMember(Description="Time exception id") public Integer Id = null; /** * Indicates whether or not the time exception is recurring */ @ApiMember(Description="Indicates whether or not the time exception is recurring") public Boolean IsRecurring = null; /** * Indicates whether the time exception is blocking the time or not */ @ApiMember(Description="Indicates whether the time exception is blocking the time or not") public Boolean IsBlock = 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 public reason of the time exception, example: Vacation, doctors appointment, ... */ @ApiMember(Description="The public reason of the time exception, example: Vacation, doctors appointment, ...") public String ReasonTextPublic = null; /** * Time exception start */ @ApiMember(Description="Time exception start") public Date From = null; /** * Time exception end */ @ApiMember(Description="Time exception end") public Date To = null; /** * Resources that owns this exception */ @ApiMember(Description="Resources that owns this exception") public ArrayList ResourceIds = null; public Integer getId() { return Id; } public TimeException setId(Integer value) { this.Id = value; return this; } public Boolean getIsRecurring() { return IsRecurring; } public TimeException setIsRecurring(Boolean value) { this.IsRecurring = value; return this; } public Boolean getIsBlock() { return IsBlock; } public TimeException setIsBlock(Boolean value) { this.IsBlock = value; return this; } public String getReasonText() { return ReasonText; } public TimeException setReasonText(String value) { this.ReasonText = value; return this; } public String getReasonTextPublic() { return ReasonTextPublic; } public TimeException setReasonTextPublic(String value) { this.ReasonTextPublic = value; return this; } public Date getFrom() { return From; } public TimeException setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public TimeException setTo(Date value) { this.To = value; return this; } public ArrayList getResourceIds() { return ResourceIds; } public TimeException setResourceIds(ArrayList value) { this.ResourceIds = value; return this; } } public static class BookedTime implements IBookedTime { /** * Booking id */ @ApiMember(Description="Booking id") public Integer Id = null; /** * The booked service */ @ApiMember(Description="The booked service") public Integer ServiceId = null; /** * Booking start */ @ApiMember(Description="Booking start") public Date From = null; /** * Booking end */ @ApiMember(Description="Booking end") public Date To = null; /** * Number of booked spots */ @ApiMember(Description="Number of booked spots") public Integer BookedSpots = null; /** * Number of total spots for the service */ @ApiMember(Description="Number of total spots for the service") public Integer TotalSpots = null; /** * The pause after the booking */ @ApiMember(Description="The pause after the booking") public Integer PauseAfterInMinutes = null; /** * The booking status */ @ApiMember(Description="The booking status") public Integer StatusId = null; public BookingStatusEnum Status = null; /** * The customer the booking belongs to */ @ApiMember(Description="The customer the booking belongs to") public BookedCustomer Customer = null; public Integer getId() { return Id; } public BookedTime setId(Integer value) { this.Id = value; return this; } public Integer getServiceId() { return ServiceId; } public BookedTime setServiceId(Integer value) { this.ServiceId = value; return this; } public Date getFrom() { return From; } public BookedTime setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public BookedTime setTo(Date value) { this.To = value; return this; } public Integer getBookedSpots() { return BookedSpots; } public BookedTime setBookedSpots(Integer value) { this.BookedSpots = value; return this; } public Integer getTotalSpots() { return TotalSpots; } public BookedTime setTotalSpots(Integer value) { this.TotalSpots = value; return this; } public Integer getPauseAfterInMinutes() { return PauseAfterInMinutes; } public BookedTime setPauseAfterInMinutes(Integer value) { this.PauseAfterInMinutes = value; return this; } public Integer getStatusId() { return StatusId; } public BookedTime setStatusId(Integer value) { this.StatusId = value; return this; } public BookingStatusEnum getStatus() { return Status; } public BookedTime setStatus(BookingStatusEnum value) { this.Status = value; return this; } public BookedCustomer getCustomer() { return Customer; } public BookedTime setCustomer(BookedCustomer value) { this.Customer = 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 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 ResourceQueryResponse { /** * The resource id */ @ApiMember(Description="The resource id") public Integer Id = null; /** * The resource name */ @ApiMember(Description="The resource name") public String Name = null; /** * The resource description */ @ApiMember(Description="The resource description") public String Description = null; /** * If resource is active or not */ @ApiMember(Description="If resource is active or not") public Boolean Active = null; /** * The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue. */ @ApiMember(Description="The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue.") public String Color = null; /** * The email of the resource */ @ApiMember(Description="The email of the resource") public String Email = null; /** * The image url of the resource */ @ApiMember(Description="The image url of the resource") public Uri ImageUrl = null; /** * The mobile phone number of the resource */ @ApiMember(Description="The mobile phone number of the resource") public String MobilePhone = null; /** * Used by example code locks to know what access group the resource is assigned to */ @ApiMember(Description="Used by example code locks to know what access group the resource is assigned to") public String AccessGroup = null; /** * If the resource should receive email notification when booked */ @ApiMember(Description="If the resource should receive email notification when booked") public Boolean EmailNotification = null; /** * If the resource should receive SMS notification when booked */ @ApiMember(Description="If the resource should receive SMS notification when booked") public Boolean SMSNotification = null; /** * If the resource should receive email reminders on bookings */ @ApiMember(Description="If the resource should receive email reminders on bookings") public Boolean SendEmailReminder = null; /** * If the resource should receive SMS reminders on bookings */ @ApiMember(Description="If the resource should receive SMS reminders on bookings") public Boolean SendSMSReminder = null; /** * The resource time exceptions */ @ApiMember(Description="The resource time exceptions") public ArrayList Exceptions = null; /** * The resource bookings */ @ApiMember(Description="The resource bookings") public ArrayList Bookings = null; /** * Then date when the resource was created */ @ApiMember(Description="Then date when the resource was created") public Date Created = null; /** * Then date when the resource was updated */ @ApiMember(Description="Then date when the resource was updated") public Date Updated = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public ResourceQueryResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public ResourceQueryResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public ResourceQueryResponse setDescription(String value) { this.Description = value; return this; } public Boolean isActive() { return Active; } public ResourceQueryResponse setActive(Boolean value) { this.Active = value; return this; } public String getColor() { return Color; } public ResourceQueryResponse setColor(String value) { this.Color = value; return this; } public String getEmail() { return Email; } public ResourceQueryResponse setEmail(String value) { this.Email = value; return this; } public Uri getImageUrl() { return ImageUrl; } public ResourceQueryResponse setImageUrl(Uri value) { this.ImageUrl = value; return this; } public String getMobilePhone() { return MobilePhone; } public ResourceQueryResponse setMobilePhone(String value) { this.MobilePhone = value; return this; } public String getAccessGroup() { return AccessGroup; } public ResourceQueryResponse setAccessGroup(String value) { this.AccessGroup = value; return this; } public Boolean isEmailNotification() { return EmailNotification; } public ResourceQueryResponse setEmailNotification(Boolean value) { this.EmailNotification = value; return this; } public Boolean isSmsNotification() { return SMSNotification; } public ResourceQueryResponse setSmsNotification(Boolean value) { this.SMSNotification = value; return this; } public Boolean isSendEmailReminder() { return SendEmailReminder; } public ResourceQueryResponse setSendEmailReminder(Boolean value) { this.SendEmailReminder = value; return this; } public Boolean isSendSMSReminder() { return SendSMSReminder; } public ResourceQueryResponse setSendSMSReminder(Boolean value) { this.SendSMSReminder = value; return this; } public ArrayList getExceptions() { return Exceptions; } public ResourceQueryResponse setExceptions(ArrayList value) { this.Exceptions = value; return this; } public ArrayList getBookings() { return Bookings; } public ResourceQueryResponse setBookings(ArrayList value) { this.Bookings = value; return this; } public Date getCreated() { return Created; } public ResourceQueryResponse setCreated(Date value) { this.Created = value; return this; } public Date getUpdated() { return Updated; } public ResourceQueryResponse setUpdated(Date value) { this.Updated = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public ResourceQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } }