yandex_music.account.price#

class yandex_music.account.price.Price(amount: int, currency: str, client: Optional[Client] = None)#

Bases: YandexMusicObject

Класс, представляющий цену.

amount#

Количество единиц.

Type

int

currency#

Валюта.

Type

str

client#

Клиент Yandex Music.

Type

yandex_music.Client, optional

amount: int#
client: Optional[Client] = None#
currency: str#
classmethod de_json(data: dict, client: Client) Optional[Price]#

Десериализация объекта.

Parameters
  • data (dict) – Поля и значения десериализуемого объекта.

  • client (yandex_music.Client, optional) – Клиент Yandex Music.

Returns

Цена.

Return type

yandex_music.Price