diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 34760ea6d..bd0a4378e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.317.0" + ".": "0.318.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 675fc1658..09d98d352 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 217 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a91424eba488276a87e396d4172d7381d22e9ff38639a98aafdbcc2f8b53d000.yml -openapi_spec_hash: 52c779ffbbb1e3a46738d374849ca92b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-98bb100223960756975a05c102fb497e2dba7857b02bec559ebc60d6c38d78e4.yml +openapi_spec_hash: b19fcec9237b7b3394002cfb662b391f config_hash: e1885b38eded054b77308a024c5d80cc diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e954d970..e2a18aa40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.318.0 (2025-09-07) + +Full Changelog: [v0.317.0...v0.318.0](https://github.com/Increase/increase-python/compare/v0.317.0...v0.318.0) + +### Features + +* **api:** api update ([c2c87f1](https://github.com/Increase/increase-python/commit/c2c87f13d0812d7bebb86434cb37dd74d9e4fe5e)) + ## 0.317.0 (2025-09-05) Full Changelog: [v0.316.0...v0.317.0](https://github.com/Increase/increase-python/compare/v0.316.0...v0.317.0) diff --git a/pyproject.toml b/pyproject.toml index 44561b6f4..ffcc4e157 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.317.0" +version = "0.318.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 227708d28..a495c89e4 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.317.0" # x-release-please-version +__version__ = "0.318.0" # x-release-please-version diff --git a/src/increase/resources/physical_card_profiles.py b/src/increase/resources/physical_card_profiles.py index 45e1720ae..bdb2092ef 100644 --- a/src/increase/resources/physical_card_profiles.py +++ b/src/increase/resources/physical_card_profiles.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing_extensions import Literal + import httpx from ..types import ( @@ -54,8 +56,10 @@ def create( description: str, front_image_file_id: str, program_id: str, + back_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, card_stock_reference: str | NotGiven = NOT_GIVEN, carrier_stock_reference: str | NotGiven = NOT_GIVEN, + front_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, front_text: physical_card_profile_create_params.FrontText | NotGiven = NOT_GIVEN, # 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. @@ -79,12 +83,22 @@ def create( program_id: The identifier for the Program that this Physical Card Profile falls under. + back_color: The color of the text on the back of the card. Defaults to "black". + + - `black` - Black personalization color. + - `white` - White personalization color. + card_stock_reference: A reference ID provided by the fulfillment provider for the card stock used. Only used if you've ordered card stock separately. carrier_stock_reference: A reference ID provided by the fulfillment provider for the carrier stock used. Only used if you've ordered carrier stock separately. + front_color: The color of the design on the front of the card. Defaults to "black". + + - `black` - Black personalization color. + - `white` - White personalization color. + front_text: Text printed on the front of the card. Reach out to [support@increase.com](mailto:support@increase.com) for more information. @@ -107,8 +121,10 @@ def create( "description": description, "front_image_file_id": front_image_file_id, "program_id": program_id, + "back_color": back_color, "card_stock_reference": card_stock_reference, "carrier_stock_reference": carrier_stock_reference, + "front_color": front_color, "front_text": front_text, }, physical_card_profile_create_params.PhysicalCardProfileCreateParams, @@ -364,8 +380,10 @@ async def create( description: str, front_image_file_id: str, program_id: str, + back_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, card_stock_reference: str | NotGiven = NOT_GIVEN, carrier_stock_reference: str | NotGiven = NOT_GIVEN, + front_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, front_text: physical_card_profile_create_params.FrontText | NotGiven = NOT_GIVEN, # 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. @@ -389,12 +407,22 @@ async def create( program_id: The identifier for the Program that this Physical Card Profile falls under. + back_color: The color of the text on the back of the card. Defaults to "black". + + - `black` - Black personalization color. + - `white` - White personalization color. + card_stock_reference: A reference ID provided by the fulfillment provider for the card stock used. Only used if you've ordered card stock separately. carrier_stock_reference: A reference ID provided by the fulfillment provider for the carrier stock used. Only used if you've ordered carrier stock separately. + front_color: The color of the design on the front of the card. Defaults to "black". + + - `black` - Black personalization color. + - `white` - White personalization color. + front_text: Text printed on the front of the card. Reach out to [support@increase.com](mailto:support@increase.com) for more information. @@ -417,8 +445,10 @@ async def create( "description": description, "front_image_file_id": front_image_file_id, "program_id": program_id, + "back_color": back_color, "card_stock_reference": card_stock_reference, "carrier_stock_reference": carrier_stock_reference, + "front_color": front_color, "front_text": front_text, }, physical_card_profile_create_params.PhysicalCardProfileCreateParams, diff --git a/src/increase/types/physical_card_profile_create_params.py b/src/increase/types/physical_card_profile_create_params.py index 1b854d0b1..96af44dd6 100644 --- a/src/increase/types/physical_card_profile_create_params.py +++ b/src/increase/types/physical_card_profile_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Literal, Required, TypedDict __all__ = ["PhysicalCardProfileCreateParams", "FrontText"] @@ -23,6 +23,13 @@ class PhysicalCardProfileCreateParams(TypedDict, total=False): program_id: Required[str] """The identifier for the Program that this Physical Card Profile falls under.""" + back_color: Literal["black", "white"] + """The color of the text on the back of the card. Defaults to "black". + + - `black` - Black personalization color. + - `white` - White personalization color. + """ + card_stock_reference: str """A reference ID provided by the fulfillment provider for the card stock used. @@ -35,6 +42,13 @@ class PhysicalCardProfileCreateParams(TypedDict, total=False): Only used if you've ordered carrier stock separately. """ + front_color: Literal["black", "white"] + """The color of the design on the front of the card. Defaults to "black". + + - `black` - Black personalization color. + - `white` - White personalization color. + """ + front_text: FrontText """Text printed on the front of the card. diff --git a/tests/api_resources/test_physical_card_profiles.py b/tests/api_resources/test_physical_card_profiles.py index b2b51e9e1..147fa8509 100644 --- a/tests/api_resources/test_physical_card_profiles.py +++ b/tests/api_resources/test_physical_card_profiles.py @@ -39,8 +39,10 @@ def test_method_create_with_all_params(self, client: Increase) -> None: description="My Card Profile", front_image_file_id="file_o6aex13wm1jcc36sgcj1", program_id="program_i2v2os4mwza1oetokh9i", + back_color="black", card_stock_reference="x", carrier_stock_reference="x", + front_color="black", front_text={ "line1": "x", "line2": "x", @@ -276,8 +278,10 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) description="My Card Profile", front_image_file_id="file_o6aex13wm1jcc36sgcj1", program_id="program_i2v2os4mwza1oetokh9i", + back_color="black", card_stock_reference="x", carrier_stock_reference="x", + front_color="black", front_text={ "line1": "x", "line2": "x",