/* Options: Date: 2024-11-21 11:44:30 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: StatisticQuery.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/statistics", 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") open class StatisticQuery : IReturn, ICompany { /** * Enter the company id, if blank company id and you are an admin, your company id will be used. */ @ApiMember(Description="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired=true, ParameterType="query") var CompanyId:UUID? = null /** * Start of interval to get bookings and customers */ @ApiMember(Description="Start of interval to get bookings and customers", IsRequired=true, ParameterType="query") @Required() var From:Date? = null /** * End of interval to get bookings and customers */ @ApiMember(Description="End of interval to get bookings and customers", IsRequired=true, ParameterType="query") var To:Date? = null /** * Set true if you want to include booked events by day */ @ApiMember(Description="Set true if you want to include booked events by day", ParameterType="query") var IncludeOccuringBookingsByDay:Boolean? = null /** * Set true if you want to include canceled booked events by day */ @ApiMember(Description="Set true if you want to include canceled booked events by day", ParameterType="query") var IncludeBookingsCanceledByDay:Boolean? = null /** * Set true if you want to include booking created by day */ @ApiMember(Description="Set true if you want to include booking created by day", ParameterType="query") var IncludeCreatedBookingsByDay:Boolean? = null /** * Set true if you want to include customers created by day */ @ApiMember(Description="Set true if you want to include customers created by day", ParameterType="query") var IncludeCreatedCustomersByDay:Boolean? = null companion object { private val responseType = StatisticQueryResponse::class.java } override fun getResponseType(): Any? = StatisticQuery.responseType } open class StatisticQueryResponse { var NumberOfOccuringBookings:Int? = null var NumberOfCanceledBookings:Int? = null var NumberOfCreatedBookings:Int? = null var NumberOfCreatedCustomers:Int? = null var OccuringBookingsByDay:ArrayList = ArrayList() var CanceledBookingsByDay:ArrayList = ArrayList() var CreatedBookingsByDay:ArrayList = ArrayList() var CreatedCustomersByDay:ArrayList = ArrayList() var ResponseStatus:ResponseStatus? = null } open interface ICompany { var CompanyId:UUID? } open class BookedByDay { var Date:Date? = null var Value:Int? = null }