/* Options:
Date: 2024-11-21 11:52:34
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: UpdateQuantity.*
//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/{Id}", "PUT")]
[ValidateRequest("IsAuthenticated")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403)]
public partial class UpdateQuantity
: 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; }
///
///Id of the quantity
///
[ApiMember(Description="Id of the quantity", IsRequired=true, ParameterType="path")]
public virtual int? Id { 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; }
///
///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 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; }
///
///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; }
///
///If you want the amount to be refunded automatically if amount is lower than paid
///
[ApiMember(Description="If you want the amount to be refunded automatically if amount is lower than paid")]
public virtual bool Refund { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}