Skip to content

Commit

Permalink
Merge pull request #8 from yoomoney/release/v2.1.4
Browse files Browse the repository at this point in the history
Release/2.1.4
  • Loading branch information
tonchik-tm authored Oct 20, 2021
2 parents 09fdb34 + 5a62bbe commit abf3814
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v2.1.4 от 19.10.2021
* Добавлена поддержка параметра on_behalf_of для метода /me

### v2.1.3 от 10.09.2021
* Добавлена обработка metadata в transfers

Expand Down
2 changes: 1 addition & 1 deletion src/yookassa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

__author__ = "YooMoney"
__email__ = '[email protected]'
__version__ = '2.1.3'
__version__ = '2.1.4'
11 changes: 9 additions & 2 deletions src/yookassa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit abf3814

Please sign in to comment.