diff --git a/docs/AccountResponse.md b/docs/AccountResponse.md index ca2e424..d236029 100644 --- a/docs/AccountResponse.md +++ b/docs/AccountResponse.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **currency_code** | **str** | | [optional] **day_payment_is_due** | **int** | | [optional] **death_benefit** | **int** | | [optional] +**federal_insurance_status** | **str** | | [optional] **guid** | **str** | | [optional] **holdings_value** | **float** | | [optional] **id** | **str** | | [optional] diff --git a/docs/InstitutionResponse.md b/docs/InstitutionResponse.md index fcef872..34a05a5 100644 --- a/docs/InstitutionResponse.md +++ b/docs/InstitutionResponse.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **supports_account_statement** | **bool** | | [optional] **supports_account_verification** | **bool** | | [optional] **supports_oauth** | **bool** | | [optional] +**supports_tax_document** | **bool** | | [optional] **supports_transaction_history** | **bool** | | [optional] **trouble_signing_in_url** | **str** | | [optional] **url** | **str** | | [optional] diff --git a/mx_platform_python/__init__.py b/mx_platform_python/__init__.py index a24a277..66c6ed0 100644 --- a/mx_platform_python/__init__.py +++ b/mx_platform_python/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "0.40.0" +__version__ = "0.41.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 734861a..092c586 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/0.40.0/python' + self.user_agent = 'OpenAPI-Generator/0.41.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 19a0db6..49f0836 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: 0.40.0".\ + "SDK Package Version: 0.41.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/mx_platform_python/models/account_response.py b/mx_platform_python/models/account_response.py index 173d9b1..e22f0ab 100644 --- a/mx_platform_python/models/account_response.py +++ b/mx_platform_python/models/account_response.py @@ -42,6 +42,7 @@ class AccountResponse(BaseModel): currency_code: Optional[StrictStr] = None day_payment_is_due: Optional[StrictInt] = None death_benefit: Optional[StrictInt] = None + federal_insurance_status: Optional[StrictStr] = None guid: Optional[StrictStr] = None holdings_value: Optional[Union[StrictFloat, StrictInt]] = None id: Optional[StrictStr] = None @@ -83,7 +84,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", "statement_balance", "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", "federal_insurance_status", "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""" @@ -189,6 +190,11 @@ def to_dict(self): if self.death_benefit is None and "death_benefit" in self.__fields_set__: _dict['death_benefit'] = None + # set to None if federal_insurance_status (nullable) is None + # and __fields_set__ contains the field + if self.federal_insurance_status is None and "federal_insurance_status" in self.__fields_set__: + _dict['federal_insurance_status'] = None + # set to None if guid (nullable) is None # and __fields_set__ contains the field if self.guid is None and "guid" in self.__fields_set__: @@ -423,6 +429,7 @@ def from_dict(cls, obj: dict) -> AccountResponse: "currency_code": obj.get("currency_code"), "day_payment_is_due": obj.get("day_payment_is_due"), "death_benefit": obj.get("death_benefit"), + "federal_insurance_status": obj.get("federal_insurance_status"), "guid": obj.get("guid"), "holdings_value": obj.get("holdings_value"), "id": obj.get("id"), diff --git a/mx_platform_python/models/institution_response.py b/mx_platform_python/models/institution_response.py index 59791ab..954a8a2 100644 --- a/mx_platform_python/models/institution_response.py +++ b/mx_platform_python/models/institution_response.py @@ -36,10 +36,11 @@ class InstitutionResponse(BaseModel): supports_account_statement: Optional[StrictBool] = None supports_account_verification: Optional[StrictBool] = None supports_oauth: Optional[StrictBool] = None + supports_tax_document: Optional[StrictBool] = None supports_transaction_history: Optional[StrictBool] = None trouble_signing_in_url: Optional[StrictStr] = None url: Optional[StrictStr] = None - __properties = ["code", "forgot_password_url", "forgot_username_url", "instructional_text", "medium_logo_url", "name", "small_logo_url", "supports_account_identification", "supports_account_statement", "supports_account_verification", "supports_oauth", "supports_transaction_history", "trouble_signing_in_url", "url"] + __properties = ["code", "forgot_password_url", "forgot_username_url", "instructional_text", "medium_logo_url", "name", "small_logo_url", "supports_account_identification", "supports_account_statement", "supports_account_verification", "supports_oauth", "supports_tax_document", "supports_transaction_history", "trouble_signing_in_url", "url"] class Config: """Pydantic configuration""" @@ -120,6 +121,11 @@ def to_dict(self): if self.supports_oauth is None and "supports_oauth" in self.__fields_set__: _dict['supports_oauth'] = None + # set to None if supports_tax_document (nullable) is None + # and __fields_set__ contains the field + if self.supports_tax_document is None and "supports_tax_document" in self.__fields_set__: + _dict['supports_tax_document'] = None + # set to None if supports_transaction_history (nullable) is None # and __fields_set__ contains the field if self.supports_transaction_history is None and "supports_transaction_history" in self.__fields_set__: @@ -158,6 +164,7 @@ def from_dict(cls, obj: dict) -> InstitutionResponse: "supports_account_statement": obj.get("supports_account_statement"), "supports_account_verification": obj.get("supports_account_verification"), "supports_oauth": obj.get("supports_oauth"), + "supports_tax_document": obj.get("supports_tax_document"), "supports_transaction_history": obj.get("supports_transaction_history"), "trouble_signing_in_url": obj.get("trouble_signing_in_url"), "url": obj.get("url") diff --git a/openapi/config.yml b/openapi/config.yml index 8c2d1bb..c460173 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: 0.40.0 +packageVersion: 0.41.0 projectName: mx-platform-python diff --git a/pyproject.toml b/pyproject.toml index 8f830e4..4d5fe6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mx_platform_python" -version = "0.40.0" +version = "0.41.0" description = "MX Platform API" authors = ["MX Platform API "] license = "NoLicense" diff --git a/setup.py b/setup.py index 22f2da4..3c225da 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "mx-platform-python" -VERSION = "0.40.0" +VERSION = "0.41.0" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/test/test_account_response.py b/test/test_account_response.py index ff0613b..7847118 100644 --- a/test/test_account_response.py +++ b/test/test_account_response.py @@ -53,6 +53,7 @@ def make_instance(self, include_optional) -> AccountResponse: currency_code = 'USD', day_payment_is_due = 20, death_benefit = 1000, + federal_insurance_status = 'INSURED', guid = 'ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1', holdings_value = 1000.0, id = '1040434698', diff --git a/test/test_account_response_body.py b/test/test_account_response_body.py index e054a6c..e736753 100644 --- a/test/test_account_response_body.py +++ b/test/test_account_response_body.py @@ -54,6 +54,7 @@ def make_instance(self, include_optional) -> AccountResponseBody: currency_code = 'USD', day_payment_is_due = 20, death_benefit = 1000, + federal_insurance_status = 'INSURED', guid = 'ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1', holdings_value = 1000.0, id = '1040434698', diff --git a/test/test_accounts_response_body.py b/test/test_accounts_response_body.py index dd4a468..4c6eaf5 100644 --- a/test/test_accounts_response_body.py +++ b/test/test_accounts_response_body.py @@ -55,6 +55,7 @@ def make_instance(self, include_optional) -> AccountsResponseBody: currency_code = 'USD', day_payment_is_due = 20, death_benefit = 1000, + federal_insurance_status = 'INSURED', guid = 'ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1', holdings_value = 1000.0, id = '1040434698', diff --git a/test/test_institution_response.py b/test/test_institution_response.py index b04e0bd..ea8154d 100644 --- a/test/test_institution_response.py +++ b/test/test_institution_response.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> InstitutionResponse: supports_account_statement = True, supports_account_verification = True, supports_oauth = True, + supports_tax_document = True, supports_transaction_history = True, trouble_signing_in_url = 'https://example.url.chase.com/login-trouble', url = 'https://www.chase.com' diff --git a/test/test_institution_response_body.py b/test/test_institution_response_body.py index f434571..430b922 100644 --- a/test/test_institution_response_body.py +++ b/test/test_institution_response_body.py @@ -48,6 +48,7 @@ def make_instance(self, include_optional) -> InstitutionResponseBody: supports_account_statement = True, supports_account_verification = True, supports_oauth = True, + supports_tax_document = True, supports_transaction_history = True, trouble_signing_in_url = 'https://example.url.chase.com/login-trouble', url = 'https://www.chase.com', ) diff --git a/test/test_institutions_response_body.py b/test/test_institutions_response_body.py index bf6b63f..b48c0d3 100644 --- a/test/test_institutions_response_body.py +++ b/test/test_institutions_response_body.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> InstitutionsResponseBody: supports_account_statement = True, supports_account_verification = True, supports_oauth = True, + supports_tax_document = True, supports_transaction_history = True, trouble_signing_in_url = 'https://example.url.chase.com/login-trouble', url = 'https://www.chase.com', )