yandex_music.promo_code_status#

class yandex_music.promo_code_status.PromoCodeStatus(status: str, status_desc: str, account_status: Optional[Status], client: Optional[Client] = None)#

Bases: YandexMusicObject

Класс, представляющий статус активации промо-кода.

status#

Статус операции.

Type

str

status_desc#

Описание статуса.

Type

str

account_status#

Информация об аккаунте пользователя.

Type

yandex_music.Status

client#

Клиент Yandex Music.

Type

yandex_music.Client, optional

account_status: Optional[Status]#
client: Optional[Client] = None#
classmethod de_json(data: dict, client: Client) Optional[PromoCodeStatus]#

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

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

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

Returns

Статус активации промо-кода.

Return type

yandex_music.PromoCodeStatus

status: str#
status_desc: str#