Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.98.0"
".": "0.98.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 166
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b9c76d077831114f1e4c5c15ff3f1d835ef3e9361b768af8468f8eb07a09ef3e.yml
openapi_spec_hash: 5f9bcf1afd68f962a870727c35628394
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-23922ce40b48fe48252246fb770033946ae5e49e73d90b30eb3415d9812e5947.yml
openapi_spec_hash: b2dd7289d19829df73b2d596576549f7
config_hash: e9a46eb8acb9dc2c236f3e1958a1c4dd
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.98.1 (2025-07-21)

Full Changelog: [v0.98.0...v0.98.1](https://github.com/lithic-com/lithic-python/compare/v0.98.0...v0.98.1)

### Bug Fixes

* **parsing:** ignore empty metadata ([75dc52a](https://github.com/lithic-com/lithic-python/commit/75dc52abfadac1b39b099e6783b986e3df030a83))


### Chores

* **docs:** update Account Holder deprecation formatting ([edebef5](https://github.com/lithic-com/lithic-python/commit/edebef58e9b8a88b5f978d54c36bddb959671b65))

## 0.98.0 (2025-07-18)

Full Changelog: [v0.97.2...v0.98.0](https://github.com/lithic-com/lithic-python/compare/v0.97.2...v0.98.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lithic"
version = "0.98.0"
version = "0.98.1"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def construct_type(*, value: object, type_: object, metadata: Optional[List[Any]
type_ = type_.__value__ # type: ignore[unreachable]

# unwrap `Annotated[T, ...]` -> `T`
if metadata is not None:
if metadata is not None and len(metadata) > 0:
meta: tuple[Any, ...] = tuple(metadata)
elif is_annotated_type(type_):
meta = get_args(type_)[1:]
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "lithic"
__version__ = "0.98.0" # x-release-please-version
__version__ = "0.98.1" # x-release-please-version
22 changes: 11 additions & 11 deletions src/lithic/types/account_holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ class AccountHolder(BaseModel):
"""

email: Optional[str] = None
"""
< Deprecated. Use control_person.email when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".
"""(Deprecated.

> Primary email of Account Holder.
Use control_person.email when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".) Primary email of
Account Holder.
"""

exemption_type: Optional[Literal["AUTHORIZED_USER", "PREPAID_CARD_USER"]] = None
Expand All @@ -273,11 +273,11 @@ class AccountHolder(BaseModel):
"""

phone_number: Optional[str] = None
"""
< Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".
"""(Deprecated.

> Primary phone of Account Holder, entered in E.164 format.
Use control_person.phone_number when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".) Primary phone of
Account Holder, entered in E.164 format.
"""

required_documents: Optional[List[RequiredDocument]] = None
Expand All @@ -287,7 +287,7 @@ class AccountHolder(BaseModel):
"""

status: Optional[Literal["ACCEPTED", "PENDING_REVIEW", "PENDING_DOCUMENT", "PENDING_RESUBMIT", "REJECTED"]] = None
"""<Deprecated. Use verification_application.status instead>
"""(Deprecated. Use verification_application.status instead)

KYC and KYB evaluation states.

Expand All @@ -313,9 +313,9 @@ class AccountHolder(BaseModel):
]
]
] = None
"""<Deprecated.
"""(Deprecated. Use verification_application.status_reasons)

Use verification_application.status_reasons> Reason for the evaluation status.
Reason for the evaluation status.
"""

user_type: Optional[Literal["BUSINESS", "INDIVIDUAL"]] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,11 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
"""Timestamp of when the account holder was created."""

email: Optional[str] = None
"""
< Deprecated. Use control_person.email when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".
"""(Deprecated.

> Primary email of Account Holder.
Use control_person.email when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".) Primary email of
Account Holder.
"""

exemption_type: Optional[Literal["AUTHORIZED_USER", "PREPAID_CARD_USER"]] = None
Expand Down Expand Up @@ -328,11 +328,11 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
"""

phone_number: Optional[str] = None
"""
< Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".
"""(Deprecated.

> Primary phone of Account Holder, entered in E.164 format.
Use control_person.phone_number when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".) Primary phone of
Account Holder, entered in E.164 format.
"""

required_documents: Optional[List[RequiredDocument]] = None
Expand All @@ -342,9 +342,9 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
"""

status: Optional[Literal["ACCEPTED", "PENDING_DOCUMENT", "PENDING_RESUBMIT", "REJECTED"]] = None
"""<Deprecated. Use verification_application.status instead>
"""(Deprecated.

KYC and KYB evaluation states.
Use verification_application.status instead) KYC and KYB evaluation states.

Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the
`ADVANCED` workflow.
Expand Down Expand Up @@ -380,9 +380,9 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
]
]
] = None
"""<Deprecated.
"""(Deprecated.

Use verification_application.status_reasons> Reason for the evaluation status.
Use verification_application.status_reasons) Reason for the evaluation status.
"""

user_type: Optional[Literal["BUSINESS", "INDIVIDUAL"]] = None
Expand Down
24 changes: 12 additions & 12 deletions src/lithic/types/account_holder_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ class KYBKYCPatchResponse(BaseModel):
"""Timestamp of when the account holder was created."""

email: Optional[str] = None
"""
< Deprecated. Use control_person.email when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".
"""(Deprecated.

> Primary email of Account Holder.
Use control_person.email when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".) Primary email of
Account Holder.
"""

exemption_type: Optional[Literal["AUTHORIZED_USER", "PREPAID_CARD_USER"]] = None
Expand Down Expand Up @@ -331,11 +331,11 @@ class KYBKYCPatchResponse(BaseModel):
"""

phone_number: Optional[str] = None
"""
< Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".
"""(Deprecated.

> Primary phone of Account Holder, entered in E.164 format.
Use control_person.phone_number when user_type == "BUSINESS". Use
individual.phone_number when user_type == "INDIVIDUAL".) Primary phone of
Account Holder, entered in E.164 format.
"""

required_documents: Optional[List[RequiredDocument]] = None
Expand All @@ -345,9 +345,9 @@ class KYBKYCPatchResponse(BaseModel):
"""

status: Optional[Literal["ACCEPTED", "PENDING_DOCUMENT", "PENDING_RESUBMIT", "REJECTED"]] = None
"""<Deprecated. Use verification_application.status instead>
"""(Deprecated.

KYC and KYB evaluation states.
Use verification_application.status instead) KYC and KYB evaluation states.

Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the
`ADVANCED` workflow.
Expand Down Expand Up @@ -383,9 +383,9 @@ class KYBKYCPatchResponse(BaseModel):
]
]
] = None
"""<Deprecated.
"""(Deprecated.

Use verification_application.status_reasons> Reason for the evaluation status.
Use verification_application.status_reasons) Reason for the evaluation status.
"""

user_type: Optional[Literal["BUSINESS", "INDIVIDUAL"]] = None
Expand Down