Skip to content

Commit 91e8f04

Browse files
fix(api): [breaking] unify webhook schemas for digital_wallet.tokenization_approval_request webhooks
1 parent eb7730f commit 91e8f04

36 files changed

Lines changed: 95 additions & 727 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 189
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-d67717d651ba08e30f82e42f4468cfb46f87470f970ae1e19a7c0dc16c275a87.yml
3-
openapi_spec_hash: 969a03848267a110e83a696547b7f2a8
4-
config_hash: 2e69ca9699ec18d9d7337604821d3091
1+
configured_endpoints: 188
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c37843d1525e87f47a292bf11a6fdcc277157556da21c923cc1b4a4473147ef0.yml
3+
openapi_spec_hash: 29a8c4637c8a00339aa0095a929a6096
4+
config_hash: 8799cfd589579f105ef8696a6d664c71

api.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ Types:
9696
from lithic.types.auth_rules import (
9797
AuthRule,
9898
AuthRuleCondition,
99-
AuthRuleVersion,
10099
BacktestStats,
101100
Conditional3DSActionParameters,
102101
ConditionalACHActionParameters,
@@ -115,7 +114,6 @@ from lithic.types.auth_rules import (
115114
VelocityLimitParams,
116115
VelocityLimitPeriod,
117116
V2ListResultsResponse,
118-
V2ListVersionsResponse,
119117
V2RetrieveFeaturesResponse,
120118
V2RetrieveReportResponse,
121119
)
@@ -130,7 +128,6 @@ Methods:
130128
- <code title="delete /v2/auth_rules/{auth_rule_token}">client.auth_rules.v2.<a href="./src/lithic/resources/auth_rules/v2/v2.py">delete</a>(auth_rule_token) -> None</code>
131129
- <code title="post /v2/auth_rules/{auth_rule_token}/draft">client.auth_rules.v2.<a href="./src/lithic/resources/auth_rules/v2/v2.py">draft</a>(auth_rule_token, \*\*<a href="src/lithic/types/auth_rules/v2_draft_params.py">params</a>) -> <a href="./src/lithic/types/auth_rules/auth_rule.py">AuthRule</a></code>
132130
- <code title="get /v2/auth_rules/results">client.auth_rules.v2.<a href="./src/lithic/resources/auth_rules/v2/v2.py">list_results</a>(\*\*<a href="src/lithic/types/auth_rules/v2_list_results_params.py">params</a>) -> <a href="./src/lithic/types/auth_rules/v2_list_results_response.py">SyncCursorPage[V2ListResultsResponse]</a></code>
133-
- <code title="get /v2/auth_rules/{auth_rule_token}/versions">client.auth_rules.v2.<a href="./src/lithic/resources/auth_rules/v2/v2.py">list_versions</a>(auth_rule_token) -> <a href="./src/lithic/types/auth_rules/v2_list_versions_response.py">V2ListVersionsResponse</a></code>
134131
- <code title="post /v2/auth_rules/{auth_rule_token}/promote">client.auth_rules.v2.<a href="./src/lithic/resources/auth_rules/v2/v2.py">promote</a>(auth_rule_token) -> <a href="./src/lithic/types/auth_rules/auth_rule.py">AuthRule</a></code>
135132
- <code title="get /v2/auth_rules/{auth_rule_token}/features">client.auth_rules.v2.<a href="./src/lithic/resources/auth_rules/v2/v2.py">retrieve_features</a>(auth_rule_token, \*\*<a href="src/lithic/types/auth_rules/v2_retrieve_features_params.py">params</a>) -> <a href="./src/lithic/types/auth_rules/v2_retrieve_features_response.py">V2RetrieveFeaturesResponse</a></code>
136133
- <code title="get /v2/auth_rules/{auth_rule_token}/report">client.auth_rules.v2.<a href="./src/lithic/resources/auth_rules/v2/v2.py">retrieve_report</a>(auth_rule_token, \*\*<a href="src/lithic/types/auth_rules/v2_retrieve_report_params.py">params</a>) -> <a href="./src/lithic/types/auth_rules/v2_retrieve_report_response.py">V2RetrieveReportResponse</a></code>
@@ -888,7 +885,6 @@ from lithic.types import (
888885
AccountHolderVerificationWebhookEvent,
889886
AccountHolderDocumentUpdatedWebhookEvent,
890887
CardAuthorizationApprovalRequestWebhookEvent,
891-
TokenizationDecisioningRequestWebhookEvent,
892888
AuthRulesBacktestReportCreatedWebhookEvent,
893889
BalanceUpdatedWebhookEvent,
894890
BookTransferTransactionCreatedWebhookEvent,

src/lithic/resources/account_activity.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def list(
5151
business_account_token: str | Omit = omit,
5252
category: Literal[
5353
"ACH",
54-
"WIRE",
5554
"BALANCE_OR_FUNDING",
5655
"FEE",
5756
"REWARD",
@@ -223,7 +222,6 @@ def list(
223222
business_account_token: str | Omit = omit,
224223
category: Literal[
225224
"ACH",
226-
"WIRE",
227225
"BALANCE_OR_FUNDING",
228226
"FEE",
229227
"REWARD",

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

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from ....types.auth_rules.auth_rule import AuthRule
3838
from ....types.auth_rules.event_stream import EventStream
3939
from ....types.auth_rules.v2_list_results_response import V2ListResultsResponse
40-
from ....types.auth_rules.v2_list_versions_response import V2ListVersionsResponse
4140
from ....types.auth_rules.v2_retrieve_report_response import V2RetrieveReportResponse
4241
from ....types.auth_rules.v2_retrieve_features_response import V2RetrieveFeaturesResponse
4342

@@ -739,40 +738,6 @@ def list_results(
739738
model=cast(Any, V2ListResultsResponse), # Union types cannot be passed in as arguments in the type system
740739
)
741740

742-
def list_versions(
743-
self,
744-
auth_rule_token: str,
745-
*,
746-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
747-
# The extra values given here take precedence over values defined on the client or passed to this method.
748-
extra_headers: Headers | None = None,
749-
extra_query: Query | None = None,
750-
extra_body: Body | None = None,
751-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
752-
) -> V2ListVersionsResponse:
753-
"""
754-
Returns all versions of an auth rule, sorted by version number descending
755-
(newest first).
756-
757-
Args:
758-
extra_headers: Send extra headers
759-
760-
extra_query: Add additional query parameters to the request
761-
762-
extra_body: Add additional JSON properties to the request
763-
764-
timeout: Override the client-level default timeout for this request, in seconds
765-
"""
766-
if not auth_rule_token:
767-
raise ValueError(f"Expected a non-empty value for `auth_rule_token` but received {auth_rule_token!r}")
768-
return self._get(
769-
f"/v2/auth_rules/{auth_rule_token}/versions",
770-
options=make_request_options(
771-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
772-
),
773-
cast_to=V2ListVersionsResponse,
774-
)
775-
776741
def promote(
777742
self,
778743
auth_rule_token: str,
@@ -1617,40 +1582,6 @@ def list_results(
16171582
model=cast(Any, V2ListResultsResponse), # Union types cannot be passed in as arguments in the type system
16181583
)
16191584

1620-
async def list_versions(
1621-
self,
1622-
auth_rule_token: str,
1623-
*,
1624-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1625-
# The extra values given here take precedence over values defined on the client or passed to this method.
1626-
extra_headers: Headers | None = None,
1627-
extra_query: Query | None = None,
1628-
extra_body: Body | None = None,
1629-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
1630-
) -> V2ListVersionsResponse:
1631-
"""
1632-
Returns all versions of an auth rule, sorted by version number descending
1633-
(newest first).
1634-
1635-
Args:
1636-
extra_headers: Send extra headers
1637-
1638-
extra_query: Add additional query parameters to the request
1639-
1640-
extra_body: Add additional JSON properties to the request
1641-
1642-
timeout: Override the client-level default timeout for this request, in seconds
1643-
"""
1644-
if not auth_rule_token:
1645-
raise ValueError(f"Expected a non-empty value for `auth_rule_token` but received {auth_rule_token!r}")
1646-
return await self._get(
1647-
f"/v2/auth_rules/{auth_rule_token}/versions",
1648-
options=make_request_options(
1649-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1650-
),
1651-
cast_to=V2ListVersionsResponse,
1652-
)
1653-
16541585
async def promote(
16551586
self,
16561587
auth_rule_token: str,
@@ -1825,9 +1756,6 @@ def __init__(self, v2: V2) -> None:
18251756
self.list_results = _legacy_response.to_raw_response_wrapper(
18261757
v2.list_results,
18271758
)
1828-
self.list_versions = _legacy_response.to_raw_response_wrapper(
1829-
v2.list_versions,
1830-
)
18311759
self.promote = _legacy_response.to_raw_response_wrapper(
18321760
v2.promote,
18331761
)
@@ -1868,9 +1796,6 @@ def __init__(self, v2: AsyncV2) -> None:
18681796
self.list_results = _legacy_response.async_to_raw_response_wrapper(
18691797
v2.list_results,
18701798
)
1871-
self.list_versions = _legacy_response.async_to_raw_response_wrapper(
1872-
v2.list_versions,
1873-
)
18741799
self.promote = _legacy_response.async_to_raw_response_wrapper(
18751800
v2.promote,
18761801
)
@@ -1911,9 +1836,6 @@ def __init__(self, v2: V2) -> None:
19111836
self.list_results = to_streamed_response_wrapper(
19121837
v2.list_results,
19131838
)
1914-
self.list_versions = to_streamed_response_wrapper(
1915-
v2.list_versions,
1916-
)
19171839
self.promote = to_streamed_response_wrapper(
19181840
v2.promote,
19191841
)
@@ -1954,9 +1876,6 @@ def __init__(self, v2: AsyncV2) -> None:
19541876
self.list_results = async_to_streamed_response_wrapper(
19551877
v2.list_results,
19561878
)
1957-
self.list_versions = async_to_streamed_response_wrapper(
1958-
v2.list_versions,
1959-
)
19601879
self.promote = async_to_streamed_response_wrapper(
19611880
v2.promote,
19621881
)

0 commit comments

Comments
 (0)