/* Options: Date: 2026-10-01 10:22:51 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SelfServiceTransferConfirmRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SelfServiceTransferResultBase implements IConvertible { bool? ok; int? statusCode; String? code; String? message; SelfServiceTransferResultBase({this.ok,this.statusCode,this.code,this.message}); SelfServiceTransferResultBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ok = json['ok']; statusCode = json['statusCode']; code = json['code']; message = json['message']; return this; } Map toJson() => { 'ok': ok, 'statusCode': statusCode, 'code': code, 'message': message }; getTypeName() => "SelfServiceTransferResultBase"; TypeContext? context = _ctx; } class TransferTopupInstruction implements IConvertible { double? amountIsk; String? paymentLinkUrl; String? sessionToken; DateTime? expiresAt; TransferTopupInstruction({this.amountIsk,this.paymentLinkUrl,this.sessionToken,this.expiresAt}); TransferTopupInstruction.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amountIsk = JsonConverters.toDouble(json['amountIsk']); paymentLinkUrl = json['paymentLinkUrl']; sessionToken = json['sessionToken']; expiresAt = JsonConverters.fromJson(json['expiresAt'],'DateTime',context!); return this; } Map toJson() => { 'amountIsk': amountIsk, 'paymentLinkUrl': paymentLinkUrl, 'sessionToken': sessionToken, 'expiresAt': JsonConverters.toJson(expiresAt,'DateTime',context!) }; getTypeName() => "TransferTopupInstruction"; TypeContext? context = _ctx; } class SelfServiceTransferConfirmResult extends SelfServiceTransferResultBase implements IConvertible { int? transferLogId; String? newTicketTokenId; String? direction; double? priceDifference; double? originalTicketPrice; double? targetTicketPrice; int? assignedSeatId; String? assignedSeatLabel; TransferTopupInstruction? topup; SelfServiceTransferConfirmResult({this.transferLogId,this.newTicketTokenId,this.direction,this.priceDifference,this.originalTicketPrice,this.targetTicketPrice,this.assignedSeatId,this.assignedSeatLabel,this.topup}); SelfServiceTransferConfirmResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); transferLogId = json['transferLogId']; newTicketTokenId = json['newTicketTokenId']; direction = json['direction']; priceDifference = JsonConverters.toDouble(json['priceDifference']); originalTicketPrice = JsonConverters.toDouble(json['originalTicketPrice']); targetTicketPrice = JsonConverters.toDouble(json['targetTicketPrice']); assignedSeatId = json['assignedSeatId']; assignedSeatLabel = json['assignedSeatLabel']; topup = JsonConverters.fromJson(json['topup'],'TransferTopupInstruction',context!); return this; } Map toJson() => super.toJson()..addAll({ 'transferLogId': transferLogId, 'newTicketTokenId': newTicketTokenId, 'direction': direction, 'priceDifference': priceDifference, 'originalTicketPrice': originalTicketPrice, 'targetTicketPrice': targetTicketPrice, 'assignedSeatId': assignedSeatId, 'assignedSeatLabel': assignedSeatLabel, 'topup': JsonConverters.toJson(topup,'TransferTopupInstruction',context!) }); getTypeName() => "SelfServiceTransferConfirmResult"; TypeContext? context = _ctx; } // @Route("/selfService/transferTicket/confirm", "POST") class SelfServiceTransferConfirmRequest implements IReturn, IConvertible { String? ticketTokenId; String? buyerPhone; int? toEventId; int? toOwnerTicketTypeId; int? toSeriesTicketTypeId; int? toSeatId; String? idempotencyKey; double? expectedPriceDifference; SelfServiceTransferConfirmRequest({this.ticketTokenId,this.buyerPhone,this.toEventId,this.toOwnerTicketTypeId,this.toSeriesTicketTypeId,this.toSeatId,this.idempotencyKey,this.expectedPriceDifference}); SelfServiceTransferConfirmRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ticketTokenId = json['ticketTokenId']; buyerPhone = json['buyerPhone']; toEventId = json['toEventId']; toOwnerTicketTypeId = json['toOwnerTicketTypeId']; toSeriesTicketTypeId = json['toSeriesTicketTypeId']; toSeatId = json['toSeatId']; idempotencyKey = json['idempotencyKey']; expectedPriceDifference = JsonConverters.toDouble(json['expectedPriceDifference']); return this; } Map toJson() => { 'ticketTokenId': ticketTokenId, 'buyerPhone': buyerPhone, 'toEventId': toEventId, 'toOwnerTicketTypeId': toOwnerTicketTypeId, 'toSeriesTicketTypeId': toSeriesTicketTypeId, 'toSeatId': toSeatId, 'idempotencyKey': idempotencyKey, 'expectedPriceDifference': expectedPriceDifference }; createResponse() => SelfServiceTransferConfirmResult(); getResponseTypeName() => "SelfServiceTransferConfirmResult"; getTypeName() => "SelfServiceTransferConfirmRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'SelfServiceTransferResultBase': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferResultBase()), 'TransferTopupInstruction': TypeInfo(TypeOf.Class, create:() => TransferTopupInstruction()), 'SelfServiceTransferConfirmResult': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferConfirmResult()), 'SelfServiceTransferConfirmRequest': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferConfirmRequest()), });