""" Options: Date: 2025-04-04 17:31:33 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: FindMemberStatistic.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class MemberStatisticInstance: member_id: int = 0 total_attendance: int = 0 last_attendance: Optional[datetime.datetime] = None attendance_this_week: int = 0 date_of_last_booking: Optional[datetime.datetime] = None bookings_attended: int = 0 recurring_payments: Optional[int] = None overdue_payments: Optional[int] = None recurring_payments_paid_in_last30_days: Optional[int] = None grading_readiness: Optional[int] = None bookings: Optional[int] = None modified_date: Optional[datetime.datetime] = None # @Route("/api/Query/MemberStatistic") # @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="MemberStatistic") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FindMemberStatistic(QueryDb[MemberStatisticInstance], IReturn[QueryResponse[MemberStatisticInstance]]): pass