/* Options: Date: 2024-11-21 11:40:49 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteOldReservations.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/codelock/{CodeLockSystemsId}/reservations/", Verbs="POST") @ValidateRequest(Validator="IsAuthenticated") open 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.") var CompanyId:UUID? = null /** * 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.") var To:Date? = null /** * The system type of the code lock */ @ApiMember(DataType="int", Description="The system type of the code lock", ParameterType="path") var CodeLockSystemsId:Int? = null /** * If not logged in you can use token to update */ @ApiMember(Description="If not logged in you can use token to update") var Token:String? = null companion object { private val responseType = DeleteOldReservationsResponse::class.java } override fun getResponseType(): Any? = DeleteOldReservations.responseType } open class DeleteOldReservationsResponse { var CompanyId:UUID? = null var Id:Int? = null var From:Date? = null var To:Date? = null var Status:BookingStatusEnum? = null var StatusId:Int? = null var ResponseStatus:ResponseStatus? = null var CreatedDate:Date? = null var UpdatedDate:Date? = null } enum class BookingStatusEnum(val value:Int) { Booked(1), Unbooked(2), Reserved(3), Canceled(4), AwaitingPayment(5), AwaitingPaymentNoTimeLimit(6), Payed(7), AwaitingPaymentRequestFromAdmin(8), AwaitingPaymentFromProvider(9), Invoiced(10), }