You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extend/resources/transactions.py
+27-9Lines changed: 27 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
fromtypingimportOptional, Dict
1
+
fromtypingimportOptional, Dict, Sequence, List
2
2
3
3
fromextend.clientimportAPIClient
4
4
from .resourceimportResource
@@ -19,13 +19,14 @@ async def get_transactions(
19
19
per_page: Optional[int] =None,
20
20
from_date: Optional[str] =None,
21
21
to_date: Optional[str] =None,
22
-
status: Optional[str] =None,
22
+
status: Optional[Sequence[str]] =None,
23
23
virtual_card_id: Optional[str] =None,
24
24
min_amount_cents: Optional[int] =None,
25
25
max_amount_cents: Optional[int] =None,
26
26
receipt_missing: Optional[bool] =None,
27
27
search_term: Optional[str] =None,
28
28
sort_field: Optional[str] =None,
29
+
missing_expense_categories: Optional[bool] =None,
29
30
) ->Dict:
30
31
"""Get a list of transactions with optional filtering and pagination.
31
32
@@ -34,7 +35,7 @@ async def get_transactions(
34
35
per_page (Optional[int]): Number of items per page
35
36
from_date (Optional[str]): Start date in YYYY-MM-DD format
36
37
to_date (Optional[str]): End date in YYYY-MM-DD format
37
-
status (Optional[str]): Filter transactions by status (e.g., "PENDING", "CLEARED", "DECLINED", "NO_MATCH", "AVS_PASS", "AVS_FAIL", "AUTH_REVERSAL")
38
+
status (Optional[Sequence[str]]): Filter transactions by one or more statuses (e.g., "PENDING", "CLEARED", "DECLINED", "NO_MATCH", "AVS_PASS", "AVS_FAIL", "AUTH_REVERSAL").
38
39
virtual_card_id (str): Filter by specific virtual card
39
40
min_amount_cents (int): Minimum clearing amount in cents
40
41
max_amount_cents (int): Maximum clearing amount in cents
@@ -43,6 +44,7 @@ async def get_transactions(
43
44
sort_field (Optional[str]): Field to sort by, with optional direction
44
45
Use "recipientName", "merchantName", "amount", "date" for ASC
45
46
Use "-recipientName", "-merchantName", "-amount", "-date" for DESC
47
+
missing_expense_categories (Optional[bool]): Filter transactions that are missing required expense categories
0 commit comments