/* Options: Date: 2024-11-21 12:01:17 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: StatisticQuery.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class BookedByDay { public virtual DateTime Date { get; set; } public virtual int Value { get; set; } } [Route("/statistics", "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("IsAuthenticated")] public partial 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")] public virtual Guid? CompanyId { get; set; } /// ///Start of interval to get bookings and customers /// [ApiMember(Description="Start of interval to get bookings and customers", IsRequired=true, ParameterType="query")] [Required] public virtual DateTime From { get; set; } /// ///End of interval to get bookings and customers /// [ApiMember(Description="End of interval to get bookings and customers", IsRequired=true, ParameterType="query")] public virtual DateTime To { get; set; } /// ///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")] public virtual bool IncludeOccuringBookingsByDay { get; set; } /// ///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")] public virtual bool IncludeBookingsCanceledByDay { get; set; } /// ///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")] public virtual bool IncludeCreatedBookingsByDay { get; set; } /// ///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")] public virtual bool IncludeCreatedCustomersByDay { get; set; } } public partial class StatisticQueryResponse { public StatisticQueryResponse() { OccuringBookingsByDay = new List{}; CanceledBookingsByDay = new List{}; CreatedBookingsByDay = new List{}; CreatedCustomersByDay = new List{}; } public virtual int NumberOfOccuringBookings { get; set; } public virtual int NumberOfCanceledBookings { get; set; } public virtual int NumberOfCreatedBookings { get; set; } public virtual int NumberOfCreatedCustomers { get; set; } public virtual List OccuringBookingsByDay { get; set; } public virtual List CanceledBookingsByDay { get; set; } public virtual List CreatedBookingsByDay { get; set; } public virtual List CreatedCustomersByDay { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }