/* Options:
Date: 2026-08-02 19:39:45
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: QueryBookingReservations.*
//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 AdminBookingReservationResult
{
///
///The internal reservation id (target for the release endpoint).
///
[ApiMember(Description="The internal reservation id (target for the release endpoint).")]
public virtual int Id { get; set; }
///
///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 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; }
///
///Number of reserved spots.
///
[ApiMember(Description="Number of reserved spots.")]
public virtual int NumberOfBookedSpots { 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 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; }
///
///The customer id holding the reservation, if any.
///
[ApiMember(Description="The customer id holding the reservation, if any.")]
public virtual Guid? CustomerId { get; set; }
///
///The customer's full name, when a customer is attached.
///
[ApiMember(Description="The customer's full name, when a customer is attached.")]
public virtual string CustomerName { get; set; }
///
///The customer email (falls back to the BookedBy email when no customer is attached).
///
[ApiMember(Description="The customer email (falls back to the BookedBy email when no customer is attached).")]
public virtual string CustomerEmail { get; set; }
}
[Route("/admin/bookingreservations", "GET")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ApiResponse(Description="You are not an administrator for the requested company", StatusCode=403)]
public partial class QueryBookingReservations
: 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; }
///
///Only holds for this service id.
///
[ApiMember(Description="Only holds for this service id.")]
public virtual int? ServiceId { get; set; }
///
///Only holds whose start (From) is on or after this datetime.
///
[ApiMember(Description="Only holds whose start (From) is on or after this datetime.")]
public virtual DateTime? From { get; set; }
///
///Only holds whose start (From) is on or before this datetime.
///
[ApiMember(Description="Only holds whose start (From) is on or before this datetime.")]
public virtual DateTime? To { get; set; }
///
///Filter by BookingReservationStatus value. When omitted, the spot-holding statuses (Selecting=1, AwaitingPayment=2) are returned.
///
[ApiMember(Description="Filter by BookingReservationStatus value. When omitted, the spot-holding statuses (Selecting=1, AwaitingPayment=2) are returned.")]
public virtual int? StatusCode { get; set; }
}
public partial class QueryBookingReservationsResponse
{
///
///The matching reservation holds.
///
[ApiMember(Description="The matching reservation holds.")]
public virtual List Results { get; set; } = [];
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}