Skip to content

Commit

Permalink
Update with latest OpenAPI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
moneykitt committed May 2, 2024
1 parent 7ba5708 commit a2414a6
Show file tree
Hide file tree
Showing 10 changed files with 273 additions and 35 deletions.
7 changes: 2 additions & 5 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ moneykit/models/requested_link_permission.py
moneykit/models/response401_disconnect_links_id_delete.py
moneykit/models/response401_exchange_token_link_session_exchange_token_post.py
moneykit/models/response401_get_account_links_id_accounts_account_id_get.py
moneykit/models/response401_get_account_numbers_legacy20230218_links_id_accounts_numbers_get.py
moneykit/models/response401_get_account_numbers.py
moneykit/models/response401_get_accounts_links_id_accounts_get.py
moneykit/models/response401_get_holdings_links_id_investments_holdings_get.py
moneykit/models/response401_get_identities_links_id_identity_get.py
Expand Down Expand Up @@ -138,7 +138,4 @@ moneykit/py.typed
moneykit/rest.py
pyproject.toml
test/__init__.py
test/test_account_numbers_legacy20230218.py
test/test_account_with_account_numbers_legacy20230218.py
test/test_get_account_numbers_response_legacy20230218.py
test/test_response401_get_account_numbers_legacy20230218_links_id_accounts_numbers_get.py
test/test_response401_get_account_numbers.py
6 changes: 2 additions & 4 deletions moneykit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "0.1.13"
__version__ = "0.1.14"

# import apis into sdk package
from moneykit.api.access_token_api import AccessTokenApi
Expand Down Expand Up @@ -156,9 +156,7 @@
from moneykit.models.response401_get_account_links_id_accounts_account_id_get import (
Response401GetAccountLinksIdAccountsAccountIdGet,
)
from moneykit.models.response401_get_account_numbers_legacy20230218_links_id_accounts_numbers_get import (
Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet,
)
from moneykit.models.response401_get_account_numbers import Response401GetAccountNumbers
from moneykit.models.response401_get_accounts_links_id_accounts_get import (
Response401GetAccountsLinksIdAccountsGet,
)
Expand Down
20 changes: 10 additions & 10 deletions moneykit/api/account_numbers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client

