Skip to content

Commit

Permalink
Generated version 1.1.0
Browse files Browse the repository at this point in the history
This commit was automatically created by a GitHub Action to generate version 1.1.0 of this library.
  • Loading branch information
devexperience committed Nov 27, 2024
1 parent f083b2f commit d8d5a83
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs/MemberResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion mx_platform_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mx_platform_python/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion mx_platform_python/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
13 changes: 10 additions & 3 deletions mx_platform_python/models/member_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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"""
Expand Down Expand Up @@ -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__:
Expand Down Expand Up @@ -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")
})
Expand Down
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions test/test_member_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
Expand Down
1 change: 1 addition & 0 deletions test/test_member_response_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', )
)
Expand Down
1 change: 1 addition & 0 deletions test/test_members_response_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', )
],
Expand Down

0 comments on commit d8d5a83

Please sign in to comment.