/* Options: Date: 2024-11-21 11:39:07 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateBookingLogItem.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class BookingLogEventTypeResponse { /** @description The event type id */ // @ApiMember(Description="The event type id") public Id: number; /** @description The event type name */ // @ApiMember(Description="The event type name") public Name: string; /** @description The event type description */ // @ApiMember(Description="The event type description") public Description: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class BookingLogQueryResponse { /** @description The booking log id */ // @ApiMember(Description="The booking log id") public Id: number; /** @description The booking id */ // @ApiMember(Description="The booking id") public BookingId: number; /** @description The type of event */ // @ApiMember(Description="The type of event") public EventTypeId: number; /** @description The type of event */ // @ApiMember(Description="The type of event") public EventType: BookingLogEventTypeResponse; /** @description Comments that could be added to the event log item */ // @ApiMember(Description="Comments that could be added to the event log item") public Comments: string; /** @description The user created the event */ // @ApiMember(Description="The user created the event") public UserName: string; /** @description Then date when the event occured */ // @ApiMember(Description="Then date when the event occured") public Created: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @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) export class CreateBookingLogItem implements IReturn, ICompany { /** @description 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 CompanyId?: string; /** @description The booking id */ // @ApiMember(Description="The booking id", IsRequired=true) public BookingId: number; /** @description The type of event */ // @ApiMember(Description="The type of event", IsRequired=true) public EventTypeId: number; /** @description 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 Comments: string; /** @description 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 Created: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateBookingLogItem'; } public getMethod() { return 'POST'; } public createResponse() { return new BookingLogQueryResponse(); } }