Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/AccountResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Name | Type | Description | Notes
**property_type** | **str** | | [optional]
**routing_number** | **str** | | [optional]
**started_on** | **str** | | [optional]
**statement_balance** | **float** | | [optional]
**subtype** | **str** | | [optional]
**today_ugl_amount** | **float** | | [optional]
**today_ugl_percentage** | **float** | | [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__ = "0.34.0"
__version__ = "0.35.0"

# import apis into sdk package
from mx_platform_python.api.insights_api import InsightsApi
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/0.34.0/python'
self.user_agent = 'OpenAPI-Generator/0.35.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: 0.34.0".\
"SDK Package Version: 0.35.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
9 changes: 8 additions & 1 deletion mx_platform_python/models/account_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class AccountResponse(BaseModel):
property_type: Optional[StrictStr] = None
routing_number: Optional[StrictStr] = None
started_on: Optional[StrictStr] = None
statement_balance: Optional[Union[StrictFloat, StrictInt]] = None
subtype: Optional[StrictStr] = None
today_ugl_amount: Optional[Union[StrictFloat, StrictInt]] = None
today_ugl_percentage: Optional[Union[StrictFloat, StrictInt]] = None
Expand All @@ -82,7 +83,7 @@ class AccountResponse(BaseModel):
updated_at: Optional[StrictStr] = None
user_guid: Optional[StrictStr] = None
user_id: Optional[StrictStr] = None
__properties = ["account_number", "account_ownership", "annuity_policy_to_date", "annuity_provider", "annuity_term_year", "apr", "apy", "available_balance", "available_credit", "balance", "cash_balance", "cash_surrender_value", "created_at", "credit_limit", "currency_code", "day_payment_is_due", "death_benefit", "guid", "holdings_value", "id", "imported_at", "institution_code", "insured_name", "interest_rate", "is_closed", "is_hidden", "is_manual", "last_payment", "last_payment_at", "loan_amount", "margin_balance", "matures_on", "member_guid", "member_id", "member_is_managed_by_user", "metadata", "minimum_balance", "minimum_payment", "name", "nickname", "original_balance", "pay_out_amount", "payment_due_at", "payoff_balance", "premium_amount", "property_type", "routing_number", "started_on", "subtype", "today_ugl_amount", "today_ugl_percentage", "total_account_value", "total_account_value_ugl", "type", "updated_at", "user_guid", "user_id"]
__properties = ["account_number", "account_ownership", "annuity_policy_to_date", "annuity_provider", "annuity_term_year", "apr", "apy", "available_balance", "available_credit", "balance", "cash_balance", "cash_surrender_value", "created_at", "credit_limit", "currency_code", "day_payment_is_due", "death_benefit", "guid", "holdings_value", "id", "imported_at", "institution_code", "insured_name", "interest_rate", "is_closed", "is_hidden", "is_manual", "last_payment", "last_payment_at", "loan_amount", "margin_balance", "matures_on", "member_guid", "member_id", "member_is_managed_by_user", "metadata", "minimum_balance", "minimum_payment", "name", "nickname", "original_balance", "pay_out_amount", "payment_due_at", "payoff_balance", "premium_amount", "property_type", "routing_number", "started_on", "statement_balance", "subtype", "today_ugl_amount", "today_ugl_percentage", "total_account_value", "total_account_value_ugl", "type", "updated_at", "user_guid", "user_id"]

class Config:
"""Pydantic configuration"""
Expand Down Expand Up @@ -343,6 +344,11 @@ def to_dict(self):
if self.started_on is None and "started_on" in self.__fields_set__:
_dict['started_on'] = None

# set to None if statement_balance (nullable) is None
# and __fields_set__ contains the field
if self.statement_balance is None and "statement_balance" in self.__fields_set__:
_dict['statement_balance'] = None

# set to None if subtype (nullable) is None
# and __fields_set__ contains the field
if self.subtype is None and "subtype" in self.__fields_set__:
Expand Down Expand Up @@ -448,6 +454,7 @@ def from_dict(cls, obj: dict) -> AccountResponse:
"property_type": obj.get("property_type"),
"routing_number": obj.get("routing_number"),
"started_on": obj.get("started_on"),
"statement_balance": obj.get("statement_balance"),
"subtype": obj.get("subtype"),
"today_ugl_amount": obj.get("today_ugl_amount"),
"today_ugl_percentage": obj.get("today_ugl_percentage"),
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: 0.34.0
packageVersion: 0.35.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 = "0.34.0"
version = "0.35.0"
description = "MX Platform API"
authors = ["MX Platform API <team@openapitools.org>"]
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 = "0.34.0"
VERSION = "0.35.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down
1 change: 1 addition & 0 deletions test/test_account_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def make_instance(self, include_optional) -> AccountResponse:
property_type = 'VEHICLE',
routing_number = '68899990000000',
started_on = '2015-10-13T17:57:37.000Z',
statement_balance = 100.1,
subtype = 'NONE',
today_ugl_amount = 1000.5,
today_ugl_percentage = 6.9,
Expand Down
1 change: 1 addition & 0 deletions test/test_account_response_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def make_instance(self, include_optional) -> AccountResponseBody:
property_type = 'VEHICLE',
routing_number = '68899990000000',
started_on = '2015-10-13T17:57:37.000Z',
statement_balance = 100.1,
subtype = 'NONE',
today_ugl_amount = 1000.5,
today_ugl_percentage = 6.9,
Expand Down
1 change: 1 addition & 0 deletions test/test_accounts_response_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def make_instance(self, include_optional) -> AccountsResponseBody:
property_type = 'VEHICLE',
routing_number = '68899990000000',
started_on = '2015-10-13T17:57:37.000Z',
statement_balance = 100.1,
subtype = 'NONE',
today_ugl_amount = 1000.5,
today_ugl_percentage = 6.9,
Expand Down