yandex_music.settings#
- class yandex_music.settings.Settings(in_app_products: List[Product], native_products: List[Product], web_payment_url: str, promo_codes_enabled: bool, web_payment_month_product_price: Optional[Price] = None, client: Optional[Client] = None)#
Bases:
YandexMusicObject
Класс, представляющий предложения по покупке.
- in_app_products#
Продаваемые продукты внутри приложения.
- Type
list
изyandex_music.Product
- native_products#
Продаваемые продукты всплывающими окнами.
- Type
list
- web_payment_url#
Ссылка для осуществления платежа.
- Type
str
- web_payment_month_product_price#
Цена продукта за месяц.
- Type
yandex_music.Price
, optional
- promo_codes_enabled#
Доступно ли использование промо-кодов.
- Type
bool
- client#
Клиент Yandex Music.
- Type
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) Optional[Settings] #
Десериализация объекта.
- Parameters
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns
Предложение по покупке.
- Return type
yandex_music.Settings
- promo_codes_enabled: bool#
- web_payment_url: str#