/* Options: Date: 2024-11-21 11:46:57 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: UpdateAllQuantities.* //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 ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class BookedQuantity { /// ///The quantity Id /// [ApiMember(Description="The quantity Id")] public virtual int Id { get; set; } /// ///The quantity for booked on this price category /// [ApiMember(Description="The quantity for booked on this price category")] public virtual int Quantity { get; set; } /// ///The price /// [ApiMember(Description="The price")] public virtual double? Price { get; set; } /// ///The price bofore rebate codes /// [ApiMember(Description="The price bofore rebate codes")] public virtual double? PriceBeforeRebate { 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 category /// [ApiMember(Description="The price category")] public virtual string Category { get; set; } /// ///The price VAT in percent /// [ApiMember(Description="The price VAT in percent")] public virtual decimal? VAT { get; set; } /// ///The price text to display /// [ApiMember(Description="The price text to display")] public virtual string PriceText { 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; } } [Route("/bookings/{BookingId}/quantity/", "PUT")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ApiResponse(Description="You have too low privileges to call this service", StatusCode=403)] [ValidateRequest("IsAuthenticated")] public partial class UpdateAllQuantities : IReturn, ICompany { public UpdateAllQuantities() { Quantities = new QuantityToUpdate[]{}; } /// ///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 booking /// [ApiMember(Description="Id of the booking", IsRequired=true, ParameterType="path")] public virtual int BookingId { get; set; } /// ///Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot. /// [ApiMember(Description="Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.")] public virtual QuantityToUpdate[] Quantities { get; set; } /// ///Any comments to be stored in the event log. /// [ApiMember(Description="Any comments to be stored in the event log.")] public virtual string Comments { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }