/* Options: Date: 2025-10-27 21:54:58 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DuEnableNotifyRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; enum PaymentTypeEnum { OneTime, Recurring, } // @Route("/duenable/webhook/notify", "POST") class DuEnableNotifyRequest implements IConvertible, IPost { PaymentTypeEnum? PaymentType; String? TransactionId; String? Uuid; String? PaymentId; int? Result; String? Message; double? TotalAmount; double? AdjustmentAmount; double? TransactionAmount; double? FeeAmount; String? RecurringId; String? Signature; DuEnableNotifyRequest({this.PaymentType,this.TransactionId,this.Uuid,this.PaymentId,this.Result,this.Message,this.TotalAmount,this.AdjustmentAmount,this.TransactionAmount,this.FeeAmount,this.RecurringId,this.Signature}); DuEnableNotifyRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentType = JsonConverters.fromJson(json['PaymentType'],'PaymentTypeEnum',context!); TransactionId = json['TransactionId']; Uuid = json['Uuid']; PaymentId = json['PaymentId']; Result = json['Result']; Message = json['Message']; TotalAmount = JsonConverters.toDouble(json['TotalAmount']); AdjustmentAmount = JsonConverters.toDouble(json['AdjustmentAmount']); TransactionAmount = JsonConverters.toDouble(json['TransactionAmount']); FeeAmount = JsonConverters.toDouble(json['FeeAmount']); RecurringId = json['RecurringId']; Signature = json['Signature']; return this; } Map toJson() => { 'PaymentType': JsonConverters.toJson(PaymentType,'PaymentTypeEnum',context!), 'TransactionId': TransactionId, 'Uuid': Uuid, 'PaymentId': PaymentId, 'Result': Result, 'Message': Message, 'TotalAmount': TotalAmount, 'AdjustmentAmount': AdjustmentAmount, 'TransactionAmount': TransactionAmount, 'FeeAmount': FeeAmount, 'RecurringId': RecurringId, 'Signature': Signature }; getTypeName() => "DuEnableNotifyRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'PaymentTypeEnum': TypeInfo(TypeOf.Enum, enumValues:PaymentTypeEnum.values), 'DuEnableNotifyRequest': TypeInfo(TypeOf.Class, create:() => DuEnableNotifyRequest()), });