From 75dc52abfadac1b39b099e6783b986e3df030a83 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:30:33 +0000 Subject: [PATCH 1/3] fix(parsing): ignore empty metadata --- src/lithic/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lithic/_models.py b/src/lithic/_models.py index 528d5680..ffcbf67b 100644 --- a/src/lithic/_models.py +++ b/src/lithic/_models.py @@ -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:] From edebef58e9b8a88b5f978d54c36bddb959671b65 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:26:16 +0000 Subject: [PATCH 2/3] chore(docs): update Account Holder deprecation formatting --- .stats.yml | 4 ++-- src/lithic/types/account_holder.py | 22 ++++++++--------- ...der_simulate_enrollment_review_response.py | 24 +++++++++---------- .../types/account_holder_update_response.py | 24 +++++++++---------- 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.stats.yml b/.stats.yml index eb764367..fe0a0d51 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/src/lithic/types/account_holder.py b/src/lithic/types/account_holder.py index 0c2369d4..25bf9509 100644 --- a/src/lithic/types/account_holder.py +++ b/src/lithic/types/account_holder.py @@ -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 @@ -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 @@ -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) KYC and KYB evaluation states. @@ -313,9 +313,9 @@ class AccountHolder(BaseModel): ] ] ] = None - """ Reason for the evaluation status. + Reason for the evaluation status. """ user_type: Optional[Literal["BUSINESS", "INDIVIDUAL"]] = None diff --git a/src/lithic/types/account_holder_simulate_enrollment_review_response.py b/src/lithic/types/account_holder_simulate_enrollment_review_response.py index 3fd973b0..cdf84631 100644 --- a/src/lithic/types/account_holder_simulate_enrollment_review_response.py +++ b/src/lithic/types/account_holder_simulate_enrollment_review_response.py @@ -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 @@ -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 @@ -342,9 +342,9 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel): """ status: Optional[Literal["ACCEPTED", "PENDING_DOCUMENT", "PENDING_RESUBMIT", "REJECTED"]] = None - """ + """(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. @@ -380,9 +380,9 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel): ] ] ] = None - """ Reason for the evaluation status. + Use verification_application.status_reasons) Reason for the evaluation status. """ user_type: Optional[Literal["BUSINESS", "INDIVIDUAL"]] = None diff --git a/src/lithic/types/account_holder_update_response.py b/src/lithic/types/account_holder_update_response.py index 490c5b4f..e97edf3e 100644 --- a/src/lithic/types/account_holder_update_response.py +++ b/src/lithic/types/account_holder_update_response.py @@ -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 @@ -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 @@ -345,9 +345,9 @@ class KYBKYCPatchResponse(BaseModel): """ status: Optional[Literal["ACCEPTED", "PENDING_DOCUMENT", "PENDING_RESUBMIT", "REJECTED"]] = None - """ + """(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. @@ -383,9 +383,9 @@ class KYBKYCPatchResponse(BaseModel): ] ] ] = None - """ Reason for the evaluation status. + Use verification_application.status_reasons) Reason for the evaluation status. """ user_type: Optional[Literal["BUSINESS", "INDIVIDUAL"]] = None From 920669dddb556d0ced6f35b5e24a937a11516e68 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:26:45 +0000 Subject: [PATCH 3/3] release: 0.98.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/lithic/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a8124647..5056a444 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.98.0" + ".": "0.98.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 581e4178..aa01d9ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 7d41deb0..23e2be89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/lithic/_version.py b/src/lithic/_version.py index 7c8ff326..7bb73112 100644 --- a/src/lithic/_version.py +++ b/src/lithic/_version.py @@ -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