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