From e560821d22ac5da29910c7a2a4a29fb757aad587 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:00:10 +0000 Subject: [PATCH 1/2] feat(api): add salesforce_id parameter to subscriptions update method --- .stats.yml | 4 ++-- src/stigg/resources/v1/subscriptions/subscriptions.py | 8 ++++++++ src/stigg/types/v1/subscription_update_params.py | 3 +++ tests/api_resources/v1/test_subscriptions.py | 2 ++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3a885183..7fd83720 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 110 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-e5d8a928bab8620da5d827d0d70f2b19d9f212ed8d9a120a8b03058969123927.yml -openapi_spec_hash: 81cd649a141057fd9e4b712a454d777e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-512ec51333e2e803d366c0aebea858913541a7ef0269a56f9371686feed26cd8.yml +openapi_spec_hash: 9b6d9f90c1aff0165ef7769f2311a1bd config_hash: 0eca08dde117ac62155a012abb0ecac7 diff --git a/src/stigg/resources/v1/subscriptions/subscriptions.py b/src/stigg/resources/v1/subscriptions/subscriptions.py index f799f644..0f6a64fe 100644 --- a/src/stigg/resources/v1/subscriptions/subscriptions.py +++ b/src/stigg/resources/v1/subscriptions/subscriptions.py @@ -162,6 +162,7 @@ def update( minimum_spend: Optional[subscription_update_params.MinimumSpend] | Omit = omit, price_overrides: Iterable[subscription_update_params.PriceOverride] | Omit = omit, promotion_code: str | Omit = omit, + salesforce_id: Optional[str] | Omit = omit, schedule_strategy: Literal["END_OF_BILLING_PERIOD", "END_OF_BILLING_MONTH", "IMMEDIATE"] | Omit = omit, trial_end_date: Union[str, datetime] | Omit = omit, x_account_id: str | Omit = omit, @@ -188,6 +189,8 @@ def update( promotion_code: Promotion code + salesforce_id: Salesforce ID + trial_end_date: Subscription trial end date extra_headers: Send extra headers @@ -227,6 +230,7 @@ def update( "minimum_spend": minimum_spend, "price_overrides": price_overrides, "promotion_code": promotion_code, + "salesforce_id": salesforce_id, "schedule_strategy": schedule_strategy, "trial_end_date": trial_end_date, }, @@ -961,6 +965,7 @@ async def update( minimum_spend: Optional[subscription_update_params.MinimumSpend] | Omit = omit, price_overrides: Iterable[subscription_update_params.PriceOverride] | Omit = omit, promotion_code: str | Omit = omit, + salesforce_id: Optional[str] | Omit = omit, schedule_strategy: Literal["END_OF_BILLING_PERIOD", "END_OF_BILLING_MONTH", "IMMEDIATE"] | Omit = omit, trial_end_date: Union[str, datetime] | Omit = omit, x_account_id: str | Omit = omit, @@ -987,6 +992,8 @@ async def update( promotion_code: Promotion code + salesforce_id: Salesforce ID + trial_end_date: Subscription trial end date extra_headers: Send extra headers @@ -1026,6 +1033,7 @@ async def update( "minimum_spend": minimum_spend, "price_overrides": price_overrides, "promotion_code": promotion_code, + "salesforce_id": salesforce_id, "schedule_strategy": schedule_strategy, "trial_end_date": trial_end_date, }, diff --git a/src/stigg/types/v1/subscription_update_params.py b/src/stigg/types/v1/subscription_update_params.py index 488bd6af..206ebcd2 100644 --- a/src/stigg/types/v1/subscription_update_params.py +++ b/src/stigg/types/v1/subscription_update_params.py @@ -66,6 +66,9 @@ class SubscriptionUpdateParams(TypedDict, total=False): promotion_code: Annotated[str, PropertyInfo(alias="promotionCode")] """Promotion code""" + salesforce_id: Annotated[Optional[str], PropertyInfo(alias="salesforceId")] + """Salesforce ID""" + schedule_strategy: Annotated[ Literal["END_OF_BILLING_PERIOD", "END_OF_BILLING_MONTH", "IMMEDIATE"], PropertyInfo(alias="scheduleStrategy") ] diff --git a/tests/api_resources/v1/test_subscriptions.py b/tests/api_resources/v1/test_subscriptions.py index 73db6b8b..6371fc2e 100644 --- a/tests/api_resources/v1/test_subscriptions.py +++ b/tests/api_resources/v1/test_subscriptions.py @@ -184,6 +184,7 @@ def test_method_update_with_all_params(self, client: Stigg) -> None: } ], promotion_code="promotionCode", + salesforce_id="salesforceId", schedule_strategy="END_OF_BILLING_PERIOD", trial_end_date=parse_datetime("2019-12-27T18:11:19.117Z"), x_account_id="X-ACCOUNT-ID", @@ -1059,6 +1060,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncStigg) -> } ], promotion_code="promotionCode", + salesforce_id="salesforceId", schedule_strategy="END_OF_BILLING_PERIOD", trial_end_date=parse_datetime("2019-12-27T18:11:19.117Z"), x_account_id="X-ACCOUNT-ID", From 21d7bc53a528e8c7847987e486ca24c8084ed62a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:00:38 +0000 Subject: [PATCH 2/2] release: 0.1.0-beta.26 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/stigg/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fa720fe5..eafd5663 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-beta.25" + ".": "0.1.0-beta.26" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1eb367c5..686a700a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-beta.26 (2026-06-22) + +Full Changelog: [v0.1.0-beta.25...v0.1.0-beta.26](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.25...v0.1.0-beta.26) + +### Features + +* **api:** add salesforce_id parameter to subscriptions update method ([e560821](https://github.com/stiggio/stigg-python/commit/e560821d22ac5da29910c7a2a4a29fb757aad587)) + ## 0.1.0-beta.25 (2026-06-22) Full Changelog: [v0.1.0-beta.24...v0.1.0-beta.25](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.24...v0.1.0-beta.25) diff --git a/pyproject.toml b/pyproject.toml index e1ed95a2..764c1638 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stigg" -version = "0.1.0-beta.25" +version = "0.1.0-beta.26" description = "The official Python library for the stigg API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/stigg/_version.py b/src/stigg/_version.py index 87ad48cb..397f388e 100644 --- a/src/stigg/_version.py +++ b/src/stigg/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "stigg" -__version__ = "0.1.0-beta.25" # x-release-please-version +__version__ = "0.1.0-beta.26" # x-release-please-version