sdk generation for new routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user