/* Options: Date: 2026-08-22 17:48:17 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: GetCurrentBookingReservation.* //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 { public partial class BookingReservationResponse { /// ///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 company id. /// [ApiMember(Description="The company id.")] public virtual Guid CompanyId { get; set; } /// ///The reserved service id. /// [ApiMember(Description="The reserved service id.")] public virtual int ServiceId { get; set; } /// ///The reservation start. /// [ApiMember(Description="The reservation start.")] public virtual DateTime From { get; set; } /// ///The reservation end. /// [ApiMember(Description="The reservation end.")] public virtual DateTime To { get; set; } /// ///The BookingReservationStatus value. /// [ApiMember(Description="The BookingReservationStatus value.")] public virtual int StatusCode { get; set; } /// ///The BookingReservationStatus name. /// [ApiMember(Description="The BookingReservationStatus name.")] public virtual string StatusName { get; set; } /// ///When the hold expires (company-local time). /// [ApiMember(Description="When the hold expires (company-local time).")] public virtual DateTime ExpirationDatetime { get; set; } /// ///The company's current time, in the same company-local frame as ExpirationDatetime. Clients compute the remaining hold as (ExpirationDatetime - ServerTime) so a countdown is correct regardless of the viewer's timezone or clock skew. /// [ApiMember(Description="The company's current time, in the same company-local frame as ExpirationDatetime. Clients compute the remaining hold as (ExpirationDatetime - ServerTime) so a countdown is correct regardless of the viewer's timezone or clock skew.")] public virtual DateTime ServerTime { get; set; } /// ///Number of reserved spots. /// [ApiMember(Description="Number of reserved spots.")] public virtual int NumberOfBookedSpots { get; set; } /// ///The computed price of the reservation, if any. /// [ApiMember(Description="The computed price of the reservation, if any.")] public virtual decimal? Price { get; set; } /// ///The currency of the price, if any. /// [ApiMember(Description="The currency of the price, if any.")] public virtual string CurrencyId { get; set; } /// ///Ids of the resources held by the reservation. /// [ApiMember(Description="Ids of the resources held by the reservation.")] public virtual List ResourceIds { get; set; } = []; /// ///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 virtual string SelectionPayload { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } [Route("/bookingreservations/current", "GET")] [ApiResponse(Description="No active reservation hold for the caller", StatusCode=404)] public partial class GetCurrentBookingReservation : IReturn, ICompany { /// ///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; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }