/* Options: Date: 2024-06-26 11:15:50 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.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: DeleteOldReservations.* //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.Enums; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/codelock/{CodeLockSystemsId}/reservations/", "POST")] [ValidateRequest("IsAuthenticated")] public partial class DeleteOldReservations : IReturn { /// ///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; } /// ///The date to delete To. Only bookings that have ended by this date will be deleted. /// [ApiMember(DataType="datetime", Description="The date to delete To. Only bookings that have ended by this date will be deleted.")] public virtual DateTime To { get; set; } /// ///The system type of the code lock /// [ApiMember(DataType="int", Description="The system type of the code lock", ParameterType="path")] public virtual int CodeLockSystemsId { get; set; } /// ///If not logged in you can use token to update /// [ApiMember(Description="If not logged in you can use token to update")] public virtual string Token { get; set; } } public partial class DeleteOldReservationsResponse { public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } public virtual DateTime From { get; set; } public virtual DateTime To { get; set; } public virtual BookingStatusEnum Status { get; set; } public virtual int StatusId { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual DateTime UpdatedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Enums { public enum BookingStatusEnum { Booked = 1, Unbooked = 2, Reserved = 3, Canceled = 4, AwaitingPayment = 5, AwaitingPaymentNoTimeLimit = 6, Payed = 7, AwaitingPaymentRequestFromAdmin = 8, AwaitingPaymentFromProvider = 9, Invoiced = 10, } }