yandex_music.account.price¶
- class yandex_music.account.price.Price(amount: int, currency: str, client: Client | None = None)¶
Bases:
YandexMusicObject
Класс, представляющий цену.
- amount¶
Количество единиц.
- Type:
int
- currency¶
Валюта.
- Type:
str
- client¶
Клиент Yandex Music.
- Type:
yandex_music.Client
, optional
- amount: int¶
- currency: str¶
- classmethod de_json(data: dict, client: Client) Price | None ¶
Десериализация объекта.
- Parameters:
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns:
Цена.
- Return type: