/* Options: Date: 2026-08-17 08:27:52 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: GiftCardPurchaseRequest.* //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 PaymentMethodCreditCardInfo implements IConvertible { String? paymentType; String? token; String? pan; String? expYear; String? expMonth; String? cvc; PaymentMethodCreditCardInfo({this.paymentType,this.token,this.pan,this.expYear,this.expMonth,this.cvc}); PaymentMethodCreditCardInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { paymentType = json['paymentType']; token = json['token']; pan = json['pan']; expYear = json['expYear']; expMonth = json['expMonth']; cvc = json['cvc']; return this; } Map toJson() => { 'paymentType': paymentType, 'token': token, 'pan': pan, 'expYear': expYear, 'expMonth': expMonth, 'cvc': cvc }; getTypeName() => "PaymentMethodCreditCardInfo"; TypeContext? context = _ctx; } class PaymentRequestCreditCard implements IConvertible { PaymentMethodCreditCardInfo? paymentMethod; double? amount; String? currency; String? orderId; DateTime? transActionDate; bool? saveCardToToken; PaymentRequestCreditCard({this.paymentMethod,this.amount,this.currency,this.orderId,this.transActionDate,this.saveCardToToken}); PaymentRequestCreditCard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { paymentMethod = JsonConverters.fromJson(json['paymentMethod'],'PaymentMethodCreditCardInfo',context!); amount = JsonConverters.toDouble(json['amount']); currency = json['currency']; orderId = json['orderId']; transActionDate = JsonConverters.fromJson(json['transActionDate'],'DateTime',context!); saveCardToToken = json['saveCardToToken']; return this; } Map toJson() => { 'paymentMethod': JsonConverters.toJson(paymentMethod,'PaymentMethodCreditCardInfo',context!), 'amount': amount, 'currency': currency, 'orderId': orderId, 'transActionDate': JsonConverters.toJson(transActionDate,'DateTime',context!), 'saveCardToToken': saveCardToToken }; getTypeName() => "PaymentRequestCreditCard"; TypeContext? context = _ctx; } class BorgunApplePayThreeDSecureInfo implements IConvertible { String? dataType; String? securityLevelInd; String? cavv; String? ucaf; BorgunApplePayThreeDSecureInfo({this.dataType,this.securityLevelInd,this.cavv,this.ucaf}); BorgunApplePayThreeDSecureInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { dataType = json['dataType']; securityLevelInd = json['securityLevelInd']; cavv = json['cavv']; ucaf = json['ucaf']; return this; } Map toJson() => { 'dataType': dataType, 'securityLevelInd': securityLevelInd, 'cavv': cavv, 'ucaf': ucaf }; getTypeName() => "BorgunApplePayThreeDSecureInfo"; TypeContext? context = _ctx; } class BorgunApplePayFinalInfo implements IConvertible { String? orderId; BorgunApplePayThreeDSecureInfo? threeDSecure; BorgunApplePayFinalInfo({this.orderId,this.threeDSecure}); BorgunApplePayFinalInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { orderId = json['orderId']; threeDSecure = JsonConverters.fromJson(json['threeDSecure'],'BorgunApplePayThreeDSecureInfo',context!); return this; } Map toJson() => { 'orderId': orderId, 'threeDSecure': JsonConverters.toJson(threeDSecure,'BorgunApplePayThreeDSecureInfo',context!) }; getTypeName() => "BorgunApplePayFinalInfo"; TypeContext? context = _ctx; } class GiftCardIssueResult implements IConvertible { bool? success; int? giftCardId; String? code; String? codeLast4; String? status; DateTime? expiresAt; String? paymentId; int? statusCode; String? message; GiftCardIssueResult({this.success,this.giftCardId,this.code,this.codeLast4,this.status,this.expiresAt,this.paymentId,this.statusCode,this.message}); GiftCardIssueResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; giftCardId = json['giftCardId']; code = json['code']; codeLast4 = json['codeLast4']; status = json['status']; expiresAt = JsonConverters.fromJson(json['expiresAt'],'DateTime',context!); paymentId = json['paymentId']; statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'success': success, 'giftCardId': giftCardId, 'code': code, 'codeLast4': codeLast4, 'status': status, 'expiresAt': JsonConverters.toJson(expiresAt,'DateTime',context!), 'paymentId': paymentId, 'statusCode': statusCode, 'message': message }; getTypeName() => "GiftCardIssueResult"; TypeContext? context = _ctx; } // @Route("/GiftCard/Purchase", "POST") class GiftCardPurchaseRequest implements IReturn, IConvertible { int? giftCardTypeId; int? amountMinor; String? purchasePaymentReference; int? purchaseOwnerId; String? buyerName; String? buyerPhone; String? buyerEmail; String? recipientName; String? idempotencyKey; String? paymentMethodId; String? paymentId; PaymentRequestCreditCard? cardInfo; Borgun3DFinalRequest? borgun3DFinalInfo; BorgunApplePayFinalInfo? applePayInfo; GiftCardPurchaseRequest({this.giftCardTypeId,this.amountMinor,this.purchasePaymentReference,this.purchaseOwnerId,this.buyerName,this.buyerPhone,this.buyerEmail,this.recipientName,this.idempotencyKey,this.paymentMethodId,this.paymentId,this.cardInfo,this.borgun3DFinalInfo,this.applePayInfo}); GiftCardPurchaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { giftCardTypeId = json['giftCardTypeId']; amountMinor = json['amountMinor']; purchasePaymentReference = json['purchasePaymentReference']; purchaseOwnerId = json['purchaseOwnerId']; buyerName = json['buyerName']; buyerPhone = json['buyerPhone']; buyerEmail = json['buyerEmail']; recipientName = json['recipientName']; idempotencyKey = json['idempotencyKey']; paymentMethodId = json['paymentMethodId']; paymentId = json['paymentId']; cardInfo = JsonConverters.fromJson(json['cardInfo'],'PaymentRequestCreditCard',context!); borgun3DFinalInfo = JsonConverters.fromJson(json['borgun3DFinalInfo'],'Borgun3DFinalRequest',context!); applePayInfo = JsonConverters.fromJson(json['applePayInfo'],'BorgunApplePayFinalInfo',context!); return this; } Map toJson() => { 'giftCardTypeId': giftCardTypeId, 'amountMinor': amountMinor, 'purchasePaymentReference': purchasePaymentReference, 'purchaseOwnerId': purchaseOwnerId, 'buyerName': buyerName, 'buyerPhone': buyerPhone, 'buyerEmail': buyerEmail, 'recipientName': recipientName, 'idempotencyKey': idempotencyKey, 'paymentMethodId': paymentMethodId, 'paymentId': paymentId, 'cardInfo': JsonConverters.toJson(cardInfo,'PaymentRequestCreditCard',context!), 'borgun3DFinalInfo': JsonConverters.toJson(borgun3DFinalInfo,'Borgun3DFinalRequest',context!), 'applePayInfo': JsonConverters.toJson(applePayInfo,'BorgunApplePayFinalInfo',context!) }; createResponse() => GiftCardIssueResult(); getResponseTypeName() => "GiftCardIssueResult"; getTypeName() => "GiftCardPurchaseRequest"; 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()), 'PaymentMethodCreditCardInfo': TypeInfo(TypeOf.Class, create:() => PaymentMethodCreditCardInfo()), 'PaymentRequestCreditCard': TypeInfo(TypeOf.Class, create:() => PaymentRequestCreditCard()), 'BorgunApplePayThreeDSecureInfo': TypeInfo(TypeOf.Class, create:() => BorgunApplePayThreeDSecureInfo()), 'BorgunApplePayFinalInfo': TypeInfo(TypeOf.Class, create:() => BorgunApplePayFinalInfo()), 'GiftCardIssueResult': TypeInfo(TypeOf.Class, create:() => GiftCardIssueResult()), 'GiftCardPurchaseRequest': TypeInfo(TypeOf.Class, create:() => GiftCardPurchaseRequest()), });