/* Options: Date: 2025-02-05 08:50:03 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FindPaymentRecurrence.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PaymentRecurrenceInstance implements IConvertible { int? PaymentRecurrenceId; DateTime? CheckDate; DateTime? NextDate; DateTime? EndDate; double? Amount; int? Recurrence; int? PaymentType; bool? Deleted; // @References(typeof(MembershipInstance)) int? MembershipId; bool? ChargePerLicense; double? LastPaymentAmount; int? LastPaymentMethodId; bool? Disabled; PaymentRecurrenceInstance({this.PaymentRecurrenceId,this.CheckDate,this.NextDate,this.EndDate,this.Amount,this.Recurrence,this.PaymentType,this.Deleted,this.MembershipId,this.ChargePerLicense,this.LastPaymentAmount,this.LastPaymentMethodId,this.Disabled}); PaymentRecurrenceInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentRecurrenceId = json['PaymentRecurrenceId']; CheckDate = JsonConverters.fromJson(json['CheckDate'],'DateTime',context!); NextDate = JsonConverters.fromJson(json['NextDate'],'DateTime',context!); EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!); Amount = JsonConverters.toDouble(json['Amount']); Recurrence = json['Recurrence']; PaymentType = json['PaymentType']; Deleted = json['Deleted']; MembershipId = json['MembershipId']; ChargePerLicense = json['ChargePerLicense']; LastPaymentAmount = JsonConverters.toDouble(json['LastPaymentAmount']); LastPaymentMethodId = json['LastPaymentMethodId']; Disabled = json['Disabled']; return this; } Map toJson() => { 'PaymentRecurrenceId': PaymentRecurrenceId, 'CheckDate': JsonConverters.toJson(CheckDate,'DateTime',context!), 'NextDate': JsonConverters.toJson(NextDate,'DateTime',context!), 'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!), 'Amount': Amount, 'Recurrence': Recurrence, 'PaymentType': PaymentType, 'Deleted': Deleted, 'MembershipId': MembershipId, 'ChargePerLicense': ChargePerLicense, 'LastPaymentAmount': LastPaymentAmount, 'LastPaymentMethodId': LastPaymentMethodId, 'Disabled': Disabled }; getTypeName() => "PaymentRecurrenceInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/PaymentRecurrence") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="PaymentRecurrence") class FindPaymentRecurrence extends QueryDb implements IReturn>, IConvertible { FindPaymentRecurrence(); FindPaymentRecurrence.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindPaymentRecurrence"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'PaymentRecurrenceInstance': TypeInfo(TypeOf.Class, create:() => PaymentRecurrenceInstance()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindPaymentRecurrence': TypeInfo(TypeOf.Class, create:() => FindPaymentRecurrence()), 'List': TypeInfo(TypeOf.Class, create:() => []), });