/* Options: Date: 2025-12-14 05:15:40 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetAllBookingQueue.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/bookinguserqueue/user", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class GetAllBookingQueue : IReturn, Codable { public typealias Return = [BookingUserQueueItemResponse] /** * The user id for your profile. If not set it will set it automatically from your session */ // @ApiMember(Description="The user id for your profile. If not set it will set it automatically from your session") public var userId:String? /** * Optional start date for the search interval. If not set it will default to todays date. */ // @ApiMember(DataType="dateTime", Description="Optional start date for the search interval. If not set it will default to todays date.", ParameterType="query") public var dateStart:Date? /** * Optional end date for the search interval. If not set all future queue items will be returned. */ // @ApiMember(DataType="dateTime", Description="Optional end date for the search interval. If not set all future queue items will be returned.", ParameterType="query") public var dateEnd:Date? /** * Set to true if you want to include the queue items for the company you are logged in as administrator on, if false only queue items for the logged in user will be retrieved. Only administrators are allowed to do this. */ // @ApiMember(DataType="boolean", Description="Set to true if you want to include the queue items for the company you are logged in as administrator on, if false only queue items for the logged in user will be retrieved. Only administrators are allowed to do this.", ParameterType="query") public var companyQueueItems:Bool? /** * Optional filter for a specific service id. */ // @ApiMember(DataType="int", Description="Optional filter for a specific service id.", ParameterType="query") public var serviceId:Int? /** * Optional filter for a specific customer id. */ // @ApiMember(DataType="Guid", Description="Optional filter for a specific customer id.", ParameterType="query") public var customerId:String? /** * If you want to include the service information for the booking */ // @ApiMember(DataType="boolean", Description="If you want to include the service information for the booking", ParameterType="query") public var includeServiceInformation:Bool? /** * If you want to include the company information for the booking */ // @ApiMember(DataType="boolean", Description="If you want to include the company information for the booking", ParameterType="query") public var includeCompanyInformation:Bool? /** * If you want to include the customer information for the booking */ // @ApiMember(DataType="boolean", Description="If you want to include the customer information for the booking", ParameterType="query") public var includeCustomerInformation:Bool? /** * Number of records to skip (for pagination) */ // @ApiMember(DataType="int", Description="Number of records to skip (for pagination)", ParameterType="query") public var skip:Int? /** * Maximum number of records to return (for pagination) */ // @ApiMember(DataType="int", Description="Maximum number of records to return (for pagination)", ParameterType="query") public var take:Int? required public init(){} } public class GroupBookingSettings : Codable { public var active:Bool? public var min:Int? public var max:Int? required public init(){} } public class MultipleResourceSettings : Codable { public var active:Bool? public var min:Int? public var max:Int? required public init(){} } public class BookedCustomer : Codable { public var id:String? public var firstname:String? public var lastname:String? public var email:String? public var phone:String? public var facebookUserName:String? public var imageUrl:String? public var personalIdentityNumber:String? public var corporateIdentityNumber:String? public var invoiceAddress1:String? public var invoiceAddress2:String? public var invoiceCity:String? public var invoicePostalCode:String? public var invoiceCountryCode:String? required public init(){} } public class ServiceInfoResponse : Codable { public var id:Int? public var name:String? public var Description:String? public var imageUrl:Uri? public var lengthInMinutes:Int? public var maxNumberOfSpotsPerBooking:Int? public var minNumberOfSpotsPerBooking:Int? public var groupBooking:GroupBookingSettings? public var multipleResource:MultipleResourceSettings? public var isGroupBooking:Bool? public var isPaymentEnabled:Bool? required public init(){} } public class BookingUserQueuePriceResponse : Codable { public var companyId:String? public var id:Int? public var bookingUserQueueId:Int? public var servicePriceId:Int? public var quantity:Int? public var price:Double? public var priceText:String? required public init(){} } public class CompanyInfoResponse : Codable { public var id:String? public var name:String? public var logoType:Uri? public var sitePath:String? required public init(){} } public class BookingUserQueueItemResponse : Codable { public var bookingUserQueueId:Int? public var companyId:String? public var customerId:String? public var serviceId:Int? public var from:Date? public var to:Date? public var statusCode:Int? public var statusName:String? public var sendConfirmationTime:Date? public var quantities:[BookingUserQueuePriceResponse] = [] public var service:ServiceInfoResponse? public var company:CompanyInfoResponse? public var customer:BookedCustomer? required public init(){} }