/* Options: Date: 2024-12-03 18:22: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: AddQuantity.* //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 BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/bookings/{BookingId}/quantity/", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403)] [ValidateRequest("IsAuthenticated")] public partial class AddQuantity : 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 booking /// [ApiMember(Description="Id of the booking", IsRequired=true, ParameterType="path")] public virtual int? BookingId { get; set; } /// ///The quantity for booked on this price category /// [ApiMember(Description="The quantity for booked on this price category", IsRequired=true)] public virtual int? Quantity { 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 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; } /// ///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; } /// ///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; } } 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; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }