Skip to content

Commit bdc219b

Browse files
feat(api): adds support for unpauseing external bank accounts
- adds support for CONDITIONAL_ACTION Auth Rule
1 parent 8135f6a commit bdc219b

29 files changed

+2467
-180
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 168
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-117e0ee9b030a2efc3b09e189e445fb1a26fd32f1c563f385b9d7071a959c550.yml
3-
openapi_spec_hash: e529a3fa8c3a79d3664db391683334c3
4-
config_hash: 22e4b128e110e2767daa9d95428ebf9d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
3+
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
4+
config_hash: ac676e77c8ca051c7aad978c26e96345

src/lithic/resources/account_activity.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Any, List, Union, cast
5+
from typing import Any, Union, cast
66
from datetime import datetime
77
from typing_extensions import Literal
88

@@ -69,9 +69,9 @@ def list(
6969
ending_before: str | NotGiven = NOT_GIVEN,
7070
financial_account_token: str | NotGiven = NOT_GIVEN,
7171
page_size: int | NotGiven = NOT_GIVEN,
72-
result: List[Literal["APPROVED", "DECLINED"]] | NotGiven = NOT_GIVEN,
72+
result: Literal["APPROVED", "DECLINED"] | NotGiven = NOT_GIVEN,
7373
starting_after: str | NotGiven = NOT_GIVEN,
74-
status: List[Literal["DECLINED", "EXPIRED", "PENDING", "SETTLED", "VOIDED", "RETURNED", "REVERSED"]]
74+
status: Literal["DECLINED", "EXPIRED", "PENDING", "RETURNED", "REVERSED", "SETTLED", "VOIDED"]
7575
| NotGiven = NOT_GIVEN,
7676
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7777
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -233,9 +233,9 @@ def list(
233233
ending_before: str | NotGiven = NOT_GIVEN,
234234
financial_account_token: str | NotGiven = NOT_GIVEN,
235235
page_size: int | NotGiven = NOT_GIVEN,
236-
result: List[Literal["APPROVED", "DECLINED"]] | NotGiven = NOT_GIVEN,
236+
result: Literal["APPROVED", "DECLINED"] | NotGiven = NOT_GIVEN,
237237
starting_after: str | NotGiven = NOT_GIVEN,
238-
status: List[Literal["DECLINED", "EXPIRED", "PENDING", "SETTLED", "VOIDED", "RETURNED", "REVERSED"]]
238+
status: Literal["DECLINED", "EXPIRED", "PENDING", "RETURNED", "REVERSED", "SETTLED", "VOIDED"]
239239
| NotGiven = NOT_GIVEN,
240240
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
241241
# The extra values given here take precedence over values defined on the client or passed to this method.

src/lithic/resources/auth_rules/v2/backtests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def create(
7373
endpoint.
7474
7575
Lithic currently supports backtesting for `CONDITIONAL_BLOCK` /
76-
`CONDITIONAL_3DS_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is
77-
generally not supported. In specific cases (i.e. where Lithic has pre-calculated
78-
the requested velocity metrics for historical transactions), a backtest may be
76+
`CONDITIONAL_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is generally
77+
not supported. In specific cases (i.e. where Lithic has pre-calculated the
78+
requested velocity metrics for historical transactions), a backtest may be
7979
feasible. However, such cases are uncommon and customers should not anticipate
8080
support for velocity backtests under most configurations. If a historical
8181
transaction does not feature the required inputs to evaluate the rule, then it
@@ -219,9 +219,9 @@ async def create(
219219
endpoint.
220220
221221
Lithic currently supports backtesting for `CONDITIONAL_BLOCK` /
222-
`CONDITIONAL_3DS_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is
223-
generally not supported. In specific cases (i.e. where Lithic has pre-calculated
224-
the requested velocity metrics for historical transactions), a backtest may be
222+
`CONDITIONAL_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is generally
223+
not supported. In specific cases (i.e. where Lithic has pre-calculated the
224+
requested velocity metrics for historical transactions), a backtest may be
225225
feasible. However, such cases are uncommon and customers should not anticipate
226226
support for velocity backtests under most configurations. If a historical
227227
transaction does not feature the required inputs to evaluate the rule, then it

src/lithic/resources/auth_rules/v2/v2.py

Lines changed: 173 additions & 45 deletions
Large diffs are not rendered by default.

src/lithic/resources/events/events.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def list(
127127
"digital_wallet.tokenization_updated",
128128
"dispute.updated",
129129
"dispute_evidence.upload_failed",
130+
"dispute_transaction.created",
131+
"dispute_transaction.updated",
130132
"external_bank_account.created",
131133
"external_bank_account.updated",
132134
"external_payment.created",
@@ -394,6 +396,8 @@ def list(
394396
"digital_wallet.tokenization_updated",
395397
"dispute.updated",
396398
"dispute_evidence.upload_failed",
399+
"dispute_transaction.created",
400+
"dispute_transaction.updated",
397401
"external_bank_account.created",
398402
"external_bank_account.updated",
399403
"external_payment.created",

src/lithic/resources/events/subscriptions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def create(
7979
"digital_wallet.tokenization_updated",
8080
"dispute.updated",
8181
"dispute_evidence.upload_failed",
82+
"dispute_transaction.created",
83+
"dispute_transaction.updated",
8284
"external_bank_account.created",
8385
"external_bank_account.updated",
8486
"external_payment.created",
@@ -216,6 +218,8 @@ def update(
216218
"digital_wallet.tokenization_updated",
217219
"dispute.updated",
218220
"dispute_evidence.upload_failed",
221+
"dispute_transaction.created",
222+
"dispute_transaction.updated",
219223
"external_bank_account.created",
220224
"external_bank_account.updated",
221225
"external_payment.created",
@@ -659,6 +663,8 @@ def send_simulated_example(
659663
"digital_wallet.tokenization_updated",
660664
"dispute.updated",
661665
"dispute_evidence.upload_failed",
666+
"dispute_transaction.created",
667+
"dispute_transaction.updated",
662668
"external_bank_account.created",
663669
"external_bank_account.updated",
664670
"external_payment.created",
@@ -772,6 +778,8 @@ async def create(
772778
"digital_wallet.tokenization_updated",
773779
"dispute.updated",
774780
"dispute_evidence.upload_failed",
781+
"dispute_transaction.created",
782+
"dispute_transaction.updated",
775783
"external_bank_account.created",
776784
"external_bank_account.updated",
777785
"external_payment.created",
@@ -909,6 +917,8 @@ async def update(
909917
"digital_wallet.tokenization_updated",
910918
"dispute.updated",
911919
"dispute_evidence.upload_failed",
920+
"dispute_transaction.created",
921+
"dispute_transaction.updated",
912922
"external_bank_account.created",
913923
"external_bank_account.updated",
914924
"external_payment.created",
@@ -1352,6 +1362,8 @@ async def send_simulated_example(
13521362
"digital_wallet.tokenization_updated",
13531363
"dispute.updated",
13541364
"dispute_evidence.upload_failed",
1365+
"dispute_transaction.created",
1366+
"dispute_transaction.updated",
13551367
"external_bank_account.created",
13561368
"external_bank_account.updated",
13571369
"external_payment.created",

src/lithic/types/account_activity_list_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Union
5+
from typing import Union
66
from datetime import datetime
77
from typing_extensions import Literal, Annotated, TypedDict
88

@@ -59,7 +59,7 @@ class AccountActivityListParams(TypedDict, total=False):
5959
page_size: int
6060
"""Page size (for pagination)."""
6161

62-
result: List[Literal["APPROVED", "DECLINED"]]
62+
result: Literal["APPROVED", "DECLINED"]
6363
"""Filter by transaction result"""
6464

6565
starting_after: str
@@ -69,5 +69,5 @@ class AccountActivityListParams(TypedDict, total=False):
6969
Used to retrieve the next page of results after this item.
7070
"""
7171

72-
status: List[Literal["DECLINED", "EXPIRED", "PENDING", "SETTLED", "VOIDED", "RETURNED", "REVERSED"]]
72+
status: Literal["DECLINED", "EXPIRED", "PENDING", "RETURNED", "REVERSED", "SETTLED", "VOIDED"]
7373
"""Filter by transaction status"""

src/lithic/types/auth_rules/v2_apply_params.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616

1717

1818
class ApplyAuthRuleRequestAccountTokens(TypedDict, total=False):
19-
account_tokens: Required[SequenceNotStr[str]]
19+
account_tokens: SequenceNotStr[str]
2020
"""Account tokens to which the Auth Rule applies."""
2121

22+
business_account_tokens: SequenceNotStr[str]
23+
"""Business Account tokens to which the Auth Rule applies."""
24+
2225

2326
class ApplyAuthRuleRequestCardTokens(TypedDict, total=False):
2427
card_tokens: Required[SequenceNotStr[str]]

0 commit comments

Comments
 (0)