/* 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: OwnerCardPurchaseQuoteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class LocalizedMessage implements IConvertible { String? Is; String? en; LocalizedMessage({this.Is,this.en}); LocalizedMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Is = json['is']; en = json['en']; return this; } Map toJson() => { 'is': Is, 'en': en }; getTypeName() => "LocalizedMessage"; TypeContext? context = _ctx; } class OwnerCardPurchaseQuoteResult implements IConvertible { int? ownerCardTypeId; int? ownerId; String? currency; int? priceMinor; int? giftAppliedMinor; int? remainingMinor; int? giftHoldId; bool? fullyCoveredByGiftCard; bool? requiresCardMandate; String? giftRejectedReason; LocalizedMessage? giftMessage; int? statusCode; String? message; OwnerCardPurchaseQuoteResult({this.ownerCardTypeId,this.ownerId,this.currency,this.priceMinor,this.giftAppliedMinor,this.remainingMinor,this.giftHoldId,this.fullyCoveredByGiftCard,this.requiresCardMandate,this.giftRejectedReason,this.giftMessage,this.statusCode,this.message}); OwnerCardPurchaseQuoteResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ownerCardTypeId = json['ownerCardTypeId']; ownerId = json['ownerId']; currency = json['currency']; priceMinor = json['priceMinor']; giftAppliedMinor = json['giftAppliedMinor']; remainingMinor = json['remainingMinor']; giftHoldId = json['giftHoldId']; fullyCoveredByGiftCard = json['fullyCoveredByGiftCard']; requiresCardMandate = json['requiresCardMandate']; giftRejectedReason = json['giftRejectedReason']; giftMessage = JsonConverters.fromJson(json['giftMessage'],'LocalizedMessage',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'ownerCardTypeId': ownerCardTypeId, 'ownerId': ownerId, 'currency': currency, 'priceMinor': priceMinor, 'giftAppliedMinor': giftAppliedMinor, 'remainingMinor': remainingMinor, 'giftHoldId': giftHoldId, 'fullyCoveredByGiftCard': fullyCoveredByGiftCard, 'requiresCardMandate': requiresCardMandate, 'giftRejectedReason': giftRejectedReason, 'giftMessage': JsonConverters.toJson(giftMessage,'LocalizedMessage',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "OwnerCardPurchaseQuoteResult"; TypeContext? context = _ctx; } // @Route("/OwnerCards/Purchase/Quote", "POST") class OwnerCardPurchaseQuoteRequest implements IReturn, IConvertible { int? ownerCardTypeId; String? giftCardCode; String? idempotencyKey; bool? isRecurring; OwnerCardPurchaseQuoteRequest({this.ownerCardTypeId,this.giftCardCode,this.idempotencyKey,this.isRecurring}); OwnerCardPurchaseQuoteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ownerCardTypeId = json['ownerCardTypeId']; giftCardCode = json['giftCardCode']; idempotencyKey = json['idempotencyKey']; isRecurring = json['isRecurring']; return this; } Map toJson() => { 'ownerCardTypeId': ownerCardTypeId, 'giftCardCode': giftCardCode, 'idempotencyKey': idempotencyKey, 'isRecurring': isRecurring }; createResponse() => OwnerCardPurchaseQuoteResult(); getResponseTypeName() => "OwnerCardPurchaseQuoteResult"; getTypeName() => "OwnerCardPurchaseQuoteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'LocalizedMessage': TypeInfo(TypeOf.Class, create:() => LocalizedMessage()), 'OwnerCardPurchaseQuoteResult': TypeInfo(TypeOf.Class, create:() => OwnerCardPurchaseQuoteResult()), 'OwnerCardPurchaseQuoteRequest': TypeInfo(TypeOf.Class, create:() => OwnerCardPurchaseQuoteRequest()), });