Skip to content

Commit baad6b3

Browse files
feat(api): Add card state attribute to tokenization rules
feat(api): Add event_type to ASA request and 3DS decisioning request feat(api): Add user defined status to ledger accounts feat(api): Expose Payment Allocation Details chore: update code formatting docs: Update language for Google Web Push Provisioning docs
1 parent 14b9d48 commit baad6b3

15 files changed

+99
-20
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 175
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-854de7cc8f79e150ffe98f038ce9f39367010b2bdfffc9992be2738697dc4880.yml
3-
openapi_spec_hash: fd471b20f3eda1e00cdebf028cbfe867
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-4ecc06edca2cfad4eaf11573611e89823fda5f56370bac5cd02a498a6b277d09.yml
3+
openapi_spec_hash: 8f4a30bec4348cbde85b1e65bef9189a
44
config_hash: 9dddee5f7af579864599849cb28a0770

api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ from lithic.types import (
822822
AccountHolderUpdatedWebhookEvent,
823823
AccountHolderVerificationWebhookEvent,
824824
AccountHolderDocumentUpdatedWebhookEvent,
825-
AsaRequestWebhookEvent,
825+
CardAuthorizationApprovalRequestWebhookEvent,
826826
TokenizationDecisioningRequestWebhookEvent,
827827
AuthRulesBacktestReportCreatedWebhookEvent,
828828
BalanceUpdatedWebhookEvent,
@@ -870,6 +870,7 @@ from lithic.types import (
870870
TokenizationTwoFactorAuthenticationCodeWebhookEvent,
871871
TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
872872
TokenizationUpdatedWebhookEvent,
873+
ThreeDSAuthenticationApprovalRequestWebhookEvent,
873874
DisputeTransactionCreatedWebhookEvent,
874875
DisputeTransactionUpdatedWebhookEvent,
875876
ParsedWebhookEvent,

src/lithic/resources/cards/cards.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ def web_provision(
11941194
) -> CardWebProvisionResponse:
11951195
"""
11961196
Allow your cardholders to directly add payment cards to the device's digital
1197-
wallet from a browser on the web. Currently only suported for Apple Pay.
1197+
wallet from a browser on the web.
11981198
11991199
This requires some additional setup and configuration. Please
12001200
[Contact Us](https://lithic.com/contact) or your Customer Success representative
@@ -2376,7 +2376,7 @@ async def web_provision(
23762376
) -> CardWebProvisionResponse:
23772377
"""
23782378
Allow your cardholders to directly add payment cards to the device's digital
2379-
wallet from a browser on the web. Currently only suported for Apple Pay.
2379+
wallet from a browser on the web.
23802380
23812381
This requires some additional setup and configuration. Please
23822382
[Contact Us](https://lithic.com/contact) or your Customer Success representative

src/lithic/resources/financial_accounts/financial_accounts.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def update_status(
320320
*,
321321
status: Literal["OPEN", "CLOSED", "SUSPENDED", "PENDING"],
322322
substatus: Optional[Literal["CHARGED_OFF_FRAUD", "END_USER_REQUEST", "BANK_REQUEST", "CHARGED_OFF_DELINQUENT"]],
323+
user_defined_status: str | Omit = omit,
323324
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
324325
# The extra values given here take precedence over values defined on the client or passed to this method.
325326
extra_headers: Headers | None = None,
@@ -335,6 +336,8 @@ def update_status(
335336
336337
substatus: Substatus for the financial account
337338
339+
user_defined_status: User-defined status for the financial account
340+
338341
extra_headers: Send extra headers
339342
340343
extra_query: Add additional query parameters to the request
@@ -353,6 +356,7 @@ def update_status(
353356
{
354357
"status": status,
355358
"substatus": substatus,
359+
"user_defined_status": user_defined_status,
356360
},
357361
financial_account_update_status_params.FinancialAccountUpdateStatusParams,
358362
),
@@ -618,6 +622,7 @@ async def update_status(
618622
*,
619623
status: Literal["OPEN", "CLOSED", "SUSPENDED", "PENDING"],
620624
substatus: Optional[Literal["CHARGED_OFF_FRAUD", "END_USER_REQUEST", "BANK_REQUEST", "CHARGED_OFF_DELINQUENT"]],
625+
user_defined_status: str | Omit = omit,
621626
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
622627
# The extra values given here take precedence over values defined on the client or passed to this method.
623628
extra_headers: Headers | None = None,
@@ -633,6 +638,8 @@ async def update_status(
633638
634639
substatus: Substatus for the financial account
635640
641+
user_defined_status: User-defined status for the financial account
642+
636643
extra_headers: Send extra headers
637644
638645
extra_query: Add additional query parameters to the request
@@ -651,6 +658,7 @@ async def update_status(
651658
{
652659
"status": status,
653660
"substatus": substatus,
661+
"user_defined_status": user_defined_status,
654662
},
655663
financial_account_update_status_params.FinancialAccountUpdateStatusParams,
656664
),

src/lithic/types/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
from .tokenization_list_params import TokenizationListParams as TokenizationListParams
9696
from .tokenization_rule_result import TokenizationRuleResult as TokenizationRuleResult
9797
from .transfer_limits_response import TransferLimitsResponse as TransferLimitsResponse
98-
from .asa_request_webhook_event import AsaRequestWebhookEvent as AsaRequestWebhookEvent
9998
from .book_transfer_list_params import BookTransferListParams as BookTransferListParams
10099
from .card_get_embed_url_params import CardGetEmbedURLParams as CardGetEmbedURLParams
101100
from .card_search_by_pan_params import CardSearchByPanParams as CardSearchByPanParams
@@ -334,6 +333,9 @@
334333
from .transaction_simulate_credit_authorization_params import (
335334
TransactionSimulateCreditAuthorizationParams as TransactionSimulateCreditAuthorizationParams,
336335
)
336+
from .card_authorization_approval_request_webhook_event import (
337+
CardAuthorizationApprovalRequestWebhookEvent as CardAuthorizationApprovalRequestWebhookEvent,
338+
)
337339
from .digital_wallet_tokenization_updated_webhook_event import (
338340
DigitalWalletTokenizationUpdatedWebhookEvent as DigitalWalletTokenizationUpdatedWebhookEvent,
339341
)
@@ -358,6 +360,9 @@
358360
from .card_transaction_enhanced_data_updated_webhook_event import (
359361
CardTransactionEnhancedDataUpdatedWebhookEvent as CardTransactionEnhancedDataUpdatedWebhookEvent,
360362
)
363+
from .three_ds_authentication_approval_request_webhook_event import (
364+
ThreeDSAuthenticationApprovalRequestWebhookEvent as ThreeDSAuthenticationApprovalRequestWebhookEvent,
365+
)
361366
from .transaction_simulate_credit_authorization_advice_params import (
362367
TransactionSimulateCreditAuthorizationAdviceParams as TransactionSimulateCreditAuthorizationAdviceParams,
363368
)

src/lithic/types/auth_rules/conditional_tokenization_action_parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class Condition(BaseModel):
8181
"WALLET_RECOMMENDATION_REASONS",
8282
"TOKEN_REQUESTOR_ID",
8383
"WALLET_TOKEN_STATUS",
84+
"CARD_STATE",
8485
]
8586
"""The attribute to target.
8687
@@ -114,6 +115,8 @@ class Condition(BaseModel):
114115
`TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
115116
- `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
116117
- `WALLET_TOKEN_STATUS`: The current status of the wallet token.
118+
- `CARD_STATE`: The state of the card being tokenized. Valid values are
119+
`CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`.
117120
"""
118121

119122
operation: ConditionalOperation

src/lithic/types/auth_rules/conditional_tokenization_action_parameters_param.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class Condition(TypedDict, total=False):
8080
"WALLET_RECOMMENDATION_REASONS",
8181
"TOKEN_REQUESTOR_ID",
8282
"WALLET_TOKEN_STATUS",
83+
"CARD_STATE",
8384
]
8485
]
8586
"""The attribute to target.
@@ -114,6 +115,8 @@ class Condition(TypedDict, total=False):
114115
`TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
115116
- `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
116117
- `WALLET_TOKEN_STATUS`: The current status of the wallet token.
118+
- `CARD_STATE`: The state of the card being tokenized. Valid values are
119+
`CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`.
117120
"""
118121

119122
operation: Required[ConditionalOperation]

src/lithic/types/asa_request_webhook_event.py renamed to src/lithic/types/card_authorization_approval_request_webhook_event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .cardholder_authentication import CardholderAuthentication
1111

1212
__all__ = [
13-
"AsaRequestWebhookEvent",
13+
"CardAuthorizationApprovalRequestWebhookEvent",
1414
"Avs",
1515
"Card",
1616
"FleetInfo",
@@ -293,9 +293,7 @@ class Pos(BaseModel):
293293
terminal: Optional[PosTerminal] = None
294294

295295

296-
class AsaRequestWebhookEvent(BaseModel):
297-
"""The Auth Stream Access request payload that was sent to the ASA responder."""
298-
296+
class CardAuthorizationApprovalRequestWebhookEvent(BaseModel):
299297
token: str
300298
"""The provisional transaction group uuid associated with the authorization"""
301299

@@ -340,6 +338,8 @@ class AsaRequestWebhookEvent(BaseModel):
340338
created: datetime
341339
"""Date and time when the transaction first occurred in UTC."""
342340

341+
event_type: Literal["card_authorization.approval_request"]
342+
343343
merchant: Merchant
344344

345345
merchant_amount: int

src/lithic/types/financial_account.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ class FinancialAccount(BaseModel):
4646
status: Literal["OPEN", "CLOSED", "SUSPENDED", "PENDING"]
4747
"""Status of the financial account"""
4848

49+
substatus: Optional[
50+
Literal["CHARGED_OFF_DELINQUENT", "CHARGED_OFF_FRAUD", "END_USER_REQUEST", "BANK_REQUEST", "DELINQUENT"]
51+
] = None
52+
"""Substatus for the financial account"""
53+
4954
type: Literal[
5055
"ISSUING",
5156
"RESERVE",
@@ -61,11 +66,9 @@ class FinancialAccount(BaseModel):
6166

6267
updated: datetime
6368

69+
user_defined_status: Optional[str] = None
70+
"""User-defined status for the financial account"""
71+
6472
account_number: Optional[str] = None
6573

6674
routing_number: Optional[str] = None
67-
68-
substatus: Optional[
69-
Literal["CHARGED_OFF_DELINQUENT", "CHARGED_OFF_FRAUD", "END_USER_REQUEST", "BANK_REQUEST", "DELINQUENT"]
70-
] = None
71-
"""Substatus for the financial account"""

src/lithic/types/financial_account_update_status_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ class FinancialAccountUpdateStatusParams(TypedDict, total=False):
1616
Optional[Literal["CHARGED_OFF_FRAUD", "END_USER_REQUEST", "BANK_REQUEST", "CHARGED_OFF_DELINQUENT"]]
1717
]
1818
"""Substatus for the financial account"""
19+
20+
user_defined_status: str
21+
"""User-defined status for the financial account"""

0 commit comments

Comments
 (0)