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.39"
".": "0.1.0-beta.40"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
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.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)
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.39"
version = "0.1.0-beta.40"
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.39" # x-release-please-version
__version__ = "0.1.0-beta.40" # x-release-please-version
8 changes: 8 additions & 0 deletions src/stigg/resources/v1/credits/credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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,
},
Expand Down
3 changes: 3 additions & 0 deletions src/stigg/types/v1/credit_list_ledger_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/v1/test_credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down