From d8d5a837be19ed1d18eb5f0098a8ac45b46c3b58 Mon Sep 17 00:00:00 2001 From: devexperience Date: Wed, 27 Nov 2024 14:53:42 +0000 Subject: [PATCH] Generated version 1.1.0 This commit was automatically created by a GitHub Action to generate version 1.1.0 of this library. --- docs/MemberResponse.md | 1 + mx_platform_python/__init__.py | 2 +- mx_platform_python/api_client.py | 2 +- mx_platform_python/configuration.py | 2 +- mx_platform_python/models/member_response.py | 13 ++++++++++--- openapi/config.yml | 2 +- pyproject.toml | 2 +- setup.py | 2 +- test/test_member_response.py | 1 + test/test_member_response_body.py | 1 + test/test_members_response_body.py | 1 + 11 files changed, 20 insertions(+), 9 deletions(-) diff --git a/docs/MemberResponse.md b/docs/MemberResponse.md index 9d16566..c95bd29 100644 --- a/docs/MemberResponse.md +++ b/docs/MemberResponse.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **name** | **str** | | [optional] **oauth_window_uri** | **str** | | [optional] **successfully_aggregated_at** | **str** | | [optional] +**use_cases** | **List[str]** | | [optional] **user_guid** | **str** | | [optional] **user_id** | **str** | | [optional] diff --git a/mx_platform_python/__init__.py b/mx_platform_python/__init__.py index ba0a0b4..40731a5 100644 --- a/mx_platform_python/__init__.py +++ b/mx_platform_python/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.0.0" +__version__ = "1.1.0" # import apis into sdk package from mx_platform_python.api.budgets_api import BudgetsApi diff --git a/mx_platform_python/api_client.py b/mx_platform_python/api_client.py index 7d0e235..06780db 100644 --- a/mx_platform_python/api_client.py +++ b/mx_platform_python/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.user_agent = 'OpenAPI-Generator/1.1.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/mx_platform_python/configuration.py b/mx_platform_python/configuration.py index 5cd914a..59666c3 100644 --- a/mx_platform_python/configuration.py +++ b/mx_platform_python/configuration.py @@ -392,7 +392,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1.0\n"\ - "SDK Package Version: 1.0.0".\ + "SDK Package Version: 1.1.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/mx_platform_python/models/member_response.py b/mx_platform_python/models/member_response.py index 37b706e..26e9bdf 100644 --- a/mx_platform_python/models/member_response.py +++ b/mx_platform_python/models/member_response.py @@ -18,8 +18,8 @@ import json -from typing import Optional -from pydantic import BaseModel, StrictBool, StrictStr +from typing import List, Optional +from pydantic import BaseModel, StrictBool, StrictStr, conlist class MemberResponse(BaseModel): """ @@ -41,9 +41,10 @@ class MemberResponse(BaseModel): name: Optional[StrictStr] = None oauth_window_uri: Optional[StrictStr] = None successfully_aggregated_at: Optional[StrictStr] = None + use_cases: Optional[conlist(StrictStr)] = None user_guid: Optional[StrictStr] = None user_id: Optional[StrictStr] = None - __properties = ["aggregated_at", "background_aggregation_is_disabled", "connection_status", "guid", "id", "institution_code", "is_being_aggregated", "is_managed_by_user", "is_manual", "is_oauth", "metadata", "most_recent_job_detail_code", "most_recent_job_detail_text", "name", "oauth_window_uri", "successfully_aggregated_at", "user_guid", "user_id"] + __properties = ["aggregated_at", "background_aggregation_is_disabled", "connection_status", "guid", "id", "institution_code", "is_being_aggregated", "is_managed_by_user", "is_manual", "is_oauth", "metadata", "most_recent_job_detail_code", "most_recent_job_detail_text", "name", "oauth_window_uri", "successfully_aggregated_at", "use_cases", "user_guid", "user_id"] class Config: """Pydantic configuration""" @@ -144,6 +145,11 @@ def to_dict(self): if self.successfully_aggregated_at is None and "successfully_aggregated_at" in self.__fields_set__: _dict['successfully_aggregated_at'] = None + # set to None if use_cases (nullable) is None + # and __fields_set__ contains the field + if self.use_cases is None and "use_cases" in self.__fields_set__: + _dict['use_cases'] = None + # set to None if user_guid (nullable) is None # and __fields_set__ contains the field if self.user_guid is None and "user_guid" in self.__fields_set__: @@ -182,6 +188,7 @@ def from_dict(cls, obj: dict) -> MemberResponse: "name": obj.get("name"), "oauth_window_uri": obj.get("oauth_window_uri"), "successfully_aggregated_at": obj.get("successfully_aggregated_at"), + "use_cases": obj.get("use_cases"), "user_guid": obj.get("user_guid"), "user_id": obj.get("user_id") }) diff --git a/openapi/config.yml b/openapi/config.yml index fe9aa13..59c9fb2 100644 --- a/openapi/config.yml +++ b/openapi/config.yml @@ -1,5 +1,5 @@ --- packageName: mx_platform_python packageUrl: https://pypi.org/project/mx-platform-python -packageVersion: 1.0.0 +packageVersion: 1.1.0 projectName: mx-platform-python diff --git a/pyproject.toml b/pyproject.toml index 2a5300e..30c628c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mx_platform_python" -version = "1.0.0" +version = "1.1.0" description = "MX Platform API" authors = ["MX Platform API "] license = "NoLicense" diff --git a/setup.py b/setup.py index 8406ca1..fd209e8 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "mx-platform-python" -VERSION = "1.0.0" +VERSION = "1.1.0" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/test/test_member_response.py b/test/test_member_response.py index 0fdf710..a0264e4 100644 --- a/test/test_member_response.py +++ b/test/test_member_response.py @@ -52,6 +52,7 @@ def make_instance(self, include_optional) -> MemberResponse: name = 'Chase Bank', oauth_window_uri = 'https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2', successfully_aggregated_at = '2016-10-13T17:57:38.000Z', + use_cases = ["PFM","IAV"], user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54', user_id = 'user123' ) diff --git a/test/test_member_response_body.py b/test/test_member_response_body.py index 5e80443..d693697 100644 --- a/test/test_member_response_body.py +++ b/test/test_member_response_body.py @@ -53,6 +53,7 @@ def make_instance(self, include_optional) -> MemberResponseBody: name = 'Chase Bank', oauth_window_uri = 'https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2', successfully_aggregated_at = '2016-10-13T17:57:38.000Z', + use_cases = ["PFM","IAV"], user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54', user_id = 'user123', ) ) diff --git a/test/test_members_response_body.py b/test/test_members_response_body.py index b86953a..2cdee79 100644 --- a/test/test_members_response_body.py +++ b/test/test_members_response_body.py @@ -54,6 +54,7 @@ def make_instance(self, include_optional) -> MembersResponseBody: name = 'Chase Bank', oauth_window_uri = 'https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2', successfully_aggregated_at = '2016-10-13T17:57:38.000Z', + use_cases = ["PFM","IAV"], user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54', user_id = 'user123', ) ],