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.1.0-beta.25"
".": "0.1.0-beta.26"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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 = "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"
Expand Down
2 changes: 1 addition & 1 deletion src/stigg/_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__ = "stigg"
__version__ = "0.1.0-beta.25" # x-release-please-version
__version__ = "0.1.0-beta.26" # x-release-please-version
8 changes: 8 additions & 0 deletions src/stigg/resources/v1/subscriptions/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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,
},
Expand Down
3 changes: 3 additions & 0 deletions src/stigg/types/v1/subscription_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
]
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/v1/test_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down