From be3aef3b51507aecce97e95f6e86b8e5a0b6adc8 Mon Sep 17 00:00:00 2001 From: brettmortensen <11483419+brettmortensen@users.noreply.github.com> Date: Fri, 14 Jan 2022 11:18:11 -0700 Subject: [PATCH] Update generator Generates library using the openapi-generator version 5.3.1 --- .openapi-generator/VERSION | 2 +- docs/MxPlatformApi.md | 18 +- mx_platform_python/__init__.py | 2 +- mx_platform_python/api/mx_platform_api.py | 476 +++++++++++++++++- mx_platform_python/api_client.py | 36 +- mx_platform_python/configuration.py | 5 +- .../model/account_number_response.py | 2 +- .../model/account_numbers_response_body.py | 2 +- .../model/account_owner_response.py | 2 +- .../model/account_owners_response_body.py | 2 +- mx_platform_python/model/account_response.py | 2 +- .../model/account_response_body.py | 2 +- .../model/account_update_request.py | 2 +- .../model/account_update_request_body.py | 2 +- .../model/accounts_response_body.py | 2 +- .../model/categories_response_body.py | 2 +- .../model/category_create_request.py | 2 +- .../model/category_create_request_body.py | 2 +- mx_platform_python/model/category_response.py | 2 +- .../model/category_response_body.py | 2 +- .../model/category_update_request.py | 2 +- .../model/category_update_request_body.py | 2 +- .../model/challenge_response.py | 2 +- .../model/challenges_response_body.py | 2 +- .../model/connect_widget_request.py | 2 +- .../model/connect_widget_request_body.py | 2 +- .../model/connect_widget_response.py | 2 +- .../model/connect_widget_response_body.py | 2 +- .../model/credential_request.py | 2 +- .../model/credential_response.py | 2 +- .../model/credentials_response_body.py | 2 +- .../model/enhance_transaction_response.py | 2 +- .../model/enhance_transactions_request.py | 2 +- .../enhance_transactions_request_body.py | 2 +- .../enhance_transactions_response_body.py | 2 +- mx_platform_python/model/holding_response.py | 2 +- .../model/holding_response_body.py | 2 +- .../model/holdings_response_body.py | 2 +- .../model/image_option_response.py | 2 +- .../model/institution_response.py | 2 +- .../model/institution_response_body.py | 2 +- .../model/institutions_response_body.py | 2 +- .../model/managed_account_create_request.py | 2 +- .../managed_account_create_request_body.py | 2 +- .../model/managed_account_update_request.py | 2 +- .../managed_account_update_request_body.py | 2 +- .../model/managed_member_create_request.py | 2 +- .../managed_member_create_request_body.py | 2 +- .../model/managed_member_update_request.py | 2 +- .../managed_member_update_request_body.py | 2 +- .../managed_transaction_create_request.py | 2 +- ...managed_transaction_create_request_body.py | 2 +- .../managed_transaction_update_request.py | 2 +- ...managed_transaction_update_request_body.py | 2 +- .../model/member_create_request.py | 2 +- .../model/member_create_request_body.py | 2 +- mx_platform_python/model/member_response.py | 2 +- .../model/member_response_body.py | 2 +- .../model/member_resume_request.py | 2 +- .../model/member_resume_request_body.py | 2 +- .../model/member_status_response.py | 2 +- .../model/member_status_response_body.py | 2 +- .../model/member_update_request.py | 2 +- .../model/member_update_request_body.py | 2 +- .../model/members_response_body.py | 2 +- .../model/merchant_location_response.py | 2 +- .../model/merchant_location_response_body.py | 2 +- mx_platform_python/model/merchant_response.py | 2 +- .../model/merchant_response_body.py | 2 +- .../model/merchants_response_body.py | 2 +- .../model/o_auth_window_response.py | 2 +- .../model/o_auth_window_response_body.py | 2 +- mx_platform_python/model/option_response.py | 2 +- .../model/pagination_response.py | 2 +- .../model/statement_response.py | 2 +- .../model/statement_response_body.py | 2 +- .../model/statements_response_body.py | 2 +- .../model/tag_create_request.py | 2 +- .../model/tag_create_request_body.py | 2 +- mx_platform_python/model/tag_response.py | 2 +- mx_platform_python/model/tag_response_body.py | 2 +- .../model/tag_update_request.py | 2 +- .../model/tag_update_request_body.py | 2 +- .../model/tagging_create_request.py | 2 +- .../model/tagging_create_request_body.py | 2 +- mx_platform_python/model/tagging_response.py | 2 +- .../model/tagging_response_body.py | 2 +- .../model/tagging_update_request.py | 2 +- .../model/tagging_update_request_body.py | 2 +- .../model/taggings_response_body.py | 2 +- .../model/tags_response_body.py | 2 +- .../model/transaction_response.py | 2 +- .../model/transaction_response_body.py | 2 +- .../model/transaction_rule_create_request.py | 2 +- .../transaction_rule_create_request_body.py | 2 +- .../model/transaction_rule_response.py | 2 +- .../model/transaction_rule_response_body.py | 2 +- .../model/transaction_rule_update_request.py | 2 +- .../transaction_rule_update_request_body.py | 2 +- .../model/transaction_rules_response_body.py | 2 +- .../model/transaction_update_request.py | 2 +- .../model/transaction_update_request_body.py | 2 +- .../model/transactions_response_body.py | 2 +- .../model/user_create_request.py | 2 +- .../model/user_create_request_body.py | 2 +- mx_platform_python/model/user_response.py | 2 +- .../model/user_response_body.py | 2 +- .../model/user_update_request.py | 2 +- .../model/user_update_request_body.py | 2 +- .../model/users_response_body.py | 2 +- mx_platform_python/model/widget_request.py | 2 +- .../model/widget_request_body.py | 2 +- mx_platform_python/model/widget_response.py | 2 +- .../model/widget_response_body.py | 2 +- mx_platform_python/rest.py | 58 ++- openapi/config.yml | 2 +- setup.py | 2 +- 117 files changed, 655 insertions(+), 162 deletions(-) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index e230c83..7d3cdbf 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.0 \ No newline at end of file +5.3.1 \ No newline at end of file diff --git a/docs/MxPlatformApi.md b/docs/MxPlatformApi.md index a66c79f..dd5424e 100644 --- a/docs/MxPlatformApi.md +++ b/docs/MxPlatformApi.md @@ -1161,7 +1161,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1241,7 +1241,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1319,7 +1319,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1399,7 +1399,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1477,7 +1477,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1555,7 +1555,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1633,7 +1633,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1711,7 +1711,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details @@ -1787,7 +1787,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.mx.api.v1+json + - **Accept**: Not defined ### HTTP response details diff --git a/mx_platform_python/__init__.py b/mx_platform_python/__init__.py index d545a15..5787134 100644 --- a/mx_platform_python/__init__.py +++ b/mx_platform_python/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "0.3.0" +__version__ = "0.4.0" # import ApiClient from mx_platform_python.api_client import ApiClient diff --git a/mx_platform_python/api/mx_platform_api.py b/mx_platform_python/api/mx_platform_api.py index 8421278..2e35c15 100644 --- a/mx_platform_python/api/mx_platform_api.py +++ b/mx_platform_python/api/mx_platform_api.py @@ -784,9 +784,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -847,9 +845,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -904,9 +900,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -967,9 +961,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -1024,9 +1016,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -1081,9 +1071,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -1138,9 +1126,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -1195,9 +1181,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -1246,9 +1230,7 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [ - 'application/vnd.mx.api.v1+json' - ], + 'accept': [], 'content_type': [], }, api_client=api_client @@ -5508,6 +5490,9 @@ def aggregate_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -5536,6 +5521,8 @@ def aggregate_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -5578,6 +5565,9 @@ def check_balances( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -5606,6 +5596,8 @@ def check_balances( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -5648,6 +5640,9 @@ def create_category( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -5676,6 +5671,8 @@ def create_category( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -5720,6 +5717,9 @@ def create_managed_account( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -5748,6 +5748,8 @@ def create_managed_account( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -5792,6 +5794,9 @@ def create_managed_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -5820,6 +5825,8 @@ def create_managed_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -5864,6 +5871,9 @@ def create_managed_transaction( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -5892,6 +5902,8 @@ def create_managed_transaction( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -5936,6 +5948,9 @@ def create_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -5964,6 +5979,8 @@ def create_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -6006,6 +6023,9 @@ def create_tag( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6034,6 +6054,8 @@ def create_tag( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -6076,6 +6098,9 @@ def create_tagging( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6104,6 +6129,8 @@ def create_tagging( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -6146,6 +6173,9 @@ def create_transaction_rule( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6174,6 +6204,8 @@ def create_transaction_rule( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -6214,6 +6246,9 @@ def create_user( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6242,6 +6277,8 @@ def create_user( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_create_request_body'] = \ user_create_request_body @@ -6282,6 +6319,9 @@ def delete_category( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6310,6 +6350,8 @@ def delete_category( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['category_guid'] = \ category_guid @@ -6354,6 +6396,9 @@ def delete_managed_account( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6382,6 +6427,8 @@ def delete_managed_account( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -6426,6 +6473,9 @@ def delete_managed_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6454,6 +6504,8 @@ def delete_managed_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -6498,6 +6550,9 @@ def delete_managed_transaction( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6526,6 +6581,8 @@ def delete_managed_transaction( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -6570,6 +6627,9 @@ def delete_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6598,6 +6658,8 @@ def delete_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -6640,6 +6702,9 @@ def delete_tag( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6668,6 +6733,8 @@ def delete_tag( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['tag_guid'] = \ tag_guid @@ -6710,6 +6777,9 @@ def delete_tagging( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6738,6 +6808,8 @@ def delete_tagging( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['tagging_guid'] = \ tagging_guid @@ -6780,6 +6852,9 @@ def delete_transaction_rule( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6808,6 +6883,8 @@ def delete_transaction_rule( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['transaction_rule_guid'] = \ transaction_rule_guid @@ -6848,6 +6925,9 @@ def delete_user( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6876,6 +6956,8 @@ def delete_user( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -6918,6 +7000,9 @@ def download_statement_pdf( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -6946,6 +7031,8 @@ def download_statement_pdf( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -6988,6 +7075,9 @@ def enhance_transactions( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7016,6 +7106,8 @@ def enhance_transactions( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['enhance_transactions_request_body'] = \ enhance_transactions_request_body @@ -7056,6 +7148,9 @@ def extend_history( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7084,6 +7179,8 @@ def extend_history( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -7126,6 +7223,9 @@ def fetch_statements( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7154,6 +7254,8 @@ def fetch_statements( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -7196,6 +7298,9 @@ def identify_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7224,6 +7329,8 @@ def identify_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -7268,6 +7375,9 @@ def list_account_numbers_by_account( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7296,6 +7406,8 @@ def list_account_numbers_by_account( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['account_guid'] = \ account_guid @@ -7340,6 +7452,9 @@ def list_account_numbers_by_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7368,6 +7483,8 @@ def list_account_numbers_by_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -7412,6 +7529,9 @@ def list_account_owners_by_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7440,6 +7560,8 @@ def list_account_owners_by_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -7482,6 +7604,9 @@ def list_categories( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7510,6 +7635,8 @@ def list_categories( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -7547,6 +7674,9 @@ def list_default_categories( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7575,6 +7705,8 @@ def list_default_categories( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.list_default_categories_endpoint.call_with_http_info(**kwargs) @@ -7613,6 +7745,9 @@ def list_default_categories_by_user( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7641,6 +7776,8 @@ def list_default_categories_by_user( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -7678,6 +7815,9 @@ def list_favorite_institutions( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7706,6 +7846,8 @@ def list_favorite_institutions( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.list_favorite_institutions_endpoint.call_with_http_info(**kwargs) @@ -7746,6 +7888,9 @@ def list_holdings( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7774,6 +7919,8 @@ def list_holdings( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -7818,6 +7965,9 @@ def list_holdings_by_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7846,6 +7996,8 @@ def list_holdings_by_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -7888,6 +8040,9 @@ def list_institution_credentials( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7916,6 +8071,8 @@ def list_institution_credentials( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['institution_code'] = \ institution_code @@ -7958,6 +8115,9 @@ def list_institutions( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -7986,6 +8146,8 @@ def list_institutions( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.list_institutions_endpoint.call_with_http_info(**kwargs) @@ -8026,6 +8188,9 @@ def list_managed_accounts( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8054,6 +8219,8 @@ def list_managed_accounts( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8093,6 +8260,9 @@ def list_managed_institutions( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8121,6 +8291,8 @@ def list_managed_institutions( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.list_managed_institutions_endpoint.call_with_http_info(**kwargs) @@ -8159,6 +8331,9 @@ def list_managed_members( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8187,6 +8362,8 @@ def list_managed_members( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8229,6 +8406,9 @@ def list_managed_transactions( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8257,6 +8437,8 @@ def list_managed_transactions( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8301,6 +8483,9 @@ def list_member_challenges( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8329,6 +8514,8 @@ def list_member_challenges( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -8373,6 +8560,9 @@ def list_member_credentials( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8401,6 +8591,8 @@ def list_member_credentials( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -8443,6 +8635,9 @@ def list_members( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8471,6 +8666,8 @@ def list_members( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8508,6 +8705,9 @@ def list_merchants( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8536,6 +8736,8 @@ def list_merchants( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.list_merchants_endpoint.call_with_http_info(**kwargs) @@ -8576,6 +8778,9 @@ def list_statements_by_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8604,6 +8809,8 @@ def list_statements_by_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -8646,6 +8853,9 @@ def list_taggings( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8674,6 +8884,8 @@ def list_taggings( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8714,6 +8926,9 @@ def list_tags( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8742,6 +8957,8 @@ def list_tags( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8782,6 +8999,9 @@ def list_transaction_rules( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8810,6 +9030,8 @@ def list_transaction_rules( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8852,6 +9074,9 @@ def list_transactions( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8880,6 +9105,8 @@ def list_transactions( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -8924,6 +9151,9 @@ def list_transactions_by_account( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -8952,6 +9182,8 @@ def list_transactions_by_account( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['account_guid'] = \ account_guid @@ -8998,6 +9230,9 @@ def list_transactions_by_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9026,6 +9261,8 @@ def list_transactions_by_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -9072,6 +9309,9 @@ def list_transactions_by_tag( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9100,6 +9340,8 @@ def list_transactions_by_tag( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['tag_guid'] = \ tag_guid @@ -9142,6 +9384,9 @@ def list_user_accounts( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9170,6 +9415,8 @@ def list_user_accounts( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -9207,6 +9454,9 @@ def list_users( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9235,6 +9485,8 @@ def list_users( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.list_users_endpoint.call_with_http_info(**kwargs) @@ -9273,6 +9525,9 @@ def read_account( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9301,6 +9556,8 @@ def read_account( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['account_guid'] = \ account_guid @@ -9343,6 +9600,9 @@ def read_category( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9371,6 +9631,8 @@ def read_category( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['category_guid'] = \ category_guid @@ -9413,6 +9675,9 @@ def read_default_category( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9441,6 +9706,8 @@ def read_default_category( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['category_guid'] = \ category_guid @@ -9483,6 +9750,9 @@ def read_holding( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9511,6 +9781,8 @@ def read_holding( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['holding_guid'] = \ holding_guid @@ -9551,6 +9823,9 @@ def read_institution( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9579,6 +9854,8 @@ def read_institution( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['institution_code'] = \ institution_code @@ -9621,6 +9898,9 @@ def read_managed_account( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9649,6 +9929,8 @@ def read_managed_account( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -9693,6 +9975,9 @@ def read_managed_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9721,6 +10006,8 @@ def read_managed_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -9765,6 +10052,9 @@ def read_managed_transaction( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9793,6 +10083,8 @@ def read_managed_transaction( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -9837,6 +10129,9 @@ def read_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9865,6 +10160,8 @@ def read_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -9907,6 +10204,9 @@ def read_member_status( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -9935,6 +10235,8 @@ def read_member_status( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -9975,6 +10277,9 @@ def read_merchant( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10003,6 +10308,8 @@ def read_merchant( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['merchant_guid'] = \ merchant_guid @@ -10041,6 +10348,9 @@ def read_merchant_location( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10069,6 +10379,8 @@ def read_merchant_location( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['merchant_location_guid'] = \ merchant_location_guid @@ -10111,6 +10423,9 @@ def read_statement_by_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10139,6 +10454,8 @@ def read_statement_by_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -10183,6 +10500,9 @@ def read_tag( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10211,6 +10531,8 @@ def read_tag( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['tag_guid'] = \ tag_guid @@ -10253,6 +10575,9 @@ def read_tagging( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10281,6 +10606,8 @@ def read_tagging( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['tagging_guid'] = \ tagging_guid @@ -10323,6 +10650,9 @@ def read_transaction( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10351,6 +10681,8 @@ def read_transaction( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['transaction_guid'] = \ transaction_guid @@ -10393,6 +10725,9 @@ def read_transaction_rule( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10421,6 +10756,8 @@ def read_transaction_rule( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['transaction_rule_guid'] = \ transaction_rule_guid @@ -10461,6 +10798,9 @@ def read_user( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10489,6 +10829,8 @@ def read_user( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -10528,6 +10870,9 @@ def request_connect_widget_url( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10556,6 +10901,8 @@ def request_connect_widget_url( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -10599,6 +10946,9 @@ def request_o_auth_window_uri( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10627,6 +10977,8 @@ def request_o_auth_window_uri( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -10670,6 +11022,9 @@ def request_widget_url( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10698,6 +11053,8 @@ def request_widget_url( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -10742,6 +11099,9 @@ def resume_aggregation( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10770,6 +11130,8 @@ def resume_aggregation( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -10818,6 +11180,9 @@ def update_account_by_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10846,6 +11211,8 @@ def update_account_by_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -10894,6 +11261,9 @@ def update_category( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10922,6 +11292,8 @@ def update_category( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['category_guid'] = \ category_guid @@ -10970,6 +11342,9 @@ def update_managed_account( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -10998,6 +11373,8 @@ def update_managed_account( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -11046,6 +11423,9 @@ def update_managed_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11074,6 +11454,8 @@ def update_managed_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -11122,6 +11504,9 @@ def update_managed_transaction( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11150,6 +11535,8 @@ def update_managed_transaction( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -11198,6 +11585,9 @@ def update_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11226,6 +11616,8 @@ def update_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid @@ -11272,6 +11664,9 @@ def update_tag( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11300,6 +11695,8 @@ def update_tag( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['tag_guid'] = \ tag_guid @@ -11346,6 +11743,9 @@ def update_tagging( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11374,6 +11774,8 @@ def update_tagging( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['tagging_guid'] = \ tagging_guid @@ -11420,6 +11822,9 @@ def update_transaction( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11448,6 +11853,8 @@ def update_transaction( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['transaction_guid'] = \ transaction_guid @@ -11494,6 +11901,9 @@ def update_transaction_rule( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11522,6 +11932,8 @@ def update_transaction_rule( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['transaction_rule_guid'] = \ transaction_rule_guid @@ -11566,6 +11978,9 @@ def update_user( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11594,6 +12009,8 @@ def update_user( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['user_guid'] = \ user_guid @@ -11636,6 +12053,9 @@ def verify_member( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -11664,6 +12084,8 @@ def verify_member( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['member_guid'] = \ member_guid diff --git a/mx_platform_python/api_client.py b/mx_platform_python/api_client.py index bdc56f1..6efa860 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.3.0/python' + self.user_agent = 'OpenAPI-Generator/0.4.0/python' def __enter__(self): return self @@ -131,7 +131,8 @@ def __call_api( _preload_content: bool = True, _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, _host: typing.Optional[str] = None, - _check_type: typing.Optional[bool] = None + _check_type: typing.Optional[bool] = None, + _content_type: typing.Optional[str] = None ): config = self.configuration @@ -572,10 +573,12 @@ def select_header_accept(self, accepts): else: return ', '.join(accepts) - def select_header_content_type(self, content_types): + def select_header_content_type(self, content_types, method=None, body=None): """Returns `Content-Type` based on an array of content_types provided. :param content_types: List of content-types. + :param method: http method (e.g. POST, PATCH). + :param body: http body to send. :return: Content-Type (e.g. application/json). """ if not content_types: @@ -583,6 +586,11 @@ def select_header_content_type(self, content_types): content_types = [x.lower() for x in content_types] + if (method == 'PATCH' and + 'application/json-patch+json' in content_types and + isinstance(body, list)): + return 'application/json-patch+json' + if 'application/json' in content_types or '*/*' in content_types: return 'application/json' else: @@ -664,7 +672,8 @@ def __init__(self, settings=None, params_map=None, root_map=None, '_request_timeout', '_return_http_data_only', '_check_input_type', - '_check_return_type' + '_check_return_type', + '_content_type' ]) self.params_map['nullable'].extend(['_request_timeout']) self.validations = root_map['validations'] @@ -677,7 +686,8 @@ def __init__(self, settings=None, params_map=None, root_map=None, '_request_timeout': (none_type, float, (float,), [float], int, (int,), [int]), '_return_http_data_only': (bool,), '_check_input_type': (bool,), - '_check_return_type': (bool,) + '_check_return_type': (bool,), + '_content_type': (none_type, str) } self.openapi_types.update(extra_types) self.attribute_map = root_map['attribute_map'] @@ -824,12 +834,16 @@ def call_with_http_info(self, **kwargs): params['header']['Accept'] = self.api_client.select_header_accept( accept_headers_list) - content_type_headers_list = self.headers_map['content_type'] - if content_type_headers_list: - if params['body'] != "": - header_list = self.api_client.select_header_content_type( - content_type_headers_list) - params['header']['Content-Type'] = header_list + if kwargs.get('_content_type'): + params['header']['Content-Type'] = kwargs['_content_type'] + else: + content_type_headers_list = self.headers_map['content_type'] + if content_type_headers_list: + if params['body'] != "": + header_list = self.api_client.select_header_content_type( + content_type_headers_list, self.settings['http_method'], + params['body']) + params['header']['Content-Type'] = header_list return self.api_client.call_api( self.settings['endpoint_path'], self.settings['http_method'], diff --git a/mx_platform_python/configuration.py b/mx_platform_python/configuration.py index 3f19205..f7a78cd 100644 --- a/mx_platform_python/configuration.py +++ b/mx_platform_python/configuration.py @@ -196,6 +196,9 @@ def __init__(self, host=None, self.proxy = None """Proxy URL """ + self.no_proxy = None + """bypass proxy for host in the no_proxy list. + """ self.proxy_headers = None """Proxy headers """ @@ -401,7 +404,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.3.0".\ + "SDK Package Version: 0.4.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/mx_platform_python/model/account_number_response.py b/mx_platform_python/model/account_number_response.py index 022fbf9..32172bc 100644 --- a/mx_platform_python/model/account_number_response.py +++ b/mx_platform_python/model/account_number_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/account_numbers_response_body.py b/mx_platform_python/model/account_numbers_response_body.py index 324d702..e9b5525 100644 --- a/mx_platform_python/model/account_numbers_response_body.py +++ b/mx_platform_python/model/account_numbers_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/account_owner_response.py b/mx_platform_python/model/account_owner_response.py index 77fce9b..356e716 100644 --- a/mx_platform_python/model/account_owner_response.py +++ b/mx_platform_python/model/account_owner_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/account_owners_response_body.py b/mx_platform_python/model/account_owners_response_body.py index 1a4e7fd..20ad97f 100644 --- a/mx_platform_python/model/account_owners_response_body.py +++ b/mx_platform_python/model/account_owners_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/account_response.py b/mx_platform_python/model/account_response.py index 455b6e9..1cb5411 100644 --- a/mx_platform_python/model/account_response.py +++ b/mx_platform_python/model/account_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/account_response_body.py b/mx_platform_python/model/account_response_body.py index 25976d9..f7ace68 100644 --- a/mx_platform_python/model/account_response_body.py +++ b/mx_platform_python/model/account_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/account_update_request.py b/mx_platform_python/model/account_update_request.py index 259b2e4..4500e1c 100644 --- a/mx_platform_python/model/account_update_request.py +++ b/mx_platform_python/model/account_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/account_update_request_body.py b/mx_platform_python/model/account_update_request_body.py index 91ceacb..fb78175 100644 --- a/mx_platform_python/model/account_update_request_body.py +++ b/mx_platform_python/model/account_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/accounts_response_body.py b/mx_platform_python/model/accounts_response_body.py index 42af1cf..95510a6 100644 --- a/mx_platform_python/model/accounts_response_body.py +++ b/mx_platform_python/model/accounts_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/categories_response_body.py b/mx_platform_python/model/categories_response_body.py index 16713f7..45c8ebf 100644 --- a/mx_platform_python/model/categories_response_body.py +++ b/mx_platform_python/model/categories_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/category_create_request.py b/mx_platform_python/model/category_create_request.py index 506196c..3867753 100644 --- a/mx_platform_python/model/category_create_request.py +++ b/mx_platform_python/model/category_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/category_create_request_body.py b/mx_platform_python/model/category_create_request_body.py index 8a701ea..ebfb0d0 100644 --- a/mx_platform_python/model/category_create_request_body.py +++ b/mx_platform_python/model/category_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/category_response.py b/mx_platform_python/model/category_response.py index 63f6dd6..98c3f92 100644 --- a/mx_platform_python/model/category_response.py +++ b/mx_platform_python/model/category_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/category_response_body.py b/mx_platform_python/model/category_response_body.py index 109bcf5..08e3d98 100644 --- a/mx_platform_python/model/category_response_body.py +++ b/mx_platform_python/model/category_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/category_update_request.py b/mx_platform_python/model/category_update_request.py index ed3c34e..149e902 100644 --- a/mx_platform_python/model/category_update_request.py +++ b/mx_platform_python/model/category_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/category_update_request_body.py b/mx_platform_python/model/category_update_request_body.py index fc975e9..f6bb75c 100644 --- a/mx_platform_python/model/category_update_request_body.py +++ b/mx_platform_python/model/category_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/challenge_response.py b/mx_platform_python/model/challenge_response.py index 5538433..806c3e2 100644 --- a/mx_platform_python/model/challenge_response.py +++ b/mx_platform_python/model/challenge_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/challenges_response_body.py b/mx_platform_python/model/challenges_response_body.py index 978c272..edf02fd 100644 --- a/mx_platform_python/model/challenges_response_body.py +++ b/mx_platform_python/model/challenges_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/connect_widget_request.py b/mx_platform_python/model/connect_widget_request.py index 4b17f0d..07a38c7 100644 --- a/mx_platform_python/model/connect_widget_request.py +++ b/mx_platform_python/model/connect_widget_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/connect_widget_request_body.py b/mx_platform_python/model/connect_widget_request_body.py index e02bb1b..b418a1f 100644 --- a/mx_platform_python/model/connect_widget_request_body.py +++ b/mx_platform_python/model/connect_widget_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/connect_widget_response.py b/mx_platform_python/model/connect_widget_response.py index 6ccb93c..ee75d28 100644 --- a/mx_platform_python/model/connect_widget_response.py +++ b/mx_platform_python/model/connect_widget_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/connect_widget_response_body.py b/mx_platform_python/model/connect_widget_response_body.py index 7213d4f..ca52d0f 100644 --- a/mx_platform_python/model/connect_widget_response_body.py +++ b/mx_platform_python/model/connect_widget_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/credential_request.py b/mx_platform_python/model/credential_request.py index 5aff33b..9ee9271 100644 --- a/mx_platform_python/model/credential_request.py +++ b/mx_platform_python/model/credential_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/credential_response.py b/mx_platform_python/model/credential_response.py index 6e81b0b..e5182ea 100644 --- a/mx_platform_python/model/credential_response.py +++ b/mx_platform_python/model/credential_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/credentials_response_body.py b/mx_platform_python/model/credentials_response_body.py index ae7736c..968d517 100644 --- a/mx_platform_python/model/credentials_response_body.py +++ b/mx_platform_python/model/credentials_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/enhance_transaction_response.py b/mx_platform_python/model/enhance_transaction_response.py index a6b2860..f2e96d3 100644 --- a/mx_platform_python/model/enhance_transaction_response.py +++ b/mx_platform_python/model/enhance_transaction_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/enhance_transactions_request.py b/mx_platform_python/model/enhance_transactions_request.py index 573b7fc..9255b13 100644 --- a/mx_platform_python/model/enhance_transactions_request.py +++ b/mx_platform_python/model/enhance_transactions_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/enhance_transactions_request_body.py b/mx_platform_python/model/enhance_transactions_request_body.py index d680bf3..520af24 100644 --- a/mx_platform_python/model/enhance_transactions_request_body.py +++ b/mx_platform_python/model/enhance_transactions_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/enhance_transactions_response_body.py b/mx_platform_python/model/enhance_transactions_response_body.py index 2c73fa6..d717a63 100644 --- a/mx_platform_python/model/enhance_transactions_response_body.py +++ b/mx_platform_python/model/enhance_transactions_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/holding_response.py b/mx_platform_python/model/holding_response.py index 1f4931e..5507a78 100644 --- a/mx_platform_python/model/holding_response.py +++ b/mx_platform_python/model/holding_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/holding_response_body.py b/mx_platform_python/model/holding_response_body.py index 63b30a8..ed07e81 100644 --- a/mx_platform_python/model/holding_response_body.py +++ b/mx_platform_python/model/holding_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/holdings_response_body.py b/mx_platform_python/model/holdings_response_body.py index d9f9b41..77cae16 100644 --- a/mx_platform_python/model/holdings_response_body.py +++ b/mx_platform_python/model/holdings_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/image_option_response.py b/mx_platform_python/model/image_option_response.py index ae1de9c..868a051 100644 --- a/mx_platform_python/model/image_option_response.py +++ b/mx_platform_python/model/image_option_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/institution_response.py b/mx_platform_python/model/institution_response.py index e6501da..171eeaf 100644 --- a/mx_platform_python/model/institution_response.py +++ b/mx_platform_python/model/institution_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/institution_response_body.py b/mx_platform_python/model/institution_response_body.py index 4ec8e50..2f1f57f 100644 --- a/mx_platform_python/model/institution_response_body.py +++ b/mx_platform_python/model/institution_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/institutions_response_body.py b/mx_platform_python/model/institutions_response_body.py index ae1ffab..5c2ae6c 100644 --- a/mx_platform_python/model/institutions_response_body.py +++ b/mx_platform_python/model/institutions_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_account_create_request.py b/mx_platform_python/model/managed_account_create_request.py index a281876..21acfc3 100644 --- a/mx_platform_python/model/managed_account_create_request.py +++ b/mx_platform_python/model/managed_account_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_account_create_request_body.py b/mx_platform_python/model/managed_account_create_request_body.py index f023f08..abb36b1 100644 --- a/mx_platform_python/model/managed_account_create_request_body.py +++ b/mx_platform_python/model/managed_account_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_account_update_request.py b/mx_platform_python/model/managed_account_update_request.py index 042b2a9..a5ef569 100644 --- a/mx_platform_python/model/managed_account_update_request.py +++ b/mx_platform_python/model/managed_account_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_account_update_request_body.py b/mx_platform_python/model/managed_account_update_request_body.py index c6d119d..873fc9a 100644 --- a/mx_platform_python/model/managed_account_update_request_body.py +++ b/mx_platform_python/model/managed_account_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_member_create_request.py b/mx_platform_python/model/managed_member_create_request.py index ea74357..70fbdb3 100644 --- a/mx_platform_python/model/managed_member_create_request.py +++ b/mx_platform_python/model/managed_member_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_member_create_request_body.py b/mx_platform_python/model/managed_member_create_request_body.py index 4fee027..0b62771 100644 --- a/mx_platform_python/model/managed_member_create_request_body.py +++ b/mx_platform_python/model/managed_member_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_member_update_request.py b/mx_platform_python/model/managed_member_update_request.py index 0ae8953..9f0611a 100644 --- a/mx_platform_python/model/managed_member_update_request.py +++ b/mx_platform_python/model/managed_member_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_member_update_request_body.py b/mx_platform_python/model/managed_member_update_request_body.py index e638d46..5fc348f 100644 --- a/mx_platform_python/model/managed_member_update_request_body.py +++ b/mx_platform_python/model/managed_member_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_transaction_create_request.py b/mx_platform_python/model/managed_transaction_create_request.py index 9ee740d..ffc7769 100644 --- a/mx_platform_python/model/managed_transaction_create_request.py +++ b/mx_platform_python/model/managed_transaction_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_transaction_create_request_body.py b/mx_platform_python/model/managed_transaction_create_request_body.py index 7ab6958..2c5e2c0 100644 --- a/mx_platform_python/model/managed_transaction_create_request_body.py +++ b/mx_platform_python/model/managed_transaction_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_transaction_update_request.py b/mx_platform_python/model/managed_transaction_update_request.py index d830907..dec8c65 100644 --- a/mx_platform_python/model/managed_transaction_update_request.py +++ b/mx_platform_python/model/managed_transaction_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/managed_transaction_update_request_body.py b/mx_platform_python/model/managed_transaction_update_request_body.py index 4c881c2..202f9fa 100644 --- a/mx_platform_python/model/managed_transaction_update_request_body.py +++ b/mx_platform_python/model/managed_transaction_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_create_request.py b/mx_platform_python/model/member_create_request.py index acfbc0c..1ff6e81 100644 --- a/mx_platform_python/model/member_create_request.py +++ b/mx_platform_python/model/member_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_create_request_body.py b/mx_platform_python/model/member_create_request_body.py index 71afd8e..bd2785b 100644 --- a/mx_platform_python/model/member_create_request_body.py +++ b/mx_platform_python/model/member_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_response.py b/mx_platform_python/model/member_response.py index a2a9b9c..7354fca 100644 --- a/mx_platform_python/model/member_response.py +++ b/mx_platform_python/model/member_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_response_body.py b/mx_platform_python/model/member_response_body.py index bc8604e..d975d39 100644 --- a/mx_platform_python/model/member_response_body.py +++ b/mx_platform_python/model/member_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_resume_request.py b/mx_platform_python/model/member_resume_request.py index ba1e30f..ed0a497 100644 --- a/mx_platform_python/model/member_resume_request.py +++ b/mx_platform_python/model/member_resume_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_resume_request_body.py b/mx_platform_python/model/member_resume_request_body.py index 66ffc86..7f1c3a1 100644 --- a/mx_platform_python/model/member_resume_request_body.py +++ b/mx_platform_python/model/member_resume_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_status_response.py b/mx_platform_python/model/member_status_response.py index 9122e02..b581426 100644 --- a/mx_platform_python/model/member_status_response.py +++ b/mx_platform_python/model/member_status_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_status_response_body.py b/mx_platform_python/model/member_status_response_body.py index c9cecf7..5dc5b63 100644 --- a/mx_platform_python/model/member_status_response_body.py +++ b/mx_platform_python/model/member_status_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_update_request.py b/mx_platform_python/model/member_update_request.py index 29bab8d..1d77c1f 100644 --- a/mx_platform_python/model/member_update_request.py +++ b/mx_platform_python/model/member_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/member_update_request_body.py b/mx_platform_python/model/member_update_request_body.py index 4df11ce..4ca07b1 100644 --- a/mx_platform_python/model/member_update_request_body.py +++ b/mx_platform_python/model/member_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/members_response_body.py b/mx_platform_python/model/members_response_body.py index 75af4ce..e742dc4 100644 --- a/mx_platform_python/model/members_response_body.py +++ b/mx_platform_python/model/members_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/merchant_location_response.py b/mx_platform_python/model/merchant_location_response.py index 3d0e1e9..9865df7 100644 --- a/mx_platform_python/model/merchant_location_response.py +++ b/mx_platform_python/model/merchant_location_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/merchant_location_response_body.py b/mx_platform_python/model/merchant_location_response_body.py index 0e0ae81..6caf8da 100644 --- a/mx_platform_python/model/merchant_location_response_body.py +++ b/mx_platform_python/model/merchant_location_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/merchant_response.py b/mx_platform_python/model/merchant_response.py index f4fc2d7..0cd02d6 100644 --- a/mx_platform_python/model/merchant_response.py +++ b/mx_platform_python/model/merchant_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/merchant_response_body.py b/mx_platform_python/model/merchant_response_body.py index d20deef..6032bbb 100644 --- a/mx_platform_python/model/merchant_response_body.py +++ b/mx_platform_python/model/merchant_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/merchants_response_body.py b/mx_platform_python/model/merchants_response_body.py index 8d2d4bd..101f7bd 100644 --- a/mx_platform_python/model/merchants_response_body.py +++ b/mx_platform_python/model/merchants_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/o_auth_window_response.py b/mx_platform_python/model/o_auth_window_response.py index 729cbc6..d251d9e 100644 --- a/mx_platform_python/model/o_auth_window_response.py +++ b/mx_platform_python/model/o_auth_window_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/o_auth_window_response_body.py b/mx_platform_python/model/o_auth_window_response_body.py index dd79e50..fc984db 100644 --- a/mx_platform_python/model/o_auth_window_response_body.py +++ b/mx_platform_python/model/o_auth_window_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/option_response.py b/mx_platform_python/model/option_response.py index 07b82a9..e2f3c70 100644 --- a/mx_platform_python/model/option_response.py +++ b/mx_platform_python/model/option_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/pagination_response.py b/mx_platform_python/model/pagination_response.py index 3981386..5126b1c 100644 --- a/mx_platform_python/model/pagination_response.py +++ b/mx_platform_python/model/pagination_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/statement_response.py b/mx_platform_python/model/statement_response.py index 317fa6b..9bac348 100644 --- a/mx_platform_python/model/statement_response.py +++ b/mx_platform_python/model/statement_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/statement_response_body.py b/mx_platform_python/model/statement_response_body.py index 0352cbc..2918739 100644 --- a/mx_platform_python/model/statement_response_body.py +++ b/mx_platform_python/model/statement_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/statements_response_body.py b/mx_platform_python/model/statements_response_body.py index 1e7a1dd..58fa65e 100644 --- a/mx_platform_python/model/statements_response_body.py +++ b/mx_platform_python/model/statements_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tag_create_request.py b/mx_platform_python/model/tag_create_request.py index 640c54f..c8e16dd 100644 --- a/mx_platform_python/model/tag_create_request.py +++ b/mx_platform_python/model/tag_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tag_create_request_body.py b/mx_platform_python/model/tag_create_request_body.py index 871878a..cb0c427 100644 --- a/mx_platform_python/model/tag_create_request_body.py +++ b/mx_platform_python/model/tag_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tag_response.py b/mx_platform_python/model/tag_response.py index c0b1abd..b7d0f62 100644 --- a/mx_platform_python/model/tag_response.py +++ b/mx_platform_python/model/tag_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tag_response_body.py b/mx_platform_python/model/tag_response_body.py index 5aa955e..f7eb03a 100644 --- a/mx_platform_python/model/tag_response_body.py +++ b/mx_platform_python/model/tag_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tag_update_request.py b/mx_platform_python/model/tag_update_request.py index 8e0a35a..1cff983 100644 --- a/mx_platform_python/model/tag_update_request.py +++ b/mx_platform_python/model/tag_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tag_update_request_body.py b/mx_platform_python/model/tag_update_request_body.py index dfb3871..939957f 100644 --- a/mx_platform_python/model/tag_update_request_body.py +++ b/mx_platform_python/model/tag_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tagging_create_request.py b/mx_platform_python/model/tagging_create_request.py index 6b45c18..71e3db8 100644 --- a/mx_platform_python/model/tagging_create_request.py +++ b/mx_platform_python/model/tagging_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tagging_create_request_body.py b/mx_platform_python/model/tagging_create_request_body.py index af12046..e4165a6 100644 --- a/mx_platform_python/model/tagging_create_request_body.py +++ b/mx_platform_python/model/tagging_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tagging_response.py b/mx_platform_python/model/tagging_response.py index 4ba10c6..0c9b4d5 100644 --- a/mx_platform_python/model/tagging_response.py +++ b/mx_platform_python/model/tagging_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tagging_response_body.py b/mx_platform_python/model/tagging_response_body.py index d3b23bc..af8f2bf 100644 --- a/mx_platform_python/model/tagging_response_body.py +++ b/mx_platform_python/model/tagging_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tagging_update_request.py b/mx_platform_python/model/tagging_update_request.py index a035480..1cfff96 100644 --- a/mx_platform_python/model/tagging_update_request.py +++ b/mx_platform_python/model/tagging_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tagging_update_request_body.py b/mx_platform_python/model/tagging_update_request_body.py index 49f061d..8ac5c6e 100644 --- a/mx_platform_python/model/tagging_update_request_body.py +++ b/mx_platform_python/model/tagging_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/taggings_response_body.py b/mx_platform_python/model/taggings_response_body.py index ff0e3fd..072aea7 100644 --- a/mx_platform_python/model/taggings_response_body.py +++ b/mx_platform_python/model/taggings_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/tags_response_body.py b/mx_platform_python/model/tags_response_body.py index 2343138..07700e1 100644 --- a/mx_platform_python/model/tags_response_body.py +++ b/mx_platform_python/model/tags_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_response.py b/mx_platform_python/model/transaction_response.py index 85179f8..27f93b1 100644 --- a/mx_platform_python/model/transaction_response.py +++ b/mx_platform_python/model/transaction_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_response_body.py b/mx_platform_python/model/transaction_response_body.py index 53503f8..5216daa 100644 --- a/mx_platform_python/model/transaction_response_body.py +++ b/mx_platform_python/model/transaction_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_rule_create_request.py b/mx_platform_python/model/transaction_rule_create_request.py index 9c68fc5..ef74b81 100644 --- a/mx_platform_python/model/transaction_rule_create_request.py +++ b/mx_platform_python/model/transaction_rule_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_rule_create_request_body.py b/mx_platform_python/model/transaction_rule_create_request_body.py index 9a2c4b2..d5cf84d 100644 --- a/mx_platform_python/model/transaction_rule_create_request_body.py +++ b/mx_platform_python/model/transaction_rule_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_rule_response.py b/mx_platform_python/model/transaction_rule_response.py index 047c097..a75fb4e 100644 --- a/mx_platform_python/model/transaction_rule_response.py +++ b/mx_platform_python/model/transaction_rule_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_rule_response_body.py b/mx_platform_python/model/transaction_rule_response_body.py index dd0ac21..8743404 100644 --- a/mx_platform_python/model/transaction_rule_response_body.py +++ b/mx_platform_python/model/transaction_rule_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_rule_update_request.py b/mx_platform_python/model/transaction_rule_update_request.py index deea432..e2bb135 100644 --- a/mx_platform_python/model/transaction_rule_update_request.py +++ b/mx_platform_python/model/transaction_rule_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_rule_update_request_body.py b/mx_platform_python/model/transaction_rule_update_request_body.py index d7b5317..38792b9 100644 --- a/mx_platform_python/model/transaction_rule_update_request_body.py +++ b/mx_platform_python/model/transaction_rule_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_rules_response_body.py b/mx_platform_python/model/transaction_rules_response_body.py index 6da94df..a78c7fa 100644 --- a/mx_platform_python/model/transaction_rules_response_body.py +++ b/mx_platform_python/model/transaction_rules_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_update_request.py b/mx_platform_python/model/transaction_update_request.py index 0a0b893..a4cafb4 100644 --- a/mx_platform_python/model/transaction_update_request.py +++ b/mx_platform_python/model/transaction_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transaction_update_request_body.py b/mx_platform_python/model/transaction_update_request_body.py index 5eda21c..437b229 100644 --- a/mx_platform_python/model/transaction_update_request_body.py +++ b/mx_platform_python/model/transaction_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/transactions_response_body.py b/mx_platform_python/model/transactions_response_body.py index c89b9c2..b4c501c 100644 --- a/mx_platform_python/model/transactions_response_body.py +++ b/mx_platform_python/model/transactions_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/user_create_request.py b/mx_platform_python/model/user_create_request.py index c963748..d233d74 100644 --- a/mx_platform_python/model/user_create_request.py +++ b/mx_platform_python/model/user_create_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/user_create_request_body.py b/mx_platform_python/model/user_create_request_body.py index 1566a18..34b978b 100644 --- a/mx_platform_python/model/user_create_request_body.py +++ b/mx_platform_python/model/user_create_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/user_response.py b/mx_platform_python/model/user_response.py index 4401f22..e016485 100644 --- a/mx_platform_python/model/user_response.py +++ b/mx_platform_python/model/user_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/user_response_body.py b/mx_platform_python/model/user_response_body.py index 7abc3f7..69ae8bc 100644 --- a/mx_platform_python/model/user_response_body.py +++ b/mx_platform_python/model/user_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/user_update_request.py b/mx_platform_python/model/user_update_request.py index d1e905b..18dc3cd 100644 --- a/mx_platform_python/model/user_update_request.py +++ b/mx_platform_python/model/user_update_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/user_update_request_body.py b/mx_platform_python/model/user_update_request_body.py index 1be1d51..89f148a 100644 --- a/mx_platform_python/model/user_update_request_body.py +++ b/mx_platform_python/model/user_update_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/users_response_body.py b/mx_platform_python/model/users_response_body.py index 2647bf5..44e8dc7 100644 --- a/mx_platform_python/model/users_response_body.py +++ b/mx_platform_python/model/users_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/widget_request.py b/mx_platform_python/model/widget_request.py index 2a0db54..798ca08 100644 --- a/mx_platform_python/model/widget_request.py +++ b/mx_platform_python/model/widget_request.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/widget_request_body.py b/mx_platform_python/model/widget_request_body.py index 1da071b..f6204be 100644 --- a/mx_platform_python/model/widget_request_body.py +++ b/mx_platform_python/model/widget_request_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/widget_response.py b/mx_platform_python/model/widget_response.py index 4524e4f..5db5cea 100644 --- a/mx_platform_python/model/widget_response.py +++ b/mx_platform_python/model/widget_response.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/model/widget_response_body.py b/mx_platform_python/model/widget_response_body.py index b8d638d..5a70ed1 100644 --- a/mx_platform_python/model/widget_response_body.py +++ b/mx_platform_python/model/widget_response_body.py @@ -24,8 +24,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from mx_platform_python.exceptions import ApiAttributeError diff --git a/mx_platform_python/rest.py b/mx_platform_python/rest.py index 755bacb..59ddc8a 100644 --- a/mx_platform_python/rest.py +++ b/mx_platform_python/rest.py @@ -14,8 +14,10 @@ import re import ssl from urllib.parse import urlencode - +from urllib.parse import urlparse +from urllib.request import proxy_bypass_environment import urllib3 +import ipaddress from mx_platform_python.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError @@ -72,7 +74,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): maxsize = 4 # https pool manager - if configuration.proxy: + if configuration.proxy and not should_bypass_proxies(configuration.host, no_proxy=configuration.no_proxy or ''): self.pool_manager = urllib3.ProxyManager( num_pools=pools_size, maxsize=maxsize, @@ -290,3 +292,55 @@ def PATCH(self, url, headers=None, query_params=None, post_params=None, _preload_content=_preload_content, _request_timeout=_request_timeout, body=body) + +# end of class RESTClientObject +def is_ipv4(target): + """ Test if IPv4 address or not + """ + try: + chk = ipaddress.IPv4Address(target) + return True + except ipaddress.AddressValueError: + return False + +def in_ipv4net(target, net): + """ Test if target belongs to given IPv4 network + """ + try: + nw = ipaddress.IPv4Network(net) + ip = ipaddress.IPv4Address(target) + if ip in nw: + return True + return False + except ipaddress.AddressValueError: + return False + except ipaddress.NetmaskValueError: + return False + +def should_bypass_proxies(url, no_proxy=None): + """ Yet another requests.should_bypass_proxies + Test if proxies should not be used for a particular url. + """ + + parsed = urlparse(url) + + # special cases + if parsed.hostname in [None, '']: + return True + + # special cases + if no_proxy in [None , '']: + return False + if no_proxy == '*': + return True + + no_proxy = no_proxy.lower().replace(' ',''); + entries = ( + host for host in no_proxy.split(',') if host + ) + + if is_ipv4(parsed.hostname): + for item in entries: + if in_ipv4net(parsed.hostname, item): + return True + return proxy_bypass_environment(parsed.hostname, {'no': no_proxy} ) diff --git a/openapi/config.yml b/openapi/config.yml index dfeabad..f582446 100644 --- a/openapi/config.yml +++ b/openapi/config.yml @@ -1,4 +1,4 @@ packageName: mx_platform_python packageUrl: https://pypi.org/project/mx-platform-python -packageVersion: 0.3.0 +packageVersion: 0.4.0 projectName: mx-platform-python diff --git a/setup.py b/setup.py index 02bb48e..b2f0f3b 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "mx-platform-python" -VERSION = "0.3.0" +VERSION = "0.4.0" # To install the library, run the following # # python setup.py install