/* Options: Date: 2026-10-01 12:31:21 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: DonationRefundRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Donation implements IConvertible { int? id; int? ownerId; int? ownerCardTypeId; int? ownerCardId; int? recurringPaymentId; String? payerKennitala; String? payerName; String? payerEmail; int? amount; String? currency; DateTime? paidUTC; String? paymentReference; String? status; DateTime? refundedUTC; DateTime? timeStampCreatedUTC; DateTime? timeStampLastChangedUTC; Donation({this.id,this.ownerId,this.ownerCardTypeId,this.ownerCardId,this.recurringPaymentId,this.payerKennitala,this.payerName,this.payerEmail,this.amount,this.currency,this.paidUTC,this.paymentReference,this.status,this.refundedUTC,this.timeStampCreatedUTC,this.timeStampLastChangedUTC}); Donation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ownerId = json['ownerId']; ownerCardTypeId = json['ownerCardTypeId']; ownerCardId = json['ownerCardId']; recurringPaymentId = json['recurringPaymentId']; payerKennitala = json['payerKennitala']; payerName = json['payerName']; payerEmail = json['payerEmail']; amount = json['amount']; currency = json['currency']; paidUTC = JsonConverters.fromJson(json['paidUTC'],'DateTime',context!); paymentReference = json['paymentReference']; status = json['status']; refundedUTC = JsonConverters.fromJson(json['refundedUTC'],'DateTime',context!); timeStampCreatedUTC = JsonConverters.fromJson(json['timeStampCreatedUTC'],'DateTime',context!); timeStampLastChangedUTC = JsonConverters.fromJson(json['timeStampLastChangedUTC'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'ownerId': ownerId, 'ownerCardTypeId': ownerCardTypeId, 'ownerCardId': ownerCardId, 'recurringPaymentId': recurringPaymentId, 'payerKennitala': payerKennitala, 'payerName': payerName, 'payerEmail': payerEmail, 'amount': amount, 'currency': currency, 'paidUTC': JsonConverters.toJson(paidUTC,'DateTime',context!), 'paymentReference': paymentReference, 'status': status, 'refundedUTC': JsonConverters.toJson(refundedUTC,'DateTime',context!), 'timeStampCreatedUTC': JsonConverters.toJson(timeStampCreatedUTC,'DateTime',context!), 'timeStampLastChangedUTC': JsonConverters.toJson(timeStampLastChangedUTC,'DateTime',context!) }; getTypeName() => "Donation"; TypeContext? context = _ctx; } class DonationResult implements IConvertible { Donation? item; int? statusCode; String? message; DonationResult({this.item,this.statusCode,this.message}); DonationResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { item = JsonConverters.fromJson(json['item'],'Donation',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'item': JsonConverters.toJson(item,'Donation',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "DonationResult"; TypeContext? context = _ctx; } // @Route("/donation/{Id}/refund", "PUT") class DonationRefundRequest implements IReturn, IConvertible { int? id; int? ownerId; DonationRefundRequest({this.id,this.ownerId}); DonationRefundRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ownerId = json['ownerId']; return this; } Map toJson() => { 'id': id, 'ownerId': ownerId }; createResponse() => DonationResult(); getResponseTypeName() => "DonationResult"; getTypeName() => "DonationRefundRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'Donation': TypeInfo(TypeOf.Class, create:() => Donation()), 'DonationResult': TypeInfo(TypeOf.Class, create:() => DonationResult()), 'DonationRefundRequest': TypeInfo(TypeOf.Class, create:() => DonationRefundRequest()), });