Skip to content

Commit 61064fb

Browse files
author
devexperience
committed
Generated version 1.3.0
This commit was automatically created by a GitHub Action to generate version 1.3.0 of this library.
1 parent de5a68f commit 61064fb

File tree

11 files changed

+93
-48
lines changed

11 files changed

+93
-48
lines changed

docs/MemberResponse.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,28 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**actionable_error** | **str** | | [optional]
87
**aggregated_at** | **str** | | [optional]
98
**background_aggregation_is_disabled** | **bool** | | [optional]
109
**connection_status** | **str** | | [optional]
10+
**connection_status_message** | **str** | | [optional]
11+
**error** | **str** | | [optional]
1112
**guid** | **str** | | [optional]
1213
**id** | **str** | | [optional]
1314
**institution_code** | **str** | | [optional]
15+
**institution_guid** | **str** | | [optional]
1416
**is_being_aggregated** | **bool** | | [optional]
1517
**is_managed_by_user** | **bool** | | [optional]
1618
**is_manual** | **bool** | | [optional]
1719
**is_oauth** | **bool** | | [optional]
1820
**metadata** | **str** | | [optional]
19-
**most_recent_job_detail_code** | **str** | | [optional]
20-
**most_recent_job_detail_text** | **str** | | [optional]
21+
**most_recent_job_detail_code** | **int** | | [optional]
22+
**most_recent_job_detail_text** | **bool** | | [optional]
23+
**most_recent_job_guid** | **bool** | | [optional]
2124
**name** | **str** | | [optional]
25+
**needs_updated_credentials** | **bool** | | [optional]
2226
**oauth_window_uri** | **str** | | [optional]
2327
**successfully_aggregated_at** | **str** | | [optional]
24-
**use_cases** | **List[str]** | | [optional]
28+
**use_cases** | **List[str]** | The use case associated with the member. Valid values are `PFM` and/or `MONEY_MOVEMENT`. Only set this if you've met with MX and have opted in to using this field. | [optional]
2529
**user_guid** | **str** | | [optional]
2630
**user_id** | **str** | | [optional]
2731

mx_platform_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.2.0"
17+
__version__ = "1.3.0"
1818

1919
# import apis into sdk package
2020
from mx_platform_python.api.budgets_api import BudgetsApi

mx_platform_python/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7676
self.default_headers[header_name] = header_value
7777
self.cookie = cookie
7878
# Set default User-Agent.
79-
self.user_agent = 'OpenAPI-Generator/1.2.0/python'
79+
self.user_agent = 'OpenAPI-Generator/1.3.0/python'
8080
self.client_side_validation = configuration.client_side_validation
8181

8282
def __enter__(self):

mx_platform_python/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def to_debug_report(self):
392392
"OS: {env}\n"\
393393
"Python Version: {pyversion}\n"\
394394
"Version of the API: 0.1.0\n"\
395-
"SDK Package Version: 1.2.0".\
395+
"SDK Package Version: 1.3.0".\
396396
format(env=sys.platform, pyversion=sys.version)
397397

398398
def get_host_settings(self):

mx_platform_python/models/member_response.py

Lines changed: 46 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,48 @@
1919

2020

2121
from typing import List, Optional
22-
from pydantic import BaseModel, StrictBool, StrictStr, conlist
22+
from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist, validator
2323

