/* Options: Date: 2025-05-06 16:31:39 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-autoupdates-live.smartnewapis.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: OwnerCardsOrderRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RequestSignature implements IConvertible { String? systemId; String? systemSecret; String? signature; RequestSignature({this.systemId,this.systemSecret,this.signature}); RequestSignature.fromJson(Map json) { fromMap(json); } fromMap(Map json) { systemId = json['systemId']; systemSecret = json['systemSecret']; signature = json['signature']; return this; } Map toJson() => { 'systemId': systemId, 'systemSecret': systemSecret, 'signature': signature }; getTypeName() => "RequestSignature"; TypeContext? context = _ctx; } class Borgun3DFinalPaymentMethodInfo implements IConvertible { String? paymentType; String? token; Borgun3DFinalPaymentMethodInfo({this.paymentType,this.token}); Borgun3DFinalPaymentMethodInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { paymentType = json['paymentType']; token = json['token']; return this; } Map toJson() => { 'paymentType': paymentType, 'token': token }; 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 OwnerCards implements IConvertible { int? id; int? ownerId; int? ownerCardTypeId; int? phoneVerificationId; int? initialMaxTickets; int? currentAvailableTickets; DateTime? timeStampCreatedUTC; DateTime? timeStampLastChangedUTC; DateTime? timeStampBoughtUTC; DateTime? timeStampOrderedUTC; DateTime? cardValidFromUTC; DateTime? cardValidToUTC; bool? hasStoreCredit; double? cardPrice; double? pricePaid; double? initialStoreCredit; double? currentStoreCredit; String? phoneFullVerificationNumber; String? holderId; String? holderName; String? holderEmail; String? cardPriceCurrency; String? pricePaidCurrency; String? deviceId; String? paymentMethodId; String? paymentReference; String? phoneVerificationNumber; String? paymentPhoneNumber; String? paymentId; String? paymentStatus; String? paymentTokenId; int? maxTicketsPerEvent; String? multiplePaymentsId; String? imageUrl; String? backgroundImageUrl; OwnerCards({this.id,this.ownerId,this.ownerCardTypeId,this.phoneVerificationId,this.initialMaxTickets,this.currentAvailableTickets,this.timeStampCreatedUTC,this.timeStampLastChangedUTC,this.timeStampBoughtUTC,this.timeStampOrderedUTC,this.cardValidFromUTC,this.cardValidToUTC,this.hasStoreCredit,this.cardPrice,this.pricePaid,this.initialStoreCredit,this.currentStoreCredit,this.phoneFullVerificationNumber,this.holderId,this.holderName,this.holderEmail,this.cardPriceCurrency,this.pricePaidCurrency,this.deviceId,this.paymentMethodId,this.paymentReference,this.phoneVerificationNumber,this.paymentPhoneNumber,this.paymentId,this.paymentStatus,this.paymentTokenId,this.maxTicketsPerEvent,this.multiplePaymentsId,this.imageUrl,this.backgroundImageUrl}); OwnerCards.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ownerId = json['ownerId']; ownerCardTypeId = json['ownerCardTypeId']; phoneVerificationId = json['phoneVerificationId']; initialMaxTickets = json['initialMaxTickets']; currentAvailableTickets = json['currentAvailableTickets']; timeStampCreatedUTC = JsonConverters.fromJson(json['timeStampCreatedUTC'],'DateTime',context!); timeStampLastChangedUTC = JsonConverters.fromJson(json['timeStampLastChangedUTC'],'DateTime',context!); timeStampBoughtUTC = JsonConverters.fromJson(json['timeStampBoughtUTC'],'DateTime',context!); timeStampOrderedUTC = JsonConverters.fromJson(json['timeStampOrderedUTC'],'DateTime',context!); cardValidFromUTC = JsonConverters.fromJson(json['cardValidFromUTC'],'DateTime',context!); cardValidToUTC = JsonConverters.fromJson(json['cardValidToUTC'],'DateTime',context!); hasStoreCredit = json['hasStoreCredit']; cardPrice = JsonConverters.toDouble(json['cardPrice']); pricePaid = JsonConverters.toDouble(json['pricePaid']); initialStoreCredit = JsonConverters.toDouble(json['initialStoreCredit']); currentStoreCredit = JsonConverters.toDouble(json['currentStoreCredit']); phoneFullVerificationNumber = json['phoneFullVerificationNumber']; holderId = json['holderId']; holderName = json['holderName']; holderEmail = json['holderEmail']; cardPriceCurrency = json['cardPriceCurrency']; pricePaidCurrency = json['pricePaidCurrency']; deviceId = json['deviceId']; paymentMethodId = json['paymentMethodId']; paymentReference = json['paymentReference']; phoneVerificationNumber = json['phoneVerificationNumber']; paymentPhoneNumber = json['paymentPhoneNumber']; paymentId = json['paymentId']; paymentStatus = json['paymentStatus']; paymentTokenId = json['paymentTokenId']; maxTicketsPerEvent = json['maxTicketsPerEvent']; multiplePaymentsId = json['multiplePaymentsId']; imageUrl = json['imageUrl']; backgroundImageUrl = json['backgroundImageUrl']; return this; } Map toJson() => { 'id': id, 'ownerId': ownerId, 'ownerCardTypeId': ownerCardTypeId, 'phoneVerificationId': phoneVerificationId, 'initialMaxTickets': initialMaxTickets, 'currentAvailableTickets': currentAvailableTickets, 'timeStampCreatedUTC': JsonConverters.toJson(timeStampCreatedUTC,'DateTime',context!), 'timeStampLastChangedUTC': JsonConverters.toJson(timeStampLastChangedUTC,'DateTime',context!), 'timeStampBoughtUTC': JsonConverters.toJson(timeStampBoughtUTC,'DateTime',context!), 'timeStampOrderedUTC': JsonConverters.toJson(timeStampOrderedUTC,'DateTime',context!), 'cardValidFromUTC': JsonConverters.toJson(cardValidFromUTC,'DateTime',context!), 'cardValidToUTC': JsonConverters.toJson(cardValidToUTC,'DateTime',context!), 'hasStoreCredit': hasStoreCredit, 'cardPrice': cardPrice, 'pricePaid': pricePaid, 'initialStoreCredit': initialStoreCredit, 'currentStoreCredit': currentStoreCredit, 'phoneFullVerificationNumber': phoneFullVerificationNumber, 'holderId': holderId, 'holderName': holderName, 'holderEmail': holderEmail, 'cardPriceCurrency': cardPriceCurrency, 'pricePaidCurrency': pricePaidCurrency, 'deviceId': deviceId, 'paymentMethodId': paymentMethodId, 'paymentReference': paymentReference, 'phoneVerificationNumber': phoneVerificationNumber, 'paymentPhoneNumber': paymentPhoneNumber, 'paymentId': paymentId, 'paymentStatus': paymentStatus, 'paymentTokenId': paymentTokenId, 'maxTicketsPerEvent': maxTicketsPerEvent, 'multiplePaymentsId': multiplePaymentsId, 'imageUrl': imageUrl, 'backgroundImageUrl': backgroundImageUrl }; getTypeName() => "OwnerCards"; TypeContext? context = _ctx; } class GeneralOrderResponse implements IConvertible { int? statusCode; String? message; bool? success; bool? paymentIsPending; String? orderTokenId; GeneralOrderResponse({this.statusCode,this.message,this.success,this.paymentIsPending,this.orderTokenId}); GeneralOrderResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { statusCode = json['statusCode']; message = json['message']; success = json['success']; paymentIsPending = json['paymentIsPending']; orderTokenId = json['orderTokenId']; return this; } Map toJson() => { 'statusCode': statusCode, 'message': message, 'success': success, 'paymentIsPending': paymentIsPending, 'orderTokenId': orderTokenId }; getTypeName() => "GeneralOrderResponse"; TypeContext? context = _ctx; } class OwnerCardsOrderResult extends GeneralOrderResponse implements IConvertible { List? cards; OwnerCardsOrderResult({this.cards}); OwnerCardsOrderResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); cards = JsonConverters.fromJson(json['cards'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'cards': JsonConverters.toJson(cards,'List',context!) }); getTypeName() => "OwnerCardsOrderResult"; TypeContext? context = _ctx; } // @Route("/OrderOwnerCards", "POST") class OwnerCardsOrderRequest implements IReturn, IConvertible { List? ownerCardTypeIds; String? paymentMethodId; PaymentRequestCreditCard? cardInfo; BorgunApplePayFinalInfo? applePayInfo; Borgun3DFinalRequest? borgun3DFinalInfo; String? paymentPhoneNumber; String? appMetaData; String? holderId; String? holderName; String? holderEmail; bool? returnCards; String? phoneVerificationNumber; String? deviceId; int? requestUnixUTCTimeStamp; RequestSignature? signature; OwnerCardsOrderRequest({this.ownerCardTypeIds,this.paymentMethodId,this.cardInfo,this.applePayInfo,this.borgun3DFinalInfo,this.paymentPhoneNumber,this.appMetaData,this.holderId,this.holderName,this.holderEmail,this.returnCards,this.phoneVerificationNumber,this.deviceId,this.requestUnixUTCTimeStamp,this.signature}); OwnerCardsOrderRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ownerCardTypeIds = JsonConverters.fromJson(json['ownerCardTypeIds'],'List',context!); paymentMethodId = json['paymentMethodId']; cardInfo = JsonConverters.fromJson(json['cardInfo'],'PaymentRequestCreditCard',context!); applePayInfo = JsonConverters.fromJson(json['applePayInfo'],'BorgunApplePayFinalInfo',context!); borgun3DFinalInfo = JsonConverters.fromJson(json['borgun3DFinalInfo'],'Borgun3DFinalRequest',context!); paymentPhoneNumber = json['paymentPhoneNumber']; appMetaData = json['appMetaData']; holderId = json['holderId']; holderName = json['holderName']; holderEmail = json['holderEmail']; returnCards = json['returnCards']; phoneVerificationNumber = json['phoneVerificationNumber']; deviceId = json['deviceId']; requestUnixUTCTimeStamp = json['requestUnixUTCTimeStamp']; signature = JsonConverters.fromJson(json['signature'],'RequestSignature',context!); return this; } Map toJson() => { 'ownerCardTypeIds': JsonConverters.toJson(ownerCardTypeIds,'List',context!), 'paymentMethodId': paymentMethodId, 'cardInfo': JsonConverters.toJson(cardInfo,'PaymentRequestCreditCard',context!), 'applePayInfo': JsonConverters.toJson(applePayInfo,'BorgunApplePayFinalInfo',context!), 'borgun3DFinalInfo': JsonConverters.toJson(borgun3DFinalInfo,'Borgun3DFinalRequest',context!), 'paymentPhoneNumber': paymentPhoneNumber, 'appMetaData': appMetaData, 'holderId': holderId, 'holderName': holderName, 'holderEmail': holderEmail, 'returnCards': returnCards, 'phoneVerificationNumber': phoneVerificationNumber, 'deviceId': deviceId, 'requestUnixUTCTimeStamp': requestUnixUTCTimeStamp, 'signature': JsonConverters.toJson(signature,'RequestSignature',context!) }; createResponse() => OwnerCardsOrderResult(); getResponseTypeName() => "OwnerCardsOrderResult"; getTypeName() => "OwnerCardsOrderRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'RequestSignature': TypeInfo(TypeOf.Class, create:() => RequestSignature()), '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()), 'OwnerCards': TypeInfo(TypeOf.Class, create:() => OwnerCards()), 'GeneralOrderResponse': TypeInfo(TypeOf.Class, create:() => GeneralOrderResponse()), 'OwnerCardsOrderResult': TypeInfo(TypeOf.Class, create:() => OwnerCardsOrderResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'OwnerCardsOrderRequest': TypeInfo(TypeOf.Class, create:() => OwnerCardsOrderRequest()), });