/* Options: Date: 2026-08-03 16:17:29 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetBookingReservation.* //ExcludeTypes: //DefaultImports: */ // @ts-nocheck export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message?: string; // @DataMember(Order=3) public StackTrace?: string; // @DataMember(Order=4) public Errors?: ResponseError[]; // @DataMember(Order=5) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class BookingReservationResponse { /** @description The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.") public SessionKey: string; /** @description The company id. */ // @ApiMember(Description="The company id.") public CompanyId: string; /** @description The reserved service id. */ // @ApiMember(Description="The reserved service id.") public ServiceId: number; /** @description The reservation start. */ // @ApiMember(Description="The reservation start.") public From: string; /** @description The reservation end. */ // @ApiMember(Description="The reservation end.") public To: string; /** @description The BookingReservationStatus value. */ // @ApiMember(Description="The BookingReservationStatus value.") public StatusCode: number; /** @description The BookingReservationStatus name. */ // @ApiMember(Description="The BookingReservationStatus name.") public StatusName: string; /** @description When the hold expires (company-local time). */ // @ApiMember(Description="When the hold expires (company-local time).") public ExpirationDatetime: string; /** @description Number of reserved spots. */ // @ApiMember(Description="Number of reserved spots.") public NumberOfBookedSpots: number; /** @description The computed price of the reservation, if any. */ // @ApiMember(Description="The computed price of the reservation, if any.") public Price?: number; /** @description The currency of the price, if any. */ // @ApiMember(Description="The currency of the price, if any.") public CurrencyId: string; /** @description Ids of the resources held by the reservation. */ // @ApiMember(Description="Ids of the resources held by the reservation.") public ResourceIds: number[] = []; /** @description The full in-progress selection payload (wizard/session state) as JSON. */ // @ApiMember(Description="The full in-progress selection payload (wizard/session state) as JSON.") public SelectionPayload: string; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/bookingreservations/{SessionKey}", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="No reservation found for the given session key", StatusCode=404) export class GetBookingReservation implements IReturn, ICompany { /** @description The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.", IsRequired=true, ParameterType="path") public SessionKey: string; /** @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; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetBookingReservation'; } public getMethod() { return 'GET'; } public createResponse() { return new BookingReservationResponse(); } }