@validate_call
def get_account_numbers_legacy20230218(
def get_account_numbers(
self,
id: Annotated[StrictStr, Field(description="The unique ID for this link.")],
_request_timeout: Union[
Expand Down Expand Up @@ -90,7 +90,7 @@ def get_account_numbers_legacy20230218(
:return: Returns the result object.
""" # noqa: E501

_param = self._get_account_numbers_legacy20230218_serialize(
_param = self._get_account_numbers_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -100,7 +100,7 @@ def get_account_numbers_legacy20230218(

_response_types_map: Dict[str, Optional[str]] = {
"200": "GetAccountNumbersResponseLegacy20230218",
"401": "Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet",
"401": "Response401GetAccountNumbers",
"429": "APIErrorRateLimitExceededResponse",
"404": "LinkErrorNotFoundResponse",
"403": "LinkErrorForbiddenActionResponse",
Expand All @@ -117,7 +117,7 @@ def get_account_numbers_legacy20230218(
).data

@validate_call
def get_account_numbers_legacy20230218_with_http_info(
def get_account_numbers_with_http_info(
self,
id: Annotated[StrictStr, Field(description="The unique ID for this link.")],
_request_timeout: Union[
Expand Down Expand Up @@ -160,7 +160,7 @@ def get_account_numbers_legacy20230218_with_http_info(
:return: Returns the result object.
""" # noqa: E501

_param = self._get_account_numbers_legacy20230218_serialize(
_param = self._get_account_numbers_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -170,7 +170,7 @@ def get_account_numbers_legacy20230218_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
"200": "GetAccountNumbersResponseLegacy20230218",
"401": "Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet",
"401": "Response401GetAccountNumbers",
"429": "APIErrorRateLimitExceededResponse",
"404": "LinkErrorNotFoundResponse",
"403": "LinkErrorForbiddenActionResponse",
Expand All @@ -187,7 +187,7 @@ def get_account_numbers_legacy20230218_with_http_info(
)

@validate_call
def get_account_numbers_legacy20230218_without_preload_content(
def get_account_numbers_without_preload_content(
self,
id: Annotated[StrictStr, Field(description="The unique ID for this link.")],
_request_timeout: Union[
Expand Down Expand Up @@ -230,7 +230,7 @@ def get_account_numbers_legacy20230218_without_preload_content(
:return: Returns the result object.
""" # noqa: E501

_param = self._get_account_numbers_legacy20230218_serialize(
_param = self._get_account_numbers_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -240,7 +240,7 @@ def get_account_numbers_legacy20230218_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
"200": "GetAccountNumbersResponseLegacy20230218",
"401": "Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet",
"401": "Response401GetAccountNumbers",
"429": "APIErrorRateLimitExceededResponse",
"404": "LinkErrorNotFoundResponse",
"403": "LinkErrorForbiddenActionResponse",
Expand All @@ -252,7 +252,7 @@ def get_account_numbers_legacy20230218_without_preload_content(
)
return response_data.response

def _get_account_numbers_legacy20230218_serialize(
def _get_account_numbers_serialize(
self,
id,
_request_auth,
Expand Down
20 changes: 10 additions & 10 deletions moneykit/api/accounts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _get_account_serialize(
)

@validate_call
def get_account_numbers_legacy20230218(
def get_account_numbers(
self,
id: Annotated[StrictStr, Field(description="The unique ID for this link.")],
_request_timeout: Union[
Expand Down Expand Up @@ -366,7 +366,7 @@ def get_account_numbers_legacy20230218(
:return: Returns the result object.
""" # noqa: E501

_param = self._get_account_numbers_legacy20230218_serialize(
_param = self._get_account_numbers_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -376,7 +376,7 @@ def get_account_numbers_legacy20230218(

_response_types_map: Dict[str, Optional[str]] = {
"200": "GetAccountNumbersResponseLegacy20230218",
"401": "Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet",
"401": "Response401GetAccountNumbers",
"429": "APIErrorRateLimitExceededResponse",
"404": "LinkErrorNotFoundResponse",
"403": "LinkErrorForbiddenActionResponse",
Expand All @@ -393,7 +393,7 @@ def get_account_numbers_legacy20230218(
).data

@validate_call
def get_account_numbers_legacy20230218_with_http_info(
def get_account_numbers_with_http_info(
self,
id: Annotated[StrictStr, Field(description="The unique ID for this link.")],
_request_timeout: Union[
Expand Down Expand Up @@ -436,7 +436,7 @@ def get_account_numbers_legacy20230218_with_http_info(
:return: Returns the result object.
""" # noqa: E501

_param = self._get_account_numbers_legacy20230218_serialize(
_param = self._get_account_numbers_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -446,7 +446,7 @@ def get_account_numbers_legacy20230218_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
"200": "GetAccountNumbersResponseLegacy20230218",
"401": "Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet",
"401": "Response401GetAccountNumbers",
"429": "APIErrorRateLimitExceededResponse",
"404": "LinkErrorNotFoundResponse",
"403": "LinkErrorForbiddenActionResponse",
Expand All @@ -463,7 +463,7 @@ def get_account_numbers_legacy20230218_with_http_info(
)

@validate_call
def get_account_numbers_legacy20230218_without_preload_content(
def get_account_numbers_without_preload_content(
self,
id: Annotated[StrictStr, Field(description="The unique ID for this link.")],
_request_timeout: Union[
Expand Down Expand Up @@ -506,7 +506,7 @@ def get_account_numbers_legacy20230218_without_preload_content(
:return: Returns the result object.
""" # noqa: E501

_param = self._get_account_numbers_legacy20230218_serialize(
_param = self._get_account_numbers_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -516,7 +516,7 @@ def get_account_numbers_legacy20230218_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
"200": "GetAccountNumbersResponseLegacy20230218",
"401": "Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet",
"401": "Response401GetAccountNumbers",
"429": "APIErrorRateLimitExceededResponse",
"404": "LinkErrorNotFoundResponse",
"403": "LinkErrorForbiddenActionResponse",
Expand All @@ -528,7 +528,7 @@ def get_account_numbers_legacy20230218_without_preload_content(
)
return response_data.response

def _get_account_numbers_legacy20230218_serialize(
def _get_account_numbers_serialize(
self,
id,
_request_auth,
Expand Down
2 changes: 1 addition & 1 deletion moneykit/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "OpenAPI-Generator/0.1.13/python"
self.user_agent = "OpenAPI-Generator/0.1.14/python"
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion moneykit/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 2023-02-18\n"
"SDK Package Version: 0.1.13".format(
"SDK Package Version: 0.1.14".format(
env=sys.platform, pyversion=sys.version
)
)
Expand Down
4 changes: 1 addition & 3 deletions moneykit/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@
from moneykit.models.response401_get_account_links_id_accounts_account_id_get import (
Response401GetAccountLinksIdAccountsAccountIdGet,
)
from moneykit.models.response401_get_account_numbers_legacy20230218_links_id_accounts_numbers_get import (
Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet,
)
from moneykit.models.response401_get_account_numbers import Response401GetAccountNumbers
from moneykit.models.response401_get_accounts_links_id_accounts_get import (
Response401GetAccountsLinksIdAccountsGet,
)
Expand Down
Loading

0 comments on commit a2414a6

Please sign in to comment.