/* Options: Date: 2026-08-17 08:27:49 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: GiftCardRefundCreditRequest.* //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/RefundCredit", "POST") class GiftCardRefundCreditRequest implements IReturn, IConvertible { int? giftCardId; String? code; int? amountMinor; String? orderPaymentReference; String? idempotencyKey; String? note; GiftCardRefundCreditRequest({this.giftCardId,this.code,this.amountMinor,this.orderPaymentReference,this.idempotencyKey,this.note}); GiftCardRefundCreditRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { giftCardId = json['giftCardId']; code = json['code']; amountMinor = json['amountMinor']; orderPaymentReference = json['orderPaymentReference']; idempotencyKey = json['idempotencyKey']; note = json['note']; return this; } Map toJson() => { 'giftCardId': giftCardId, 'code': code, 'amountMinor': amountMinor, 'orderPaymentReference': orderPaymentReference, 'idempotencyKey': idempotencyKey, 'note': note }; createResponse() => GiftCardRedeemResult(); getResponseTypeName() => "GiftCardRedeemResult"; getTypeName() => "GiftCardRefundCreditRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'LocalizedMessage': TypeInfo(TypeOf.Class, create:() => LocalizedMessage()), 'GiftCardRedeemResult': TypeInfo(TypeOf.Class, create:() => GiftCardRedeemResult()), 'GiftCardRefundCreditRequest': TypeInfo(TypeOf.Class, create:() => GiftCardRefundCreditRequest()), });