From 1e6d1998c4344fc7ba41ce97979c5228ce98962e 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:27:49 +0000 Subject: [PATCH 1/3] fix(parsing): ignore empty metadata --- src/increase/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/increase/_models.py b/src/increase/_models.py index 528d56803..ffcbf67bc 100644 --- a/src/increase/_models.py +++ b/src/increase/_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 c2ac1560ebe494810e80d3f040642952005988f3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 16:32:00 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/event_subscriptions.py | 8 ++++++++ src/increase/types/event.py | 4 ++++ src/increase/types/event_list_params.py | 2 ++ src/increase/types/event_subscription.py | 4 ++++ src/increase/types/event_subscription_create_params.py | 4 ++++ 6 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b26d90908..d843fc927 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7f26440e2137fb4f39521c361e76d56bad7c56d81cd06d0677d7735e73f7c160.yml -openapi_spec_hash: aa475d425f493e41eb8485ae17a3d0f9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2965cbcf43d274ee029249246f9e3760a82372b9120a033bd651cad24765a4fb.yml +openapi_spec_hash: ae42e357b1bedbf992105c2a37f1b544 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/src/increase/resources/event_subscriptions.py b/src/increase/resources/event_subscriptions.py index d3c66fb73..c99568526 100644 --- a/src/increase/resources/event_subscriptions.py +++ b/src/increase/resources/event_subscriptions.py @@ -128,6 +128,8 @@ def create( "physical_card.updated", "physical_card_profile.created", "physical_card_profile.updated", + "program.created", + "program.updated", "proof_of_authorization_request.created", "proof_of_authorization_request.updated", "real_time_decision.card_authorization_requested", @@ -284,6 +286,8 @@ def create( created. - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is updated. + - `program.created` - Occurs whenever a Program is created. + - `program.updated` - Occurs whenever a Program is updated. - `proof_of_authorization_request.created` - Occurs whenever a Proof of Authorization Request is created. - `proof_of_authorization_request.updated` - Occurs whenever a Proof of @@ -603,6 +607,8 @@ async def create( "physical_card.updated", "physical_card_profile.created", "physical_card_profile.updated", + "program.created", + "program.updated", "proof_of_authorization_request.created", "proof_of_authorization_request.updated", "real_time_decision.card_authorization_requested", @@ -759,6 +765,8 @@ async def create( created. - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is updated. + - `program.created` - Occurs whenever a Program is created. + - `program.updated` - Occurs whenever a Program is updated. - `proof_of_authorization_request.created` - Occurs whenever a Proof of Authorization Request is created. - `proof_of_authorization_request.updated` - Occurs whenever a Proof of diff --git a/src/increase/types/event.py b/src/increase/types/event.py index 53e290081..e83b425af 100644 --- a/src/increase/types/event.py +++ b/src/increase/types/event.py @@ -97,6 +97,8 @@ class Event(BaseModel): "physical_card.updated", "physical_card_profile.created", "physical_card_profile.updated", + "program.created", + "program.updated", "proof_of_authorization_request.created", "proof_of_authorization_request.updated", "real_time_decision.card_authorization_requested", @@ -236,6 +238,8 @@ class Event(BaseModel): created. - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is updated. + - `program.created` - Occurs whenever a Program is created. + - `program.updated` - Occurs whenever a Program is updated. - `proof_of_authorization_request.created` - Occurs whenever a Proof of Authorization Request is created. - `proof_of_authorization_request.updated` - Occurs whenever a Proof of diff --git a/src/increase/types/event_list_params.py b/src/increase/types/event_list_params.py index 1aa2d6f7e..2c9d7f5be 100644 --- a/src/increase/types/event_list_params.py +++ b/src/increase/types/event_list_params.py @@ -112,6 +112,8 @@ class EventListParams(TypedDict, total=False): "physical_card.updated", "physical_card_profile.created", "physical_card_profile.updated", + "program.created", + "program.updated", "proof_of_authorization_request.created", "proof_of_authorization_request.updated", "real_time_decision.card_authorization_requested", diff --git a/src/increase/types/event_subscription.py b/src/increase/types/event_subscription.py index f0c6da4d2..75ec1ff71 100644 --- a/src/increase/types/event_subscription.py +++ b/src/increase/types/event_subscription.py @@ -110,6 +110,8 @@ class EventSubscription(BaseModel): "physical_card.updated", "physical_card_profile.created", "physical_card_profile.updated", + "program.created", + "program.updated", "proof_of_authorization_request.created", "proof_of_authorization_request.updated", "real_time_decision.card_authorization_requested", @@ -249,6 +251,8 @@ class EventSubscription(BaseModel): created. - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is updated. + - `program.created` - Occurs whenever a Program is created. + - `program.updated` - Occurs whenever a Program is updated. - `proof_of_authorization_request.created` - Occurs whenever a Proof of Authorization Request is created. - `proof_of_authorization_request.updated` - Occurs whenever a Proof of diff --git a/src/increase/types/event_subscription_create_params.py b/src/increase/types/event_subscription_create_params.py index a7a47e161..9bc5d78fb 100644 --- a/src/increase/types/event_subscription_create_params.py +++ b/src/increase/types/event_subscription_create_params.py @@ -96,6 +96,8 @@ class EventSubscriptionCreateParams(TypedDict, total=False): "physical_card.updated", "physical_card_profile.created", "physical_card_profile.updated", + "program.created", + "program.updated", "proof_of_authorization_request.created", "proof_of_authorization_request.updated", "real_time_decision.card_authorization_requested", @@ -234,6 +236,8 @@ class EventSubscriptionCreateParams(TypedDict, total=False): created. - `physical_card_profile.updated` - Occurs whenever a Physical Card Profile is updated. + - `program.created` - Occurs whenever a Program is created. + - `program.updated` - Occurs whenever a Program is updated. - `proof_of_authorization_request.created` - Occurs whenever a Proof of Authorization Request is created. - `proof_of_authorization_request.updated` - Occurs whenever a Proof of From e2721dd7fa6a5096c017e3afe474c31ad4139f64 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 16:32:49 +0000 Subject: [PATCH 3/3] release: 0.267.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a587f67dd..75b3f25b4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.266.0" + ".": "0.267.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f2c486af..d23634af3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.267.0 (2025-07-21) + +Full Changelog: [v0.266.0...v0.267.0](https://github.com/Increase/increase-python/compare/v0.266.0...v0.267.0) + +### Features + +* **api:** api update ([c2ac156](https://github.com/Increase/increase-python/commit/c2ac1560ebe494810e80d3f040642952005988f3)) + + +### Bug Fixes + +* **parsing:** ignore empty metadata ([1e6d199](https://github.com/Increase/increase-python/commit/1e6d1998c4344fc7ba41ce97979c5228ce98962e)) + ## 0.266.0 (2025-07-18) Full Changelog: [v0.265.0...v0.266.0](https://github.com/Increase/increase-python/compare/v0.265.0...v0.266.0) diff --git a/pyproject.toml b/pyproject.toml index 60ab96bed..f990a6e5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.266.0" +version = "0.267.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_version.py b/src/increase/_version.py index 243a8bbe0..aef3497be 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.266.0" # x-release-please-version +__version__ = "0.267.0" # x-release-please-version