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 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', 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'], diff --git a/test/resources/Entity_test.py b/test/resources/Entity_test.py index c5aa41a..592c927 100644 --- a/test/resources/Entity_test.py +++ b/test/resources/Entity_test.py @@ -78,6 +78,7 @@ def test_create_entity(): 'latest_verification_session': None, 'methods': [ 'element', + 'opal', 'kba', ], }, @@ -86,9 +87,10 @@ def test_create_entity(): 'latest_verification_session': None, 'methods': [ 'element', + 'opal', 'sna', 'sms', - 'byo_sms' + 'byo_sms', ], }, }, @@ -142,7 +144,8 @@ def test_retrieve_entity(): 'latest_verification_session': None, 'methods': [ 'element', - 'kba', + 'opal', + 'kba' ], }, 'phone': { @@ -150,9 +153,10 @@ def test_retrieve_entity(): 'latest_verification_session': None, 'methods': [ 'element', + 'opal', 'sna', 'sms', - 'byo_sms' + 'byo_sms', ], }, }, @@ -214,6 +218,7 @@ def test_update_entity(): 'latest_verification_session': entities_update_response['verification']['identity']['latest_verification_session'], 'methods': [ 'element', + 'opal', 'kba', ], }, @@ -222,9 +227,10 @@ def test_update_entity(): 'latest_verification_session': entities_update_response['verification']['identity']['latest_verification_session'], 'methods': [ 'element', + 'opal', 'sna', 'sms', - 'byo_sms' + 'byo_sms', ], }, },