/* Options: Date: 2024-07-03 14:20:43 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: CreateBookingLogItem.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/bookinglog", Verbs="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) open class CreateBookingLogItem : IReturn, ICompany { /** * 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.") var CompanyId:UUID? = null /** * The booking id */ @ApiMember(Description="The booking id", IsRequired=true) var BookingId:Int? = null /** * The type of event */ @ApiMember(Description="The type of event", IsRequired=true) var EventTypeId:Int? = null /** * Comments that could be added to the event log item */ @ApiMember(Description="Comments that could be added to the event log item", IsRequired=true) var Comments:String? = null /** * 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) var Created:Date? = null companion object { private val responseType = BookingLogQueryResponse::class.java } override fun getResponseType(): Any? = CreateBookingLogItem.responseType } open class BookingLogQueryResponse { /** * The booking log id */ @ApiMember(Description="The booking log id") var Id:Int? = null /** * The booking id */ @ApiMember(Description="The booking id") var BookingId:Int? = null /** * The type of event */ @ApiMember(Description="The type of event") var EventTypeId:Int? = null /** * The type of event */ @ApiMember(Description="The type of event") var EventType:BookingLogEventTypeResponse? = null /** * Comments that could be added to the event log item */ @ApiMember(Description="Comments that could be added to the event log item") var Comments:String? = null /** * The user created the event */ @ApiMember(Description="The user created the event") var UserName:String? = null /** * Then date when the event occured */ @ApiMember(Description="Then date when the event occured") var Created:Date? = null } open interface ICompany { var CompanyId:UUID? } open class BookingLogEventTypeResponse { /** * The event type id */ @ApiMember(Description="The event type id") var Id:Int? = null /** * The event type name */ @ApiMember(Description="The event type name") var Name:String? = null /** * The event type description */ @ApiMember(Description="The event type description") var Description:String? = null }