yandex_music.account.operator

class yandex_music.account.operator.Operator(product_id: str, phone: str, payment_regularity: str, deactivation: List[Deactivation], title: str, suspended: bool, client: ClientType | None = None)

Bases: YandexMusicModel

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

product_id

Уникальный идентификатор продукта сервиса Яндекс.Музыка.

Type:

str

phone

Мобильный номер, на который подключена услуга.

Type:

str

payment_regularity

Регулярность оплаты.

Type:

str

deactivation

Способы деактивации.

Type:

list из yandex_music.Deactivation

title

Название услуги.

Type:

str

suspended

Приостановлено.

Type:

bool

client

Клиент Yandex Music.

Type:

yandex_music.Client, optional

client: ClientType | None = None
classmethod de_json(data: JSONType, client: ClientType) Operator | None

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

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

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

Returns:

Услуга сотового оператора.

Return type:

yandex_music.Operator

deactivation: List[Deactivation]
payment_regularity: str
phone: str
product_id: str
suspended: bool
title: str