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/Payments/Payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class PaymentCreateOpts(TypedDict):
description: str
metadata: Optional[Dict[str, Any]]
fee: Optional[PaymentFee]
dry_run: Optional[bool]


class PaymentListOpts(ResourceListOpts):
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.1.7',
version='1.1.8',
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: 2 additions & 1 deletion test/resources/Entity_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def test_update_entity():
def test_list_entities():
global entities_list_response
# list only those entities created in past hour, in the format of YYYY-MM-DD
entities_list_response = method.entities.list( {'from_date': (datetime.now() - timedelta(hours=1)).strftime('%Y-%m-%d')} )
from_date = (datetime.now() - timedelta(hours=1)).strftime('%Y-%m-%dT%H:%M:%S.000Z')
entities_list_response = method.entities.list({'from_date': from_date})
entities_list_response = [entity['id'] for entity in entities_list_response]

assert entities_create_response['id'] in entities_list_response
Expand Down
Loading