/* Options: Date: 2026-10-01 10:22:53 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: OwnerCardsUpgradeRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Borgun3DFinalPaymentMethodInfo implements IConvertible { String? paymentType; String? token; String? virtualNumber; String? expYear; String? expMonth; String? panLastFour; Borgun3DFinalPaymentMethodInfo({this.paymentType,this.token,this.virtualNumber,this.expYear,this.expMonth,this.panLastFour}); Borgun3DFinalPaymentMethodInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { paymentType = json['paymentType']; token = json['token']; virtualNumber = json['virtualNumber']; expYear = json['expYear']; expMonth = json['expMonth']; panLastFour = json['panLastFour']; return this; } Map toJson() => { 'paymentType': paymentType, 'token': token, 'virtualNumber': virtualNumber, 'expYear': expYear, 'expMonth': expMonth, 'panLastFour': panLastFour }; getTypeName() => "Borgun3DFinalPaymentMethodInfo"; TypeContext? context = _ctx; } class Borgun3DFinal3DSecureInfo implements IConvertible { String? dataType; String? mpiToken; Borgun3DFinal3DSecureInfo({this.dataType,this.mpiToken}); Borgun3DFinal3DSecureInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { dataType = json['dataType']; mpiToken = json['mpiToken']; return this; } Map toJson() => { 'dataType': dataType, 'mpiToken': mpiToken }; getTypeName() => "Borgun3DFinal3DSecureInfo"; TypeContext? context = _ctx; } class Borgun3DFinalRequest implements IConvertible { String? transactionType; int? amount; String? currency; DateTime? transactionDate; String? orderId; Borgun3DFinalPaymentMethodInfo? paymentMethod; Borgun3DFinal3DSecureInfo? threeDSecure; Borgun3DFinalRequest({this.transactionType,this.amount,this.currency,this.transactionDate,this.orderId,this.paymentMethod,this.threeDSecure}); Borgun3DFinalRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { transactionType = json['transactionType']; amount = json['amount']; currency = json['currency']; transactionDate = JsonConverters.fromJson(json['transactionDate'],'DateTime',context!); orderId = json['orderId']; paymentMethod = JsonConverters.fromJson(json['paymentMethod'],'Borgun3DFinalPaymentMethodInfo',context!); threeDSecure = JsonConverters.fromJson(json['threeDSecure'],'Borgun3DFinal3DSecureInfo',context!); return this; } Map toJson() => { 'transactionType': transactionType, 'amount': amount, 'currency': currency, 'transactionDate': JsonConverters.toJson(transactionDate,'DateTime',context!), 'orderId': orderId, 'paymentMethod': JsonConverters.toJson(paymentMethod,'Borgun3DFinalPaymentMethodInfo',context!), 'threeDSecure': JsonConverters.toJson(threeDSecure,'Borgun3DFinal3DSecureInfo',context!) }; getTypeName() => "Borgun3DFinalRequest"; TypeContext? context = _ctx; } class OrderTender implements IConvertible { String? kind; String? code; int? amountMinor; String? idempotencyKey; int? holdId; int? appliedMinor; OrderTender({this.kind,this.code,this.amountMinor,this.idempotencyKey,this.holdId,this.appliedMinor}); OrderTender.fromJson(Map json) { fromMap(json); } fromMap(Map json) { kind = json['kind']; code = json['code']; amountMinor = json['amountMinor']; idempotencyKey = json['idempotencyKey']; holdId = json['holdId']; appliedMinor = json['appliedMinor']; return this; } Map toJson() => { 'kind': kind, 'code': code, 'amountMinor': amountMinor, 'idempotencyKey': idempotencyKey, 'holdId': holdId, 'appliedMinor': appliedMinor }; getTypeName() => "OrderTender"; TypeContext? context = _ctx; } class OwnerCardsOrderResult extends GeneralOrderResponse implements IConvertible { List? cards; String? orderReference; bool? isSubscription; double? monthlyPrice; double? transactionFee; int? months; String? paymentTokenId; bool? subscriptionTokenMissing; int? priceTotal; int? discountAmount; int? giftCardAmount; int? donationAmount; int? chargedAmount; String? reason; OwnerCardsOrderResult({this.cards,this.orderReference,this.isSubscription,this.monthlyPrice,this.transactionFee,this.months,this.paymentTokenId,this.subscriptionTokenMissing,this.priceTotal,this.discountAmount,this.giftCardAmount,this.donationAmount,this.chargedAmount,this.reason}); OwnerCardsOrderResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); cards = JsonConverters.fromJson(json['cards'],'List',context!); orderReference = json['orderReference']; isSubscription = json['isSubscription']; monthlyPrice = JsonConverters.toDouble(json['monthlyPrice']); transactionFee = JsonConverters.toDouble(json['transactionFee']); months = json['months']; paymentTokenId = json['paymentTokenId']; subscriptionTokenMissing = json['subscriptionTokenMissing']; priceTotal = json['priceTotal']; discountAmount = json['discountAmount']; giftCardAmount = json['giftCardAmount']; donationAmount = json['donationAmount']; chargedAmount = json['chargedAmount']; reason = json['reason']; return this; } Map toJson() => super.toJson()..addAll({ 'cards': JsonConverters.toJson(cards,'List',context!), 'orderReference': orderReference, 'isSubscription': isSubscription, 'monthlyPrice': monthlyPrice, 'transactionFee': transactionFee, 'months': months, 'paymentTokenId': paymentTokenId, 'subscriptionTokenMissing': subscriptionTokenMissing, 'priceTotal': priceTotal, 'discountAmount': discountAmount, 'giftCardAmount': giftCardAmount, 'donationAmount': donationAmount, 'chargedAmount': chargedAmount, 'reason': reason }); getTypeName() => "OwnerCardsOrderResult"; TypeContext? context = _ctx; } class OwnerCardsUpgradeResult extends OwnerCardsOrderResult implements IConvertible { int? sourceOwnerCardId; int? sourceOwnerCardTypeId; String? sourceTypeName; int? newOwnerCardId; int? targetOwnerCardTypeId; String? targetTypeName; int? relinkedTickets; String? paymentReference; bool? refundPending; OwnerCardsUpgradeResult({this.sourceOwnerCardId,this.sourceOwnerCardTypeId,this.sourceTypeName,this.newOwnerCardId,this.targetOwnerCardTypeId,this.targetTypeName,this.relinkedTickets,this.paymentReference,this.refundPending}); OwnerCardsUpgradeResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); sourceOwnerCardId = json['sourceOwnerCardId']; sourceOwnerCardTypeId = json['sourceOwnerCardTypeId']; sourceTypeName = json['sourceTypeName']; newOwnerCardId = json['newOwnerCardId']; targetOwnerCardTypeId = json['targetOwnerCardTypeId']; targetTypeName = json['targetTypeName']; relinkedTickets = json['relinkedTickets']; paymentReference = json['paymentReference']; refundPending = json['refundPending']; return this; } Map toJson() => super.toJson()..addAll({ 'sourceOwnerCardId': sourceOwnerCardId, 'sourceOwnerCardTypeId': sourceOwnerCardTypeId, 'sourceTypeName': sourceTypeName, 'newOwnerCardId': newOwnerCardId, 'targetOwnerCardTypeId': targetOwnerCardTypeId, 'targetTypeName': targetTypeName, 'relinkedTickets': relinkedTickets, 'paymentReference': paymentReference, 'refundPending': refundPending }); getTypeName() => "OwnerCardsUpgradeResult"; TypeContext? context = _ctx; } // @Route("/OrderOwnerCards/upgrade", "POST") class OwnerCardsUpgradeRequest implements IReturn, IConvertible { String? buyerPhone; int? sourceOwnerCardId; int? targetOwnerCardTypeId; String? idempotencyKey; String? paymentMethodId; Borgun3DFinalRequest? borgun3DFinalInfo; List? tenders; String? holderName; String? holderEmail; String? deviceId; bool? returnCards; OwnerCardsUpgradeRequest({this.buyerPhone,this.sourceOwnerCardId,this.targetOwnerCardTypeId,this.idempotencyKey,this.paymentMethodId,this.borgun3DFinalInfo,this.tenders,this.holderName,this.holderEmail,this.deviceId,this.returnCards}); OwnerCardsUpgradeRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { buyerPhone = json['buyerPhone']; sourceOwnerCardId = json['sourceOwnerCardId']; targetOwnerCardTypeId = json['targetOwnerCardTypeId']; idempotencyKey = json['idempotencyKey']; paymentMethodId = json['paymentMethodId']; borgun3DFinalInfo = JsonConverters.fromJson(json['borgun3DFinalInfo'],'Borgun3DFinalRequest',context!); tenders = JsonConverters.fromJson(json['tenders'],'List',context!); holderName = json['holderName']; holderEmail = json['holderEmail']; deviceId = json['deviceId']; returnCards = json['returnCards']; return this; } Map toJson() => { 'buyerPhone': buyerPhone, 'sourceOwnerCardId': sourceOwnerCardId, 'targetOwnerCardTypeId': targetOwnerCardTypeId, 'idempotencyKey': idempotencyKey, 'paymentMethodId': paymentMethodId, 'borgun3DFinalInfo': JsonConverters.toJson(borgun3DFinalInfo,'Borgun3DFinalRequest',context!), 'tenders': JsonConverters.toJson(tenders,'List',context!), 'holderName': holderName, 'holderEmail': holderEmail, 'deviceId': deviceId, 'returnCards': returnCards }; createResponse() => OwnerCardsUpgradeResult(); getResponseTypeName() => "OwnerCardsUpgradeResult"; getTypeName() => "OwnerCardsUpgradeRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'Borgun3DFinalPaymentMethodInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalPaymentMethodInfo()), 'Borgun3DFinal3DSecureInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinal3DSecureInfo()), 'Borgun3DFinalRequest': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalRequest()), 'OrderTender': TypeInfo(TypeOf.Class, create:() => OrderTender()), 'OwnerCardsOrderResult': TypeInfo(TypeOf.Class, create:() => OwnerCardsOrderResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'OwnerCards': TypeInfo(TypeOf.Class, create:() => OwnerCards()), 'OwnerCardsUpgradeResult': TypeInfo(TypeOf.Class, create:() => OwnerCardsUpgradeResult()), 'OwnerCardsUpgradeRequest': TypeInfo(TypeOf.Class, create:() => OwnerCardsUpgradeRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });