Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions method/resources/Accounts/CardBrands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions test/resources/Account_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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'],
Expand All @@ -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'],
Expand Down
14 changes: 10 additions & 4 deletions test/resources/Entity_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def test_create_entity():
'latest_verification_session': None,
'methods': [
'element',
'opal',
'kba',
],
},
Expand All @@ -86,9 +87,10 @@ def test_create_entity():
'latest_verification_session': None,
'methods': [
'element',
'opal',
'sna',
'sms',
'byo_sms'
'byo_sms',
],
},
},
Expand Down Expand Up @@ -142,17 +144,19 @@ def test_retrieve_entity():
'latest_verification_session': None,
'methods': [
'element',
'kba',
'opal',
'kba'
],
},
'phone': {
'verified': False,
'latest_verification_session': None,
'methods': [
'element',
'opal',
'sna',
'sms',
'byo_sms'
'byo_sms',
],
},
},
Expand Down Expand Up @@ -214,6 +218,7 @@ def test_update_entity():
'latest_verification_session': entities_update_response['verification']['identity']['latest_verification_session'],
'methods': [
'element',
'opal',
'kba',
],
},
Expand All @@ -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',
],
},
},
Expand Down