2424
class MemberResponse(BaseModel):
2525
"""
2626
MemberResponse
2727
"""
28-
actionable_error: Optional[StrictStr] = None
2928
aggregated_at: Optional[StrictStr] = None
3029
background_aggregation_is_disabled: Optional[StrictBool] = None
3130
connection_status: Optional[StrictStr] = None
31+
connection_status_message: Optional[StrictStr] = None
32+
error: Optional[StrictStr] = None
3233
guid: Optional[StrictStr] = None
3334
id: Optional[StrictStr] = None
3435
institution_code: Optional[StrictStr] = None
36+
institution_guid: Optional[StrictStr] = None
3537
is_being_aggregated: Optional[StrictBool] = None
3638
is_managed_by_user: Optional[StrictBool] = None
3739
is_manual: Optional[StrictBool] = None
3840
is_oauth: Optional[StrictBool] = None
3941
metadata: Optional[StrictStr] = None
40-
most_recent_job_detail_code: Optional[StrictStr] = None
41-
most_recent_job_detail_text: Optional[StrictStr] = None
42+
most_recent_job_detail_code: Optional[StrictInt] = None
43+
most_recent_job_detail_text: Optional[StrictBool] = None
44+
most_recent_job_guid: Optional[StrictBool] = None
4245
name: Optional[StrictStr] = None
46+
needs_updated_credentials: Optional[StrictBool] = None
4347
oauth_window_uri: Optional[StrictStr] = None
4448
successfully_aggregated_at: Optional[StrictStr] = None
45-
use_cases: Optional[conlist(StrictStr)] = None
49+
use_cases: Optional[conlist(StrictStr)] = Field(None, description="The use case associated with the member. Valid values are `PFM` and/or `MONEY_MOVEMENT`. Only set this if you've met with MX and have opted in to using this field.")
4650
user_guid: Optional[StrictStr] = None
4751
user_id: Optional[StrictStr] = None
48-
__properties = ["actionable_error", "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"]
52+
__properties = ["aggregated_at", "background_aggregation_is_disabled", "connection_status", "connection_status_message", "error", "guid", "id", "institution_code", "institution_guid", "is_being_aggregated", "is_managed_by_user", "is_manual", "is_oauth", "metadata", "most_recent_job_detail_code", "most_recent_job_detail_text", "most_recent_job_guid", "name", "needs_updated_credentials", "oauth_window_uri", "successfully_aggregated_at", "use_cases", "user_guid", "user_id"]
53+
54+
@validator('use_cases')
55+
def use_cases_validate_enum(cls, value):
56+
"""Validates the enum"""
57+
if value is None:
58+
return value
59+
60+
for i in value:
61+
if i not in ('MONEY_MOVEMENT', 'PFM'):
62+
raise ValueError("each list item must be one of ('MONEY_MOVEMENT', 'PFM')")
63+
return value
4964

5065
class Config:
5166
"""Pydantic configuration"""
@@ -71,11 +86,6 @@ def to_dict(self):
7186
exclude={
7287
},
7388
exclude_none=True)
74-
# set to None if actionable_error (nullable) is None
75-
# and __fields_set__ contains the field
76-
if self.actionable_error is None and "actionable_error" in self.__fields_set__:
77-
_dict['actionable_error'] = None
78-
7989
# set to None if aggregated_at (nullable) is None
8090
# and __fields_set__ contains the field
8191
if self.aggregated_at is None and "aggregated_at" in self.__fields_set__:
@@ -86,6 +96,16 @@ def to_dict(self):
8696
if self.connection_status is None and "connection_status" in self.__fields_set__:
8797
_dict['connection_status'] = None
8898

99+
# set to None if connection_status_message (nullable) is None
100+
# and __fields_set__ contains the field
101+
if self.connection_status_message is None and "connection_status_message" in self.__fields_set__:
102+
_dict['connection_status_message'] = None
103+
104+
# set to None if error (nullable) is None
105+
# and __fields_set__ contains the field
106+
if self.error is None and "error" in self.__fields_set__:
107+
_dict['error'] = None
108+
89109
# set to None if guid (nullable) is None
90110
# and __fields_set__ contains the field
91111
if self.guid is None and "guid" in self.__fields_set__:
@@ -136,11 +156,21 @@ def to_dict(self):
136156
if self.most_recent_job_detail_text is None and "most_recent_job_detail_text" in self.__fields_set__:
137157
_dict['most_recent_job_detail_text'] = None
138158

159+
# set to None if most_recent_job_guid (nullable) is None
160+
# and __fields_set__ contains the field
161+
if self.most_recent_job_guid is None and "most_recent_job_guid" in self.__fields_set__:
162+
_dict['most_recent_job_guid'] = None
163+
139164
# set to None if name (nullable) is None
140165
# and __fields_set__ contains the field
141166
if self.name is None and "name" in self.__fields_set__:
142167
_dict['name'] = None
143168

