/* Options: Date: 2025-05-06 16:44:03 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: PaymentCardsRequest.* //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 KsiCards implements IConvertible { int? id; DateTime? creationDate; String? phoneFullVerificationNumber; String? deviceId; String? ksiCardTypeId; String? ksiClubId; String? holderName; String? canTransferToPhoneFullNumber; String? canTransferToNName; String? expYear; String? expMonth; KsiCards({this.id,this.creationDate,this.phoneFullVerificationNumber,this.deviceId,this.ksiCardTypeId,this.ksiClubId,this.holderName,this.canTransferToPhoneFullNumber,this.canTransferToNName,this.expYear,this.expMonth}); KsiCards.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; creationDate = JsonConverters.fromJson(json['creationDate'],'DateTime',context!); phoneFullVerificationNumber = json['phoneFullVerificationNumber']; deviceId = json['deviceId']; ksiCardTypeId = json['ksiCardTypeId']; ksiClubId = json['ksiClubId']; holderName = json['holderName']; canTransferToPhoneFullNumber = json['canTransferToPhoneFullNumber']; canTransferToNName = json['canTransferToNName']; expYear = json['expYear']; expMonth = json['expMonth']; return this; } Map toJson() => { 'id': id, 'creationDate': JsonConverters.toJson(creationDate,'DateTime',context!), 'phoneFullVerificationNumber': phoneFullVerificationNumber, 'deviceId': deviceId, 'ksiCardTypeId': ksiCardTypeId, 'ksiClubId': ksiClubId, 'holderName': holderName, 'canTransferToPhoneFullNumber': canTransferToPhoneFullNumber, 'canTransferToNName': canTransferToNName, 'expYear': expYear, 'expMonth': expMonth }; getTypeName() => "KsiCards"; 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 OwnerCardType implements IConvertible { int? id; int? ownerId; int? maxTickets; DateTime? timeStampCreatedUTC; DateTime? timeStampLastChangedUTC; DateTime? saleStartDateUTC; DateTime? saleEndDateUTC; DateTime? validStartDateForNewCardsUTC; DateTime? validEndDateForNewCardsUTC; bool? hasStoreCredit; bool? isActive; bool? onlyForTeamUse; double? price; double? initialStoreCredit; String? description; String? name; String? imageUrl; String? currency; int? maxTicketsPerEvent; String? backgroundImageUrl; bool? validForConnectedOwners; int? superOwnerId; OwnerCardType({this.id,this.ownerId,this.maxTickets,this.timeStampCreatedUTC,this.timeStampLastChangedUTC,this.saleStartDateUTC,this.saleEndDateUTC,this.validStartDateForNewCardsUTC,this.validEndDateForNewCardsUTC,this.hasStoreCredit,this.isActive,this.onlyForTeamUse,this.price,this.initialStoreCredit,this.description,this.name,this.imageUrl,this.currency,this.maxTicketsPerEvent,this.backgroundImageUrl,this.validForConnectedOwners,this.superOwnerId}); OwnerCardType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ownerId = json['ownerId']; maxTickets = json['maxTickets']; timeStampCreatedUTC = JsonConverters.fromJson(json['timeStampCreatedUTC'],'DateTime',context!); timeStampLastChangedUTC = JsonConverters.fromJson(json['timeStampLastChangedUTC'],'DateTime',context!); saleStartDateUTC = JsonConverters.fromJson(json['saleStartDateUTC'],'DateTime',context!); saleEndDateUTC = JsonConverters.fromJson(json['saleEndDateUTC'],'DateTime',context!); validStartDateForNewCardsUTC = JsonConverters.fromJson(json['validStartDateForNewCardsUTC'],'DateTime',context!); validEndDateForNewCardsUTC = JsonConverters.fromJson(json['validEndDateForNewCardsUTC'],'DateTime',context!); hasStoreCredit = json['hasStoreCredit']; isActive = json['isActive']; onlyForTeamUse = json['onlyForTeamUse']; price = JsonConverters.toDouble(json['price']); initialStoreCredit = JsonConverters.toDouble(json['initialStoreCredit']); description = json['description']; name = json['name']; imageUrl = json['imageUrl']; currency = json['currency']; maxTicketsPerEvent = json['maxTicketsPerEvent']; backgroundImageUrl = json['backgroundImageUrl']; validForConnectedOwners = json['validForConnectedOwners']; superOwnerId = json['superOwnerId']; return this; } Map toJson() => { 'id': id, 'ownerId': ownerId, 'maxTickets': maxTickets, 'timeStampCreatedUTC': JsonConverters.toJson(timeStampCreatedUTC,'DateTime',context!), 'timeStampLastChangedUTC': JsonConverters.toJson(timeStampLastChangedUTC,'DateTime',context!), 'saleStartDateUTC': JsonConverters.toJson(saleStartDateUTC,'DateTime',context!), 'saleEndDateUTC': JsonConverters.toJson(saleEndDateUTC,'DateTime',context!), 'validStartDateForNewCardsUTC': JsonConverters.toJson(validStartDateForNewCardsUTC,'DateTime',context!), 'validEndDateForNewCardsUTC': JsonConverters.toJson(validEndDateForNewCardsUTC,'DateTime',context!), 'hasStoreCredit': hasStoreCredit, 'isActive': isActive, 'onlyForTeamUse': onlyForTeamUse, 'price': price, 'initialStoreCredit': initialStoreCredit, 'description': description, 'name': name, 'imageUrl': imageUrl, 'currency': currency, 'maxTicketsPerEvent': maxTicketsPerEvent, 'backgroundImageUrl': backgroundImageUrl, 'validForConnectedOwners': validForConnectedOwners, 'superOwnerId': superOwnerId }; getTypeName() => "OwnerCardType"; TypeContext? context = _ctx; } class KsiCardTypes implements IConvertible { String? ksiCardTypeId; String? ksiCardTypeName; String? ksiCardTypeDescription; String? cardTypeOwner; int? maxTicketsPerEvent; KsiCardTypes({this.ksiCardTypeId,this.ksiCardTypeName,this.ksiCardTypeDescription,this.cardTypeOwner,this.maxTicketsPerEvent}); KsiCardTypes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ksiCardTypeId = json['ksiCardTypeId']; ksiCardTypeName = json['ksiCardTypeName']; ksiCardTypeDescription = json['ksiCardTypeDescription']; cardTypeOwner = json['cardTypeOwner']; maxTicketsPerEvent = json['maxTicketsPerEvent']; return this; } Map toJson() => { 'ksiCardTypeId': ksiCardTypeId, 'ksiCardTypeName': ksiCardTypeName, 'ksiCardTypeDescription': ksiCardTypeDescription, 'cardTypeOwner': cardTypeOwner, 'maxTicketsPerEvent': maxTicketsPerEvent }; getTypeName() => "KsiCardTypes"; TypeContext? context = _ctx; } class BorgunSavedCards implements IConvertible { int? id; DateTime? creationDate; DateTime? lastTokenDate; bool? isDebit; String? phoneVerificationNumber; String? deviceId; String? virtualCardNumber; String? panLastFour; String? expYear; String? expMonth; String? token; String? cardType; bool? deletedByUser; bool? deletedFromOrigin; DateTime? dateDeletedByUser; DateTime? dateDeletedFromOrigin; bool? isDeleted; DateTime? dateDeletedBySystem; bool? deletedBySystem; BorgunSavedCards({this.id,this.creationDate,this.lastTokenDate,this.isDebit,this.phoneVerificationNumber,this.deviceId,this.virtualCardNumber,this.panLastFour,this.expYear,this.expMonth,this.token,this.cardType,this.deletedByUser,this.deletedFromOrigin,this.dateDeletedByUser,this.dateDeletedFromOrigin,this.isDeleted,this.dateDeletedBySystem,this.deletedBySystem}); BorgunSavedCards.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; creationDate = JsonConverters.fromJson(json['creationDate'],'DateTime',context!); lastTokenDate = JsonConverters.fromJson(json['lastTokenDate'],'DateTime',context!); isDebit = json['isDebit']; phoneVerificationNumber = json['phoneVerificationNumber']; deviceId = json['deviceId']; virtualCardNumber = json['virtualCardNumber']; panLastFour = json['panLastFour']; expYear = json['expYear']; expMonth = json['expMonth']; token = json['token']; cardType = json['cardType']; deletedByUser = json['deletedByUser']; deletedFromOrigin = json['deletedFromOrigin']; dateDeletedByUser = JsonConverters.fromJson(json['dateDeletedByUser'],'DateTime',context!); dateDeletedFromOrigin = JsonConverters.fromJson(json['dateDeletedFromOrigin'],'DateTime',context!); isDeleted = json['isDeleted']; dateDeletedBySystem = JsonConverters.fromJson(json['dateDeletedBySystem'],'DateTime',context!); deletedBySystem = json['deletedBySystem']; return this; } Map toJson() => { 'id': id, 'creationDate': JsonConverters.toJson(creationDate,'DateTime',context!), 'lastTokenDate': JsonConverters.toJson(lastTokenDate,'DateTime',context!), 'isDebit': isDebit, 'phoneVerificationNumber': phoneVerificationNumber, 'deviceId': deviceId, 'virtualCardNumber': virtualCardNumber, 'panLastFour': panLastFour, 'expYear': expYear, 'expMonth': expMonth, 'token': token, 'cardType': cardType, 'deletedByUser': deletedByUser, 'deletedFromOrigin': deletedFromOrigin, 'dateDeletedByUser': JsonConverters.toJson(dateDeletedByUser,'DateTime',context!), 'dateDeletedFromOrigin': JsonConverters.toJson(dateDeletedFromOrigin,'DateTime',context!), 'isDeleted': isDeleted, 'dateDeletedBySystem': JsonConverters.toJson(dateDeletedBySystem,'DateTime',context!), 'deletedBySystem': deletedBySystem }; getTypeName() => "BorgunSavedCards"; TypeContext? context = _ctx; } class KsiCardInfo implements IConvertible { KsiCards? card; KsiCardTypes? cardType; KsiCardInfo({this.card,this.cardType}); KsiCardInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { card = JsonConverters.fromJson(json['card'],'KsiCards',context!); cardType = JsonConverters.fromJson(json['cardType'],'KsiCardTypes',context!); return this; } Map toJson() => { 'card': JsonConverters.toJson(card,'KsiCards',context!), 'cardType': JsonConverters.toJson(cardType,'KsiCardTypes',context!) }; getTypeName() => "KsiCardInfo"; TypeContext? context = _ctx; } class OwnerCardInfo implements IConvertible { OwnerCards? card; OwnerCardType? cardType; String? ownerName; OwnerCardInfo({this.card,this.cardType,this.ownerName}); OwnerCardInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { card = JsonConverters.fromJson(json['card'],'OwnerCards',context!); cardType = JsonConverters.fromJson(json['cardType'],'OwnerCardType',context!); ownerName = json['ownerName']; return this; } Map toJson() => { 'card': JsonConverters.toJson(card,'OwnerCards',context!), 'cardType': JsonConverters.toJson(cardType,'OwnerCardType',context!), 'ownerName': ownerName }; getTypeName() => "OwnerCardInfo"; TypeContext? context = _ctx; } class PaymentCardsResult implements IConvertible { List? cards; List? ksiCards; List? ownerCards; List? ksiCardInfoList; List? ownerCardInfoList; int? statusCode; String? message; PaymentCardsResult({this.cards,this.ksiCards,this.ownerCards,this.ksiCardInfoList,this.ownerCardInfoList,this.statusCode,this.message}); PaymentCardsResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { cards = JsonConverters.fromJson(json['cards'],'List',context!); ksiCards = JsonConverters.fromJson(json['ksiCards'],'List',context!); ownerCards = JsonConverters.fromJson(json['ownerCards'],'List',context!); ksiCardInfoList = JsonConverters.fromJson(json['ksiCardInfoList'],'List',context!); ownerCardInfoList = JsonConverters.fromJson(json['ownerCardInfoList'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'cards': JsonConverters.toJson(cards,'List',context!), 'ksiCards': JsonConverters.toJson(ksiCards,'List',context!), 'ownerCards': JsonConverters.toJson(ownerCards,'List',context!), 'ksiCardInfoList': JsonConverters.toJson(ksiCardInfoList,'List',context!), 'ownerCardInfoList': JsonConverters.toJson(ownerCardInfoList,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "PaymentCardsResult"; TypeContext? context = _ctx; } // @Route("/paymentCards", "POST") class PaymentCardsRequest implements IReturn, IConvertible { String? phoneVerificationNumber; String? deviceId; int? onlyForEventId; bool? checkForExpiry; bool? excludeHiddenCards; int? requestUnixUTCTimeStamp; bool? includeDeletedCards; RequestSignature? signature; PaymentCardsRequest({this.phoneVerificationNumber,this.deviceId,this.onlyForEventId,this.checkForExpiry,this.excludeHiddenCards,this.requestUnixUTCTimeStamp,this.includeDeletedCards,this.signature}); PaymentCardsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { phoneVerificationNumber = json['phoneVerificationNumber']; deviceId = json['deviceId']; onlyForEventId = json['onlyForEventId']; checkForExpiry = json['checkForExpiry']; excludeHiddenCards = json['excludeHiddenCards']; requestUnixUTCTimeStamp = json['requestUnixUTCTimeStamp']; includeDeletedCards = json['includeDeletedCards']; signature = JsonConverters.fromJson(json['signature'],'RequestSignature',context!); return this; } Map toJson() => { 'phoneVerificationNumber': phoneVerificationNumber, 'deviceId': deviceId, 'onlyForEventId': onlyForEventId, 'checkForExpiry': checkForExpiry, 'excludeHiddenCards': excludeHiddenCards, 'requestUnixUTCTimeStamp': requestUnixUTCTimeStamp, 'includeDeletedCards': includeDeletedCards, 'signature': JsonConverters.toJson(signature,'RequestSignature',context!) }; createResponse() => PaymentCardsResult(); getResponseTypeName() => "PaymentCardsResult"; getTypeName() => "PaymentCardsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'RequestSignature': TypeInfo(TypeOf.Class, create:() => RequestSignature()), 'KsiCards': TypeInfo(TypeOf.Class, create:() => KsiCards()), 'OwnerCards': TypeInfo(TypeOf.Class, create:() => OwnerCards()), 'OwnerCardType': TypeInfo(TypeOf.Class, create:() => OwnerCardType()), 'KsiCardTypes': TypeInfo(TypeOf.Class, create:() => KsiCardTypes()), 'BorgunSavedCards': TypeInfo(TypeOf.Class, create:() => BorgunSavedCards()), 'KsiCardInfo': TypeInfo(TypeOf.Class, create:() => KsiCardInfo()), 'OwnerCardInfo': TypeInfo(TypeOf.Class, create:() => OwnerCardInfo()), 'PaymentCardsResult': TypeInfo(TypeOf.Class, create:() => PaymentCardsResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PaymentCardsRequest': TypeInfo(TypeOf.Class, create:() => PaymentCardsRequest()), });