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.339.0"
".": "0.340.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: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e0a19c46b65842ff370613aac24ba8777d7b961bd46a20e936e878386e048852.yml
openapi_spec_hash: 0f635610cedd9a0aacc6d5b347c3cccf
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3e092c1a52f33e962b8415bfa24a244fdb66783aa093e027501124cb8658881b.yml
openapi_spec_hash: 677f23c2d65201b72074b3effb7d9ad4
config_hash: a143293c5450ae8f52acad08f3102575
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.340.0 (2025-09-24)

Full Changelog: [v0.339.0...v0.340.0](https://github.com/Increase/increase-python/compare/v0.339.0...v0.340.0)

### Features

* **api:** api update ([d5472f9](https://github.com/Increase/increase-python/commit/d5472f9b29ba86ec81338ca94dbb84d9f792bbc7))

## 0.339.0 (2025-09-24)

Full Changelog: [v0.338.0...v0.339.0](https://github.com/Increase/increase-python/compare/v0.338.0...v0.339.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.339.0"
version = "0.340.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/_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.339.0" # x-release-please-version
__version__ = "0.340.0" # x-release-please-version
16 changes: 16 additions & 0 deletions src/increase/resources/event_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def create(
]
| Omit = omit,
shared_secret: str | Omit = omit,
status: Literal["active", "disabled"] | Omit = omit,
# 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,
Expand Down Expand Up @@ -341,6 +342,12 @@ def create(
shared_secret: The key that will be used to sign webhooks. If no value is passed, a random
string will be used as default.

status: The status of the event subscription. Defaults to `active` if not specified.

- `active` - The subscription is active and Events will be delivered normally.
- `disabled` - The subscription is temporarily disabled and Events will not be
delivered.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -359,6 +366,7 @@ def create(
"oauth_connection_id": oauth_connection_id,
"selected_event_category": selected_event_category,
"shared_secret": shared_secret,
"status": status,
},
event_subscription_create_params.EventSubscriptionCreateParams,
),
Expand Down Expand Up @@ -652,6 +660,7 @@ async def create(
]
| Omit = omit,
shared_secret: str | Omit = omit,
status: Literal["active", "disabled"] | Omit = omit,
# 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,
Expand Down Expand Up @@ -836,6 +845,12 @@ async def create(
shared_secret: The key that will be used to sign webhooks. If no value is passed, a random
string will be used as default.

status: The status of the event subscription. Defaults to `active` if not specified.

- `active` - The subscription is active and Events will be delivered normally.
- `disabled` - The subscription is temporarily disabled and Events will not be
delivered.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -854,6 +869,7 @@ async def create(
"oauth_connection_id": oauth_connection_id,
"selected_event_category": selected_event_category,
"shared_secret": shared_secret,
"status": status,
},
event_subscription_create_params.EventSubscriptionCreateParams,
),
Expand Down
8 changes: 8 additions & 0 deletions src/increase/types/event_subscription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,11 @@ class EventSubscriptionCreateParams(TypedDict, total=False):

If no value is passed, a random string will be used as default.
"""

status: Literal["active", "disabled"]
"""The status of the event subscription. Defaults to `active` if not specified.

- `active` - The subscription is active and Events will be delivered normally.
- `disabled` - The subscription is temporarily disabled and Events will not be
delivered.
"""
2 changes: 2 additions & 0 deletions tests/api_resources/test_event_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
oauth_connection_id="x",
selected_event_category="account.created",
shared_secret="x",
status="active",
)
assert_matches_type(EventSubscription, event_subscription, path=["response"])

Expand Down Expand Up @@ -199,6 +200,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
oauth_connection_id="x",
selected_event_category="account.created",
shared_secret="x",
status="active",
)
assert_matches_type(EventSubscription, event_subscription, path=["response"])

Expand Down