From 2729ae196be9e967a0929cae07b245dc51618388 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Mon, 2 Jun 2025 12:15:48 -0500 Subject: [PATCH 1/5] add source property to cardbrand --- method/resources/Accounts/CardBrands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/method/resources/Accounts/CardBrands.py b/method/resources/Accounts/CardBrands.py index c15c9b6..2701276 100644 --- a/method/resources/Accounts/CardBrands.py +++ b/method/resources/Accounts/CardBrands.py @@ -20,6 +20,7 @@ class AccountCardBrand(TypedDict): brands: List[AccountCardBrandInfo] status: Literal['completed', 'failed'] shared: bool + source: Optional[Literal['method', 'network']] error: Optional[ResourceError] created_at: str updated_at: str From 922f75451bc0cf54d615ac75976fd78ec68a8942 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Mon, 2 Jun 2025 12:16:11 -0500 Subject: [PATCH 2/5] bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d2e3fa7..4256192 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='method-python', - version='1.2.1', + version='1.2.2', description='Python library for the Method API', long_description='Python library for the Method API', long_description_content_type='text/x-rst', From 4bd0a08377be4fb93c635af34c644481e387a930 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Mon, 2 Jun 2025 12:22:19 -0500 Subject: [PATCH 3/5] update tests --- test/resources/Account_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/resources/Account_test.py b/test/resources/Account_test.py index 1e9b3d5..7a2c8d8 100644 --- a/test/resources/Account_test.py +++ b/test/resources/Account_test.py @@ -305,6 +305,7 @@ def test_create_card_brands(setup): 'last4': '1580', 'brands': card_brand_create_response['brands'], 'shared': False, + 'source': card_brand_create_response['source'], 'error': None, 'created_at': card_brand_create_response['created_at'], 'updated_at': card_brand_create_response['updated_at'], @@ -326,6 +327,7 @@ def test_retrieve_card_brands(setup): 'last4': '1580', 'brands': card_brand_create_response['brands'], 'shared': False, + 'source': card_brand_create_response['source'], 'error': None, 'created_at': card_retrieve_response['created_at'], 'updated_at': card_retrieve_response['updated_at'], @@ -348,6 +350,7 @@ async def test_list_card_brands(setup): 'last4': '1580', 'brands': card_brand_create_response['brands'], 'shared': False, + 'source': card_brand_create_response['source'], 'error': None, 'created_at': card_brands_list_response[0]['created_at'], 'updated_at': card_brands_list_response[0]['updated_at'], From 8d5a3185dea35015a31511954bb38df9894d6c64 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Mon, 2 Jun 2025 12:31:37 -0500 Subject: [PATCH 4/5] update entity tests --- test/resources/Entity_test.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/resources/Entity_test.py b/test/resources/Entity_test.py index c5aa41a..8f23ec5 100644 --- a/test/resources/Entity_test.py +++ b/test/resources/Entity_test.py @@ -79,6 +79,7 @@ def test_create_entity(): 'methods': [ 'element', 'kba', + 'opal' ], }, 'phone': { @@ -88,7 +89,8 @@ def test_create_entity(): 'element', 'sna', 'sms', - 'byo_sms' + 'byo_sms', + 'opal' ], }, }, @@ -143,6 +145,7 @@ def test_retrieve_entity(): 'methods': [ 'element', 'kba', + 'opal' ], }, 'phone': { @@ -152,7 +155,8 @@ def test_retrieve_entity(): 'element', 'sna', 'sms', - 'byo_sms' + 'byo_sms', + 'opal' ], }, }, @@ -215,6 +219,7 @@ def test_update_entity(): 'methods': [ 'element', 'kba', + 'opal' ], }, 'phone': { @@ -224,7 +229,8 @@ def test_update_entity(): 'element', 'sna', 'sms', - 'byo_sms' + 'byo_sms', + 'opal' ], }, }, From df2e4902ddfdd065fba1c44494abb016811404b0 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Mon, 2 Jun 2025 13:30:44 -0500 Subject: [PATCH 5/5] update entity verification session types --- test/resources/Entity_test.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/resources/Entity_test.py b/test/resources/Entity_test.py index 8f23ec5..592c927 100644 --- a/test/resources/Entity_test.py +++ b/test/resources/Entity_test.py @@ -78,8 +78,8 @@ def test_create_entity(): 'latest_verification_session': None, 'methods': [ 'element', + 'opal', 'kba', - 'opal' ], }, 'phone': { @@ -87,10 +87,10 @@ def test_create_entity(): 'latest_verification_session': None, 'methods': [ 'element', + 'opal', 'sna', 'sms', 'byo_sms', - 'opal' ], }, }, @@ -144,8 +144,8 @@ def test_retrieve_entity(): 'latest_verification_session': None, 'methods': [ 'element', - 'kba', - 'opal' + 'opal', + 'kba' ], }, 'phone': { @@ -153,10 +153,10 @@ def test_retrieve_entity(): 'latest_verification_session': None, 'methods': [ 'element', + 'opal', 'sna', 'sms', 'byo_sms', - 'opal' ], }, }, @@ -218,8 +218,8 @@ def test_update_entity(): 'latest_verification_session': entities_update_response['verification']['identity']['latest_verification_session'], 'methods': [ 'element', + 'opal', 'kba', - 'opal' ], }, 'phone': { @@ -227,10 +227,10 @@ def test_update_entity(): 'latest_verification_session': entities_update_response['verification']['identity']['latest_verification_session'], 'methods': [ 'element', + 'opal', 'sna', 'sms', 'byo_sms', - 'opal' ], }, },