from dataclasses import dataclass from audience_common.auth.account import Account @dataclass(frozen=True) class Product: product_id: int upc: str status: str vendor_id: int subaccount_id: int @property def account(self) -> Account: return Account(vendor_id=self.vendor_id, subaccount_id=self.subaccount_id)