sdk generation for new routes

This commit is contained in:
John Yeo
2026-02-26 10:40:45 +00:00
parent 7accc8f913
commit 0011fb12b7
103 changed files with 15895 additions and 2288 deletions

View File

@@ -188,15 +188,19 @@ const plan = await autumn.plans.get({
</DynamicResponseField>
<DynamicResponseField name="tiers" type="object[]">
Tiered pricing configuration. Each tier's 'up_to' does NOT include the included amount. Either 'tiers' or 'amount' is required.
Tiered pricing configuration. Each tier's 'to' INCLUDES the included amount. Either 'tiers' or 'amount' is required.
<Expandable title="properties">
<DynamicResponseField name="to" type="number" />
<DynamicResponseField name="amount" type="number" />
<DynamicResponseField name="flat_amount" type="number | null" />
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="tier_behavior" type="'graduated' | 'volume'" />
<DynamicResponseField name="interval" type="'one_off' | 'week' | 'month' | 'quarter' | 'semi_annual' | 'year'">
Billing interval for this price. For consumable features, should match reset.interval.
</DynamicResponseField>
@@ -289,6 +293,19 @@ const plan = await autumn.plans.get({
If this is a variant, the ID of the base plan it was created from.
</DynamicResponseField>
<DynamicResponseField name="customer_eligibility" type="object">
<Expandable title="properties">
<DynamicResponseField name="trial_available" type="boolean">
Whether a free trial is available for this customer.
</DynamicResponseField>
<DynamicResponseField name="scenario" type="'scheduled' | 'active' | 'new' | 'renew' | 'upgrade' | 'downgrade' | 'cancel' | 'expired' | 'past_due'">
The attach scenario for this customer (e.g. new_subscription, upgrade, downgrade).
</DynamicResponseField>
</Expandable>
</DynamicResponseField>
<ResponseExample>
```json 200