From a030d34cb0dcfa1e8230b57c5024472a066b9cf1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 07:47:26 +0000 Subject: [PATCH 1/2] feat(api): add event_type parameter to credits list_ledger method --- .stats.yml | 4 ++-- src/stigg/resources/v1/credits/credits.py | 8 ++++++++ src/stigg/types/v1/credit_list_ledger_params.py | 3 +++ tests/api_resources/v1/test_credits.py | 2 ++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f9c467a7..4d3f0511 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 115 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-004f4d054d9f20c476fa9b4379515da2751fcc616263bdf80ff12ba848c07e75.yml -openapi_spec_hash: 8b39afed2e12cc7b765a3dc368e4263c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-092e0212b2a8a75f1b2cd896ef37a8128ba10767402a54577e6363dfaca5da16.yml +openapi_spec_hash: 2b1d6d7765e3c45ebfdac89592b42f26 config_hash: 3d43e5c6ff8bf447a1b4c1922a13119f diff --git a/src/stigg/resources/v1/credits/credits.py b/src/stigg/resources/v1/credits/credits.py index 6fa54cc9..e24bf628 100644 --- a/src/stigg/resources/v1/credits/credits.py +++ b/src/stigg/resources/v1/credits/credits.py @@ -245,6 +245,7 @@ def list_ledger( after: str | Omit = omit, before: str | Omit = omit, currency_id: str | Omit = omit, + event_type: str | Omit = omit, limit: int | Omit = omit, resource_id: str | Omit = omit, x_account_id: str | Omit = omit, @@ -268,6 +269,8 @@ def list_ledger( currency_id: Filter by currency ID + event_type: Filter by event type(s), comma-separated + limit: Maximum number of items to return resource_id: Filter by resource ID @@ -303,6 +306,7 @@ def list_ledger( "after": after, "before": before, "currency_id": currency_id, + "event_type": event_type, "limit": limit, "resource_id": resource_id, }, @@ -506,6 +510,7 @@ def list_ledger( after: str | Omit = omit, before: str | Omit = omit, currency_id: str | Omit = omit, + event_type: str | Omit = omit, limit: int | Omit = omit, resource_id: str | Omit = omit, x_account_id: str | Omit = omit, @@ -529,6 +534,8 @@ def list_ledger( currency_id: Filter by currency ID + event_type: Filter by event type(s), comma-separated + limit: Maximum number of items to return resource_id: Filter by resource ID @@ -564,6 +571,7 @@ def list_ledger( "after": after, "before": before, "currency_id": currency_id, + "event_type": event_type, "limit": limit, "resource_id": resource_id, }, diff --git a/src/stigg/types/v1/credit_list_ledger_params.py b/src/stigg/types/v1/credit_list_ledger_params.py index 4a55b71b..5ab88fb7 100644 --- a/src/stigg/types/v1/credit_list_ledger_params.py +++ b/src/stigg/types/v1/credit_list_ledger_params.py @@ -22,6 +22,9 @@ class CreditListLedgerParams(TypedDict, total=False): currency_id: Annotated[str, PropertyInfo(alias="currencyId")] """Filter by currency ID""" + event_type: Annotated[str, PropertyInfo(alias="eventType")] + """Filter by event type(s), comma-separated""" + limit: int """Maximum number of items to return""" diff --git a/tests/api_resources/v1/test_credits.py b/tests/api_resources/v1/test_credits.py index 6a2f1408..51d90b07 100644 --- a/tests/api_resources/v1/test_credits.py +++ b/tests/api_resources/v1/test_credits.py @@ -140,6 +140,7 @@ def test_method_list_ledger_with_all_params(self, client: Stigg) -> None: after="after", before="before", currency_id="currencyId", + event_type="eventType", limit=1, resource_id="resourceId", x_account_id="X-ACCOUNT-ID", @@ -296,6 +297,7 @@ async def test_method_list_ledger_with_all_params(self, async_client: AsyncStigg after="after", before="before", currency_id="currencyId", + event_type="eventType", limit=1, resource_id="resourceId", x_account_id="X-ACCOUNT-ID", From 013d369bda694504d955ade0da68a0e31017d396 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 07:47:51 +0000 Subject: [PATCH 2/2] release: 0.1.0-beta.40 --- .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 3fecb0c4..fe045cce 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-beta.39" + ".": "0.1.0-beta.40" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index dc5d5882..91cbea94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-beta.40 (2026-07-21) + +Full Changelog: [v0.1.0-beta.39...v0.1.0-beta.40](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.39...v0.1.0-beta.40) + +### Features + +* **api:** add event_type parameter to credits list_ledger method ([a030d34](https://github.com/stiggio/stigg-python/commit/a030d34cb0dcfa1e8230b57c5024472a066b9cf1)) + ## 0.1.0-beta.39 (2026-07-18) Full Changelog: [v0.1.0-beta.38...v0.1.0-beta.39](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.38...v0.1.0-beta.39) diff --git a/pyproject.toml b/pyproject.toml index e4c76d9c..04613fbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stigg" -version = "0.1.0-beta.39" +version = "0.1.0-beta.40" 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 77378a80..18c2a5b7 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.39" # x-release-please-version +__version__ = "0.1.0-beta.40" # x-release-please-version