From b78d53ff1b080b53eab870fed1879bfbf9e87b00 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Jun 2025 03:29:42 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/simulations/physical_cards.py | 12 ++++++++++-- src/increase/types/physical_card.py | 6 +++++- .../physical_card_advance_shipment_params.py | 6 +++++- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index c20d72427..8987be955 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2c62370ab61731722fddc5be1652ccfd9188ae052be44fae639b4a7920afc3b3.yml -openapi_spec_hash: aefdd344388757e80e1fea0ad0506be8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-28729916b00389bc7694a721eac0688ab5405bbc29b7df60708d6abaabd89c29.yml +openapi_spec_hash: e28396bf17aa29a4454a73b2e21ba852 config_hash: 97774f946585cecb19181a1817870d0b diff --git a/src/increase/resources/simulations/physical_cards.py b/src/increase/resources/simulations/physical_cards.py index 9dc12bce6..6a8cd98cd 100644 --- a/src/increase/resources/simulations/physical_cards.py +++ b/src/increase/resources/simulations/physical_cards.py @@ -49,7 +49,9 @@ def advance_shipment( self, physical_card_id: str, *, - shipment_status: Literal["pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned"], + shipment_status: Literal[ + "pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned", "requires_attention" + ], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -79,6 +81,8 @@ def advance_shipment( - `shipped` - The physical card has been shipped. - `returned` - The physical card shipment was returned to the sender and destroyed by the production facility. + - `requires_attention` - The physical card shipment requires attention from + Increase before progressing. extra_headers: Send extra headers @@ -208,7 +212,9 @@ async def advance_shipment( self, physical_card_id: str, *, - shipment_status: Literal["pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned"], + shipment_status: Literal[ + "pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned", "requires_attention" + ], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -238,6 +244,8 @@ async def advance_shipment( - `shipped` - The physical card has been shipped. - `returned` - The physical card shipment was returned to the sender and destroyed by the production facility. + - `requires_attention` - The physical card shipment requires attention from + Increase before progressing. extra_headers: Send extra headers diff --git a/src/increase/types/physical_card.py b/src/increase/types/physical_card.py index 4bf29fcdc..f7cde2203 100644 --- a/src/increase/types/physical_card.py +++ b/src/increase/types/physical_card.py @@ -106,7 +106,9 @@ class Shipment(BaseModel): - `fedex_2_day` - FedEx 2-day. """ - status: Literal["pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned"] + status: Literal[ + "pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned", "requires_attention" + ] """The status of this shipment. - `pending` - The physical card has not yet been shipped. @@ -120,6 +122,8 @@ class Shipment(BaseModel): - `shipped` - The physical card has been shipped. - `returned` - The physical card shipment was returned to the sender and destroyed by the production facility. + - `requires_attention` - The physical card shipment requires attention from + Increase before progressing. """ tracking: Optional[ShipmentTracking] = None diff --git a/src/increase/types/simulations/physical_card_advance_shipment_params.py b/src/increase/types/simulations/physical_card_advance_shipment_params.py index 8d3d45e5f..25c75bb80 100644 --- a/src/increase/types/simulations/physical_card_advance_shipment_params.py +++ b/src/increase/types/simulations/physical_card_advance_shipment_params.py @@ -9,7 +9,9 @@ class PhysicalCardAdvanceShipmentParams(TypedDict, total=False): shipment_status: Required[ - Literal["pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned"] + Literal[ + "pending", "canceled", "submitted", "acknowledged", "rejected", "shipped", "returned", "requires_attention" + ] ] """The shipment status to move the Physical Card to. @@ -24,4 +26,6 @@ class PhysicalCardAdvanceShipmentParams(TypedDict, total=False): - `shipped` - The physical card has been shipped. - `returned` - The physical card shipment was returned to the sender and destroyed by the production facility. + - `requires_attention` - The physical card shipment requires attention from + Increase before progressing. """ From 6dd711802d2913f544d62e16927df65d54b4358c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Jun 2025 03:30:02 +0000 Subject: [PATCH 2/2] release: 0.252.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 85234f042..b5ea4de57 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.251.1" + ".": "0.252.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 75c4c6458..0428e6ec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.252.0 (2025-06-13) + +Full Changelog: [v0.251.1...v0.252.0](https://github.com/Increase/increase-python/compare/v0.251.1...v0.252.0) + +### Features + +* **api:** api update ([b78d53f](https://github.com/Increase/increase-python/commit/b78d53ff1b080b53eab870fed1879bfbf9e87b00)) + ## 0.251.1 (2025-06-12) Full Changelog: [v0.251.0...v0.251.1](https://github.com/Increase/increase-python/compare/v0.251.0...v0.251.1) diff --git a/pyproject.toml b/pyproject.toml index 24d611201..52c017dd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.251.1" +version = "0.252.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 990d7148e..aa591b4c1 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.251.1" # x-release-please-version +__version__ = "0.252.0" # x-release-please-version