/* Options:
Date: 2025-09-15 16:20:18
Version: 8.80
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: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: False
//ExportValueTypes: False
IncludeTypes: UpdateServicePrice.*
//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 DayOfWeekDto
{
public virtual int DayOfWeekId { get; set; }
public virtual int DotNetDayOfWeekId { get; set; }
public virtual string DayOfWeek { 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 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 ServicePriceResponse
{
///
///The company id
///
[ApiMember(Description="The company id")]
public virtual Guid CompanyId { get; set; }
///
///The price id
///
[ApiMember(Description="The price id")]
public virtual int Id { get; set; }
///
///The service id
///
[ApiMember(Description="The service id")]
public virtual int ServiceId { get; set; }
///
///The price
///
[ApiMember(Description="The price")]
public virtual double Price { get; set; }
///
///The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day
///
[ApiMember(Description="The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day")]
public virtual int CalculationTypeId { get; set; }
///
///The price currency
///
[ApiMember(Description="The price currency")]
public virtual string CurrencyId { get; set; }
///
///The price sign
///
[ApiMember(Description="The price sign")]
public virtual string PriceSign { get; set; }
///
///The price VAT in percent
///
[ApiMember(Description="The price VAT in percent")]
public virtual decimal VAT { get; set; }
///
///The price category if price has a category
///
[ApiMember(Description="The price category if price has a category")]
public virtual string Category { get; set; }
///
///The price text to display
///
[ApiMember(Description="The price text to display")]
public virtual string PriceText { get; set; }
///
///The valid from date for the price.
///
[ApiMember(Description="The valid from date for the price.")]
public virtual DateTime From { get; set; }
///
///The valid to date for the price.
///
[ApiMember(Description="The valid to date for the price.")]
public virtual DateTime To { get; set; }
///
///If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.
///
[ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")]
public virtual List DaysOfWeek { get; set; }
///
///If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.
///
[ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")]
public virtual TimeSpan? FromTime { get; set; }
///
///If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.
///
[ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.")]
public virtual TimeSpan? ToTime { get; set; }
public virtual ServiceInfoResponse Service { get; set; }
///
///If the price is only valid for a specific time span
///
[ApiMember(Description="If the price is only valid for a specific time span")]
public virtual bool IsTimeSpecific { get; set; }
///
///If the price is only valid for specific days of week
///
[ApiMember(Description="If the price is only valid for specific days of week")]
public virtual bool IsDaysOfWeekSpecific { get; set; }
}
[Route("/services/prices/{Id}", "PUT")]
[ValidateRequest("IsAuthenticated")]
public partial class UpdateServicePrice
: 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; }
///
///Id of the price
///
[ApiMember(Description="Id of the price", IsRequired=true, ParameterType="path")]
public virtual int Id { get; set; }
///
///The price
///
[ApiMember(Description="The price")]
public virtual double Price { get; set; }
///
///The price currency
///
[ApiMember(Description="The price currency")]
public virtual string CurrencyId { get; set; }
///
///The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day
///
[ApiMember(Description="The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day")]
public virtual int CalculationTypeId { get; set; }
///
///The price VAT in percent
///
[ApiMember(Description="The price VAT in percent")]
public virtual decimal VAT { get; set; }
///
///The price category if price has a category
///
[ApiMember(Description="The price category if price has a category")]
public virtual string Category { get; set; }
///
///The valid from date for the price.
///
[ApiMember(Description="The valid from date for the price.")]
public virtual DateTime From { get; set; }
///
///The valid to date for the price.
///
[ApiMember(Description="The valid to date for the price.")]
public virtual DateTime To { get; set; }
///
///If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.
///
[ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")]
public virtual int[] DaysOfWeek { get; set; }
///
///If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.
///
[ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")]
public virtual TimeSpan? FromTime { get; set; }
///
///If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.
///
[ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.")]
public virtual TimeSpan? ToTime { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}