From cf87e0ff72cc0a6f63021fce2dc4faa18e4f3dca Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Tue, 18 Mar 2025 12:00:35 -0400 Subject: [PATCH 1/2] adds entity attributes subscription --- method/resources/Entities/Subscriptions.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/method/resources/Entities/Subscriptions.py b/method/resources/Entities/Subscriptions.py index 955948b..feca862 100644 --- a/method/resources/Entities/Subscriptions.py +++ b/method/resources/Entities/Subscriptions.py @@ -7,7 +7,8 @@ EntitySubscriptionNamesLiterals = Literal[ 'connect', - 'credit_score' + 'credit_score', + 'attribute' ] diff --git a/setup.py b/setup.py index f5bc969..3cacde7 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='method-python', - version='1.1.9', + version='1.1.10', description='Python library for the Method API', long_description='Python library for the Method API', long_description_content_type='text/x-rst', From ac41ed6ba6e7abc3a2cc964085ef3de4c93b851d Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Tue, 18 Mar 2025 15:14:18 -0400 Subject: [PATCH 2/2] fixed test --- test/resources/Entity_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/resources/Entity_test.py b/test/resources/Entity_test.py index 02589fa..6858914 100644 --- a/test/resources/Entity_test.py +++ b/test/resources/Entity_test.py @@ -765,7 +765,7 @@ def test_retrieve_entity_product_list(): 'status': 'available', 'status_error': None, 'latest_request_id': entities_retrieve_product_list_response.get('attribute', {}).get('latest_request_id', None), - 'is_subscribable': False, + 'is_subscribable': True, 'created_at': entities_retrieve_product_list_response.get('attribute', {}).get('created_at', ''), 'updated_at': entities_retrieve_product_list_response.get('attribute', {}).get('updated_at', ''), }, @@ -831,7 +831,7 @@ def test_retrieve_entity_product(): 'status': 'available', 'status_error': None, 'latest_request_id': entities_retrieve_product_list_response.get('attribute', {}).get('latest_request_id', None), - 'is_subscribable': False, + 'is_subscribable': True, 'created_at': entities_retrieve_product_list_response.get('attribute', {}).get('created_at', ''), 'updated_at': entities_retrieve_product_list_response.get('attribute', {}).get('updated_at', ''), }