/* Options: Date: 2026-08-03 13:12:46 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: CommitBookingReservation.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/bookingreservations/{SessionKey}/commit", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="No reservation found for the given session key", StatusCode=404) // @ApiResponse(Description="The selected slot is no longer available", StatusCode=409) public class CommitBookingReservation : IReturn, ICompany, Codable { public typealias Return = CommitBookingReservationResponse /** * The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.", IsRequired=true, ParameterType="path") public var sessionKey:String? /** * 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? /** * Rebate codes to apply when computing the final price. */ // @ApiMember(Description="Rebate codes to apply when computing the final price.") public var rebateCodeIds:[Int] = [] required public init(){} } public class CommitBookingReservationResponse : Codable { /** * The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.") public var sessionKey:String? /** * The BookingReservationStatus value after commit. */ // @ApiMember(Description="The BookingReservationStatus value after commit.") public var statusCode:Int? /** * The BookingReservationStatus name after commit. */ // @ApiMember(Description="The BookingReservationStatus name after commit.") public var statusName:String? /** * True when the customer still needs to pay (reservation moved to AwaitingPayment). */ // @ApiMember(Description="True when the customer still needs to pay (reservation moved to AwaitingPayment).") public var paymentRequired:Bool? /** * The created booking id, set when the reservation was converted without payment. */ // @ApiMember(Description="The created booking id, set when the reservation was converted without payment.") public var bookingId:Int? /** * The computed final price of the reservation, if any. */ // @ApiMember(Description="The computed final price of the reservation, if any.") public var price:Double? /** * The reservation payable reference to use as the checkout InternalReferenceId when PaymentRequired is true. */ // @ApiMember(Description="The reservation payable reference to use as the checkout InternalReferenceId when PaymentRequired is true.") public var internalReferenceId:String? public var responseStatus:ResponseStatus? required public init(){} } public protocol ICompany { var companyId:String? { get set } }