/* Options:
Date: 2026-03-14 11:59:11
Version: 10.05
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bookmore.com
//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: CreateBookingUserQueue.*
//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.Dtos;
using BokaMera.API.ServiceModel.Dtos.Commons;
using BokaMera.API.ServiceModel.Interfaces;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class AddCustomField
{
public virtual int Id { get; set; }
public virtual string Value { get; set; }
}
public partial class BookedCustomer
{
public virtual Guid Id { get; set; }
public virtual string Firstname { get; set; }
public virtual string Lastname { get; set; }
public virtual string Email { get; set; }
public virtual string Phone { get; set; }
public virtual string FacebookUserName { get; set; }
public virtual string ImageUrl { get; set; }
public virtual string PersonalIdentityNumber { get; set; }
public virtual string CorporateIdentityNumber { get; set; }
public virtual string InvoiceAddress1 { get; set; }
public virtual string InvoiceAddress2 { get; set; }
public virtual string InvoiceCity { get; set; }
public virtual string InvoicePostalCode { get; set; }
public virtual string InvoiceCountryCode { get; set; }
///
///Tags attached to this customer.
///
[ApiMember(Description="Tags attached to this customer.")]
public virtual List Tags { get; set; } = [];
}
public partial class BookingUserQueueItemResponse
{
public virtual int BookingUserQueueId { get; set; }
public virtual Guid CompanyId { get; set; }
public virtual Guid CustomerId { get; set; }
public virtual int ServiceId { get; set; }
public virtual DateTime From { get; set; }
public virtual DateTime To { get; set; }
public virtual int StatusCode { get; set; }
public virtual string StatusName { get; set; }
public virtual DateTime? SendConfirmationTime { get; set; }
public virtual List Quantities { get; set; } = [];
public virtual ServiceInfoResponse Service { get; set; }
public virtual CompanyInfoResponse Company { get; set; }
public virtual BookedCustomer Customer { get; set; }
}
public partial class BookingUserQueuePriceResponse
{
public virtual Guid CompanyId { get; set; }
public virtual int Id { get; set; }
public virtual int BookingUserQueueId { get; set; }
public virtual int? ServicePriceId { get; set; }
public virtual int? Quantity { get; set; }
public virtual double? Price { get; set; }
public virtual string PriceText { get; set; }
}
public partial class CompanyInfoResponse
{
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
public virtual Uri LogoType { get; set; }
public virtual string SitePath { get; set; }
}
[Route("/bookinguserqueue", "POST")]
public partial class CreateBookingUserQueue
: IReturn
{
public virtual Guid? CompanyId { get; set; }
public virtual Guid? CustomerId { get; set; }
public virtual CustomerToHandle Customer { get; set; }
public virtual InvoiceAddressToHandle InvoiceAddress { get; set; }
public virtual int ServiceId { get; set; }
public virtual DateTime From { get; set; }
public virtual DateTime To { get; set; }
public virtual List Quantities { get; set; } = [];
///
///If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved
///
[ApiMember(Description="If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved")]
public virtual List CustomFields { get; set; } = [];
}
public partial class CustomerToHandle
: CustomerBase
{
}
public partial class GroupBookingSettings
{
public virtual bool Active { get; set; }
public virtual int Min { get; set; }
public virtual int Max { get; set; }
}
public partial class InvoiceAddressToHandle
: IInvoiceAddress
{
public virtual string CorporateIdentityNumber { get; set; }
public virtual string InvoiceAddress1 { get; set; }
public virtual string InvoiceAddress2 { get; set; }
public virtual string InvoiceCity { get; set; }
public virtual string InvoicePostalCode { get; set; }
public virtual string InvoiceCountryCode { get; set; }
}
public partial class MultipleResourceSettings
{
public virtual bool Active { get; set; }
public virtual int Min { get; set; }
public virtual int Max { get; set; }
}
public partial class QuantityToBook
{
///
///If service has a price, enter the price id for that price. If no price exists for the service set 0 as PriceId. If you put 0 and a price exists, it will use that price (only works if just one price exists for the current selected date to book)
///
[ApiMember(Description="If service has a price, enter the price id for that price. If no price exists for the service set 0 as PriceId. If you put 0 and a price exists, it will use that price (only works if just one price exists for the current selected date to book)", IsRequired=true)]
public virtual int PriceId { get; set; }
///
///Set the number of spots or resources you want to book on the specific price category
///
[ApiMember(Description="Set the number of spots or resources you want to book on the specific price category", IsRequired=true)]
public virtual int Quantity { get; set; }
///
///If the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information.
///
[ApiMember(Description="If the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information.")]
public virtual bool OccupiesSpot { get; set; }
}
public partial class ServiceInfoResponse
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual string Description { get; set; }
public virtual Uri ImageUrl { get; set; }
public virtual int? LengthInMinutes { get; set; }
public virtual int MaxNumberOfSpotsPerBooking { get; set; }
public virtual int MinNumberOfSpotsPerBooking { get; set; }
public virtual GroupBookingSettings GroupBooking { get; set; }
public virtual MultipleResourceSettings MultipleResource { get; set; }
public virtual bool IsGroupBooking { get; set; }
public virtual bool IsPaymentEnabled { get; set; }
}
public partial class TagResponse
{
public virtual int Id { get; set; }
public virtual Guid CompanyId { get; set; }
public virtual string Name { get; set; }
public virtual int Scope { get; set; }
public virtual string Color { get; set; }
public virtual int SortOrder { get; set; }
public virtual bool Active { get; set; }
public virtual DateTime CreatedDate { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Dtos.Commons
{
public partial class CustomerBase
: ICustomerBase
{
public virtual Guid? CustomerId { get; set; }
public virtual string Firstname { get; set; }
public virtual string Lastname { get; set; }
public virtual string Email { get; set; }
public virtual string Phone { get; set; }
public virtual bool SubscribedToNewsletter { get; set; }
public virtual string PersonalIdentityNumber { get; set; }
}
public partial interface ICustomerBase
{
Guid? CustomerId { get; set; }
string Firstname { get; set; }
string Lastname { get; set; }
string Email { get; set; }
string Phone { get; set; }
bool SubscribedToNewsletter { get; set; }
string PersonalIdentityNumber { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface IInvoiceAddress
{
string CorporateIdentityNumber { get; set; }
string InvoiceAddress1 { get; set; }
string InvoiceAddress2 { get; set; }
string InvoiceCity { get; set; }
string InvoicePostalCode { get; set; }
string InvoiceCountryCode { get; set; }
}
}