/* Options: Date: 2024-11-21 11:27:32 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteOldReservations.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum BookingStatusEnum { Booked = 1, Unbooked = 2, Reserved = 3, Canceled = 4, AwaitingPayment = 5, AwaitingPaymentNoTimeLimit = 6, Payed = 7, AwaitingPaymentRequestFromAdmin = 8, AwaitingPaymentFromProvider = 9, Invoiced = 10, } export class DeleteOldReservationsResponse { public CompanyId: string; public Id: number; public From: string; public To: string; public Status: BookingStatusEnum; public StatusId: number; public ResponseStatus: ResponseStatus; public CreatedDate: string; public UpdatedDate: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/codelock/{CodeLockSystemsId}/reservations/", "POST") // @ValidateRequest(Validator="IsAuthenticated") export class DeleteOldReservations implements IReturn { /** @description 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 CompanyId?: string; /** @description 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 To: string; /** @description The system type of the code lock */ // @ApiMember(DataType="int", Description="The system type of the code lock", ParameterType="path") public CodeLockSystemsId: number; /** @description If not logged in you can use token to update */ // @ApiMember(Description="If not logged in you can use token to update") public Token: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DeleteOldReservations'; } public getMethod() { return 'POST'; } public createResponse() { return new DeleteOldReservationsResponse(); } }