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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
}
]
},
"originGitCommit": "786b643cc0bf17aff1114597108246b5cf8af395",
"sdkVersion": "1.2.4"
"originGitCommit": "c7ae462826a6e814bff92fd1ae9fc8c18b8359ba",
"sdkVersion": "1.2.5"
}
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "schematichq"
version = "1.2.4"
version = "1.2.5"
description = ""
readme = "README.md"
authors = []
Expand Down
86 changes: 86 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2749,6 +2749,7 @@ client.billing.list_billing_prices(
],
interval="interval",
is_active=True,
plan_version_id="plan_version_id",
price=1000000,
product_id="product_id",
product_ids=[
Expand Down Expand Up @@ -2825,6 +2826,14 @@ client.billing.list_billing_prices(
<dl>
<dd>

**plan_version_id:** `typing.Optional[str]` — Filter for prices belonging to a specific plan version (e.g. the latest published version)

</dd>
</dl>

<dl>
<dd>

**price:** `typing.Optional[int]`

</dd>
Expand Down Expand Up @@ -3206,6 +3215,7 @@ client.billing.list_billing_product_prices(
],
interval="interval",
is_active=True,
plan_version_id="plan_version_id",
price=1000000,
product_id="product_id",
product_ids=[
Expand Down Expand Up @@ -3282,6 +3292,14 @@ client.billing.list_billing_product_prices(
<dl>
<dd>

**plan_version_id:** `typing.Optional[str]` — Filter for prices belonging to a specific plan version (e.g. the latest published version)

</dd>
</dl>

<dl>
<dd>

**price:** `typing.Optional[int]`

</dd>
Expand Down Expand Up @@ -21771,6 +21789,74 @@ client.webhooks.delete_webhook(
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.webhooks.<a href="src/schematic/webhooks/client.py">send_test_webhook_action</a>(...) -> SendTestWebhookActionResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from schematic import Schematic
from schematic.environment import SchematicEnvironment

client = Schematic(
api_key="<value>",
environment=SchematicEnvironment.DEFAULT,
)

client.webhooks.send_test_webhook_action(
webhook_id="webhook_id",
request_type="subscription.trial.ended",
)

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**webhook_id:** `str` — webhook_id

</dd>
</dl>

<dl>
<dd>

**request_type:** `WebhookRequestType`

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down
9 changes: 9 additions & 0 deletions src/schematic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
CheckoutSettingsResponseData,
CheckoutSubscription,
ClerkIntegrationConfig,
CompanyCreditBalance,
CompanyCreditBalanceResponseData,
CompanyDetailResponseData,
CompanyEventPeriodMetricsResponseData,
Expand Down Expand Up @@ -353,6 +354,7 @@
SubscriptionType,
TemporaryAccessTokenResourceType,
TemporaryAccessTokenResponseData,
TestWebhookResponseData,
TimeSeriesGranularity,
TopFeatureByUsageResponseData,
TopFeaturesByUsageResponseData,
Expand Down Expand Up @@ -761,6 +763,7 @@
ListWebhookEventsResponse,
ListWebhooksParams,
ListWebhooksResponse,
SendTestWebhookActionResponse,
UpdateWebhookResponse,
)
_dynamic_imports: typing.Dict[str, str] = {
Expand Down Expand Up @@ -849,6 +852,7 @@
"CheckoutSettingsResponseData": ".types",
"CheckoutSubscription": ".types",
"ClerkIntegrationConfig": ".types",
"CompanyCreditBalance": ".types",
"CompanyCreditBalanceResponseData": ".types",
"CompanyDetailResponseData": ".types",
"CompanyEventPeriodMetricsResponseData": ".types",
Expand Down Expand Up @@ -1391,6 +1395,7 @@
"SchematicConfig": ".client",
"SchematicEnvironment": ".environment",
"SegmentStatusResp": ".types",
"SendTestWebhookActionResponse": ".webhooks",
"SkippedEntitlementErrorResponseData": ".types",
"SkippedEntitlementResponseData": ".types",
"SoftDeleteBillingCreditResponse": ".credits",
Expand All @@ -1403,6 +1408,7 @@
"SubscriptionType": ".types",
"TemporaryAccessTokenResourceType": ".types",
"TemporaryAccessTokenResponseData": ".types",
"TestWebhookResponseData": ".types",
"TimeSeriesGranularity": ".types",
"TopFeatureByUsageResponseData": ".types",
"TopFeaturesByUsageResponseData": ".types",
Expand Down Expand Up @@ -1610,6 +1616,7 @@ def __dir__():
"CheckoutSettingsResponseData",
"CheckoutSubscription",
"ClerkIntegrationConfig",
"CompanyCreditBalance",
"CompanyCreditBalanceResponseData",
"CompanyDetailResponseData",
"CompanyEventPeriodMetricsResponseData",
Expand Down Expand Up @@ -2152,6 +2159,7 @@ def __dir__():
"SchematicConfig",
"SchematicEnvironment",
"SegmentStatusResp",
"SendTestWebhookActionResponse",
"SkippedEntitlementErrorResponseData",
"SkippedEntitlementResponseData",
"SoftDeleteBillingCreditResponse",
Expand All @@ -2164,6 +2172,7 @@ def __dir__():
"SubscriptionType",
"TemporaryAccessTokenResourceType",
"TemporaryAccessTokenResponseData",
"TestWebhookResponseData",
"TimeSeriesGranularity",
"TopFeatureByUsageResponseData",
"TopFeaturesByUsageResponseData",
Expand Down
24 changes: 24 additions & 0 deletions src/schematic/billing/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ def list_billing_prices(
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
interval: typing.Optional[str] = None,
is_active: typing.Optional[bool] = None,
plan_version_id: typing.Optional[str] = None,
price: typing.Optional[int] = None,
product_id: typing.Optional[str] = None,
product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
Expand Down Expand Up @@ -823,6 +824,9 @@ def list_billing_prices(
is_active : typing.Optional[bool]
Filter for active prices on active products (defaults to true if not specified)

plan_version_id : typing.Optional[str]
Filter for prices belonging to a specific plan version (e.g. the latest published version)

price : typing.Optional[int]

product_id : typing.Optional[str]
Expand Down Expand Up @@ -868,6 +872,7 @@ def list_billing_prices(
ids=["ids"],
interval="interval",
is_active=True,
plan_version_id="plan_version_id",
price=1000000,
product_id="product_id",
product_ids=["product_ids"],
Expand All @@ -887,6 +892,7 @@ def list_billing_prices(
ids=ids,
interval=interval,
is_active=is_active,
plan_version_id=plan_version_id,
price=price,
product_id=product_id,
product_ids=product_ids,
Expand Down Expand Up @@ -1054,6 +1060,7 @@ def list_billing_product_prices(
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
interval: typing.Optional[str] = None,
is_active: typing.Optional[bool] = None,
plan_version_id: typing.Optional[str] = None,
price: typing.Optional[int] = None,
product_id: typing.Optional[str] = None,
product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
Expand Down Expand Up @@ -1085,6 +1092,9 @@ def list_billing_product_prices(
is_active : typing.Optional[bool]
Filter for active prices on active products (defaults to true if not specified)

plan_version_id : typing.Optional[str]
Filter for prices belonging to a specific plan version (e.g. the latest published version)

price : typing.Optional[int]

product_id : typing.Optional[str]
Expand Down Expand Up @@ -1130,6 +1140,7 @@ def list_billing_product_prices(
ids=["ids"],
interval="interval",
is_active=True,
plan_version_id="plan_version_id",
price=1000000,
product_id="product_id",
product_ids=["product_ids"],
Expand All @@ -1149,6 +1160,7 @@ def list_billing_product_prices(
ids=ids,
interval=interval,
is_active=is_active,
plan_version_id=plan_version_id,
price=price,
product_id=product_id,
product_ids=product_ids,
Expand Down Expand Up @@ -2451,6 +2463,7 @@ async def list_billing_prices(
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
interval: typing.Optional[str] = None,
is_active: typing.Optional[bool] = None,
plan_version_id: typing.Optional[str] = None,
price: typing.Optional[int] = None,
product_id: typing.Optional[str] = None,
product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
Expand Down Expand Up @@ -2482,6 +2495,9 @@ async def list_billing_prices(
is_active : typing.Optional[bool]
Filter for active prices on active products (defaults to true if not specified)

plan_version_id : typing.Optional[str]
Filter for prices belonging to a specific plan version (e.g. the latest published version)

price : typing.Optional[int]

product_id : typing.Optional[str]
Expand Down Expand Up @@ -2532,6 +2548,7 @@ async def main() -> None:
ids=["ids"],
interval="interval",
is_active=True,
plan_version_id="plan_version_id",
price=1000000,
product_id="product_id",
product_ids=["product_ids"],
Expand All @@ -2554,6 +2571,7 @@ async def main() -> None:
ids=ids,
interval=interval,
is_active=is_active,
plan_version_id=plan_version_id,
price=price,
product_id=product_id,
product_ids=product_ids,
Expand Down Expand Up @@ -2737,6 +2755,7 @@ async def list_billing_product_prices(
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
interval: typing.Optional[str] = None,
is_active: typing.Optional[bool] = None,
plan_version_id: typing.Optional[str] = None,
price: typing.Optional[int] = None,
product_id: typing.Optional[str] = None,
product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
Expand Down Expand Up @@ -2768,6 +2787,9 @@ async def list_billing_product_prices(
is_active : typing.Optional[bool]
Filter for active prices on active products (defaults to true if not specified)

plan_version_id : typing.Optional[str]
Filter for prices belonging to a specific plan version (e.g. the latest published version)

price : typing.Optional[int]

product_id : typing.Optional[str]
Expand Down Expand Up @@ -2818,6 +2840,7 @@ async def main() -> None:
ids=["ids"],
interval="interval",
is_active=True,
plan_version_id="plan_version_id",
price=1000000,
product_id="product_id",
product_ids=["product_ids"],
Expand All @@ -2840,6 +2863,7 @@ async def main() -> None:
ids=ids,
interval=interval,
is_active=is_active,
plan_version_id=plan_version_id,
price=price,
product_id=product_id,
product_ids=product_ids,
Expand Down
Loading
Loading