Skip to content

Commit 9de1795

Browse files
authored
Update resource status type definitions. (#1)
1 parent 94e8c2e commit 9de1795

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

method/resources/Account.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
]
2424

2525

26+
AccountStatusesLiterals = Literal[
27+
'active',
28+
'disabled'
29+
]
30+
31+
2632
class AccountACH(TypedDict):
2733
routing: int
2834
number: int
@@ -42,6 +48,7 @@ class AccountLiabilityCreateOpts(TypedDict):
4248
class Account(TypedDict):
4349
id: str
4450
holder_id: str
51+
status: AccountStatusesLiterals
4552
type: AccountTypesLiterals
4653
ach: Optional[AccountACH]
4754
liability: Optional[AccountLiability]

method/resources/Entity.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
EntityStatusesLiterals = Literal[
2626
'active',
2727
'incomplete',
28-
'pending',
29-
'blocked',
30-
'error'
28+
'disabled'
3129
]
3230

3331

method/resources/Payment.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
PaymentStatusesLiterals = Literal[
88
'pending',
9-
'sent',
109
'canceled',
11-
'returned',
12-
'error'
10+
'processing',
11+
'failed',
12+
'sent',
13+
'reversed'
1314
]
1415

1516

method/resources/Webhook.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
WebhookTypesLiterals = Literal[
88
'payment.create',
99
'payment.update',
10-
'account_verification.sent'
10+
'account.create',
11+
'account.update',
12+
'entity.update',
13+
'entity.create',
14+
'account_verification.create',
15+
'account_verification.update',
16+
'account_verification.sent',
17+
'account_verification.returned'
1118
]
1219

1320

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='method-python',
5-
version='0.0.11',
5+
version='0.0.12',
66
description='Python library for the Method API',
77
author='Marco del Carmen',
88
author_email='marco@mdelcarmen.me',

0 commit comments

Comments
 (0)