From 5a62bbeb0b17c9a11a687007f176daa59a70546f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=9D=2E=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5=D0=B2?= Date: Wed, 20 Oct 2021 10:29:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=B0?= =?UTF-8?q?=20on=5Fbehalf=5Fof=20=D0=B4=D0=BB=D1=8F=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20/me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ src/yookassa/__init__.py | 2 +- src/yookassa/settings.py | 11 +++++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20fe945..2095ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### v2.1.4 от 19.10.2021 +* Добавлена поддержка параметра on_behalf_of для метода /me + ### v2.1.3 от 10.09.2021 * Добавлена обработка metadata в transfers diff --git a/src/yookassa/__init__.py b/src/yookassa/__init__.py index ac23db4..5a2dcd1 100644 --- a/src/yookassa/__init__.py +++ b/src/yookassa/__init__.py @@ -10,4 +10,4 @@ __author__ = "YooMoney" __email__ = 'cms@yoomoney.ru' -__version__ = '2.1.3' +__version__ = '2.1.4' diff --git a/src/yookassa/settings.py b/src/yookassa/settings.py index 47cc0fe..2e86e9b 100644 --- a/src/yookassa/settings.py +++ b/src/yookassa/settings.py @@ -10,9 +10,16 @@ def __init__(self): self.client = ApiClient() @classmethod - def get_account_settings(cls): + def get_account_settings(cls, params=None): + """ + Shop Info + + :param params: (dict | None) Параметры поиска. + В настоящее время доступен только {'on_behalf_of': account_id} + :return: dict + """ instance = cls() path = cls.base_path - response = instance.client.request(HttpVerb.GET, path) + response = instance.client.request(HttpVerb.GET, path, params) return response