/* Options: Date: 2026-08-02 19:40:30 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: True //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: CommitBookingReservation.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.Net; using System.Net.Http.Headers; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [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)] public partial class CommitBookingReservation : IReturn, ICompany { /// ///The opaque session key that identifies the reservation. /// [ApiMember(Description="The opaque session key that identifies the reservation.", IsRequired=true, ParameterType="path")] public virtual Guid SessionKey { get; set; } /// ///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 virtual Guid? CompanyId { get; set; } /// ///Rebate codes to apply when computing the final price. /// [ApiMember(Description="Rebate codes to apply when computing the final price.")] public virtual List RebateCodeIds { get; set; } = []; } public partial class CommitBookingReservationResponse { /// ///The opaque session key that identifies the reservation. /// [ApiMember(Description="The opaque session key that identifies the reservation.")] public virtual Guid SessionKey { get; set; } /// ///The BookingReservationStatus value after commit. /// [ApiMember(Description="The BookingReservationStatus value after commit.")] public virtual int StatusCode { get; set; } /// ///The BookingReservationStatus name after commit. /// [ApiMember(Description="The BookingReservationStatus name after commit.")] public virtual string StatusName { get; set; } /// ///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 virtual bool PaymentRequired { get; set; } /// ///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 virtual int? BookingId { get; set; } /// ///The computed final price of the reservation, if any. /// [ApiMember(Description="The computed final price of the reservation, if any.")] public virtual decimal? Price { get; set; } /// ///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 virtual string InternalReferenceId { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }