/* Options: Date: 2026-08-05 00:09:18 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CommitBookingReservation.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/bookingreservations/{SessionKey}/commit", Verbs="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) open class CommitBookingReservation : IReturn, ICompany { /** * The opaque session key that identifies the reservation. */ @ApiMember(Description="The opaque session key that identifies the reservation.", IsRequired=true, ParameterType="path") open var SessionKey:UUID? = null /** * 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.") override var CompanyId:UUID? = null /** * Rebate codes to apply when computing the final price. */ @ApiMember(Description="Rebate codes to apply when computing the final price.") open var RebateCodeIds:ArrayList = ArrayList() companion object { private val responseType = CommitBookingReservationResponse::class.java } override fun getResponseType(): Any? = CommitBookingReservation.responseType } open class CommitBookingReservationResponse { /** * The opaque session key that identifies the reservation. */ @ApiMember(Description="The opaque session key that identifies the reservation.") open var SessionKey:UUID? = null /** * The BookingReservationStatus value after commit. */ @ApiMember(Description="The BookingReservationStatus value after commit.") open var StatusCode:Int? = null /** * The BookingReservationStatus name after commit. */ @ApiMember(Description="The BookingReservationStatus name after commit.") open var StatusName:String? = null /** * 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).") open var PaymentRequired:Boolean? = null /** * 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.") open var BookingId:Int? = null /** * The computed final price of the reservation, if any. */ @ApiMember(Description="The computed final price of the reservation, if any.") open var Price:BigDecimal? = null /** * 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.") open var InternalReferenceId:String? = null open var ResponseStatus:ResponseStatus? = null } interface ICompany { var CompanyId:UUID? }