/* Options: Date: 2026-08-22 17:59:02 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetMyBookingReservations.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/bookingreservations/mine", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public class GetMyBookingReservations : IReturn, ICompany, Codable { public typealias Return = MyBookingReservationsResponse /** * 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 var companyId:String? required public init(){} } public class MyBookingReservationsResponse : Codable { /** * The caller's awaiting-payment reservations. */ // @ApiMember(Description="The caller's awaiting-payment reservations.") public var results:[MyBookingReservationResult] = [] public var responseStatus:ResponseStatus? required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class MyBookingReservationResult : Codable { /** * The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.") public var sessionKey:String? /** * The reserved service id. */ // @ApiMember(Description="The reserved service id.") public var serviceId:Int? /** * The reserved service name. */ // @ApiMember(Description="The reserved service name.") public var serviceName:String? /** * The reservation start. */ // @ApiMember(Description="The reservation start.") public var from:Date? /** * The reservation end. */ // @ApiMember(Description="The reservation end.") public var to:Date? /** * Number of reserved spots. */ // @ApiMember(Description="Number of reserved spots.") public var numberOfBookedSpots:Int? /** * When the hold expires (company-local time). */ // @ApiMember(Description="When the hold expires (company-local time).") public var expirationDatetime:Date? /** * The company's current time, in the same frame as ExpirationDatetime. */ // @ApiMember(Description="The company's current time, in the same frame as ExpirationDatetime.") public var serverTime:Date? /** * The BookingReservationStatus value (AwaitingPayment). */ // @ApiMember(Description="The BookingReservationStatus value (AwaitingPayment).") public var statusCode:Int? /** * The BookingReservationStatus name. */ // @ApiMember(Description="The BookingReservationStatus name.") public var statusName:String? /** * The currency of the reservation, if resolved. */ // @ApiMember(Description="The currency of the reservation, if resolved.") public var currencyId:String? /** * The payable reference to use as the checkout InternalReferenceId when resuming payment. */ // @ApiMember(Description="The payable reference to use as the checkout InternalReferenceId when resuming payment.") public var internalReferenceId:String? required public init(){} }