/* Options: Date: 2024-07-03 12:30:14 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: GroupedServiceQuery.* //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="/services/grouped", Verbs="GET") public static class GroupedServiceQuery extends QueryDb implements IReturn> { /** * Company to show services for */ @ApiMember(Description="Company to show services for", ParameterType="query") public UUID CompanyId = null; /** * Service status */ @ApiMember(DataType="boolean", Description="Service status", ParameterType="query") public Boolean Active = null; /** * If you want to include the connected resource types and resources */ @ApiMember(Description="If you want to include the connected resource types and resources", ParameterType="query") public Boolean IncludeResources = null; /** * If you want to include the connected schedules */ @ApiMember(DataType="boolean", Description="If you want to include the connected schedules", ParameterType="query") public Boolean IncludeSchedules = null; /** * If you want to include the connected custom fields */ @ApiMember(DataType="boolean", Description="If you want to include the connected custom fields", ParameterType="query") public Boolean IncludeCustomFields = null; /** * If you want to include the connected resource types and resources */ @ApiMember(DataType="boolean", Description="If you want to include the connected resource types and resources", ParameterType="query") public Boolean IncludeCustomFieldValues = null; /** * If you want to include the connected custom fields needs to be entered when booking a new time on the service */ @ApiMember(DataType="boolean", Description="If you want to include the connected custom fields needs to be entered when booking a new time on the service", ParameterType="query") public Boolean IncludeBookingCustomFields = null; /** * If you want to include the connected custom fields for the customers */ @ApiMember(DataType="boolean", Description="If you want to include the connected custom fields for the customers", ParameterType="query") public Boolean IncludeCustomerCustomFields = null; /** * If you want to include the service prices */ @ApiMember(DataType="boolean", Description="If you want to include the service prices", ParameterType="query") public Boolean IncludePrices = null; /** * If you have selected to include the prices, here you can set the date to show the prices for */ @ApiMember(DataType="dateTime", Description="If you have selected to include the prices, here you can set the date to show the prices for", ParameterType="query") public Date PriceDate = null; /** * If you have selected to include the prices, here you can set the datetime to show the exact price */ @ApiMember(DataType="timeSpan", Description="If you have selected to include the prices, here you can set the datetime to show the exact price", ParameterType="query") public TimeSpan PriceTime = null; public UUID getCompanyId() { return CompanyId; } public GroupedServiceQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public Boolean isActive() { return Active; } public GroupedServiceQuery setActive(Boolean value) { this.Active = value; return this; } public Boolean isIncludeResources() { return IncludeResources; } public GroupedServiceQuery setIncludeResources(Boolean value) { this.IncludeResources = value; return this; } public Boolean isIncludeSchedules() { return IncludeSchedules; } public GroupedServiceQuery setIncludeSchedules(Boolean value) { this.IncludeSchedules = value; return this; } public Boolean isIncludeCustomFields() { return IncludeCustomFields; } public GroupedServiceQuery setIncludeCustomFields(Boolean value) { this.IncludeCustomFields = value; return this; } public Boolean isIncludeCustomFieldValues() { return IncludeCustomFieldValues; } public GroupedServiceQuery setIncludeCustomFieldValues(Boolean value) { this.IncludeCustomFieldValues = value; return this; } public Boolean isIncludeBookingCustomFields() { return IncludeBookingCustomFields; } public GroupedServiceQuery setIncludeBookingCustomFields(Boolean value) { this.IncludeBookingCustomFields = value; return this; } public Boolean isIncludeCustomerCustomFields() { return IncludeCustomerCustomFields; } public GroupedServiceQuery setIncludeCustomerCustomFields(Boolean value) { this.IncludeCustomerCustomFields = value; return this; } public Boolean isIncludePrices() { return IncludePrices; } public GroupedServiceQuery setIncludePrices(Boolean value) { this.IncludePrices = value; return this; } public Date getPriceDate() { return PriceDate; } public GroupedServiceQuery setPriceDate(Date value) { this.PriceDate = value; return this; } public TimeSpan getPriceTime() { return PriceTime; } public GroupedServiceQuery setPriceTime(TimeSpan value) { this.PriceTime = 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 class GroupedServiceQueryResponse { public String Group = null; public Integer SortOrder = null; public ArrayList Items = null; public ResponseStatus ResponseStatus = null; public String getGroup() { return Group; } public GroupedServiceQueryResponse setGroup(String value) { this.Group = value; return this; } public Integer getSortOrder() { return SortOrder; } public GroupedServiceQueryResponse setSortOrder(Integer value) { this.SortOrder = value; return this; } public ArrayList getItems() { return Items; } public GroupedServiceQueryResponse setItems(ArrayList value) { this.Items = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public GroupedServiceQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } @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 ServiceQueryResponse { public Integer Id = null; public String Name = null; public String Description = null; public Uri ImageUrl = null; public Integer TotalSpots = null; /** * If this setting is turned on the remaining spots (if Totalspots > 1) is locked from be booked by another customer. */ @ApiMember(Description="If this setting is turned on the remaining spots (if Totalspots > 1) is locked from be booked by another customer.") public Boolean LockSpotsToBooking = null; public Integer MaxNumberOfSpotsPerBooking = null; public Integer MinNumberOfResourcesToBook = null; public Integer MaxNumberOfResourcesToBook = null; public Integer UnbookBeforeDays = null; public Integer UnbookBeforeHours = null; public Integer UnbookBeforeMinutes = null; /** * What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2 */ @ApiMember(Description="What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2") public ScheduleType ScheduleType = null; /** * What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2 */ @ApiMember(Description="What type of schedule is connected to the service. RecurringSchedule = 1, DateSchedule = 2") public Integer ScheduleTypeId = null; public Integer BookBeforeDays = null; public Integer BookBeforeHours = null; public Integer BookBeforeMinutes = null; public String Group = null; public Boolean EnableBookingQueue = null; public Boolean EnableCodeLockSync = null; public Boolean EnableCustomerManualPayment = null; public Integer SortOrder = null; public Boolean Active = null; public Boolean IsGroupBooking = null; public GroupBookingSettings GroupBooking = null; public MultipleResourceSettings MultipleResource = null; public Boolean IsPaymentEnabled = null; /** * Maximum numbers of minutes the booking payment must be completed before automatically unbooked */ @ApiMember(Description="Maximum numbers of minutes the booking payment must be completed before automatically unbooked") public Integer MaxPaymentTime = null; /** * If the booking should be either 1 = Booked) or 3 = Reserved. Default is 1 = Booked. */ @ApiMember(Description="If the booking should be either 1 = Booked) or 3 = Reserved. Default is 1 = Booked.") public Integer BookingStatusId = null; public Boolean OnlyVisibleByAdmin = null; public Integer LengthInMinutes = null; public Integer DurationTypeId = null; public Integer Duration = null; public Integer MinDuration = null; public Integer MaxDuration = null; public Integer DurationInterval = null; public Integer PauseAfterBooking = null; public ArrayList CustomFields = null; public ArrayList CustomFieldValues = null; public ArrayList BookingCustomFields = null; public ArrayList CustomerCustomFields = null; /** * The booking status options to choose from */ @ApiMember(Description="The booking status options to choose from") public ArrayList BookingStatusOptions = null; public ArrayList Prices = null; public ServiceSchedules Schedules = null; public CompanyRatingSummary RatingSummary = null; public ArrayList Reviews = null; public ArrayList ResourceTypes = null; public ResponseStatus ResponseStatus = null; public Integer PriceViewTypeId = null; public Integer getId() { return Id; } public ServiceQueryResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public ServiceQueryResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public ServiceQueryResponse setDescription(String value) { this.Description = value; return this; } public Uri getImageUrl() { return ImageUrl; } public ServiceQueryResponse setImageUrl(Uri value) { this.ImageUrl = value; return this; } public Integer getTotalSpots() { return TotalSpots; } public ServiceQueryResponse setTotalSpots(Integer value) { this.TotalSpots = value; return this; } public Boolean isLockSpotsToBooking() { return LockSpotsToBooking; } public ServiceQueryResponse setLockSpotsToBooking(Boolean value) { this.LockSpotsToBooking = value; return this; } public Integer getMaxNumberOfSpotsPerBooking() { return MaxNumberOfSpotsPerBooking; } public ServiceQueryResponse setMaxNumberOfSpotsPerBooking(Integer value) { this.MaxNumberOfSpotsPerBooking = value; return this; } public Integer getMinNumberOfResourcesToBook() { return MinNumberOfResourcesToBook; } public ServiceQueryResponse setMinNumberOfResourcesToBook(Integer value) { this.MinNumberOfResourcesToBook = value; return this; } public Integer getMaxNumberOfResourcesToBook() { return MaxNumberOfResourcesToBook; } public ServiceQueryResponse setMaxNumberOfResourcesToBook(Integer value) { this.MaxNumberOfResourcesToBook = value; return this; } public Integer getUnbookBeforeDays() { return UnbookBeforeDays; } public ServiceQueryResponse setUnbookBeforeDays(Integer value) { this.UnbookBeforeDays = value; return this; } public Integer getUnbookBeforeHours() { return UnbookBeforeHours; } public ServiceQueryResponse setUnbookBeforeHours(Integer value) { this.UnbookBeforeHours = value; return this; } public Integer getUnbookBeforeMinutes() { return UnbookBeforeMinutes; } public ServiceQueryResponse setUnbookBeforeMinutes(Integer value) { this.UnbookBeforeMinutes = value; return this; } public ScheduleType getScheduleType() { return ScheduleType; } public ServiceQueryResponse setScheduleType(ScheduleType value) { this.ScheduleType = value; return this; } public Integer getScheduleTypeId() { return ScheduleTypeId; } public ServiceQueryResponse setScheduleTypeId(Integer value) { this.ScheduleTypeId = value; return this; } public Integer getBookBeforeDays() { return BookBeforeDays; } public ServiceQueryResponse setBookBeforeDays(Integer value) { this.BookBeforeDays = value; return this; } public Integer getBookBeforeHours() { return BookBeforeHours; } public ServiceQueryResponse setBookBeforeHours(Integer value) { this.BookBeforeHours = value; return this; } public Integer getBookBeforeMinutes() { return BookBeforeMinutes; } public ServiceQueryResponse setBookBeforeMinutes(Integer value) { this.BookBeforeMinutes = value; return this; } public String getGroup() { return Group; } public ServiceQueryResponse setGroup(String value) { this.Group = value; return this; } public Boolean isEnableBookingQueue() { return EnableBookingQueue; } public ServiceQueryResponse setEnableBookingQueue(Boolean value) { this.EnableBookingQueue = value; return this; } public Boolean isEnableCodeLockSync() { return EnableCodeLockSync; } public ServiceQueryResponse setEnableCodeLockSync(Boolean value) { this.EnableCodeLockSync = value; return this; } public Boolean isEnableCustomerManualPayment() { return EnableCustomerManualPayment; } public ServiceQueryResponse setEnableCustomerManualPayment(Boolean value) { this.EnableCustomerManualPayment = value; return this; } public Integer getSortOrder() { return SortOrder; } public ServiceQueryResponse setSortOrder(Integer value) { this.SortOrder = value; return this; } public Boolean isActive() { return Active; } public ServiceQueryResponse setActive(Boolean value) { this.Active = value; return this; } public Boolean getIsGroupBooking() { return IsGroupBooking; } public ServiceQueryResponse setIsGroupBooking(Boolean value) { this.IsGroupBooking = value; return this; } public GroupBookingSettings getGroupBooking() { return GroupBooking; } public ServiceQueryResponse setGroupBooking(GroupBookingSettings value) { this.GroupBooking = value; return this; } public MultipleResourceSettings getMultipleResource() { return MultipleResource; } public ServiceQueryResponse setMultipleResource(MultipleResourceSettings value) { this.MultipleResource = value; return this; } public Boolean getIsPaymentEnabled() { return IsPaymentEnabled; } public ServiceQueryResponse setIsPaymentEnabled(Boolean value) { this.IsPaymentEnabled = value; return this; } public Integer getMaxPaymentTime() { return MaxPaymentTime; } public ServiceQueryResponse setMaxPaymentTime(Integer value) { this.MaxPaymentTime = value; return this; } public Integer getBookingStatusId() { return BookingStatusId; } public ServiceQueryResponse setBookingStatusId(Integer value) { this.BookingStatusId = value; return this; } public Boolean isOnlyVisibleByAdmin() { return OnlyVisibleByAdmin; } public ServiceQueryResponse setOnlyVisibleByAdmin(Boolean value) { this.OnlyVisibleByAdmin = value; return this; } public Integer getLengthInMinutes() { return LengthInMinutes; } public ServiceQueryResponse setLengthInMinutes(Integer value) { this.LengthInMinutes = value; return this; } public Integer getDurationTypeId() { return DurationTypeId; } public ServiceQueryResponse setDurationTypeId(Integer value) { this.DurationTypeId = value; return this; } public Integer getDuration() { return Duration; } public ServiceQueryResponse setDuration(Integer value) { this.Duration = value; return this; } public Integer getMinDuration() { return MinDuration; } public ServiceQueryResponse setMinDuration(Integer value) { this.MinDuration = value; return this; } public Integer getMaxDuration() { return MaxDuration; } public ServiceQueryResponse setMaxDuration(Integer value) { this.MaxDuration = value; return this; } public Integer getDurationInterval() { return DurationInterval; } public ServiceQueryResponse setDurationInterval(Integer value) { this.DurationInterval = value; return this; } public Integer getPauseAfterBooking() { return PauseAfterBooking; } public ServiceQueryResponse setPauseAfterBooking(Integer value) { this.PauseAfterBooking = value; return this; } public ArrayList getCustomFields() { return CustomFields; } public ServiceQueryResponse setCustomFields(ArrayList value) { this.CustomFields = value; return this; } public ArrayList getCustomFieldValues() { return CustomFieldValues; } public ServiceQueryResponse setCustomFieldValues(ArrayList value) { this.CustomFieldValues = value; return this; } public ArrayList getBookingCustomFields() { return BookingCustomFields; } public ServiceQueryResponse setBookingCustomFields(ArrayList value) { this.BookingCustomFields = value; return this; } public ArrayList getCustomerCustomFields() { return CustomerCustomFields; } public ServiceQueryResponse setCustomerCustomFields(ArrayList value) { this.CustomerCustomFields = value; return this; } public ArrayList getBookingStatusOptions() { return BookingStatusOptions; } public ServiceQueryResponse setBookingStatusOptions(ArrayList value) { this.BookingStatusOptions = value; return this; } public ArrayList getPrices() { return Prices; } public ServiceQueryResponse setPrices(ArrayList value) { this.Prices = value; return this; } public ServiceSchedules getSchedules() { return Schedules; } public ServiceQueryResponse setSchedules(ServiceSchedules value) { this.Schedules = value; return this; } public CompanyRatingSummary getRatingSummary() { return RatingSummary; } public ServiceQueryResponse setRatingSummary(CompanyRatingSummary value) { this.RatingSummary = value; return this; } public ArrayList getReviews() { return Reviews; } public ServiceQueryResponse setReviews(ArrayList value) { this.Reviews = value; return this; } public ArrayList getResourceTypes() { return ResourceTypes; } public ServiceQueryResponse setResourceTypes(ArrayList value) { this.ResourceTypes = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public ServiceQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } public Integer getPriceViewTypeId() { return PriceViewTypeId; } public ServiceQueryResponse setPriceViewTypeId(Integer value) { this.PriceViewTypeId = value; return this; } } }