/* Options: Date: 2026-08-22 18:00:21 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: GetMyBookingReservations.* //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 MyBookingReservationResult { /** @description The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.") public SessionKey: string; /** @description The reserved service id. */ // @ApiMember(Description="The reserved service id.") public ServiceId: number; /** @description The reserved service name. */ // @ApiMember(Description="The reserved service name.") public ServiceName: string; /** @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 Number of reserved spots. */ // @ApiMember(Description="Number of reserved spots.") public NumberOfBookedSpots: number; /** @description When the hold expires (company-local time). */ // @ApiMember(Description="When the hold expires (company-local time).") public ExpirationDatetime: string; /** @description The company's current time, in the same frame as ExpirationDatetime. */ // @ApiMember(Description="The company's current time, in the same frame as ExpirationDatetime.") public ServerTime: string; /** @description The BookingReservationStatus value (AwaitingPayment). */ // @ApiMember(Description="The BookingReservationStatus value (AwaitingPayment).") public StatusCode: number; /** @description The BookingReservationStatus name. */ // @ApiMember(Description="The BookingReservationStatus name.") public StatusName: string; /** @description The currency of the reservation, if resolved. */ // @ApiMember(Description="The currency of the reservation, if resolved.") public CurrencyId: string; /** @description The payable reference to use as the checkout InternalReferenceId when resuming payment. */ // @ApiMember(Description="The payable reference to use as the checkout InternalReferenceId when resuming payment.") public InternalReferenceId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MyBookingReservationsResponse { /** @description The caller's awaiting-payment reservations. */ // @ApiMember(Description="The caller's awaiting-payment reservations.") public Results: MyBookingReservationResult[] = []; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/bookingreservations/mine", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) export class GetMyBookingReservations 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; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetMyBookingReservations'; } public getMethod() { return 'GET'; } public createResponse() { return new MyBookingReservationsResponse(); } }