Skip to content

Commit 276e85f

Browse files
chore(api): new 3DS Event and new challenge_metadata property on Authentications (#695)
- adds `three_ds_authentication.updated` Event - adds `challenge_metadata` to Authentications
1 parent ed972e1 commit 276e85f

12 files changed

+40
-6
lines changed

src/lithic/resources/events/events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def list(
130130
"settlement_report.updated",
131131
"statements.created",
132132
"three_ds_authentication.created",
133+
"three_ds_authentication.updated",
133134
"tokenization.approval_request",
134135
"tokenization.result",
135136
"tokenization.two_factor_authentication_code",
@@ -387,6 +388,7 @@ def list(
387388
"settlement_report.updated",
388389
"statements.created",
389390
"three_ds_authentication.created",
391+
"three_ds_authentication.updated",
390392
"tokenization.approval_request",
391393
"tokenization.result",
392394
"tokenization.two_factor_authentication_code",

src/lithic/resources/events/subscriptions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def create(
9797
"settlement_report.updated",
9898
"statements.created",
9999
"three_ds_authentication.created",
100+
"three_ds_authentication.updated",
100101
"tokenization.approval_request",
101102
"tokenization.result",
102103
"tokenization.two_factor_authentication_code",
@@ -228,6 +229,7 @@ def update(
228229
"settlement_report.updated",
229230
"statements.created",
230231
"three_ds_authentication.created",
232+
"three_ds_authentication.updated",
231233
"tokenization.approval_request",
232234
"tokenization.result",
233235
"tokenization.two_factor_authentication_code",
@@ -665,6 +667,7 @@ def send_simulated_example(
665667
"settlement_report.updated",
666668
"statements.created",
667669
"three_ds_authentication.created",
670+
"three_ds_authentication.updated",
668671
"tokenization.approval_request",
669672
"tokenization.result",
670673
"tokenization.two_factor_authentication_code",
@@ -772,6 +775,7 @@ async def create(
772775
"settlement_report.updated",
773776
"statements.created",
774777
"three_ds_authentication.created",
778+
"three_ds_authentication.updated",
775779
"tokenization.approval_request",
776780
"tokenization.result",
777781
"tokenization.two_factor_authentication_code",
@@ -903,6 +907,7 @@ async def update(
903907
"settlement_report.updated",
904908
"statements.created",
905909
"three_ds_authentication.created",
910+
"three_ds_authentication.updated",
906911
"tokenization.approval_request",
907912
"tokenization.result",
908913
"tokenization.two_factor_authentication_code",
@@ -1340,6 +1345,7 @@ async def send_simulated_example(
13401345
"settlement_report.updated",
13411346
"statements.created",
13421347
"three_ds_authentication.created",
1348+
"three_ds_authentication.updated",
13431349
"tokenization.approval_request",
13441350
"tokenization.result",
13451351
"tokenization.two_factor_authentication_code",

src/lithic/resources/external_bank_accounts/external_bank_accounts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def update(
408408
name: str | NotGiven = NOT_GIVEN,
409409
owner: str | NotGiven = NOT_GIVEN,
410410
owner_type: OwnerType | NotGiven = NOT_GIVEN,
411+
type: Literal["CHECKING", "SAVINGS"] | NotGiven = NOT_GIVEN,
411412
user_defined_id: str | NotGiven = NOT_GIVEN,
412413
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
413414
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -460,6 +461,7 @@ def update(
460461
"name": name,
461462
"owner": owner,
462463
"owner_type": owner_type,
464+
"type": type,
463465
"user_defined_id": user_defined_id,
464466
},
465467
external_bank_account_update_params.ExternalBankAccountUpdateParams,
@@ -975,6 +977,7 @@ async def update(
975977
name: str | NotGiven = NOT_GIVEN,
976978
owner: str | NotGiven = NOT_GIVEN,
977979
owner_type: OwnerType | NotGiven = NOT_GIVEN,
980+
type: Literal["CHECKING", "SAVINGS"] | NotGiven = NOT_GIVEN,
978981
user_defined_id: str | NotGiven = NOT_GIVEN,
979982
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
980983
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1027,6 +1030,7 @@ async def update(
10271030
"name": name,
10281031
"owner": owner,
10291032
"owner_type": owner_type,
1033+
"type": type,
10301034
"user_defined_id": user_defined_id,
10311035
},
10321036
external_bank_account_update_params.ExternalBankAccountUpdateParams,

src/lithic/types/event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class Event(BaseModel):
5454
"settlement_report.updated",
5555
"statements.created",
5656
"three_ds_authentication.created",
57+
"three_ds_authentication.updated",
5758
"tokenization.approval_request",
5859
"tokenization.result",
5960
"tokenization.two_factor_authentication_code",

src/lithic/types/event_list_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class EventListParams(TypedDict, total=False):
6666
"settlement_report.updated",
6767
"statements.created",
6868
"three_ds_authentication.created",
69+
"three_ds_authentication.updated",
6970
"tokenization.approval_request",
7071
"tokenization.result",
7172
"tokenization.two_factor_authentication_code",

src/lithic/types/event_subscription.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class EventSubscription(BaseModel):
5757
"settlement_report.updated",
5858
"statements.created",
5959
"three_ds_authentication.created",
60+
"three_ds_authentication.updated",
6061
"tokenization.approval_request",
6162
"tokenization.result",
6263
"tokenization.two_factor_authentication_code",

src/lithic/types/events/subscription_create_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class SubscriptionCreateParams(TypedDict, total=False):
5454
"settlement_report.updated",
5555
"statements.created",
5656
"three_ds_authentication.created",
57+
"three_ds_authentication.updated",
5758
"tokenization.approval_request",
5859
"tokenization.result",
5960
"tokenization.two_factor_authentication_code",

src/lithic/types/events/subscription_send_simulated_example_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class SubscriptionSendSimulatedExampleParams(TypedDict, total=False):
4343
"settlement_report.updated",
4444
"statements.created",
4545
"three_ds_authentication.created",
46+
"three_ds_authentication.updated",
4647
"tokenization.approval_request",
4748
"tokenization.result",
4849
"tokenization.two_factor_authentication_code",

src/lithic/types/events/subscription_update_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class SubscriptionUpdateParams(TypedDict, total=False):
5454
"settlement_report.updated",
5555
"statements.created",
5656
"three_ds_authentication.created",
57+
"three_ds_authentication.updated",
5758
"tokenization.approval_request",
5859
"tokenization.result",
5960
"tokenization.two_factor_authentication_code",

src/lithic/types/external_bank_account_update_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import Union
66
from datetime import date
7-
from typing_extensions import Annotated, TypedDict
7+
from typing_extensions import Literal, Annotated, TypedDict
88

99
from .._utils import PropertyInfo
1010
from .owner_type import OwnerType
@@ -38,6 +38,8 @@ class ExternalBankAccountUpdateParams(TypedDict, total=False):
3838
owner_type: OwnerType
3939
"""Owner Type"""
4040

41+
type: Literal["CHECKING", "SAVINGS"]
42+
4143
user_defined_id: str
4244
"""User Defined ID"""
4345

0 commit comments

Comments
 (0)