/* Options: Date: 2026-08-02 19:35:12 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ConfirmBookingReservationPayment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class ConfirmBookingReservationPaymentResponse implements IConvertible { /** * The created booking id once the reservation was converted. */ // @ApiMember(Description="The created booking id once the reservation was converted.") int? BookingId; /** * The BookingReservationStatus value after confirmation. */ // @ApiMember(Description="The BookingReservationStatus value after confirmation.") int StatusCode = 0; /** * The BookingReservationStatus name after confirmation. */ // @ApiMember(Description="The BookingReservationStatus name after confirmation.") String StatusName = ""; /** * The verified final price of the reservation, if any. */ // @ApiMember(Description="The verified final price of the reservation, if any.") double? Price; ResponseStatus ResponseStatus; ConfirmBookingReservationPaymentResponse({this.BookingId,this.StatusCode,this.StatusName,this.Price,this.ResponseStatus}); ConfirmBookingReservationPaymentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BookingId = json['BookingId']; StatusCode = json['StatusCode']; StatusName = json['StatusName']; Price = JsonConverters.toDouble(json['Price']); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'BookingId': BookingId, 'StatusCode': StatusCode, 'StatusName': StatusName, 'Price': Price, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ConfirmBookingReservationPaymentResponse"; TypeContext? context = _ctx; } // @Route("/bookingreservations/{SessionKey}/confirmpayment", "POST") // @ApiResponse(Description="No reservation found for the given session key", StatusCode=404) // @ApiResponse(Description="The payment could not be verified or the captured amount did not match", StatusCode=400) // @ApiResponse(Description="The selected slot is no longer available; the payment was refunded", StatusCode=409) class ConfirmBookingReservationPayment implements IReturn, ICompany, IConvertible, IPost { /** * The opaque session key that identifies the reservation. */ // @ApiMember(Description="The opaque session key that identifies the reservation.", IsRequired=true, ParameterType="path") String SessionKey = ""; /** * 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.") String? CompanyId; /** * The id of the Stripe PaymentIntent the client has already confirmed for this reservation. */ // @ApiMember(Description="The id of the Stripe PaymentIntent the client has already confirmed for this reservation.", IsRequired=true) String PaymentIntentId = ""; ConfirmBookingReservationPayment({this.SessionKey,this.CompanyId,this.PaymentIntentId}); ConfirmBookingReservationPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SessionKey = json['SessionKey']; CompanyId = json['CompanyId']; PaymentIntentId = json['PaymentIntentId']; return this; } Map toJson() => { 'SessionKey': SessionKey, 'CompanyId': CompanyId, 'PaymentIntentId': PaymentIntentId }; createResponse() => ConfirmBookingReservationPaymentResponse(); getResponseTypeName() => "ConfirmBookingReservationPaymentResponse"; getTypeName() => "ConfirmBookingReservationPayment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ConfirmBookingReservationPaymentResponse': TypeInfo(TypeOf.Class, create:() => ConfirmBookingReservationPaymentResponse()), 'ConfirmBookingReservationPayment': TypeInfo(TypeOf.Class, create:() => ConfirmBookingReservationPayment()), });