diff --git a/src/spotifyaio/models.py b/src/spotifyaio/models.py index 0a540d0..666955f 100644 --- a/src/spotifyaio/models.py +++ b/src/spotifyaio/models.py @@ -525,6 +525,13 @@ class Category(DataClassORJSONMixin): icons: list[Image] +class ProductType(StrEnum): + """Product type.""" + + PREMIUM = "premium" + FREE = "free" + + @dataclass class BaseUserProfile(DataClassORJSONMixin): """Base user profile model.""" @@ -540,6 +547,8 @@ class BaseUserProfile(DataClassORJSONMixin): class UserProfile(BaseUserProfile): """User profile model.""" + product: ProductType + @dataclass class SimplifiedShow(DataClassORJSONMixin): diff --git a/tests/__snapshots__/test_spotify.ambr b/tests/__snapshots__/test_spotify.ambr index e34f447..b016a98 100644 --- a/tests/__snapshots__/test_spotify.ambr +++ b/tests/__snapshots__/test_spotify.ambr @@ -4246,6 +4246,7 @@ }), ]), 'object_type': 'user', + 'product': , 'uri': 'spotify:user:1112264649', 'user_id': '1112264649', })