169+
# set to None if needs_updated_credentials (nullable) is None
170+
# and __fields_set__ contains the field
171+
if self.needs_updated_credentials is None and "needs_updated_credentials" in self.__fields_set__:
172+
_dict['needs_updated_credentials'] = None
173+
144174
# set to None if oauth_window_uri (nullable) is None
145175
# and __fields_set__ contains the field
146176
if self.oauth_window_uri is None and "oauth_window_uri" in self.__fields_set__:
@@ -151,11 +181,6 @@ def to_dict(self):
151181
if self.successfully_aggregated_at is None and "successfully_aggregated_at" in self.__fields_set__:
152182
_dict['successfully_aggregated_at'] = None
153183

154-
# set to None if use_cases (nullable) is None
155-
# and __fields_set__ contains the field
156-
if self.use_cases is None and "use_cases" in self.__fields_set__:
157-
_dict['use_cases'] = None
158-
159184
# set to None if user_guid (nullable) is None
160185
# and __fields_set__ contains the field
161186
if self.user_guid is None and "user_guid" in self.__fields_set__:
@@ -178,21 +203,25 @@ def from_dict(cls, obj: dict) -> MemberResponse:
178203
return MemberResponse.parse_obj(obj)
179204

180205
_obj = MemberResponse.parse_obj({
181-
"actionable_error": obj.get("actionable_error"),
182206
"aggregated_at": obj.get("aggregated_at"),
183207
"background_aggregation_is_disabled": obj.get("background_aggregation_is_disabled"),
184208
"connection_status": obj.get("connection_status"),
209+
"connection_status_message": obj.get("connection_status_message"),
210+
"error": obj.get("error"),
185211
"guid": obj.get("guid"),
186212
"id": obj.get("id"),
187213
"institution_code": obj.get("institution_code"),
214+
"institution_guid": obj.get("institution_guid"),
188215
"is_being_aggregated": obj.get("is_being_aggregated"),
189216
"is_managed_by_user": obj.get("is_managed_by_user"),
190217
"is_manual": obj.get("is_manual"),
191218
"is_oauth": obj.get("is_oauth"),
192219
"metadata": obj.get("metadata"),
193220
"most_recent_job_detail_code": obj.get("most_recent_job_detail_code"),
194221
"most_recent_job_detail_text": obj.get("most_recent_job_detail_text"),
222+
"most_recent_job_guid": obj.get("most_recent_job_guid"),
195223
"name": obj.get("name"),
224+
"needs_updated_credentials": obj.get("needs_updated_credentials"),
196225
"oauth_window_uri": obj.get("oauth_window_uri"),
197226
"successfully_aggregated_at": obj.get("successfully_aggregated_at"),
198227
"use_cases": obj.get("use_cases"),

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
packageName: mx_platform_python
33
packageUrl: https://pypi.org/project/mx-platform-python
4-
packageVersion: 1.2.0
4+
packageVersion: 1.3.0
55
projectName: mx-platform-python

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mx_platform_python"
3-
version = "1.2.0"
3+
version = "1.3.0"
44
description = "MX Platform API"
55
authors = ["MX Platform API <[email protected]>"]
66
license = "NoLicense"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# prerequisite: setuptools
2222
# http://pypi.python.org/pypi/setuptools
2323
NAME = "mx-platform-python"
24-
VERSION = "1.2.0"
24+
VERSION = "1.3.0"
2525
PYTHON_REQUIRES = ">=3.7"
2626
REQUIRES = [
2727
"urllib3 >= 1.25.3, < 2.1.0",

test/test_member_response.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,28 @@ def make_instance(self, include_optional) -> MemberResponse:
3636
model = MemberResponse() # noqa: E501
3737
if include_optional:
3838
return MemberResponse(
39-
actionable_error = '{\"error_type\": \"MEMBER\", \"error_code\": 1000, \"error_message\": \"This Member has no eligible checking, savings, or money market accounts.\", \"user_message\": \"We could not find any accounts eligible for transfers. Please link a checking or savings account.\", \"locale\": \"en\"}',
4039
aggregated_at = '2016-10-13T18:07:57.000Z',
4140
background_aggregation_is_disabled = False,
4241
connection_status = 'CONNECTED',
42+
connection_status_message = 'Connected to MX Bank',
43+
error = '{\"error_type\": \"MEMBER\", \"error_code\": 1000, \"error_message\": \"This Member has no eligible checking, savings, or money market accounts.\", \"user_message\": \"We could not find any accounts eligible for transfers. Please link a checking or savings account.\", \"locale\": \"en\"}',
4344
guid = 'MBR-7c6f361b-e582-15b6-60c0-358f12466b4b',
4445
id = 'unique_id',
45-
institution_code = 'chase',
46+
institution_code = 'mxbank',
47+
institution_guid = 'INS-12345678-90ab-cdef-1234-567890abcdef',
4648
is_being_aggregated = False,
4749
is_managed_by_user = False,
4850
is_manual = False,
4951
is_oauth = False,
50-
metadata = '\"credentials_last_refreshed_at\": \"2015-10-15\"',
51-
most_recent_job_detail_code = '(deprecated)',
52-
most_recent_job_detail_text = '(deprecated)',
53-
name = 'Chase Bank',
52+
metadata = '\"credentials_last_refreshed_at\": \"2015-10-15\',
53+
most_recent_job_detail_code = 56,
54+
most_recent_job_detail_text = True,
55+
most_recent_job_guid = False,
56+
name = 'MX Bank',
57+
needs_updated_credentials = False,
5458
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',
5559
successfully_aggregated_at = '2016-10-13T17:57:38.000Z',
56-
use_cases = ["PFM","IAV"],
60+
use_cases = ["PFM"],
5761
user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54',
5862
user_id = 'user123'
5963
)

test/test_member_response_body.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,28 @@ def make_instance(self, include_optional) -> MemberResponseBody:
3737
if include_optional:
3838
return MemberResponseBody(
3939
member = mx_platform_python.models.member_response.MemberResponse(
40-
actionable_error = '{\"error_type\": \"MEMBER\", \"error_code\": 1000, \"error_message\": \"This Member has no eligible checking, savings, or money market accounts.\", \"user_message\": \"We could not find any accounts eligible for transfers. Please link a checking or savings account.\", \"locale\": \"en\"}',
4140
aggregated_at = '2016-10-13T18:07:57.000Z',
4241
background_aggregation_is_disabled = False,
4342
connection_status = 'CONNECTED',
43+
connection_status_message = 'Connected to MX Bank',
44+
error = '{\"error_type\": \"MEMBER\", \"error_code\": 1000, \"error_message\": \"This Member has no eligible checking, savings, or money market accounts.\", \"user_message\": \"We could not find any accounts eligible for transfers. Please link a checking or savings account.\", \"locale\": \"en\"}',
4445
guid = 'MBR-7c6f361b-e582-15b6-60c0-358f12466b4b',
4546
id = 'unique_id',
46-
institution_code = 'chase',
47+
institution_code = 'mxbank',
48+
institution_guid = 'INS-12345678-90ab-cdef-1234-567890abcdef',
4749
is_being_aggregated = False,
4850
is_managed_by_user = False,
4951
is_manual = False,
5052
is_oauth = False,
51-
metadata = '\"credentials_last_refreshed_at\": \"2015-10-15\"',
52-
most_recent_job_detail_code = '(deprecated)',
53-
most_recent_job_detail_text = '(deprecated)',
54-
name = 'Chase Bank',
53+
metadata = '\"credentials_last_refreshed_at\": \"2015-10-15\',
54+
most_recent_job_detail_code = 56,
55+
most_recent_job_detail_text = True,
56+
most_recent_job_guid = False,
57+
name = 'MX Bank',
58+
needs_updated_credentials = False,
5559
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',
5660
successfully_aggregated_at = '2016-10-13T17:57:38.000Z',
57-
use_cases = ["PFM","IAV"],
61+
use_cases = ["PFM"],
5862
user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54',
5963
user_id = 'user123', )
6064
)

0 commit comments

Comments
 (0)