/* Options: Date: 2024-11-21 12:06:02 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: CreateBookingLogItem.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/bookinglog", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) public class CreateBookingLogItem : IReturn, ICompany, Codable { public typealias Return = BookingLogQueryResponse /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public var companyId:String? /** * The booking id */ // @ApiMember(Description="The booking id", IsRequired=true) public var bookingId:Int /** * The type of event */ // @ApiMember(Description="The type of event", IsRequired=true) public var eventTypeId:Int /** * Comments that could be added to the event log item */ // @ApiMember(Description="Comments that could be added to the event log item", IsRequired=true) public var comments:String /** * Then date when the event occured, leave blank if current datetime */ // @ApiMember(Description="Then date when the event occured, leave blank if current datetime", IsRequired=true) public var created:Date? required public init(){} } public class BookingLogQueryResponse : Codable { /** * The booking log id */ // @ApiMember(Description="The booking log id") public var id:Int /** * The booking id */ // @ApiMember(Description="The booking id") public var bookingId:Int /** * The type of event */ // @ApiMember(Description="The type of event") public var eventTypeId:Int /** * The type of event */ // @ApiMember(Description="The type of event") public var eventType:BookingLogEventTypeResponse /** * Comments that could be added to the event log item */ // @ApiMember(Description="Comments that could be added to the event log item") public var comments:String /** * The user created the event */ // @ApiMember(Description="The user created the event") public var userName:String /** * Then date when the event occured */ // @ApiMember(Description="Then date when the event occured") public var created:Date required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class BookingLogEventTypeResponse : Codable { /** * The event type id */ // @ApiMember(Description="The event type id") public var id:Int /** * The event type name */ // @ApiMember(Description="The event type name") public var name:String /** * The event type description */ // @ApiMember(Description="The event type description") public var Description:String required public init(){} }