/* Options: Date: 2026-08-17 09:17:23 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: GiftCardRedeemRequest.* //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 GiftCardRedeemResult implements IConvertible { bool? ok; String? reason; LocalizedMessage? message; int? redeemedAmountMinor; int? newBalanceMinor; int? transactionId; String? settlementTag; int? statusCode; GiftCardRedeemResult({this.ok,this.reason,this.message,this.redeemedAmountMinor,this.newBalanceMinor,this.transactionId,this.settlementTag,this.statusCode}); GiftCardRedeemResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ok = json['ok']; reason = json['reason']; message = JsonConverters.fromJson(json['message'],'LocalizedMessage',context!); redeemedAmountMinor = json['redeemedAmountMinor']; newBalanceMinor = json['newBalanceMinor']; transactionId = json['transactionId']; settlementTag = json['settlementTag']; statusCode = json['statusCode']; return this; } Map toJson() => { 'ok': ok, 'reason': reason, 'message': JsonConverters.toJson(message,'LocalizedMessage',context!), 'redeemedAmountMinor': redeemedAmountMinor, 'newBalanceMinor': newBalanceMinor, 'transactionId': transactionId, 'settlementTag': settlementTag, 'statusCode': statusCode }; getTypeName() => "GiftCardRedeemResult"; TypeContext? context = _ctx; } // @Route("/GiftCard/Redeem", "POST") class GiftCardRedeemRequest implements IReturn, IConvertible { int? holdId; String? code; int? amountMinor; int? eventId; int? targetOwnerId; String? orderPaymentReference; String? idempotencyKey; GiftCardRedeemRequest({this.holdId,this.code,this.amountMinor,this.eventId,this.targetOwnerId,this.orderPaymentReference,this.idempotencyKey}); GiftCardRedeemRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { holdId = json['holdId']; code = json['code']; amountMinor = json['amountMinor']; eventId = json['eventId']; targetOwnerId = json['targetOwnerId']; orderPaymentReference = json['orderPaymentReference']; idempotencyKey = json['idempotencyKey']; return this; } Map toJson() => { 'holdId': holdId, 'code': code, 'amountMinor': amountMinor, 'eventId': eventId, 'targetOwnerId': targetOwnerId, 'orderPaymentReference': orderPaymentReference, 'idempotencyKey': idempotencyKey }; createResponse() => GiftCardRedeemResult(); getResponseTypeName() => "GiftCardRedeemResult"; getTypeName() => "GiftCardRedeemRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'LocalizedMessage': TypeInfo(TypeOf.Class, create:() => LocalizedMessage()), 'GiftCardRedeemResult': TypeInfo(TypeOf.Class, create:() => GiftCardRedeemResult()), 'GiftCardRedeemRequest': TypeInfo(TypeOf.Class, create:() => GiftCardRedeemRequest()), });