from dataclasses import dataclass from fansifter_common.auth.account import Account @dataclass(kw_only=True) class ArtistFanReportFilterRequest: identity_id: str global_participant_id: str vendor_id: int | None subaccount_id: int | None @property def account(self) -> Account | None: if self.vendor_id is not None and self.subaccount_id is not None: return Account(vendor_id=self.vendor_id, subaccount_id=self.subaccount_id) return None