/* Options: Date: 2026-08-03 04:56:18 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: CommitBookingReservation.* //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 CommitBookingReservationResponse { /** @description The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.") public SessionKey: string; /** @description The BookingReservationStatus value after commit. */ // @ApiMember(Description="The BookingReservationStatus value after commit.") public StatusCode: number; /** @description The BookingReservationStatus name after commit. */ // @ApiMember(Description="The BookingReservationStatus name after commit.") public StatusName: string; /** @description True when the customer still needs to pay (reservation moved to AwaitingPayment). */ // @ApiMember(Description="True when the customer still needs to pay (reservation moved to AwaitingPayment).") public PaymentRequired: boolean; /** @description The created booking id, set when the reservation was converted without payment. */ // @ApiMember(Description="The created booking id, set when the reservation was converted without payment.") public BookingId?: number; /** @description The computed final price of the reservation, if any. */ // @ApiMember(Description="The computed final price of the reservation, if any.") public Price?: number; /** @description The reservation payable reference to use as the checkout InternalReferenceId when PaymentRequired is true. */ // @ApiMember(Description="The reservation payable reference to use as the checkout InternalReferenceId when PaymentRequired is true.") public InternalReferenceId: string; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/bookingreservations/{SessionKey}/commit", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="No reservation found for the given session key", StatusCode=404) // @ApiResponse(Description="The selected slot is no longer available", StatusCode=409) export class CommitBookingReservation 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; /** @description Rebate codes to apply when computing the final price. */ // @ApiMember(Description="Rebate codes to apply when computing the final price.") public RebateCodeIds: number[] = []; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CommitBookingReservation'; } public getMethod() { return 'POST'; } public createResponse() { return new CommitBookingReservationResponse(); } }