/* Options: Date: 2024-11-21 12:17:02 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GroupedServiceQuery.* //ExcludeTypes: //InitializeCollections: True //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.* @Route(Path="/services/grouped", Verbs="GET") open class GroupedServiceQuery : QueryDb(), IReturn> { /** * Company to show services for */ @ApiMember(Description="Company to show services for", ParameterType="query") var CompanyId:UUID? = null /** * Service status */ @ApiMember(DataType="boolean", Description="Service status", ParameterType="query") var Active:Boolean? = 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") var IncludeResources:Boolean? = null /** * If you want to include the connected schedules */ @ApiMember(DataType="boolean", Description="If you want to include the connected schedules", ParameterType="query") var IncludeSchedules:Boolean? = 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") var IncludeCustomFields:Boolean? = 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") var IncludeCustomFieldValues:Boolean? = 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") var IncludeBookingCustomFields:Boolean? = 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") var IncludeCustomerCustomFields:Boolean? = null /** * If you want to include the service prices */ @ApiMember(DataType="boolean", Description="If you want to include the service prices", ParameterType="query") var IncludePrices:Boolean? = 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") var PriceDate:Date? = 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") var PriceTime:TimeSpan? = null companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = GroupedServiceQuery.responseType } @DataContract open class QueryResponse { @DataMember(Order=1) var Offset:Int? = null @DataMember(Order=2) var Total:Int? = null @DataMember(Order=3) var Results:ArrayList = ArrayList() @DataMember(Order=4) var Meta:HashMap = HashMap() @DataMember(Order=5) var ResponseStatus:ResponseStatus? = null } open class QueryDb : QueryBase() { } open class GroupedServiceQueryResponse { var Group:String? = null var SortOrder:Int? = null var Items:ArrayList = ArrayList() var ResponseStatus:ResponseStatus? = null } @DataContract open 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) var Skip:Int? = 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) var Take:Int? = 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) var OrderBy:String? = 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) var OrderByDesc:String? = 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) var Include:String? = null @DataMember(Order=6) var Fields:String? = null @DataMember(Order=7) var Meta:HashMap = HashMap() } open class ServiceQueryResponse { var Id:Int? = null var Name:String? = null var Description:String? = null var ImageUrl:Uri? = null var TotalSpots:Int? = 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.") var LockSpotsToBooking:Boolean? = null var MinNumberOfSpotsPerBooking:Int? = null var MaxNumberOfSpotsPerBooking:Int? = null var MinNumberOfResourcesToBook:Int? = null var MaxNumberOfResourcesToBook:Int? = null var UnbookBeforeDays:Int? = null var UnbookBeforeHours:Int? = null var UnbookBeforeMinutes:Int? = 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") var 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") var ScheduleTypeId:Int? = null var BookBeforeDays:Int? = null var BookBeforeHours:Int? = null var BookBeforeMinutes:Int? = null var Group:String? = null var EnableBookingQueue:Boolean? = null var EnableCodeLockSync:Boolean? = null var EnableCustomerManualPayment:Boolean? = null var SortOrder:Int? = null var Active:Boolean? = null var IsGroupBooking:Boolean? = null var GroupBooking:GroupBookingSettings? = null var MultipleResource:MultipleResourceSettings? = null var IsPaymentEnabled:Boolean? = 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") var MaxPaymentTime:Int? = 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.") var BookingStatusId:Int? = null var OnlyVisibleByAdmin:Boolean? = null var LengthInMinutes:Int? = null var DurationTypeId:Int? = null var Duration:Int? = null var MinDuration:Int? = null var MaxDuration:Int? = null var DurationInterval:Int? = null var PauseAfterBooking:Int? = null var CustomFields:ArrayList = ArrayList() var CustomFieldValues:ArrayList = ArrayList() var BookingCustomFields:ArrayList = ArrayList() var CustomerCustomFields:ArrayList = ArrayList() /** * The booking status options to choose from */ @ApiMember(Description="The booking status options to choose from") var BookingStatusOptions:ArrayList = ArrayList() var Prices:ArrayList = ArrayList() var Schedules:ServiceSchedules? = null var RatingSummary:CompanyRatingSummary? = null var Reviews:ArrayList = ArrayList() var ResourceTypes:ArrayList = ArrayList() var ResponseStatus:ResponseStatus? = null var PriceViewTypeId:Int? = null }