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.266.0"
".": "0.267.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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 = "increase"
version = "0.266.0"
version = "0.267.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_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/increase/_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__ = "increase"
__version__ = "0.266.0" # x-release-please-version
__version__ = "0.267.0" # x-release-please-version
8 changes: 8 additions & 0 deletions src/increase/resources/event_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/increase/types/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/increase/types/event_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/increase/types/event_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/increase/types/event_subscription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down