/* Options: Date: 2024-07-03 13:18:20 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: CreateBookingUserQueue.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using System.IO; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class BookingUserQueueItemResponse { public BookingUserQueueItemResponse() { Quantities = new List{}; } 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 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 partial class CompanyInfoResponse { public virtual Guid Id { get; set; } public virtual string Name { get; set; } public virtual Uri LogoType { get; set; } public virtual string Category { get; set; } public virtual string Street1 { get; set; } public virtual string Street2 { get; set; } public virtual string ZipCode { get; set; } public virtual string City { get; set; } public virtual string CountryId { get; set; } public virtual string Longitude { get; set; } public virtual string Latitude { get; set; } public virtual string Phone { get; set; } public virtual string Email { get; set; } public virtual string HomePage { get; set; } public virtual string SitePath { get; set; } } [Route("/bookinguserqueue", "POST")] public partial class CreateBookingUserQueue : IReturn { public CreateBookingUserQueue() { Quantities = new List{}; } public virtual Guid? CompanyId { get; set; } public virtual Guid? CustomerId { get; set; } public virtual CustomerToBook Customer { 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; } } public partial class CustomerToBook { /// ///Customers firstname /// [ApiMember(Description="Customers firstname", IsRequired=true)] public virtual string Firstname { get; set; } /// ///Customers lastname /// [ApiMember(Description="Customers lastname", IsRequired=true)] public virtual string Lastname { get; set; } /// ///Customers email /// [ApiMember(Description="Customers email", IsRequired=true)] public virtual string Email { get; set; } /// ///Customers phone number. Mobile phone number is required for SMS messages to be sent. /// [ApiMember(Description="Customers phone number. Mobile phone number is required for SMS messages to be sent.", IsRequired=true)] public virtual string Phone { get; set; } } 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 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 GroupBookingSettings GroupBooking { get; set; } public virtual MultipleResourceSettings MultipleResource { get; set; } public virtual bool IsGroupBooking { get; set; } public virtual bool IsPaymentEnabled { get; set; } } }