fix: imports

This commit is contained in:
John Yeo
2026-02-18 18:46:19 +00:00
parent 740181dd89
commit 1aecdaced2
281 changed files with 1884 additions and 2447 deletions

View File

@@ -1 +0,0 @@
../../.agents/skills/mintlify

View File

@@ -50,8 +50,6 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<DynamicResponseField name="balance" type="object | null">
<Expandable title="properties">
<DynamicResponseField name="object" type="any" />
<DynamicResponseField name="feature_id" type="string" />
<DynamicResponseField name="feature" type="object">
@@ -105,8 +103,6 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<DynamicResponseField name="breakdown" type="object[]">
<Expandable title="properties">
<DynamicResponseField name="object" type="any" />
<DynamicResponseField name="id" type="string" />
<DynamicResponseField name="plan_id" type="string | null" />

View File

@@ -56,8 +56,6 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<DynamicResponseField name="balance" type="object | null">
<Expandable title="properties">
<DynamicResponseField name="object" type="any" />
<DynamicResponseField name="feature_id" type="string" />
<DynamicResponseField name="feature" type="object">
@@ -111,8 +109,6 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<DynamicResponseField name="breakdown" type="object[]">
<Expandable title="properties">
<DynamicResponseField name="object" type="any" />
<DynamicResponseField name="id" type="string" />
<DynamicResponseField name="plan_id" type="string | null" />

View File

@@ -29,7 +29,9 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicParamField>
<DynamicParamField body="version" type="number" />
<DynamicParamField body="version" type="number">
The version of the plan to attach.
</DynamicParamField>
<DynamicParamField body="free_trial" type="object | null">
<Expandable title="properties">
@@ -43,6 +45,7 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</DynamicParamField>
<DynamicParamField body="customize" type="object">
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
<Expandable title="properties">
<DynamicParamField body="price" type="object | null">
<Expandable title="properties">
@@ -130,9 +133,9 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<Expandable title="properties">
<DynamicParamField body="enabled" type="boolean" required />
<DynamicParamField body="enable_product_immediately" type="boolean" />
<DynamicParamField body="enable_plan_immediately" type="boolean" />
<DynamicParamField body="finalize_invoice" type="boolean" />
<DynamicParamField body="finalize" type="boolean" />
</Expandable>
</DynamicParamField>

View File

@@ -29,7 +29,9 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicParamField>
<DynamicParamField body="version" type="number" />
<DynamicParamField body="version" type="number">
The version of the plan to attach.
</DynamicParamField>
<DynamicParamField body="free_trial" type="object | null">
<Expandable title="properties">
@@ -43,6 +45,7 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</DynamicParamField>
<DynamicParamField body="customize" type="object">
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
<Expandable title="properties">
<DynamicParamField body="price" type="object | null">
<Expandable title="properties">
@@ -130,9 +133,9 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<Expandable title="properties">
<DynamicParamField body="enabled" type="boolean" required />
<DynamicParamField body="enable_product_immediately" type="boolean" />
<DynamicParamField body="enable_plan_immediately" type="boolean" />
<DynamicParamField body="finalize_invoice" type="boolean" />
<DynamicParamField body="finalize" type="boolean" />
</Expandable>
</DynamicParamField>
@@ -175,14 +178,12 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="total_quantity" type="number" />
<DynamicResponseField name="paid_quantity" type="number" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="deferred_for_trial" type="boolean" />
<DynamicResponseField name="effective_period" type="object">
@@ -194,6 +195,8 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
</Expandable>
</DynamicResponseField>
@@ -205,15 +208,6 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<DynamicResponseField name="period_end" type="number" />
<DynamicResponseField name="credit" type="object">
<Expandable title="properties">
<DynamicResponseField name="amount" type="number" />
<DynamicResponseField name="description" type="string" />
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="next_cycle" type="object">
<Expandable title="properties">
<DynamicResponseField name="starts_at" type="number" />
@@ -241,14 +235,12 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="total_quantity" type="number" />
<DynamicResponseField name="paid_quantity" type="number" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="deferred_for_trial" type="boolean" />
<DynamicResponseField name="effective_period" type="object">
@@ -260,6 +252,8 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
</Expandable>
</DynamicResponseField>

View File

@@ -29,7 +29,9 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicParamField>
<DynamicParamField body="version" type="number" />
<DynamicParamField body="version" type="number">
The version of the plan to attach.
</DynamicParamField>
<DynamicParamField body="free_trial" type="object | null">
<Expandable title="properties">
@@ -43,6 +45,7 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</DynamicParamField>
<DynamicParamField body="customize" type="object">
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
<Expandable title="properties">
<DynamicParamField body="price" type="object | null">
<Expandable title="properties">
@@ -124,15 +127,15 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicParamField>
<DynamicParamField body="plan_id" type="string | null" />
<DynamicParamField body="plan_id" type="string" />
<DynamicParamField body="invoice_mode" type="object">
<Expandable title="properties">
<DynamicParamField body="enabled" type="boolean" required />
<DynamicParamField body="enable_product_immediately" type="boolean" />
<DynamicParamField body="enable_plan_immediately" type="boolean" />
<DynamicParamField body="finalize_invoice" type="boolean" />
<DynamicParamField body="finalize" type="boolean" />
</Expandable>
</DynamicParamField>
@@ -167,14 +170,12 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="total_quantity" type="number" />
<DynamicResponseField name="paid_quantity" type="number" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="deferred_for_trial" type="boolean" />
<DynamicResponseField name="effective_period" type="object">
@@ -186,6 +187,8 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
</Expandable>
</DynamicResponseField>
@@ -197,15 +200,6 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
<DynamicResponseField name="period_end" type="number" />
<DynamicResponseField name="credit" type="object">
<Expandable title="properties">
<DynamicResponseField name="amount" type="number" />
<DynamicResponseField name="description" type="string" />
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="next_cycle" type="object">
<Expandable title="properties">
<DynamicResponseField name="starts_at" type="number" />
@@ -233,14 +227,12 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="total_quantity" type="number" />
<DynamicResponseField name="paid_quantity" type="number" />
<DynamicResponseField name="plan_id" type="string" />
<DynamicResponseField name="deferred_for_trial" type="boolean" />
<DynamicResponseField name="effective_period" type="object">
@@ -252,6 +244,8 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicResponseField>
<DynamicResponseField name="is_base" type="boolean" />
</Expandable>
</DynamicResponseField>

View File

@@ -29,7 +29,9 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicParamField>
<DynamicParamField body="version" type="number" />
<DynamicParamField body="version" type="number">
The version of the plan to attach.
</DynamicParamField>
<DynamicParamField body="free_trial" type="object | null">
<Expandable title="properties">
@@ -43,6 +45,7 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</DynamicParamField>
<DynamicParamField body="customize" type="object">
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
<Expandable title="properties">
<DynamicParamField body="price" type="object | null">
<Expandable title="properties">
@@ -124,15 +127,15 @@ import { DynamicResponseExample } from "/components/dynamic-response-example.jsx
</Expandable>
</DynamicParamField>
<DynamicParamField body="plan_id" type="string | null" />
<DynamicParamField body="plan_id" type="string" />
<DynamicParamField body="invoice_mode" type="object">
<Expandable title="properties">
<DynamicParamField body="enabled" type="boolean" required />
<DynamicParamField body="enable_product_immediately" type="boolean" />
<DynamicParamField body="enable_plan_immediately" type="boolean" />
<DynamicParamField body="finalize_invoice" type="boolean" />
<DynamicParamField body="finalize" type="boolean" />
</Expandable>
</DynamicParamField>

View File

@@ -198,8 +198,6 @@ components:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -275,8 +273,6 @@ components:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -361,7 +357,6 @@ components:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -384,7 +379,6 @@ components:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1246,8 +1240,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1323,8 +1315,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1408,7 +1398,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1431,7 +1420,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1696,8 +1684,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1773,8 +1759,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1859,7 +1843,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1882,7 +1865,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -2113,6 +2095,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2259,6 +2242,8 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2266,10 +2251,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2442,6 +2427,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2588,6 +2574,8 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2595,10 +2583,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2677,14 +2665,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2697,13 +2683,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -2712,16 +2700,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -2756,14 +2734,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2776,13 +2752,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -2813,8 +2791,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -2890,8 +2866,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -2975,7 +2949,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -2998,7 +2971,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -3041,8 +3013,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -3118,8 +3088,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -3203,7 +3171,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -3226,7 +3193,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -3333,6 +3299,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3479,19 +3446,19 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3633,6 +3600,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3779,19 +3747,19 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3844,14 +3812,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3864,13 +3830,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -3879,16 +3847,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -3923,14 +3881,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3943,13 +3899,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -4326,8 +4284,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4403,8 +4359,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4489,7 +4443,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4512,7 +4465,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -4958,8 +4910,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -5035,8 +4985,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -5121,7 +5069,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -5144,7 +5091,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -5161,8 +5107,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -5238,8 +5182,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -5324,7 +5266,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -5347,7 +5288,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining

View File

@@ -8,8 +8,8 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
type={type}
data-slot="input"
className={cn(
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-7 w-full min-w-0 rounded border bg-transparent px-2 py-0.5 text-sm shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-5 file:border-0 file:bg-transparent file:text-xs file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[2px]",
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-7 w-full min-w-0 rounded border border-zinc-200 bg-transparent px-2 py-0.5 text-sm shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-5 file:border-0 file:bg-transparent file:text-xs file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
"focus:outline-none focus-visible:border-zinc-400 focus-visible:ring-zinc-300/50 focus-visible:ring-[2px]",
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
className,
)}

View File

@@ -127,6 +127,7 @@
"nodemon": "^3.1.10",
"react-dom": "^19.1.0",
"stripe": "^18.3.0",
"tsgo": "catalog:",
"tsup": "^8.4.0",
"tsx": "^4.19.3",
"typescript": "^5.8.3",
@@ -159,6 +160,7 @@
"devDependencies": {
"@types/bun": "latest",
"@types/node": "^24.0.3",
"tsgo": "catalog:",
},
"peerDependencies": {
"zod": "^3.25.23",
@@ -166,7 +168,7 @@
},
"packages/sdk": {
"name": "@useautumn/sdk",
"version": "0.8.25",
"version": "0.8.26",
"dependencies": {
"zod": "^3.25.65 || ^4.0.0",
},
@@ -464,6 +466,7 @@
"drizzle-kit": "^0.31.1",
"drizzle-orm": "0.43.1",
"stripe": "19.3.0-beta.1",
"tsgo": "npm:@typescript/native-preview@7.0.0-dev.20260218.1",
},
"packages": {
"@ai-sdk/anthropic": ["@ai-sdk/anthropic@3.0.44", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@ai-sdk/provider-utils": "4.0.15" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-ke1NldgohWJ7sWLqm9Um9TVIOrtg8Y8AecWeB6PgaLt+paTPisAsyNfe8FNOVusuv58ugLBqY/78AkhUmbjXHA=="],
@@ -2112,21 +2115,21 @@
"@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.55.0", "", { "dependencies": { "@typescript-eslint/types": "8.55.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-AxNRwEie8Nn4eFS1FzDMJWIISMGoXMb037sgCBJ3UR6o0fQTzr2tqN9WT+DkWJPhIdQCfV7T6D387566VtnCJA=="],
"@typescript/native-preview": ["@typescript/native-preview@7.0.0-dev.20260216.1", "", { "optionalDependencies": { "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260216.1", "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260216.1", "@typescript/native-preview-linux-arm": "7.0.0-dev.20260216.1", "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260216.1", "@typescript/native-preview-linux-x64": "7.0.0-dev.20260216.1", "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260216.1", "@typescript/native-preview-win32-x64": "7.0.0-dev.20260216.1" }, "bin": { "tsgo": "bin/tsgo.js" } }, "sha512-Vhffqcro1Q3w1zRgZ0E1C5JOB+8CtwKjSsszYfpGkt0qvRtOBO227AcnQe1sEiX+VLZW3Iw1VGVMhc8hNhpRZw=="],
"@typescript/native-preview": ["@typescript/native-preview@7.0.0-dev.20260218.1", "", { "optionalDependencies": { "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260218.1", "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260218.1", "@typescript/native-preview-linux-arm": "7.0.0-dev.20260218.1", "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260218.1", "@typescript/native-preview-linux-x64": "7.0.0-dev.20260218.1", "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260218.1", "@typescript/native-preview-win32-x64": "7.0.0-dev.20260218.1" }, "bin": { "tsgo": "bin/tsgo.js" } }, "sha512-hbGRXBk7abFvOQJk/7mc8K9q1kPkiyziyUsS8r8Hc1sLxrDFUbGgsW9p8qg67Xe1K6NUv/9UU2cdeIitUDexIQ=="],
"@typescript/native-preview-darwin-arm64": ["@typescript/native-preview-darwin-arm64@7.0.0-dev.20260216.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ZcxlhZ4Scm1LFKeGXo7V+B4H1Mb27/uVBO1o7d060jRIpGRuCOxsELo7jgUY8UhhTXtSpLECHsmAj8EyERSi9w=="],
"@typescript/native-preview-darwin-arm64": ["@typescript/native-preview-darwin-arm64@7.0.0-dev.20260218.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ybxez4ClJU12TUvX/IxGPIQfS26+Zia7kbB1L4RH+G8yzYg90RPt4njfJkU2WxP70Hp59zS2copPkaBz5gUJkQ=="],
"@typescript/native-preview-darwin-x64": ["@typescript/native-preview-darwin-x64@7.0.0-dev.20260216.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-hY+hondi5/2m0rNSIgRkOfmA6FIx+KKnjPd9R6hHHumQu00XXoYA/xcIq3SyV1sXtowkhN+hR3ZUp1y3Orb84A=="],
"@typescript/native-preview-darwin-x64": ["@typescript/native-preview-darwin-x64@7.0.0-dev.20260218.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-n9Ki8WTW82w6PlBTlrAQAjEUQB2V7C2oXrkN5U7ElwUH4FOostSFzZHuAdnPMbdzMx76P0pEw9FteYrLDA4m9g=="],
"@typescript/native-preview-linux-arm": ["@typescript/native-preview-linux-arm@7.0.0-dev.20260216.1", "", { "os": "linux", "cpu": "arm" }, "sha512-Q+HBF1rlwpV1Nh2AESwte0lEHNPYVvbRLPQzTrorvx3gvXdRzfO9tHa6JL8Y1BO2KmSZBKmT7U+0188icTPBSg=="],
"@typescript/native-preview-linux-arm": ["@typescript/native-preview-linux-arm@7.0.0-dev.20260218.1", "", { "os": "linux", "cpu": "arm" }, "sha512-WRPMvTztPatQ91UzYWSp82NT45JmjMgo/pVgZjXYEWdF2rwS4ejzR6DnHq30jXhEPnMah1bTeOzSWFF2kvXUmg=="],
"@typescript/native-preview-linux-arm64": ["@typescript/native-preview-linux-arm64@7.0.0-dev.20260216.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-L+3CgBVAjpYnWgulmTWOTp7IdbLjgOzLpppr2597i79KE5MV7UyC73UCdvK3GtAl1Huiss0HsWVBBEYRkLQsfw=="],
"@typescript/native-preview-linux-arm64": ["@typescript/native-preview-linux-arm64@7.0.0-dev.20260218.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-Osus82LSlwi1l3LoxLWKDuxh5E8JyWwkseBjr2n+TMaTuDPcRSzT8Jr4ywIp3NJpCUUV/LzR84i64jA6g8iVIw=="],
"@typescript/native-preview-linux-x64": ["@typescript/native-preview-linux-x64@7.0.0-dev.20260216.1", "", { "os": "linux", "cpu": "x64" }, "sha512-qIaQFRL2s+fi3zbS0+fCgR1Nk7fXMnbLW7wsFpcwn3fpEYuMdiQY9pwE8SvJsw2M78xZlXL5L9l5CL8ti0cNZQ=="],
"@typescript/native-preview-linux-x64": ["@typescript/native-preview-linux-x64@7.0.0-dev.20260218.1", "", { "os": "linux", "cpu": "x64" }, "sha512-jcDhKCvhWQyMbra4MiqSgyUoSdM9mAiSkIdc80qScpk03aZOU+BZEmHz51S+fEn+8KRWuMuIHXM3sG3oX/EJZA=="],
"@typescript/native-preview-win32-arm64": ["@typescript/native-preview-win32-arm64@7.0.0-dev.20260216.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-Yu7OLyMng9A2GA0vlZ8WZuqAnI+WM55UaY1UwA03TJdcljk/AcEzb/99fEq5g0kPg3k2wwHiyMrCGxxu99+gXQ=="],
"@typescript/native-preview-win32-arm64": ["@typescript/native-preview-win32-arm64@7.0.0-dev.20260218.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-VmWvJ+TEuTPmZrhWe+buvvUvHbMyiD4ZLgxYPdYcJ3kRQlk2mD5lOq63ZISx1pDB8kYz5/R5xYKy/8gSIU5MgQ=="],
"@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20260216.1", "", { "os": "win32", "cpu": "x64" }, "sha512-Lc+E1UNGKioOtKHUm1CLFO3W2PFWdLpJ6j2uB52RH0zhb63p4CEGCsuDH36QvgsXLibviExeNUF5Dum0rNKT9g=="],
"@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20260218.1", "", { "os": "win32", "cpu": "x64" }, "sha512-9zfUrKV3xBog2tpIR9NZOags+QJZSj7v9Ek7KdSkVu978IJqF9RX7oa2xftX+eiHySfV5ZQ8r2fdhdbYBk+kMw=="],
"@typescript/vfs": ["@typescript/vfs@1.6.3", "", { "dependencies": { "debug": "^4.1.1" }, "peerDependencies": { "typescript": "*" } }, "sha512-8Qs6/Tj2B8Uyo4lYJkopdCtrsfpF/ZlbTXK13Nq6JKN+Ih8FF9Oxg97gEp+zIS96wmkMdWUIETl35Yt9BITeiw=="],
@@ -4496,6 +4499,8 @@
"tsconfig-paths": ["tsconfig-paths@4.2.0", "", { "dependencies": { "json5": "^2.2.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg=="],
"tsgo": ["@typescript/native-preview@7.0.0-dev.20260218.1", "", { "optionalDependencies": { "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260218.1", "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260218.1", "@typescript/native-preview-linux-arm": "7.0.0-dev.20260218.1", "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260218.1", "@typescript/native-preview-linux-x64": "7.0.0-dev.20260218.1", "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260218.1", "@typescript/native-preview-win32-x64": "7.0.0-dev.20260218.1" }, "bin": { "tsgo": "bin/tsgo.js" } }, "sha512-hbGRXBk7abFvOQJk/7mc8K9q1kPkiyziyUsS8r8Hc1sLxrDFUbGgsW9p8qg67Xe1K6NUv/9UU2cdeIitUDexIQ=="],
"tshy": ["tshy@2.0.1", "", { "dependencies": { "chalk": "^5.3.0", "chokidar": "^3.6.0", "foreground-child": "^3.1.1", "minimatch": "^9.0.4", "mkdirp": "^3.0.1", "polite-json": "^5.0.0", "resolve-import": "^1.4.5", "rimraf": "^5.0.1", "sync-content": "^1.0.2", "typescript": "5", "walk-up-path": "^3.0.1" }, "bin": { "tshy": "dist/esm/index.js" } }, "sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA=="],
"tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],

View File

@@ -1,16 +1,16 @@
lockVersion: 2.0.0
id: 05940b80-1ef8-40f4-9878-822fb2792070
management:
docChecksum: f3a09ba77181e589c11b4fb1c60c2d8d
docChecksum: ae28cba9f4a31ec39633cc683b159eab
docVersion: 2.1.0
speakeasyVersion: 1.719.0
generationVersion: 2.824.1
releaseVersion: 0.2.21
configChecksum: 98bfda50427c6359ae4dee8ebeab6610
releaseVersion: 0.2.22
configChecksum: 05fe4cc58f958fa21b320a1cbb0ec4d8
persistentEdits:
generation_id: a0e2a2b7-7048-43dd-843d-a9ba47081d57
pristine_commit_hash: 14f6dae62d081b42d7611555da2b561200f38fd0
pristine_tree_hash: ac63345d483323e30fef57683de70dcc69f8d36c
generation_id: b8deb3e6-4376-4384-8fb8-d3742769316e
pristine_commit_hash: d81074b2463a2168ca16d2be775f9316dbcec5f0
pristine_tree_hash: b9f1e436d46ef67a51ccebe4176695d899ea2658
features:
python:
additionalDependencies: 1.0.0
@@ -49,12 +49,12 @@ trackedFiles:
pristine_git_object: d96fd08db8799cf32fd7d9fd6398e2741963a46d
docs/models/balances.md:
id: 2f042cf3d0aa
last_write_checksum: sha1:244b54593114321470ba9ff928c5b1c969b10691
pristine_git_object: 6dce2aacb5b4bdfe969d3153b5cc0a6313543078
last_write_checksum: sha1:5a7d31f7d88c3d6ca511e0ddd363a00aafd64921
pristine_git_object: dc522d990cda516e7fc7baa3cb5b6deffb27d23a
docs/models/balancescheckbalance.md:
id: 67cd143f2f2c
last_write_checksum: sha1:df9c09e8a018685989140c6287e5c43a1a95c58d
pristine_git_object: 7241a7ba90a3e1db602fd9afadef9249f5a5f013
last_write_checksum: sha1:d3428c3665ae643c3402bc4d489e66b58aee813b
pristine_git_object: 198922a7dbe47148c3d770bcd53a7b9c17b7f85b
docs/models/balancescheckbalancedisplay.md:
id: 9ccc33ac3d73
last_write_checksum: sha1:d5af38baace3f228c58c408599a57b4ca63a7f14
@@ -81,8 +81,8 @@ trackedFiles:
pristine_git_object: cacafefc749025661cd968f0ece01036198141fe
docs/models/balancescheckbreakdown.md:
id: b356123ea305
last_write_checksum: sha1:0b401274b8f93aab81b006d5a079b47c5dac5d46
pristine_git_object: e1112190b5f98c2d53383da1a30ce5e6fd9ca11a
last_write_checksum: sha1:19e00e3ae547b991bbcd4960c4ad32e83d40c6bc
pristine_git_object: 02feead42724bc5419411c2395f4e0558da731c4
docs/models/balancescheckcreditschema.md:
id: 2a3aac12bb13
last_write_checksum: sha1:42af6e104fb8d49e50bae327839dc8e5dafb09d5
@@ -165,16 +165,16 @@ trackedFiles:
pristine_git_object: 899743b48e88d217530425c2d13efa9254089097
docs/models/balancestrackbalance.md:
id: 84f1cb5b442b
last_write_checksum: sha1:dea0e2e615ee12717a53ac2b3293e54cef1806da
pristine_git_object: 5b61c1a997742c751fcb406585379271c47a40e3
last_write_checksum: sha1:b91ce5901ec09e733153b7a2baf2759f374926be
pristine_git_object: 5b98b79bc86bab83c651b3cbadb0abbb0fc455ab
docs/models/balancestrackbalancebillingmethod.md:
id: 52c99621e59c
last_write_checksum: sha1:193549bcad64b7b94c968160ae3499a90af67d2d
pristine_git_object: ac9a442ee21b36f79a3fdf83443a674824d10e27
docs/models/balancestrackbalancebreakdown.md:
id: 6adfe694fcc5
last_write_checksum: sha1:839e14983e7a563d2bdf0dd89d8c74222f4b09d9
pristine_git_object: 0d50fde666bb2e84d73c22b9e107b3311fa74ba1
last_write_checksum: sha1:28a9e2ca25b1cc62555e810d68d6ab64c33a70d9
pristine_git_object: df781a50c329dee96db3a056264c89fde99c5232
docs/models/balancestrackbalancecreditschema.md:
id: 68aad580e88d
last_write_checksum: sha1:1b7fcc2eab58f32c16928bb1f58c7e7f01b6f975
@@ -209,8 +209,8 @@ trackedFiles:
pristine_git_object: 9bbb8583eb72bc22ee30fde586c75970fd4a7c31
docs/models/balancestrackbalances.md:
id: 5154f97a33e4
last_write_checksum: sha1:efcf5ab01df72f9c3937a9b1f0f323de9ca72eb8
pristine_git_object: 3a39d82819a0be699b68e0977009b289f7a5d266
last_write_checksum: sha1:bd695cf140e2b4750dea2edfaec30e9c689d44d2
pristine_git_object: ead243f65b9a1a1d3153ebe509b0b269e2aa7d69
docs/models/balancestrackbalancetier.md:
id: c0a818ba961f
last_write_checksum: sha1:7cac695036039166f571beef7cc696da41e36bbd
@@ -229,8 +229,8 @@ trackedFiles:
pristine_git_object: f0836fdab98bbef00b977faea115a92f53d3eefe
docs/models/balancestrackbreakdown.md:
id: d20d3f5ff2ed
last_write_checksum: sha1:ab5bbf7f35573adff70dcad594743ea488f7452f
pristine_git_object: d06f9b05c9b74ae31c30a1b4bfac23d640c000ea
last_write_checksum: sha1:5af2320612691bacab63344f44f76b05b781e29a
pristine_git_object: 3e2417352e0478bbe8baf9e5d471e4c4fe2426fe
docs/models/balancestrackcreditschema.md:
id: 4e4ad0986fe1
last_write_checksum: sha1:e4d2c7ff3b9864887b63da551466de40f3bd7b28
@@ -317,8 +317,8 @@ trackedFiles:
pristine_git_object: 9c7a2e760e1781d0c9a1838fa0aea25ea05b11d9
docs/models/billingattachcustomize.md:
id: f0ed3bf58bf5
last_write_checksum: sha1:6e30ec047be3bc5cc16e22b427e236fe05b8bb6f
pristine_git_object: 2dd10e07301af9411ed2de0785e91e3b4dace253
last_write_checksum: sha1:830e81ca579c5bae1e63436fb86c86b5775d015a
pristine_git_object: 2507b52175f3604c468ce3a2bf20c28874a861c8
docs/models/billingattachdiscount1.md:
id: cfb5c217d943
last_write_checksum: sha1:7268ecaa9fe5f2eca7b0ecec0e054011a66dca29
@@ -357,8 +357,8 @@ trackedFiles:
pristine_git_object: 07a1b788d005bb60b15619a4bcb97bd547611d0b
docs/models/billingattachinvoicemode.md:
id: 32474930a784
last_write_checksum: sha1:a0e1198a50f927343f2af15bbe4984997e7cd006
pristine_git_object: 532213842d321efcb790a0698eab8c53b5f18b01
last_write_checksum: sha1:48dcbb59cce9effcffd12f7d42b052d347f92b5d
pristine_git_object: 0b75ef8b013ffea53ac190da8c1c5cba7897f9ab
docs/models/billingattachitem.md:
id: d843385ee259
last_write_checksum: sha1:c137dd6c71a0736bfc0f5529a62dc70b0062267d
@@ -401,8 +401,8 @@ trackedFiles:
pristine_git_object: 68d694191aea597dd44e36f2712507d5362e8594
docs/models/billingattachrequest.md:
id: a887baeabd1e
last_write_checksum: sha1:968b1577e39ae63e2eb5d179e0020a64d9ed4556
pristine_git_object: f566bafd33db1a30bd3189814fb79f6185686473
last_write_checksum: sha1:d4ac203685d6c2ea2716c2a3988346b3367a967b
pristine_git_object: 8d69dbc298a471d0ac3f99340fa3be6da410594d
docs/models/billingattachrequiredaction.md:
id: 0f167f88f79b
last_write_checksum: sha1:de010cc362b545eaf8f63e26134a3c3735400ad6
@@ -439,14 +439,10 @@ trackedFiles:
id: 60e0707f7cba
last_write_checksum: sha1:f8a6c2d93674d7fd2dd120e0219ca2227ca53f5a
pristine_git_object: 2e87268eb495cd1cac5b996c2872243cacc78348
docs/models/billingpreviewattachcredit.md:
id: fc066345c336
last_write_checksum: sha1:ada9e7cbec62ecce47079539b4a3023062035455
pristine_git_object: b65afddf343f539eaa3f20a4e720a5e9b5121035
docs/models/billingpreviewattachcustomize.md:
id: 51206fe14863
last_write_checksum: sha1:45db3744b59b1d3b60a02d122a3a9c46e4453bca
pristine_git_object: 4a36d4258d441c5e671b6767455e84a49bb0d089
last_write_checksum: sha1:38012b6ef4d9dd43e5222f52ef4c909557cfdc91
pristine_git_object: 1de1e485af4fdda5f7319f418d6ed981d845aa32
docs/models/billingpreviewattachcustomizereset.md:
id: e3109799f638
last_write_checksum: sha1:1a19c258618776c3a8f1de6b5634b9aa9bba0b48
@@ -493,8 +489,8 @@ trackedFiles:
pristine_git_object: 53bf1dc4dd5b27b61f6bacca3312be2055222c1f
docs/models/billingpreviewattachinvoicemode.md:
id: b4c7b46188b8
last_write_checksum: sha1:146089a7d2b0745bdb96de1d89b34c88a0d8b735
pristine_git_object: aaa160846b1f099fc77ef3c1040d88de75ad33ac
last_write_checksum: sha1:a7ae35c1aa18f276c5fbcb72ab7b19ee372ae484
pristine_git_object: f902b8353d3b72be1c29ebf26e7788261ab520a0
docs/models/billingpreviewattachitem.md:
id: a90206919bca
last_write_checksum: sha1:ad70b97a01bad0196867416c7785d22ab352c5b3
@@ -513,8 +509,8 @@ trackedFiles:
pristine_git_object: 9d1304b37997d83326f892c92184d74e7a63656b
docs/models/billingpreviewattachlineitem.md:
id: b5e92ac7c452
last_write_checksum: sha1:0b3b6d497a6ed22ebba43cd096c194daba07d213
pristine_git_object: 242c995c084c123a201afe13bbb7ae8c2d9ca3fb
last_write_checksum: sha1:d32ae6786aa9f101e42c4f49f68dfee6699cb79f
pristine_git_object: aa563a5ea965c626b000724f53636b99beba008d
docs/models/billingpreviewattachnextcycle.md:
id: fe0c0a59ea2a
last_write_checksum: sha1:a8b00097ac5a03d8c24e342d815b22a84418852b
@@ -529,8 +525,8 @@ trackedFiles:
pristine_git_object: 774b61b32d5488ea73afe408f51685c9f60b71b7
docs/models/billingpreviewattachnextcyclelineitem.md:
id: 331ffe23e389
last_write_checksum: sha1:963d242f5e3fa80e8bc27aff952844ad7b02a695
pristine_git_object: 7a4f8de6d5323d405bc7b597511e5308b5fa95ce
last_write_checksum: sha1:c4a5a0a0fac6ed182a1c48c846ca3b1bf0ae4dcb
pristine_git_object: 21ec8c900ae66175e3f6add701afa3259eb69d4f
docs/models/billingpreviewattachondecrease.md:
id: c362810a3dad
last_write_checksum: sha1:1bfdd3d1d821433b717e187fc00e92abc3478d27
@@ -561,12 +557,12 @@ trackedFiles:
pristine_git_object: 54804abca51856a7f4684ed3543e8bfcd539ef8f
docs/models/billingpreviewattachrequest.md:
id: 1f2dd61b026f
last_write_checksum: sha1:21b4ce49b6e1eae414eaa3af1e19e1967764ccbf
pristine_git_object: 211d7ef6b2b9ce5bbbe6d5c3c8c00c7ade5089a5
last_write_checksum: sha1:90959db0e2b0198aa1a9c667363cfd3f3da3a20e
pristine_git_object: a27c3cb0d7af9b74af5a1f5b781ea2795c0bbd23
docs/models/billingpreviewattachresponse.md:
id: 4e4b9c7363c4
last_write_checksum: sha1:8537feb4b77d43732c6b7ee463ff1a118cd9f71a
pristine_git_object: 9fd753e8214c6e8af18037f0e11d4201b8e241b9
last_write_checksum: sha1:a02ca69bd7ff0b70b84d488d5fbf381bf140141e
pristine_git_object: 96a1ad2e7cfdb102f04539d20d004ea85418e86c
docs/models/billingpreviewattachrolloverrequest.md:
id: 23a0742b9b4c
last_write_checksum: sha1:6ccf67b51d45d1bf8f264f8646f01391e7d5f98f
@@ -591,14 +587,10 @@ trackedFiles:
id: 70cd01032cad
last_write_checksum: sha1:a9c144de8f1aebbe5b00eb366fb9606d2fa98dc1
pristine_git_object: 3afae72aef451432e7c78bb7c7394535d105ea59
docs/models/billingpreviewupdatecredit.md:
id: 7ab8cd6d875d
last_write_checksum: sha1:43d3f81e48a9a1a87f59f342f57d524b572a52fe
pristine_git_object: 1baabcf3e2c36748b7bc9739992b9f77b532f26b
docs/models/billingpreviewupdatecustomize.md:
id: 6d0760a5097f
last_write_checksum: sha1:0237f641fa431c786cc5c54dcf4165736766443a
pristine_git_object: d8a42657463381ec429bbab8a9bdc1b0e5c62180
last_write_checksum: sha1:c44b48a0cf71372a490a1289341275959086ba1a
pristine_git_object: bef2b01e8218636bd5e22e9fa705ee467b632031
docs/models/billingpreviewupdatediscount.md:
id: 366af5958b3c
last_write_checksum: sha1:d72aac7de5460d788f6592fd05ea50a8c69072c0
@@ -629,8 +621,8 @@ trackedFiles:
pristine_git_object: 8c960b0a555ca51cbfef7929d756690983131d62
docs/models/billingpreviewupdateinvoicemode.md:
id: 8779c7cb4c43
last_write_checksum: sha1:b245397930ecb9ba2c4e23959a2a3cc6833b4182
pristine_git_object: 8f4fe0700715939a615564573856cb95ebbe74ea
last_write_checksum: sha1:8062f1fd396255054e348cc1e4719083a86778c8
pristine_git_object: bc1702520861ab67328dcc6143529b02b3d4fb7b
docs/models/billingpreviewupdateitem.md:
id: 5924aa9c88dc
last_write_checksum: sha1:5ed80781e674fbab34e3e45d15457822c40baa3a
@@ -645,8 +637,8 @@ trackedFiles:
pristine_git_object: 0b3f4d8ea8b513c5855c8255244d70b2e783fa29
docs/models/billingpreviewupdatelineitem.md:
id: d07a69e933f5
last_write_checksum: sha1:6361805c7e3f5dd694eb3de42dffebd884216af2
pristine_git_object: 4874c0e9fea419717224a384ffa3eef97f56c6f8
last_write_checksum: sha1:764b22ba15c8d1db1dd24dfbceffba2a017ee0c4
pristine_git_object: 7c3eb9d1b16aab8d9e98eb96660d407456448e40
docs/models/billingpreviewupdatenextcycle.md:
id: 34f560241cd2
last_write_checksum: sha1:03ae47ebdcba09a991155370933c12aab90ade0c
@@ -661,8 +653,8 @@ trackedFiles:
pristine_git_object: c76c451730c3b989eb6ef98e13042b35363556d7
docs/models/billingpreviewupdatenextcyclelineitem.md:
id: 7df0f82636fb
last_write_checksum: sha1:ac5c38985e284ecfd73f2e19a8111722c3f39185
pristine_git_object: af40ee4b677f362960d9bb9029f733717e153400
last_write_checksum: sha1:7d4dbea698de24e8478a2438a0e580831c59172a
pristine_git_object: 810e17cab2def3c45d8b545b5967c97368d6ca24
docs/models/billingpreviewupdateondecrease.md:
id: 469f4619189e
last_write_checksum: sha1:7b80d5b4ec4b87117f4c5bdd5cf83bc1b81e16f9
@@ -685,8 +677,8 @@ trackedFiles:
pristine_git_object: 334f3ff9f6f77723acdad330a8e843354f470750
docs/models/billingpreviewupdaterequest.md:
id: 28274cd59bdb
last_write_checksum: sha1:4ea708918695c3083580963aeb4d9cf2ceb4cd71
pristine_git_object: be2f97e9bb3599187ccf4f3b32422592fb2d1819
last_write_checksum: sha1:a10c8cca9441f7d548f2e50ef0802817137a2952
pristine_git_object: e4399ce1fa4ff6a7b4bd7429f2a1e4267e62a5bf
docs/models/billingpreviewupdatereset.md:
id: 3b716976e1ad
last_write_checksum: sha1:7d88dfbeb9a2251ebf6c97a1fd4bef63f652fb04
@@ -697,8 +689,8 @@ trackedFiles:
pristine_git_object: 9311e90cdec0d2e80f825dcafad6a2cd9d36ff4d
docs/models/billingpreviewupdateresponse.md:
id: 4efe11aea734
last_write_checksum: sha1:a240c273bd64734dc11478044db7756b29d2471b
pristine_git_object: 9774572b4228a0dbe49f3b2c57d0050c670de60a
last_write_checksum: sha1:86091f438a902677c6db3b6dc56ca166392f396a
pristine_git_object: 8c8203a5decdc06a11132aa508b624a237dbe296
docs/models/billingpreviewupdaterollover.md:
id: 708d0be263fb
last_write_checksum: sha1:bd277854e2cde4630c1a4f32f8a5548fafa94882
@@ -741,8 +733,8 @@ trackedFiles:
pristine_git_object: 7d9a46a3e399d8e1c6be359bcfc5bfa76cccf5ed
docs/models/billingupdatecustomize.md:
id: 72b14fed6d26
last_write_checksum: sha1:879313ff2e2924e9d5045a563546ccc72421d271
pristine_git_object: bb00a9ce581b31b7e19513855d57d94751379fd5
last_write_checksum: sha1:591a140a3569291925c40bc799bc7a663b987ff6
pristine_git_object: 285e2a150969c9d4851f4c9acda6ad4acc313dd4
docs/models/billingupdatedurationtype.md:
id: fd1bfb929148
last_write_checksum: sha1:8ec9d61b93a2d43e2c0a92d6443e3549a4b1b255
@@ -769,8 +761,8 @@ trackedFiles:
pristine_git_object: a45dfb5d006af051350c98dea8bde07edf2b162a
docs/models/billingupdateinvoicemode.md:
id: fef42e5dba71
last_write_checksum: sha1:383ca322b5fad669b9adb4b1c637ebcf78097e6e
pristine_git_object: 4acb6cb4fbf81cff4434fb190f81cb6c2d052c36
last_write_checksum: sha1:bcb962cc3baf764b6eacfa107f6344e84d8a7b55
pristine_git_object: 47fb7c47ee28c33e28299c0cc74f0aefea61954c
docs/models/billingupdateitem.md:
id: 349869ec6344
last_write_checksum: sha1:3e73a7ce1b0a2d2dbef2d12afe0adf03dff08cf1
@@ -805,8 +797,8 @@ trackedFiles:
pristine_git_object: 11dce03528cff9a27a669b273f946187ca261dc9
docs/models/billingupdaterequest.md:
id: 1737b2debc78
last_write_checksum: sha1:e6d52b73b3f76f2b43014ed57e41e91f2ff31bb0
pristine_git_object: 35c8e0404b11d395027d7525afbe8706a596edbe
last_write_checksum: sha1:d35b1b24957cf844bb611caf5b243e31d6f92b22
pristine_git_object: 1840eb3fafe0dfb0573fd3f105b494c917ff0b01
docs/models/billingupdaterequiredaction.md:
id: 3f84a7bd8718
last_write_checksum: sha1:6b31a5534f5b48cc6e14775212e818f884642519
@@ -837,8 +829,8 @@ trackedFiles:
pristine_git_object: 1d40f1e0e3af491b7e67142f4d46d7e6bd68377d
docs/models/breakdown.md:
id: 786823ab8ff0
last_write_checksum: sha1:d3882c7e03d87b2787b6f8209b4df7987a9b6aef
pristine_git_object: ce26b9772c7d67f69ca846796d34dafdee523407
last_write_checksum: sha1:401b60b08fad424e843346063c2b66bcea20b64e
pristine_git_object: 849ebfe99854b2a88f8bf16004af1b22fcaf665f
docs/models/config.md:
id: bef254bf823c
last_write_checksum: sha1:5ed7380a4cbf25fc7ad0d51326330b3d7e57ce91
@@ -977,16 +969,16 @@ trackedFiles:
pristine_git_object: 9486f06c25d9bb9934c8af2aa9a57112eabc27da
docs/models/incomingbalances.md:
id: 114d575c3450
last_write_checksum: sha1:26c82384a11b5d80f8ec9d59a42e47fc5467bd71
pristine_git_object: ff067809af4d09a480538ff252db91e4331cd806
last_write_checksum: sha1:2aff9a53876680e96e530686971efcc8034879cd
pristine_git_object: 063c002b3e70637caf65a8770e5b61e402ff7f08
docs/models/incomingbillingmethod.md:
id: 6efbce7dcaec
last_write_checksum: sha1:dfedb0e25d88780eca9d2d377e1ab45308a529eb
pristine_git_object: 625b2ea8ee3779af82d04f730a35bb6594e56aa2
docs/models/incomingbreakdown.md:
id: 41169dd758b2
last_write_checksum: sha1:d62077ccfa2a975999040d8a9662a97b9f9cda79
pristine_git_object: 38b9cdf6aaf1fc3cdcd0b1f1997353233815c7c9
last_write_checksum: sha1:fe1124b2ba2a1111ee42dae9d286ab26400a2e9d
pristine_git_object: 164b60da4e5fa3746849eca962053700ddfd0603
docs/models/incomingcreditschema.md:
id: b2346aec35f4
last_write_checksum: sha1:71dc6727d4d8561d8e61cb012f08fc6878e65913
@@ -1049,16 +1041,16 @@ trackedFiles:
pristine_git_object: 46f65fabed9a5a852350d4bce4f036f73fab0438
docs/models/listcustomersbalances.md:
id: 03c5aa088096
last_write_checksum: sha1:066b825211eea6022f4b79a4b516ded25a096874
pristine_git_object: 65979d0524713dccfee655fab32ee390fde80a5a
last_write_checksum: sha1:3da2493ee865dcc582bde8a3400fe381ab66d67d
pristine_git_object: 47ea1470231462f55c8236110fe1ccb66fe17fcb
docs/models/listcustomersbillingmethod.md:
id: d21be11d928d
last_write_checksum: sha1:8dd920c7dfc528a02a386676e20da2f476fdc354
pristine_git_object: d394f3fcb0d5f139d5ab0060b077fa005ee4a13b
docs/models/listcustomersbreakdown.md:
id: 93bc1cdb1e37
last_write_checksum: sha1:ab96e61139c6be2acd40cf9bde4d6f21d7684544
pristine_git_object: fdff270cc1772ddf46004ad89489d62b3e947c2f
last_write_checksum: sha1:a25602ec22af2f2938b78a50bb00ef0dcd9b9a7d
pristine_git_object: b41b3d4339e2a75a0ec8058b0aa9ab06d74bbc1c
docs/models/listcustomerscreditschema.md:
id: 233b13b5c3ec
last_write_checksum: sha1:df3fc7455a099da412abdc9ff85f021b1de749ec
@@ -1161,16 +1153,16 @@ trackedFiles:
pristine_git_object: 907e050584d9f3b0f7c762487a6b0173860a9d4c
docs/models/outgoingbalances.md:
id: db8d37650c6d
last_write_checksum: sha1:8d79c5a8427ea7acd77e63a5ac041625a6dec4cb
pristine_git_object: 57a678b2aae2470c2bd8f4b1bbcd10d102eb1224
last_write_checksum: sha1:c53cce12e8819e6b23568d48414e601d2b7f6ac1
pristine_git_object: 67b05200a6e8f80f4d28f7a73d1ccb22fd285093
docs/models/outgoingbillingmethod.md:
id: a33118a126b5
last_write_checksum: sha1:7918f2c6e81dce24bbd937d1a7c2315260e8927b
pristine_git_object: 0b62751cf559e85ffab0ede512890d8aee330ad4
docs/models/outgoingbreakdown.md:
id: ad7069a9c33b
last_write_checksum: sha1:24534d46467b215f9bfb41184a79d14f80cda671
pristine_git_object: 57b8ded3897c17e3d4a786d17203b3fa22c4bc96
last_write_checksum: sha1:5e9854cbc79ee134b19ba3c30636f3c082e97db3
pristine_git_object: 835417699951819fd14e9af7029e3c393080d8a8
docs/models/outgoingcreditschema.md:
id: 1fde0b5cbf3d
last_write_checksum: sha1:641c8dc19d0ed31f0c81c69702c1b212cda09051
@@ -1381,16 +1373,16 @@ trackedFiles:
pristine_git_object: 8eba6942218e21e379f0886cbcba182ceffed7b1
docs/models/updatecustomerbalances.md:
id: 7f44136e5175
last_write_checksum: sha1:a799586ec851ff4e33a18544d12315963ecc1345
pristine_git_object: 5fa25c01d8d8c2f9b73b69e2723ca78808308a69
last_write_checksum: sha1:696b17d9bcd4d1d65d8f41f2561ec021cfb8a4bf
pristine_git_object: 273486f9eb4b226358403ffb268329d5fbc4e490
docs/models/updatecustomerbillingmethod.md:
id: b251b4090471
last_write_checksum: sha1:70e36e639090894ce5504b8c055b2962eaae9cef
pristine_git_object: 175ceae8f0d83ab07d5bae5ac485566024ad8dc9
docs/models/updatecustomerbreakdown.md:
id: 2f3a2d8f745a
last_write_checksum: sha1:6346a6eb0c71948fc0219b008fe2a59f0f51fe98
pristine_git_object: afede3e125298d0db129328bca917ea07969355d
last_write_checksum: sha1:c2627d2fcfe7de7de50035c345212162658c9331
pristine_git_object: 0a5f6661217832605789fa1f1011f3eab80a1631
docs/models/updatecustomercreditschema.md:
id: 9ed2810c66f9
last_write_checksum: sha1:874cea697b072edd41ebe61d3435422261c5025c
@@ -1477,8 +1469,8 @@ trackedFiles:
pristine_git_object: 367d6f7e6677473533e5ec84423c6b92bb191627
docs/sdks/billing/README.md:
id: dc915331dd9d
last_write_checksum: sha1:ad7be2fe86436bba649fe20e151aaf15aafeffc7
pristine_git_object: e69c28ed48b942404acddb07180bfecd8777d697
last_write_checksum: sha1:e3669a666eb87cb510f80973d756454cb5124433
pristine_git_object: a611692843021852aef4456cd2781bf13ca2320b
docs/sdks/customers/README.md:
id: 9332759cffc2
last_write_checksum: sha1:13ccde8e19cf24ebf4afdac645940c09a642d652
@@ -1497,8 +1489,8 @@ trackedFiles:
pristine_git_object: f13c2fb5532a06cfe87f594097bfbf72e8fc04a1
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:9cba7bb05155616adec572985d89b6a2245c2b2c
pristine_git_object: 682c3d9a50255af0901168007f392b51f4e6358a
last_write_checksum: sha1:1e1204524034eb1c9c0cbb4327c4ac5ad156a8e4
pristine_git_object: 38ecae9bb9c9bd37af5c19d7f6869e1a672f86bc
scripts/publish.sh:
id: fe273b08f514
last_write_checksum: sha1:adc9b741c12ad1591ab4870eabe20f0d0a86cd1a
@@ -1521,8 +1513,8 @@ trackedFiles:
pristine_git_object: 3e604651c1eae73d815b276806e73b2f1334bb79
src/autumn_sdk/_version.py:
id: a98babfdf4fc
last_write_checksum: sha1:0c8f81369be30c079cce0a72939c7306d1d10eed
pristine_git_object: b94bce67355e946b53f5631970fc14b5bf613cb1
last_write_checksum: sha1:956be51e7b757519eedbeb2ff25e3d59b24c8a18
pristine_git_object: 6e51775a922b9d5cdbd3cf7c928df326748a5255
src/autumn_sdk/balances_sdk.py:
id: a24aee6f517f
last_write_checksum: sha1:991efc1f4a5675c7c69983dc539b419fee18895b
@@ -1533,8 +1525,8 @@ trackedFiles:
pristine_git_object: b8da96bd89ddafaedb32f4ecac64c27027fcca79
src/autumn_sdk/billing.py:
id: e6cffdbf2221
last_write_checksum: sha1:a68b26fa814cfaf68bbf4e39dcb532cfbce1108d
pristine_git_object: 926c58fa64495822e97c30226e4c4f08078001df
last_write_checksum: sha1:38548fcf0aa8327a013b62eb7af52f92e3ebe3f0
pristine_git_object: 1c2d8ce6f2bf9fe297f8247803a63e442ac07cc8
src/autumn_sdk/customers.py:
id: 5c5a0a07a433
last_write_checksum: sha1:d34a9c1215e7685f15ef88c049e707d9c47163e7
@@ -1565,48 +1557,48 @@ trackedFiles:
pristine_git_object: 89560b566073785535643e694c112bedbd3db13d
src/autumn_sdk/models/__init__.py:
id: bcf3802243ff
last_write_checksum: sha1:18ea39d276552c70265a5930d4324e8db63e1881
pristine_git_object: c28ee8b40157951aea458fbb989b2848ba88eefb
last_write_checksum: sha1:db5e90a5656586b67697c5372dc42301bae6791c
pristine_git_object: ef0446c2af1fb073acd7d9dbded6b04bfad1d0dd
src/autumn_sdk/models/balancescheckop.py:
id: 27ed9e0d5743
last_write_checksum: sha1:c1be992ef26ab0e4b95a787cce9767c196995825
pristine_git_object: e808efe8da6b8ad7ea1ebe77601b3f6d116db1a1
last_write_checksum: sha1:f76c84c4592ee5bee854d2d31ac55b589c54d86c
pristine_git_object: 3a48eb8b3bda977baaf9afa42abc969e736d649a
src/autumn_sdk/models/balancescreateop.py:
id: 8509fb57571f
last_write_checksum: sha1:406d57f4df7fb4eba2a7c8f906cf64ff0b31eb2c
pristine_git_object: cfec2c9f9d44dbefea6defe63e38060da77c8f3a
src/autumn_sdk/models/balancestrackop.py:
id: 625fc102f754
last_write_checksum: sha1:d25c8efbc9bf228ea6b005f463434a060897159e
pristine_git_object: d374b65370644bee32573f0b6682a6bce728e5fa
last_write_checksum: sha1:e9cee0c262ea63eb9d18a01c233a0d028ef1af1f
pristine_git_object: 84737f2b49c04c2a5f8e353cc8b7985071c22ddb
src/autumn_sdk/models/balancesupdateop.py:
id: ee8c7b782105
last_write_checksum: sha1:ae0bd050783e21c60d12ef799df2419f1377943f
pristine_git_object: 10c472b900d590fb9e9606b88470080d1603e0b8
src/autumn_sdk/models/billingattachop.py:
id: a3c4907bef48
last_write_checksum: sha1:0c87df8b7eec18839393cbf24c6efbde1ce4864a
pristine_git_object: 587061c46c7fac15baff73281a6a7560ae41ee1c
last_write_checksum: sha1:4dbcb3d447f8a10d00939fe1f2d25a66e43b4f11
pristine_git_object: aba5fb54b2bff0e09635ccc907cfa5dc2fe83020
src/autumn_sdk/models/billingpreviewattachop.py:
id: 14515cbff2fc
last_write_checksum: sha1:c154b342b09009a365c48270fd9eee3ca4d540af
pristine_git_object: 254f25ecf03264c1fc45f26416fd82598fff44d8
last_write_checksum: sha1:af2411f945bbc8c50bbd80c697859b2ed8b7fb6a
pristine_git_object: f20d47336ce4656e50cceb847ae313cce23f6845
src/autumn_sdk/models/billingpreviewupdateop.py:
id: 6a2eed94753c
last_write_checksum: sha1:d3151065dfc6be079ba5dc26c487fd872b0a60bc
pristine_git_object: 377d54b1320f607daf25b27a723b2db9881f1d32
last_write_checksum: sha1:1e15bd6e2ac1bdeb2b395e23ae67aade89acdb80
pristine_git_object: bf3fa23cdd78a550f2659718bc3ae8bdd1b02236
src/autumn_sdk/models/billingsetuppaymentop.py:
id: 7d8176dc1930
last_write_checksum: sha1:8c2b325016fd7853cb927fec39103eda60be9dd3
pristine_git_object: a9b4b8fb0c61cd28d65d6cc3d816498666374a76
src/autumn_sdk/models/billingupdateop.py:
id: a2f17c75cfd3
last_write_checksum: sha1:05a3f21f9df3ce256a6ef4b9d039802492dea63c
pristine_git_object: cf29ffebe8189e774265c516f14c0ca65b11a1cf
last_write_checksum: sha1:ded13980e77ae9dfe7dbd80186e74636c98dbfd9
pristine_git_object: 04c0e11b2d5eab19b1588fe69dcb6259fbd21d57
src/autumn_sdk/models/customer.py:
id: 8ed0174f7272
last_write_checksum: sha1:f2917ed4ebd6f8339a83bba13bc516d77dc63321
pristine_git_object: dfdbb48a387861c50120db0d0669fa3fa1c5b48d
last_write_checksum: sha1:cd7f48270a61401129aae29732d82a9756ca577e
pristine_git_object: 91ead7f8055ef16c5ab02c2af75812a29c791747
src/autumn_sdk/models/customerdata.py:
id: 9d88118f2123
last_write_checksum: sha1:d056db70a7859d2f55a16c961035578f0aa95c06
@@ -1633,8 +1625,8 @@ trackedFiles:
pristine_git_object: e6ef4341edccbf10916d0f08d7f2717c65c5f8ee
src/autumn_sdk/models/listcustomersop.py:
id: d7074740b8b0
last_write_checksum: sha1:3b8c9793979eb8f0601a5507cd43fdbd2feaeb9c
pristine_git_object: 6ea1333bdd0e6596b931f8b596b329a9533a316c
last_write_checksum: sha1:c160f55fb72cad9b7aee32728dff44f9184ebd94
pristine_git_object: 7be0ab37eb525c710505120585dc57199a164277
src/autumn_sdk/models/listplansop.py:
id: fdf892c403f4
last_write_checksum: sha1:d478ba4edd01b7a9b6871eb072e8df7718263202
@@ -1649,8 +1641,8 @@ trackedFiles:
pristine_git_object: aa686dd6f85ae1e27450392fcfe02527adfe8e61
src/autumn_sdk/models/updatecustomerop.py:
id: 28b9d5b59bae
last_write_checksum: sha1:76eeccc4d0dc86e6f2d9241aaef0b918e424c7a2
pristine_git_object: b6325b3809ffce91f4d90214f7384b155b916eec
last_write_checksum: sha1:022834e9c5108ba7d729b458f0ac20f8101e784e
pristine_git_object: b501c3f8b48871b8ff4206911abb63d720704656
src/autumn_sdk/plans.py:
id: cf1ebabb687c
last_write_checksum: sha1:73164e47a6348eff5882dee9e65092e6687a18e8
@@ -1781,7 +1773,7 @@ examples:
application/json: {"customer_id": "cus_123", "name": "John Doe", "email": "john@example.com"}
responses:
"200":
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": false, "subscriptions": [{"plan_id": "plan_123", "auto_enable": false, "add_on": false, "status": "active", "past_due": false, "canceled_at": 1395.23, "expires_at": 455.92, "trial_ends_at": 875.56, "started_at": 3418.9, "current_period_start": 8321.34, "current_period_end": null, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"object": "balance", "feature_id": "<id>", "granted": 8589.77, "remaining": 2642.5, "usage": 145.7, "unlimited": true, "overage_allowed": false, "max_purchase": 8214.93, "next_reset_at": 5618.81}}}
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": false, "subscriptions": [{"plan_id": "plan_123", "auto_enable": false, "add_on": false, "status": "active", "past_due": false, "canceled_at": 1395.23, "expires_at": 455.92, "trial_ends_at": 875.56, "started_at": 3418.9, "current_period_start": 8321.34, "current_period_end": null, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"feature_id": "<id>", "granted": 8589.77, "remaining": 2642.5, "usage": 145.7, "unlimited": true, "overage_allowed": false, "max_purchase": 8214.93, "next_reset_at": 5618.81}}}
listCustomers:
speakeasy-default-list-customers:
parameters:
@@ -1801,7 +1793,7 @@ examples:
application/json: {"customer_id": "cus_123", "name": "Jane Doe", "email": "jane@example.com"}
responses:
"200":
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": true, "subscriptions": [{"plan_id": "plan_123", "auto_enable": true, "add_on": true, "status": "active", "past_due": true, "canceled_at": 8303.59, "expires_at": 2755.88, "trial_ends_at": 1461.02, "started_at": 1649.05, "current_period_start": 8034.1, "current_period_end": 8058.66, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"object": "balance", "feature_id": "<id>", "granted": 7559.37, "remaining": 952.25, "usage": 7029.24, "unlimited": true, "overage_allowed": true, "max_purchase": 7619.46, "next_reset_at": 411.76}}}
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": true, "subscriptions": [{"plan_id": "plan_123", "auto_enable": true, "add_on": true, "status": "active", "past_due": true, "canceled_at": 8303.59, "expires_at": 2755.88, "trial_ends_at": 1461.02, "started_at": 1649.05, "current_period_start": 8034.1, "current_period_end": 8058.66, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"feature_id": "<id>", "granted": 7559.37, "remaining": 952.25, "usage": 7029.24, "unlimited": true, "overage_allowed": true, "max_purchase": 7619.46, "next_reset_at": 411.76}}}
deleteCustomer:
speakeasy-default-delete-customer:
parameters:
@@ -1831,7 +1823,7 @@ examples:
application/json: {"customer_id": "<id>", "plan_id": "<id>", "redirect_mode": "always"}
responses:
"200":
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "at usually sunbathe how forenenst", "amount": 7882.21, "total_quantity": 6544.84, "paid_quantity": 1520.59, "plan_id": "<id>"}], "total": 6124.21, "currency": "Venezuelan bolívar", "incoming": [{"plan": {"id": "<id>", "name": "<value>", "description": null, "group": "<value>", "version": 8678.59, "add_on": true, "auto_enable": true, "price": {"amount": 794.59, "interval": "week"}, "items": [{"feature_id": "<id>", "included": 2063.68, "unlimited": true, "reset": {"interval": "hour"}, "price": {"interval": "month", "billing_units": 2123.59, "billing_method": "usage_based", "max_purchase": 9099.32}}], "created_at": 7665.78, "env": "live", "archived": true, "base_variant_id": null}, "feature_quantities": [{"feature_id": "<id>", "quantity": 4464.31}], "balances": {}}], "outgoing": [], "redirect_type": "autumn_checkout"}
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "at usually sunbathe how forenenst", "amount": 7882.21, "plan_id": "<id>", "total_quantity": 6544.84, "paid_quantity": 1520.59}], "total": 6124.21, "currency": "Venezuelan bolívar", "incoming": [{"plan": {"id": "<id>", "name": "<value>", "description": null, "group": "<value>", "version": 8678.59, "add_on": true, "auto_enable": true, "price": {"amount": 794.59, "interval": "week"}, "items": [{"feature_id": "<id>", "included": 2063.68, "unlimited": true, "reset": {"interval": "hour"}, "price": {"interval": "month", "billing_units": 2123.59, "billing_method": "usage_based", "max_purchase": 9099.32}}], "created_at": 7665.78, "env": "live", "archived": true, "base_variant_id": null}, "feature_quantities": [{"feature_id": "<id>", "quantity": 4464.31}], "balances": {}}], "outgoing": [], "redirect_type": "autumn_checkout"}
billingUpdate:
speakeasy-default-billing-update:
parameters:
@@ -1851,7 +1843,7 @@ examples:
application/json: {"customer_id": "<id>"}
responses:
"200":
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "across at yet biodegradable wing retention between quash", "amount": 8095.76, "total_quantity": 5397.71, "paid_quantity": 3590.49, "plan_id": "<id>"}], "total": 7497.66, "currency": "Peso Uruguayo"}
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "across at yet biodegradable wing retention between quash", "amount": 8095.76, "plan_id": "<id>", "total_quantity": 5397.71, "paid_quantity": 3590.49}], "total": 7497.66, "currency": "Peso Uruguayo"}
billingSetupPayment:
speakeasy-default-billing-setup-payment:
parameters:
@@ -1891,7 +1883,7 @@ examples:
application/json: {"customer_id": "<id>"}
responses:
"200":
application/json: {"allowed": true, "customer_id": "<id>", "balance": {"object": "balance", "feature_id": "<id>", "granted": 7002.31, "remaining": 9536.21, "usage": 3270.65, "unlimited": false, "overage_allowed": true, "max_purchase": 8252.55, "next_reset_at": 9394.31}}
application/json: {"allowed": true, "customer_id": "<id>", "balance": {"feature_id": "<id>", "granted": 7002.31, "remaining": 9536.21, "usage": 3270.65, "unlimited": false, "overage_allowed": true, "max_purchase": 8252.55, "next_reset_at": 9394.31}}
balancesTrack:
speakeasy-default-balances-track:
parameters:
@@ -1901,7 +1893,7 @@ examples:
application/json: {"customer_id": "<id>"}
responses:
"200":
application/json: {"customer_id": "<id>", "value": 3371.48, "balance": {"object": "balance", "feature_id": "<id>", "granted": 4457.97, "remaining": 7901.2, "usage": 9728.03, "unlimited": false, "overage_allowed": false, "max_purchase": null, "next_reset_at": 9011.85}}
application/json: {"customer_id": "<id>", "value": 3371.48, "balance": {"feature_id": "<id>", "granted": 4457.97, "remaining": 7901.2, "usage": 9728.03, "unlimited": false, "overage_allowed": false, "max_purchase": null, "next_reset_at": 9011.85}}
listPlans:
speakeasy-default-list-plans:
parameters:

View File

@@ -30,7 +30,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: false
python:
version: 0.2.21
version: 0.2.22
additionalDependencies:
dev: {}
main: {}

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.CustomerFeature]](../models/customerfeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.BalancesCheckFeature]](../models/balancescheckfeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.BalancesTrackBalanceFeature]](../models/balancestrackbalancefeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.BalancesTrackFeature]](../models/balancestrackfeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -1,5 +1,7 @@
# BillingAttachCustomize
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
## Fields

View File

@@ -4,7 +4,7 @@
## Fields
| Field | Type | Required | Description |
| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| ------------------------- | ------------------------- | ------------------------- | ------------------------- |
| `enabled` | *bool* | :heavy_check_mark: | N/A |
| `enable_product_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize_invoice` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `enable_plan_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -8,9 +8,9 @@
| `customer_id` | *str* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingAttachFeatureQuantities](../models/billingattachfeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingAttachFreeTrial]](../models/billingattachfreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingAttachCustomize]](../models/billingattachcustomize.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingAttachCustomize]](../models/billingattachcustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `invoice_mode` | [Optional[models.BillingAttachInvoiceMode]](../models/billingattachinvoicemode.md) | :heavy_minus_sign: | N/A |
| `discounts` | List[[models.BillingAttachDiscountUnion](../models/billingattachdiscountunion.md)] | :heavy_minus_sign: | N/A |

View File

@@ -1,9 +0,0 @@
# BillingPreviewAttachCredit
## Fields
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `amount` | *float* | :heavy_check_mark: | N/A |
| `description` | *str* | :heavy_check_mark: | N/A |

View File

@@ -1,5 +1,7 @@
# BillingPreviewAttachCustomize
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
## Fields

View File

@@ -4,7 +4,7 @@
## Fields
| Field | Type | Required | Description |
| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| ------------------------- | ------------------------- | ------------------------- | ------------------------- |
| `enabled` | *bool* | :heavy_check_mark: | N/A |
| `enable_product_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize_invoice` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `enable_plan_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -9,9 +9,9 @@
| `description` | *str* | :heavy_check_mark: | N/A |
| `amount` | *float* | :heavy_check_mark: | N/A |
| `discounts` | List[[models.BillingPreviewAttachDiscountResponse](../models/billingpreviewattachdiscountresponse.md)] | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `total_quantity` | *float* | :heavy_check_mark: | N/A |
| `paid_quantity` | *float* | :heavy_check_mark: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `deferred_for_trial` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `effective_period` | [Optional[models.BillingPreviewAttachEffectivePeriod]](../models/billingpreviewattacheffectiveperiod.md) | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -9,9 +9,9 @@
| `description` | *str* | :heavy_check_mark: | N/A |
| `amount` | *float* | :heavy_check_mark: | N/A |
| `discounts` | List[[models.BillingPreviewAttachNextCycleDiscount](../models/billingpreviewattachnextcyclediscount.md)] | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `total_quantity` | *float* | :heavy_check_mark: | N/A |
| `paid_quantity` | *float* | :heavy_check_mark: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `deferred_for_trial` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `effective_period` | [Optional[models.BillingPreviewAttachNextCycleEffectivePeriod]](../models/billingpreviewattachnextcycleeffectiveperiod.md) | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -8,9 +8,9 @@
| `customer_id` | *str* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingPreviewAttachFeatureQuantities](../models/billingpreviewattachfeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingPreviewAttachFreeTrial]](../models/billingpreviewattachfreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewAttachCustomize]](../models/billingpreviewattachcustomize.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewAttachCustomize]](../models/billingpreviewattachcustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `invoice_mode` | [Optional[models.BillingPreviewAttachInvoiceMode]](../models/billingpreviewattachinvoicemode.md) | :heavy_minus_sign: | N/A |
| `discounts` | List[[models.BillingPreviewAttachDiscountUnion](../models/billingpreviewattachdiscountunion.md)] | :heavy_minus_sign: | N/A |

View File

@@ -13,7 +13,6 @@ OK
| `currency` | *str* | :heavy_check_mark: | N/A |
| `period_start` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `period_end` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `credit` | [Optional[models.BillingPreviewAttachCredit]](../models/billingpreviewattachcredit.md) | :heavy_minus_sign: | N/A |
| `next_cycle` | [Optional[models.BillingPreviewAttachNextCycle]](../models/billingpreviewattachnextcycle.md) | :heavy_minus_sign: | N/A |
| `incoming` | List[[models.Incoming](../models/incoming.md)] | :heavy_check_mark: | N/A |
| `outgoing` | List[[models.Outgoing](../models/outgoing.md)] | :heavy_check_mark: | N/A |

View File

@@ -1,9 +0,0 @@
# BillingPreviewUpdateCredit
## Fields
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `amount` | *float* | :heavy_check_mark: | N/A |
| `description` | *str* | :heavy_check_mark: | N/A |

View File

@@ -1,5 +1,7 @@
# BillingPreviewUpdateCustomize
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
## Fields

View File

@@ -4,7 +4,7 @@
## Fields
| Field | Type | Required | Description |
| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| ------------------------- | ------------------------- | ------------------------- | ------------------------- |
| `enabled` | *bool* | :heavy_check_mark: | N/A |
| `enable_product_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize_invoice` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `enable_plan_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -9,9 +9,9 @@
| `description` | *str* | :heavy_check_mark: | N/A |
| `amount` | *float* | :heavy_check_mark: | N/A |
| `discounts` | List[[models.BillingPreviewUpdateDiscount](../models/billingpreviewupdatediscount.md)] | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `total_quantity` | *float* | :heavy_check_mark: | N/A |
| `paid_quantity` | *float* | :heavy_check_mark: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `deferred_for_trial` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `effective_period` | [Optional[models.BillingPreviewUpdateEffectivePeriod]](../models/billingpreviewupdateeffectiveperiod.md) | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -9,9 +9,9 @@
| `description` | *str* | :heavy_check_mark: | N/A |
| `amount` | *float* | :heavy_check_mark: | N/A |
| `discounts` | List[[models.BillingPreviewUpdateNextCycleDiscount](../models/billingpreviewupdatenextcyclediscount.md)] | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `total_quantity` | *float* | :heavy_check_mark: | N/A |
| `paid_quantity` | *float* | :heavy_check_mark: | N/A |
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `deferred_for_trial` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `effective_period` | [Optional[models.BillingPreviewUpdateNextCycleEffectivePeriod]](../models/billingpreviewupdatenextcycleeffectiveperiod.md) | :heavy_minus_sign: | N/A |
| `is_base` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -8,10 +8,10 @@
| `customer_id` | *str* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingPreviewUpdateFeatureQuantities](../models/billingpreviewupdatefeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingPreviewUpdateFreeTrial]](../models/billingpreviewupdatefreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewUpdateCustomize]](../models/billingpreviewupdatecustomize.md) | :heavy_minus_sign: | N/A |
| `plan_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewUpdateCustomize]](../models/billingpreviewupdatecustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `plan_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `invoice_mode` | [Optional[models.BillingPreviewUpdateInvoiceMode]](../models/billingpreviewupdateinvoicemode.md) | :heavy_minus_sign: | N/A |
| `cancel_action` | [Optional[models.BillingPreviewUpdateCancelAction]](../models/billingpreviewupdatecancelaction.md) | :heavy_minus_sign: | N/A |
| `billing_behavior` | [Optional[models.BillingPreviewUpdateBillingBehavior]](../models/billingpreviewupdatebillingbehavior.md) | :heavy_minus_sign: | N/A |

View File

@@ -13,5 +13,4 @@ OK
| `currency` | *str* | :heavy_check_mark: | N/A |
| `period_start` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `period_end` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `credit` | [Optional[models.BillingPreviewUpdateCredit]](../models/billingpreviewupdatecredit.md) | :heavy_minus_sign: | N/A |
| `next_cycle` | [Optional[models.BillingPreviewUpdateNextCycle]](../models/billingpreviewupdatenextcycle.md) | :heavy_minus_sign: | N/A |

View File

@@ -1,5 +1,7 @@
# BillingUpdateCustomize
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
## Fields

View File

@@ -4,7 +4,7 @@
## Fields
| Field | Type | Required | Description |
| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| ------------------------- | ------------------------- | ------------------------- | ------------------------- |
| `enabled` | *bool* | :heavy_check_mark: | N/A |
| `enable_product_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize_invoice` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `enable_plan_immediately` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `finalize` | *Optional[bool]* | :heavy_minus_sign: | N/A |

View File

@@ -8,10 +8,10 @@
| `customer_id` | *str* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingUpdateFeatureQuantities](../models/billingupdatefeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingUpdateFreeTrial]](../models/billingupdatefreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingUpdateCustomize]](../models/billingupdatecustomize.md) | :heavy_minus_sign: | N/A |
| `plan_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingUpdateCustomize]](../models/billingupdatecustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `plan_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `invoice_mode` | [Optional[models.BillingUpdateInvoiceMode]](../models/billingupdateinvoicemode.md) | :heavy_minus_sign: | N/A |
| `cancel_action` | [Optional[models.BillingUpdateCancelAction]](../models/billingupdatecancelaction.md) | :heavy_minus_sign: | N/A |
| `billing_behavior` | [Optional[models.BillingUpdateBillingBehavior]](../models/billingupdatebillingbehavior.md) | :heavy_minus_sign: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.IncomingFeature]](../models/incomingfeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.ListCustomersFeature]](../models/listcustomersfeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.OutgoingFeature]](../models/outgoingfeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `object` | *Literal["balance"]* | :heavy_check_mark: | N/A |
| `feature_id` | *str* | :heavy_check_mark: | N/A |
| `feature` | [Optional[models.UpdateCustomerFeature]](../models/updatecustomerfeature.md) | :heavy_minus_sign: | N/A |
| `granted` | *float* | :heavy_check_mark: | N/A |

View File

@@ -5,7 +5,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `object` | *Literal["balance_breakdown"]* | :heavy_check_mark: | N/A |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `plan_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `included_grant` | *float* | :heavy_check_mark: | N/A |

View File

@@ -41,9 +41,9 @@ with Autumn(
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingAttachFeatureQuantities](../../models/billingattachfeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingAttachFreeTrial]](../../models/billingattachfreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingAttachCustomize]](../../models/billingattachcustomize.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingAttachCustomize]](../../models/billingattachcustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `invoice_mode` | [Optional[models.BillingAttachInvoiceMode]](../../models/billingattachinvoicemode.md) | :heavy_minus_sign: | N/A |
| `discounts` | List[[models.BillingAttachDiscountUnion](../../models/billingattachdiscountunion.md)] | :heavy_minus_sign: | N/A |
| `redirect_mode` | [Optional[models.BillingAttachRedirectMode]](../../models/billingattachredirectmode.md) | :heavy_minus_sign: | N/A |
@@ -94,9 +94,9 @@ with Autumn(
| `plan_id` | *str* | :heavy_check_mark: | N/A |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingPreviewAttachFeatureQuantities](../../models/billingpreviewattachfeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingPreviewAttachFreeTrial]](../../models/billingpreviewattachfreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewAttachCustomize]](../../models/billingpreviewattachcustomize.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewAttachCustomize]](../../models/billingpreviewattachcustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `invoice_mode` | [Optional[models.BillingPreviewAttachInvoiceMode]](../../models/billingpreviewattachinvoicemode.md) | :heavy_minus_sign: | N/A |
| `discounts` | List[[models.BillingPreviewAttachDiscountUnion](../../models/billingpreviewattachdiscountunion.md)] | :heavy_minus_sign: | N/A |
| `redirect_mode` | [Optional[models.BillingPreviewAttachRedirectMode]](../../models/billingpreviewattachredirectmode.md) | :heavy_minus_sign: | N/A |
@@ -146,10 +146,10 @@ with Autumn(
| `customer_id` | *str* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingUpdateFeatureQuantities](../../models/billingupdatefeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingUpdateFreeTrial]](../../models/billingupdatefreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingUpdateCustomize]](../../models/billingupdatecustomize.md) | :heavy_minus_sign: | N/A |
| `plan_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingUpdateCustomize]](../../models/billingupdatecustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `plan_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `invoice_mode` | [Optional[models.BillingUpdateInvoiceMode]](../../models/billingupdateinvoicemode.md) | :heavy_minus_sign: | N/A |
| `cancel_action` | [Optional[models.BillingUpdateCancelAction]](../../models/billingupdatecancelaction.md) | :heavy_minus_sign: | N/A |
| `billing_behavior` | [Optional[models.BillingUpdateBillingBehavior]](../../models/billingupdatebillingbehavior.md) | :heavy_minus_sign: | N/A |
@@ -195,10 +195,10 @@ with Autumn(
| `customer_id` | *str* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entity_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `feature_quantities` | List[[models.BillingPreviewUpdateFeatureQuantities](../../models/billingpreviewupdatefeaturequantities.md)] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `version` | *Optional[float]* | :heavy_minus_sign: | The version of the plan to attach. |
| `free_trial` | [OptionalNullable[models.BillingPreviewUpdateFreeTrial]](../../models/billingpreviewupdatefreetrial.md) | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewUpdateCustomize]](../../models/billingpreviewupdatecustomize.md) | :heavy_minus_sign: | N/A |
| `plan_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `customize` | [Optional[models.BillingPreviewUpdateCustomize]](../../models/billingpreviewupdatecustomize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `plan_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `invoice_mode` | [Optional[models.BillingPreviewUpdateInvoiceMode]](../../models/billingpreviewupdateinvoicemode.md) | :heavy_minus_sign: | N/A |
| `cancel_action` | [Optional[models.BillingPreviewUpdateCancelAction]](../../models/billingpreviewupdatecancelaction.md) | :heavy_minus_sign: | N/A |
| `billing_behavior` | [Optional[models.BillingPreviewUpdateBillingBehavior]](../../models/billingpreviewupdatebillingbehavior.md) | :heavy_minus_sign: | N/A |

View File

@@ -1,6 +1,6 @@
[project]
name = "autumn-sdk"
version = "0.2.21"
version = "0.2.22"
description = "Python SDK for the Autumn billing API"
authors = [{ name = "Autumn" },]
readme = "README.md"

View File

@@ -3,10 +3,10 @@
import importlib.metadata
__title__: str = "autumn-sdk"
__version__: str = "0.2.21"
__version__: str = "0.2.22"
__openapi_doc_version__: str = "2.1.0"
__gen_version__: str = "2.824.1"
__user_agent__: str = "speakeasy-sdk/python 0.2.21 2.824.1 2.1.0 autumn-sdk"
__user_agent__: str = "speakeasy-sdk/python 0.2.22 2.824.1 2.1.0 autumn-sdk"
try:
if __package__ is not None:

View File

@@ -56,9 +56,9 @@ class Billing(BaseSDK):
:param plan_id:
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param invoice_mode:
:param discounts:
:param redirect_mode:
@@ -215,9 +215,9 @@ class Billing(BaseSDK):
:param plan_id:
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param invoice_mode:
:param discounts:
:param redirect_mode:
@@ -380,9 +380,9 @@ class Billing(BaseSDK):
:param plan_id:
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param invoice_mode:
:param discounts:
:param redirect_mode:
@@ -547,9 +547,9 @@ class Billing(BaseSDK):
:param plan_id:
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param invoice_mode:
:param discounts:
:param redirect_mode:
@@ -679,7 +679,7 @@ class Billing(BaseSDK):
customize: Optional[
Union[models.BillingUpdateCustomize, models.BillingUpdateCustomizeTypedDict]
] = None,
plan_id: OptionalNullable[str] = UNSET,
plan_id: Optional[str] = None,
invoice_mode: Optional[
Union[
models.BillingUpdateInvoiceMode,
@@ -698,9 +698,9 @@ class Billing(BaseSDK):
:param customer_id: The ID of the customer to attach the plan to.
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param plan_id:
:param invoice_mode:
:param cancel_action:
@@ -819,7 +819,7 @@ class Billing(BaseSDK):
customize: Optional[
Union[models.BillingUpdateCustomize, models.BillingUpdateCustomizeTypedDict]
] = None,
plan_id: OptionalNullable[str] = UNSET,
plan_id: Optional[str] = None,
invoice_mode: Optional[
Union[
models.BillingUpdateInvoiceMode,
@@ -838,9 +838,9 @@ class Billing(BaseSDK):
:param customer_id: The ID of the customer to attach the plan to.
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param plan_id:
:param invoice_mode:
:param cancel_action:
@@ -965,7 +965,7 @@ class Billing(BaseSDK):
models.BillingPreviewUpdateCustomizeTypedDict,
]
] = None,
plan_id: OptionalNullable[str] = UNSET,
plan_id: Optional[str] = None,
invoice_mode: Optional[
Union[
models.BillingPreviewUpdateInvoiceMode,
@@ -984,9 +984,9 @@ class Billing(BaseSDK):
:param customer_id: The ID of the customer to attach the plan to.
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param plan_id:
:param invoice_mode:
:param cancel_action:
@@ -1113,7 +1113,7 @@ class Billing(BaseSDK):
models.BillingPreviewUpdateCustomizeTypedDict,
]
] = None,
plan_id: OptionalNullable[str] = UNSET,
plan_id: Optional[str] = None,
invoice_mode: Optional[
Union[
models.BillingPreviewUpdateInvoiceMode,
@@ -1132,9 +1132,9 @@ class Billing(BaseSDK):
:param customer_id: The ID of the customer to attach the plan to.
:param entity_id: The ID of the entity to attach the plan to.
:param feature_quantities: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
:param version:
:param version: The version of the plan to attach.
:param free_trial:
:param customize:
:param customize: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
:param plan_id:
:param invoice_mode:
:param cancel_action:

View File

@@ -207,8 +207,6 @@ if TYPE_CHECKING:
from .billingpreviewattachop import (
BillingPreviewAttachBillingBehavior,
BillingPreviewAttachBillingMethodRequest,
BillingPreviewAttachCredit,
BillingPreviewAttachCreditTypedDict,
BillingPreviewAttachCustomize,
BillingPreviewAttachCustomizeReset,
BillingPreviewAttachCustomizeResetTypedDict,
@@ -328,8 +326,6 @@ if TYPE_CHECKING:
BillingPreviewUpdateBillingBehavior,
BillingPreviewUpdateBillingMethod,
BillingPreviewUpdateCancelAction,
BillingPreviewUpdateCredit,
BillingPreviewUpdateCreditTypedDict,
BillingPreviewUpdateCustomize,
BillingPreviewUpdateCustomizeTypedDict,
BillingPreviewUpdateDiscount,
@@ -809,8 +805,6 @@ __all__ = [
"BillingAttachToTypedDict",
"BillingPreviewAttachBillingBehavior",
"BillingPreviewAttachBillingMethodRequest",
"BillingPreviewAttachCredit",
"BillingPreviewAttachCreditTypedDict",
"BillingPreviewAttachCustomize",
"BillingPreviewAttachCustomizeReset",
"BillingPreviewAttachCustomizeResetTypedDict",
@@ -873,8 +867,6 @@ __all__ = [
"BillingPreviewUpdateBillingBehavior",
"BillingPreviewUpdateBillingMethod",
"BillingPreviewUpdateCancelAction",
"BillingPreviewUpdateCredit",
"BillingPreviewUpdateCreditTypedDict",
"BillingPreviewUpdateCustomize",
"BillingPreviewUpdateCustomizeTypedDict",
"BillingPreviewUpdateDiscount",
@@ -1439,8 +1431,6 @@ _dynamic_imports: dict[str, str] = {
"BillingAttachToTypedDict": ".billingattachop",
"BillingPreviewAttachBillingBehavior": ".billingpreviewattachop",
"BillingPreviewAttachBillingMethodRequest": ".billingpreviewattachop",
"BillingPreviewAttachCredit": ".billingpreviewattachop",
"BillingPreviewAttachCreditTypedDict": ".billingpreviewattachop",
"BillingPreviewAttachCustomize": ".billingpreviewattachop",
"BillingPreviewAttachCustomizeReset": ".billingpreviewattachop",
"BillingPreviewAttachCustomizeResetTypedDict": ".billingpreviewattachop",
@@ -1558,8 +1548,6 @@ _dynamic_imports: dict[str, str] = {
"BillingPreviewUpdateBillingBehavior": ".billingpreviewupdateop",
"BillingPreviewUpdateBillingMethod": ".billingpreviewupdateop",
"BillingPreviewUpdateCancelAction": ".billingpreviewupdateop",
"BillingPreviewUpdateCredit": ".billingpreviewupdateop",
"BillingPreviewUpdateCreditTypedDict": ".billingpreviewupdateop",
"BillingPreviewUpdateCustomize": ".billingpreviewupdateop",
"BillingPreviewUpdateCustomizeTypedDict": ".billingpreviewupdateop",
"BillingPreviewUpdateDiscount": ".billingpreviewupdateop",

View File

@@ -9,10 +9,9 @@ from autumn_sdk.types import (
UNSET_SENTINEL,
UnrecognizedStr,
)
from autumn_sdk.utils import FieldMetadata, HeaderMetadata, validate_const
from autumn_sdk.utils import FieldMetadata, HeaderMetadata
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
from typing import Any, Dict, List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
@@ -364,7 +363,6 @@ class BalancesCheckBreakdownTypedDict(TypedDict):
reset: Nullable[BalancesCheckResetTypedDict]
price: Nullable[BalancesCheckPriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -387,14 +385,6 @@ class BalancesCheckBreakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -443,7 +433,6 @@ class BalancesCheckBalanceTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[BalancesCheckFeatureTypedDict]
breakdown: NotRequired[List[BalancesCheckBreakdownTypedDict]]
rollovers: NotRequired[List[BalancesCheckBalanceRolloverTypedDict]]
@@ -466,11 +455,6 @@ class BalancesCheckBalance(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[BalancesCheckFeature] = None
breakdown: Optional[List[BalancesCheckBreakdown]] = None
@@ -1203,13 +1187,3 @@ class BalancesCheckResponse(BaseModel):
m[k] = val
return m
try:
BalancesCheckBreakdown.model_rebuild()
except NameError:
pass
try:
BalancesCheckBalance.model_rebuild()
except NameError:
pass

View File

@@ -9,10 +9,9 @@ from autumn_sdk.types import (
UNSET_SENTINEL,
UnrecognizedStr,
)
from autumn_sdk.utils import FieldMetadata, HeaderMetadata, validate_const
from autumn_sdk.utils import FieldMetadata, HeaderMetadata
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
from typing import Any, Dict, List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
@@ -361,7 +360,6 @@ class BalancesTrackBalanceBreakdownTypedDict(TypedDict):
reset: Nullable[BalancesTrackBalanceResetTypedDict]
price: Nullable[BalancesTrackBalancePriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -384,14 +382,6 @@ class BalancesTrackBalanceBreakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -440,7 +430,6 @@ class BalancesTrackBalanceTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[BalancesTrackBalanceFeatureTypedDict]
breakdown: NotRequired[List[BalancesTrackBalanceBreakdownTypedDict]]
rollovers: NotRequired[List[BalancesTrackBalanceRolloverTypedDict]]
@@ -463,11 +452,6 @@ class BalancesTrackBalance(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[BalancesTrackBalanceFeature] = None
breakdown: Optional[List[BalancesTrackBalanceBreakdown]] = None
@@ -748,7 +732,6 @@ class BalancesTrackBreakdownTypedDict(TypedDict):
reset: Nullable[BalancesTrackResetTypedDict]
price: Nullable[BalancesTrackPriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -771,14 +754,6 @@ class BalancesTrackBreakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -827,7 +802,6 @@ class BalancesTrackBalancesTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[BalancesTrackFeatureTypedDict]
breakdown: NotRequired[List[BalancesTrackBreakdownTypedDict]]
rollovers: NotRequired[List[BalancesTrackRolloverTypedDict]]
@@ -850,11 +824,6 @@ class BalancesTrackBalances(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[BalancesTrackFeature] = None
breakdown: Optional[List[BalancesTrackBreakdown]] = None
@@ -943,21 +912,3 @@ class BalancesTrackResponse(BaseModel):
m[k] = val
return m
try:
BalancesTrackBalanceBreakdown.model_rebuild()
except NameError:
pass
try:
BalancesTrackBalance.model_rebuild()
except NameError:
pass
try:
BalancesTrackBreakdown.model_rebuild()
except NameError:
pass
try:
BalancesTrackBalances.model_rebuild()
except NameError:
pass

View File

@@ -377,11 +377,15 @@ class BillingAttachItem(BaseModel):
class BillingAttachCustomizeTypedDict(TypedDict):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: NotRequired[Nullable[BillingAttachPriceTypedDict]]
items: NotRequired[List[BillingAttachItemTypedDict]]
class BillingAttachCustomize(BaseModel):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: OptionalNullable[BillingAttachPrice] = UNSET
items: Optional[List[BillingAttachItem]] = None
@@ -414,20 +418,20 @@ class BillingAttachCustomize(BaseModel):
class BillingAttachInvoiceModeTypedDict(TypedDict):
enabled: bool
enable_product_immediately: NotRequired[bool]
finalize_invoice: NotRequired[bool]
enable_plan_immediately: NotRequired[bool]
finalize: NotRequired[bool]
class BillingAttachInvoiceMode(BaseModel):
enabled: bool
enable_product_immediately: Optional[bool] = False
enable_plan_immediately: Optional[bool] = False
finalize_invoice: Optional[bool] = True
finalize: Optional[bool] = True
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["enable_product_immediately", "finalize_invoice"])
optional_fields = set(["enable_plan_immediately", "finalize"])
serialized = handler(self)
m = {}
@@ -499,8 +503,10 @@ class BillingAttachRequestTypedDict(TypedDict):
]
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: NotRequired[float]
r"""The version of the plan to attach."""
free_trial: NotRequired[Nullable[BillingAttachFreeTrialTypedDict]]
customize: NotRequired[BillingAttachCustomizeTypedDict]
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
invoice_mode: NotRequired[BillingAttachInvoiceModeTypedDict]
discounts: NotRequired[List[BillingAttachDiscountUnionTypedDict]]
redirect_mode: NotRequired[BillingAttachRedirectMode]
@@ -523,10 +529,12 @@ class BillingAttachRequest(BaseModel):
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: Optional[float] = None
r"""The version of the plan to attach."""
free_trial: OptionalNullable[BillingAttachFreeTrial] = UNSET
customize: Optional[BillingAttachCustomize] = None
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
invoice_mode: Optional[BillingAttachInvoiceMode] = None

View File

@@ -10,10 +10,9 @@ from autumn_sdk.types import (
UNSET_SENTINEL,
UnrecognizedStr,
)
from autumn_sdk.utils import FieldMetadata, HeaderMetadata, validate_const
from autumn_sdk.utils import FieldMetadata, HeaderMetadata
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
from typing import Any, Dict, List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
@@ -381,11 +380,15 @@ class BillingPreviewAttachItem(BaseModel):
class BillingPreviewAttachCustomizeTypedDict(TypedDict):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: NotRequired[Nullable[BillingPreviewAttachPriceRequestTypedDict]]
items: NotRequired[List[BillingPreviewAttachItemTypedDict]]
class BillingPreviewAttachCustomize(BaseModel):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: OptionalNullable[BillingPreviewAttachPriceRequest] = UNSET
items: Optional[List[BillingPreviewAttachItem]] = None
@@ -418,20 +421,20 @@ class BillingPreviewAttachCustomize(BaseModel):
class BillingPreviewAttachInvoiceModeTypedDict(TypedDict):
enabled: bool
enable_product_immediately: NotRequired[bool]
finalize_invoice: NotRequired[bool]
enable_plan_immediately: NotRequired[bool]
finalize: NotRequired[bool]
class BillingPreviewAttachInvoiceMode(BaseModel):
enabled: bool
enable_product_immediately: Optional[bool] = False
enable_plan_immediately: Optional[bool] = False
finalize_invoice: Optional[bool] = True
finalize: Optional[bool] = True
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["enable_product_immediately", "finalize_invoice"])
optional_fields = set(["enable_plan_immediately", "finalize"])
serialized = handler(self)
m = {}
@@ -507,8 +510,10 @@ class BillingPreviewAttachRequestTypedDict(TypedDict):
]
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: NotRequired[float]
r"""The version of the plan to attach."""
free_trial: NotRequired[Nullable[BillingPreviewAttachFreeTrialTypedDict]]
customize: NotRequired[BillingPreviewAttachCustomizeTypedDict]
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
invoice_mode: NotRequired[BillingPreviewAttachInvoiceModeTypedDict]
discounts: NotRequired[List[BillingPreviewAttachDiscountUnionTypedDict]]
redirect_mode: NotRequired[BillingPreviewAttachRedirectMode]
@@ -533,10 +538,12 @@ class BillingPreviewAttachRequest(BaseModel):
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: Optional[float] = None
r"""The version of the plan to attach."""
free_trial: OptionalNullable[BillingPreviewAttachFreeTrial] = UNSET
customize: Optional[BillingPreviewAttachCustomize] = None
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
invoice_mode: Optional[BillingPreviewAttachInvoiceMode] = None
@@ -643,13 +650,13 @@ class BillingPreviewAttachLineItemTypedDict(TypedDict):
title: str
description: str
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: NotRequired[List[BillingPreviewAttachDiscountResponseTypedDict]]
is_base: NotRequired[bool]
deferred_for_trial: NotRequired[bool]
effective_period: NotRequired[BillingPreviewAttachEffectivePeriodTypedDict]
is_base: NotRequired[bool]
class BillingPreviewAttachLineItem(BaseModel):
@@ -659,24 +666,24 @@ class BillingPreviewAttachLineItem(BaseModel):
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: Optional[List[BillingPreviewAttachDiscountResponse]] = None
is_base: Optional[bool] = None
deferred_for_trial: Optional[bool] = None
effective_period: Optional[BillingPreviewAttachEffectivePeriod] = None
is_base: Optional[bool] = None
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(
["discounts", "is_base", "deferred_for_trial", "effective_period"]
["discounts", "deferred_for_trial", "effective_period", "is_base"]
)
serialized = handler(self)
m = {}
@@ -692,17 +699,6 @@ class BillingPreviewAttachLineItem(BaseModel):
return m
class BillingPreviewAttachCreditTypedDict(TypedDict):
amount: float
description: str
class BillingPreviewAttachCredit(BaseModel):
amount: float
description: str
class BillingPreviewAttachNextCycleDiscountTypedDict(TypedDict):
amount_off: float
percent_off: NotRequired[float]
@@ -753,13 +749,13 @@ class BillingPreviewAttachNextCycleLineItemTypedDict(TypedDict):
title: str
description: str
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: NotRequired[List[BillingPreviewAttachNextCycleDiscountTypedDict]]
is_base: NotRequired[bool]
deferred_for_trial: NotRequired[bool]
effective_period: NotRequired[BillingPreviewAttachNextCycleEffectivePeriodTypedDict]
is_base: NotRequired[bool]
class BillingPreviewAttachNextCycleLineItem(BaseModel):
@@ -769,24 +765,24 @@ class BillingPreviewAttachNextCycleLineItem(BaseModel):
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: Optional[List[BillingPreviewAttachNextCycleDiscount]] = None
is_base: Optional[bool] = None
deferred_for_trial: Optional[bool] = None
effective_period: Optional[BillingPreviewAttachNextCycleEffectivePeriod] = None
is_base: Optional[bool] = None
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(
["discounts", "is_base", "deferred_for_trial", "effective_period"]
["discounts", "deferred_for_trial", "effective_period", "is_base"]
)
serialized = handler(self)
m = {}
@@ -1085,7 +1081,6 @@ class IncomingBreakdownTypedDict(TypedDict):
reset: Nullable[IncomingResetTypedDict]
price: Nullable[IncomingPriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -1108,14 +1103,6 @@ class IncomingBreakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -1164,7 +1151,6 @@ class IncomingBalancesTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[IncomingFeatureTypedDict]
breakdown: NotRequired[List[IncomingBreakdownTypedDict]]
rollovers: NotRequired[List[IncomingRolloverTypedDict]]
@@ -1187,11 +1173,6 @@ class IncomingBalances(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[IncomingFeature] = None
breakdown: Optional[List[IncomingBreakdown]] = None
@@ -1529,7 +1510,6 @@ class OutgoingBreakdownTypedDict(TypedDict):
reset: Nullable[OutgoingResetTypedDict]
price: Nullable[OutgoingPriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -1552,14 +1532,6 @@ class OutgoingBreakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -1608,7 +1580,6 @@ class OutgoingBalancesTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[OutgoingFeatureTypedDict]
breakdown: NotRequired[List[OutgoingBreakdownTypedDict]]
rollovers: NotRequired[List[OutgoingRolloverTypedDict]]
@@ -1631,11 +1602,6 @@ class OutgoingBalances(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[OutgoingFeature] = None
breakdown: Optional[List[OutgoingBreakdown]] = None
@@ -1725,7 +1691,6 @@ class BillingPreviewAttachResponseTypedDict(TypedDict):
redirect_type: Nullable[RedirectType]
period_start: NotRequired[float]
period_end: NotRequired[float]
credit: NotRequired[BillingPreviewAttachCreditTypedDict]
next_cycle: NotRequired[BillingPreviewAttachNextCycleTypedDict]
@@ -1750,13 +1715,11 @@ class BillingPreviewAttachResponse(BaseModel):
period_end: Optional[float] = None
credit: Optional[BillingPreviewAttachCredit] = None
next_cycle: Optional[BillingPreviewAttachNextCycle] = None
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["period_start", "period_end", "credit", "next_cycle"])
optional_fields = set(["period_start", "period_end", "next_cycle"])
nullable_fields = set(["redirect_type"])
serialized = handler(self)
m = {}
@@ -1788,19 +1751,3 @@ try:
BillingPreviewAttachNextCycleDiscount.model_rebuild()
except NameError:
pass
try:
IncomingBreakdown.model_rebuild()
except NameError:
pass
try:
IncomingBalances.model_rebuild()
except NameError:
pass
try:
OutgoingBreakdown.model_rebuild()
except NameError:
pass
try:
OutgoingBalances.model_rebuild()
except NameError:
pass

View File

@@ -378,11 +378,15 @@ class BillingPreviewUpdateItem(BaseModel):
class BillingPreviewUpdateCustomizeTypedDict(TypedDict):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: NotRequired[Nullable[BillingPreviewUpdatePriceTypedDict]]
items: NotRequired[List[BillingPreviewUpdateItemTypedDict]]
class BillingPreviewUpdateCustomize(BaseModel):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: OptionalNullable[BillingPreviewUpdatePrice] = UNSET
items: Optional[List[BillingPreviewUpdateItem]] = None
@@ -415,20 +419,20 @@ class BillingPreviewUpdateCustomize(BaseModel):
class BillingPreviewUpdateInvoiceModeTypedDict(TypedDict):
enabled: bool
enable_product_immediately: NotRequired[bool]
finalize_invoice: NotRequired[bool]
enable_plan_immediately: NotRequired[bool]
finalize: NotRequired[bool]
class BillingPreviewUpdateInvoiceMode(BaseModel):
enabled: bool
enable_product_immediately: Optional[bool] = False
enable_plan_immediately: Optional[bool] = False
finalize_invoice: Optional[bool] = True
finalize: Optional[bool] = True
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["enable_product_immediately", "finalize_invoice"])
optional_fields = set(["enable_plan_immediately", "finalize"])
serialized = handler(self)
m = {}
@@ -466,9 +470,11 @@ class BillingPreviewUpdateRequestTypedDict(TypedDict):
]
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: NotRequired[float]
r"""The version of the plan to attach."""
free_trial: NotRequired[Nullable[BillingPreviewUpdateFreeTrialTypedDict]]
customize: NotRequired[BillingPreviewUpdateCustomizeTypedDict]
plan_id: NotRequired[Nullable[str]]
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
plan_id: NotRequired[str]
invoice_mode: NotRequired[BillingPreviewUpdateInvoiceModeTypedDict]
cancel_action: NotRequired[BillingPreviewUpdateCancelAction]
billing_behavior: NotRequired[BillingPreviewUpdateBillingBehavior]
@@ -487,12 +493,14 @@ class BillingPreviewUpdateRequest(BaseModel):
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: Optional[float] = None
r"""The version of the plan to attach."""
free_trial: OptionalNullable[BillingPreviewUpdateFreeTrial] = UNSET
customize: Optional[BillingPreviewUpdateCustomize] = None
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
plan_id: OptionalNullable[str] = UNSET
plan_id: Optional[str] = None
invoice_mode: Optional[BillingPreviewUpdateInvoiceMode] = None
@@ -515,9 +523,7 @@ class BillingPreviewUpdateRequest(BaseModel):
"billing_behavior",
]
)
nullable_fields = set(
["entity_id", "feature_quantities", "free_trial", "plan_id"]
)
nullable_fields = set(["entity_id", "feature_quantities", "free_trial"])
serialized = handler(self)
m = {}
@@ -590,13 +596,13 @@ class BillingPreviewUpdateLineItemTypedDict(TypedDict):
title: str
description: str
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: NotRequired[List[BillingPreviewUpdateDiscountTypedDict]]
is_base: NotRequired[bool]
deferred_for_trial: NotRequired[bool]
effective_period: NotRequired[BillingPreviewUpdateEffectivePeriodTypedDict]
is_base: NotRequired[bool]
class BillingPreviewUpdateLineItem(BaseModel):
@@ -606,24 +612,24 @@ class BillingPreviewUpdateLineItem(BaseModel):
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: Optional[List[BillingPreviewUpdateDiscount]] = None
is_base: Optional[bool] = None
deferred_for_trial: Optional[bool] = None
effective_period: Optional[BillingPreviewUpdateEffectivePeriod] = None
is_base: Optional[bool] = None
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(
["discounts", "is_base", "deferred_for_trial", "effective_period"]
["discounts", "deferred_for_trial", "effective_period", "is_base"]
)
serialized = handler(self)
m = {}
@@ -639,17 +645,6 @@ class BillingPreviewUpdateLineItem(BaseModel):
return m
class BillingPreviewUpdateCreditTypedDict(TypedDict):
amount: float
description: str
class BillingPreviewUpdateCredit(BaseModel):
amount: float
description: str
class BillingPreviewUpdateNextCycleDiscountTypedDict(TypedDict):
amount_off: float
percent_off: NotRequired[float]
@@ -700,13 +695,13 @@ class BillingPreviewUpdateNextCycleLineItemTypedDict(TypedDict):
title: str
description: str
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: NotRequired[List[BillingPreviewUpdateNextCycleDiscountTypedDict]]
is_base: NotRequired[bool]
deferred_for_trial: NotRequired[bool]
effective_period: NotRequired[BillingPreviewUpdateNextCycleEffectivePeriodTypedDict]
is_base: NotRequired[bool]
class BillingPreviewUpdateNextCycleLineItem(BaseModel):
@@ -716,24 +711,24 @@ class BillingPreviewUpdateNextCycleLineItem(BaseModel):
amount: float
plan_id: str
total_quantity: float
paid_quantity: float
plan_id: str
discounts: Optional[List[BillingPreviewUpdateNextCycleDiscount]] = None
is_base: Optional[bool] = None
deferred_for_trial: Optional[bool] = None
effective_period: Optional[BillingPreviewUpdateNextCycleEffectivePeriod] = None
is_base: Optional[bool] = None
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(
["discounts", "is_base", "deferred_for_trial", "effective_period"]
["discounts", "deferred_for_trial", "effective_period", "is_base"]
)
serialized = handler(self)
m = {}
@@ -772,7 +767,6 @@ class BillingPreviewUpdateResponseTypedDict(TypedDict):
currency: str
period_start: NotRequired[float]
period_end: NotRequired[float]
credit: NotRequired[BillingPreviewUpdateCreditTypedDict]
next_cycle: NotRequired[BillingPreviewUpdateNextCycleTypedDict]
@@ -791,13 +785,11 @@ class BillingPreviewUpdateResponse(BaseModel):
period_end: Optional[float] = None
credit: Optional[BillingPreviewUpdateCredit] = None
next_cycle: Optional[BillingPreviewUpdateNextCycle] = None
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["period_start", "period_end", "credit", "next_cycle"])
optional_fields = set(["period_start", "period_end", "next_cycle"])
serialized = handler(self)
m = {}

View File

@@ -377,11 +377,15 @@ class BillingUpdateItem(BaseModel):
class BillingUpdateCustomizeTypedDict(TypedDict):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: NotRequired[Nullable[BillingUpdatePriceTypedDict]]
items: NotRequired[List[BillingUpdateItemTypedDict]]
class BillingUpdateCustomize(BaseModel):
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
price: OptionalNullable[BillingUpdatePrice] = UNSET
items: Optional[List[BillingUpdateItem]] = None
@@ -414,20 +418,20 @@ class BillingUpdateCustomize(BaseModel):
class BillingUpdateInvoiceModeTypedDict(TypedDict):
enabled: bool
enable_product_immediately: NotRequired[bool]
finalize_invoice: NotRequired[bool]
enable_plan_immediately: NotRequired[bool]
finalize: NotRequired[bool]
class BillingUpdateInvoiceMode(BaseModel):
enabled: bool
enable_product_immediately: Optional[bool] = False
enable_plan_immediately: Optional[bool] = False
finalize_invoice: Optional[bool] = True
finalize: Optional[bool] = True
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["enable_product_immediately", "finalize_invoice"])
optional_fields = set(["enable_plan_immediately", "finalize"])
serialized = handler(self)
m = {}
@@ -465,9 +469,11 @@ class BillingUpdateRequestTypedDict(TypedDict):
]
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: NotRequired[float]
r"""The version of the plan to attach."""
free_trial: NotRequired[Nullable[BillingUpdateFreeTrialTypedDict]]
customize: NotRequired[BillingUpdateCustomizeTypedDict]
plan_id: NotRequired[Nullable[str]]
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
plan_id: NotRequired[str]
invoice_mode: NotRequired[BillingUpdateInvoiceModeTypedDict]
cancel_action: NotRequired[BillingUpdateCancelAction]
billing_behavior: NotRequired[BillingUpdateBillingBehavior]
@@ -484,12 +490,14 @@ class BillingUpdateRequest(BaseModel):
r"""If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan."""
version: Optional[float] = None
r"""The version of the plan to attach."""
free_trial: OptionalNullable[BillingUpdateFreeTrial] = UNSET
customize: Optional[BillingUpdateCustomize] = None
r"""Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both."""
plan_id: OptionalNullable[str] = UNSET
plan_id: Optional[str] = None
invoice_mode: Optional[BillingUpdateInvoiceMode] = None
@@ -512,9 +520,7 @@ class BillingUpdateRequest(BaseModel):
"billing_behavior",
]
)
nullable_fields = set(
["entity_id", "feature_quantities", "free_trial", "plan_id"]
)
nullable_fields = set(["entity_id", "feature_quantities", "free_trial"])
serialized = handler(self)
m = {}

View File

@@ -10,12 +10,9 @@ from autumn_sdk.types import (
UNSET_SENTINEL,
UnrecognizedStr,
)
from autumn_sdk.utils import validate_const
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
from typing import Any, Dict, List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
from typing_extensions import NotRequired, TypeAliasType, TypedDict
CustomerEnv = Union[
@@ -408,7 +405,6 @@ class BreakdownTypedDict(TypedDict):
reset: Nullable[CustomerResetTypedDict]
price: Nullable[CustomerPriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -431,14 +427,6 @@ class Breakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -487,7 +475,6 @@ class BalancesTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[CustomerFeatureTypedDict]
breakdown: NotRequired[List[BreakdownTypedDict]]
rollovers: NotRequired[List[CustomerRolloverTypedDict]]
@@ -510,11 +497,6 @@ class Balances(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[CustomerFeature] = None
breakdown: Optional[List[Breakdown]] = None
@@ -1035,13 +1017,3 @@ class Customer(BaseModel):
m[k] = val
return m
try:
Breakdown.model_rebuild()
except NameError:
pass
try:
Balances.model_rebuild()
except NameError:
pass

View File

@@ -10,10 +10,9 @@ from autumn_sdk.types import (
UNSET_SENTINEL,
UnrecognizedStr,
)
from autumn_sdk.utils import FieldMetadata, HeaderMetadata, validate_const
from autumn_sdk.utils import FieldMetadata, HeaderMetadata
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
from typing import Any, Dict, List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
@@ -528,7 +527,6 @@ class ListCustomersBreakdownTypedDict(TypedDict):
reset: Nullable[ListCustomersResetTypedDict]
price: Nullable[ListCustomersPriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -551,14 +549,6 @@ class ListCustomersBreakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -607,7 +597,6 @@ class ListCustomersBalancesTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[ListCustomersFeatureTypedDict]
breakdown: NotRequired[List[ListCustomersBreakdownTypedDict]]
rollovers: NotRequired[List[ListCustomersRolloverTypedDict]]
@@ -630,11 +619,6 @@ class ListCustomersBalances(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[ListCustomersFeature] = None
breakdown: Optional[List[ListCustomersBreakdown]] = None
@@ -772,13 +756,3 @@ class ListCustomersResponse(BaseModel):
total: float
r"""Total number of items returned in the current page"""
try:
ListCustomersBreakdown.model_rebuild()
except NameError:
pass
try:
ListCustomersBalances.model_rebuild()
except NameError:
pass

View File

@@ -10,10 +10,9 @@ from autumn_sdk.types import (
UNSET_SENTINEL,
UnrecognizedStr,
)
from autumn_sdk.utils import FieldMetadata, HeaderMetadata, validate_const
from autumn_sdk.utils import FieldMetadata, HeaderMetadata
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import AfterValidator
from typing import Any, Dict, List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
@@ -518,7 +517,6 @@ class UpdateCustomerBreakdownTypedDict(TypedDict):
reset: Nullable[UpdateCustomerResetTypedDict]
price: Nullable[UpdateCustomerPriceTypedDict]
expires_at: Nullable[float]
object: Literal["balance_breakdown"]
id: NotRequired[str]
@@ -541,14 +539,6 @@ class UpdateCustomerBreakdown(BaseModel):
expires_at: Nullable[float]
object: Annotated[
Annotated[
Literal["balance_breakdown"],
AfterValidator(validate_const("balance_breakdown")),
],
pydantic.Field(alias="object"),
] = "balance_breakdown"
id: Optional[str] = ""
@model_serializer(mode="wrap")
@@ -597,7 +587,6 @@ class UpdateCustomerBalancesTypedDict(TypedDict):
overage_allowed: bool
max_purchase: Nullable[float]
next_reset_at: Nullable[float]
object: Literal["balance"]
feature: NotRequired[UpdateCustomerFeatureTypedDict]
breakdown: NotRequired[List[UpdateCustomerBreakdownTypedDict]]
rollovers: NotRequired[List[UpdateCustomerRolloverTypedDict]]
@@ -620,11 +609,6 @@ class UpdateCustomerBalances(BaseModel):
next_reset_at: Nullable[float]
object: Annotated[
Annotated[Literal["balance"], AfterValidator(validate_const("balance"))],
pydantic.Field(alias="object"),
] = "balance"
feature: Optional[UpdateCustomerFeature] = None
breakdown: Optional[List[UpdateCustomerBreakdown]] = None
@@ -732,13 +716,3 @@ class UpdateCustomerResponse(BaseModel):
m[k] = val
return m
try:
UpdateCustomerBreakdown.model_rebuild()
except NameError:
pass
try:
UpdateCustomerBalances.model_rebuild()
except NameError:
pass

View File

@@ -44,7 +44,7 @@ wheels = [
[[package]]
name = "autumn-sdk"
version = "0.2.21"
version = "0.2.22"
source = { editable = "." }
dependencies = [
{ name = "httpcore" },

View File

@@ -18,6 +18,7 @@
"stripe": "19.3.0-beta.1",
"drizzle-orm": "0.43.1",
"drizzle-kit": "^0.31.1",
"tsgo": "npm:@typescript/native-preview@7.0.0-dev.20260218.1",
"@sentry/bun": "10.38.0",
"@clickhouse/client": "1.11.2",
"@date-fns/utc": "2.1.0",

View File

@@ -86,6 +86,7 @@
"react-dom": "^19.1.0",
"stripe": "^18.3.0",
"tsup": "^8.4.0",
"tsgo": "catalog:",
"tsx": "^4.19.3",
"typescript": "^5.8.3"
},

View File

@@ -57,8 +57,6 @@ export const executeRoute = async ({
try {
const result = await route.customHandler({ autumn, identity, body });
console.log("result", result);
// If customHandler returns BackendResult, use it directly
if (isBackendResult(result)) {
return result;

View File

@@ -35,10 +35,14 @@ export const routeConfigs: RouteDefinition<RouteName>[] = [
}
// Build args and call SDK
const existingExpand = Array.isArray(sanitizedBody.expand)
? sanitizedBody.expand
: [];
const args = {
customerId: identity.customerId,
...identity.customerData,
...sanitizedBody,
expand: [...existingExpand, "balances.feature"],
};
return autumn.customers.getOrCreate(args);
},

View File

@@ -20,8 +20,8 @@ export const billingAttachTierSchema = z.object({
export const billingAttachInvoiceModeSchema = z.object({
enabled: z.boolean(),
enableProductImmediately: z.union([z.boolean(), z.undefined()]).optional(),
finalizeInvoice: z.union([z.boolean(), z.undefined()]).optional(),
enablePlanImmediately: z.union([z.boolean(), z.undefined()]).optional(),
finalize: z.union([z.boolean(), z.undefined()]).optional(),
});
export const billingAttachDiscount2Schema = z.object({
@@ -126,8 +126,8 @@ export const billingAttachCustomizeOutboundSchema = z.object({
export const billingAttachInvoiceModeOutboundSchema = z.object({
enabled: z.boolean(),
enable_product_immediately: z.boolean(),
finalize_invoice: z.boolean(),
enable_plan_immediately: z.boolean(),
finalize: z.boolean(),
});
export const billingAttachDiscount2OutboundSchema = z.object({

View File

@@ -1,5 +1,10 @@
import type { BalancesCheckResponse, Customer } from "@useautumn/sdk";
import type { CheckParams } from "../../../types";
import {
type ApiBalanceInput,
apiBalanceToAllowed,
} from "../../../../../../shared/api/customers/cusFeatures/utils/convert/apiBalanceToAllowed";
import type { ClientCheckParams } from "../../../types/params";
import { toSnakeCase } from "../../../utils/toSnakeCase";
type CustomerBalance = Customer["balances"][string];
@@ -13,42 +18,6 @@ const resolveRequiredBalance = ({
return requiredBalance ?? requiredQuantity ?? 1;
};
const getAvailableOverage = ({
balance,
}: {
balance: CustomerBalance;
}): number | undefined => {
const breakdown = balance.breakdown ?? [];
const usageBasedBreakdown = breakdown.filter(
(item) => item.price?.billingMethod === "usage_based",
);
if (usageBasedBreakdown.length === 0) {
return balance.maxPurchase ?? undefined;
}
let maxOverage = 0;
let overageUsage = 0;
for (const item of usageBasedBreakdown) {
if (item.price?.maxPurchase === null) {
return undefined;
}
if (item.price?.maxPurchase !== undefined) {
maxOverage += item.price.maxPurchase;
}
const overage = Math.max(
0,
item.usage - item.includedGrant - item.prepaidGrant,
);
overageUsage += overage;
}
return Math.max(0, maxOverage - overageUsage);
};
const isBalanceAllowed = ({
balance,
requiredBalance,
@@ -56,28 +25,19 @@ const isBalanceAllowed = ({
balance: CustomerBalance;
requiredBalance: number;
}) => {
if (balance.feature?.type === "boolean") {
return true;
}
const snakeCaseBalance = toSnakeCase({
obj: balance,
}) as unknown as ApiBalanceInput;
if (balance.unlimited) {
return true;
}
const featureForCheck = {
type: balance.feature?.type ?? "metered",
} as Parameters<typeof apiBalanceToAllowed>[0]["feature"];
if (requiredBalance < 0) {
return true;
}
if (balance.overageAllowed) {
const availableOverage = getAvailableOverage({ balance });
if (availableOverage === undefined) {
return true;
}
return balance.remaining + availableOverage >= requiredBalance;
}
return balance.remaining >= requiredBalance;
return apiBalanceToAllowed({
apiBalance: snakeCaseBalance,
feature: featureForCheck,
requiredBalance,
});
};
const getCreditBalanceRequired = ({
@@ -102,7 +62,7 @@ const getFeatureCheckResponse = ({
params,
}: {
customer: Customer;
params: CheckParams;
params: ClientCheckParams;
}): BalancesCheckResponse => {
const featureId = params.featureId;
if (!featureId) {
@@ -201,56 +161,12 @@ const getFeatureCheckResponse = ({
};
};
const getProductCheckResponse = ({
customer,
params,
}: {
customer: Customer;
params: CheckParams;
}): BalancesCheckResponse => {
const productId = params.productId;
const requiredBalance = resolveRequiredBalance({
requiredBalance: params.requiredBalance,
requiredQuantity: params.requiredQuantity,
});
if (!productId) {
return {
allowed: false,
customerId: customer.id ?? "",
entityId: params.entityId ?? null,
requiredBalance,
balance: null,
};
}
const now = Date.now();
const hasActiveSubscription = customer.subscriptions.some(
(subscription) =>
subscription.planId === productId &&
(subscription.status === "active" || subscription.status === "scheduled"),
);
const hasActivePurchase = customer.purchases.some(
(purchase) =>
purchase.planId === productId &&
(purchase.expiresAt === null || purchase.expiresAt > now),
);
return {
allowed: hasActiveSubscription || hasActivePurchase,
customerId: customer.id ?? "",
entityId: params.entityId ?? null,
requiredBalance,
balance: null,
};
};
export const getLocalCheckResponse = ({
customer,
params,
}: {
customer: Customer | null;
params: CheckParams;
params: ClientCheckParams;
}): BalancesCheckResponse => {
if (!customer) {
return {
@@ -265,12 +181,8 @@ export const getLocalCheckResponse = ({
};
}
if (!params.featureId && !params.productId) {
throw new Error("check() requires either featureId or productId");
}
if (params.productId && !params.featureId) {
return getProductCheckResponse({ customer, params });
if (!params.featureId) {
throw new Error("check() requires featureId");
}
return getFeatureCheckResponse({ customer, params });

View File

@@ -1,13 +1,12 @@
import type { BillingAttachRequest, CustomerExpand } from "@useautumn/sdk";
import type {
BalancesCheckRequest,
BillingAttachRequest,
CustomerExpand,
} from "@useautumn/sdk";
/** Fields injected by backend - stripped from frontend params */
export type ProtectedFields = "customerId" | "customerData";
/** Attach params without protected fields (for frontend use) */
export type ClientAttachParams = Omit<BillingAttachRequest, ProtectedFields> & {
openInNewTab?: boolean;
};
/** GetOrCreateCustomer params without protected fields (for frontend use) */
export type ClientGetOrCreateCustomerParams = {
errorOnNotFound?: boolean;
@@ -15,10 +14,12 @@ export type ClientGetOrCreateCustomerParams = {
};
/** Check params for local balance check */
export type CheckParams = {
featureId?: string;
productId?: string;
entityId?: string;
requiredBalance?: number;
requiredQuantity?: number;
export type ClientCheckParams = Omit<BalancesCheckRequest, ProtectedFields>;
/** Attach params without protected fields (for frontend use) */
export type ClientAttachParams = Omit<
BillingAttachRequest,
ProtectedFields | "sendEvent" | "properties" | "withPreview"
> & {
openInNewTab?: boolean;
};

View File

@@ -198,8 +198,6 @@ components:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -275,8 +273,6 @@ components:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -361,7 +357,6 @@ components:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -384,7 +379,6 @@ components:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1222,8 +1216,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1299,8 +1291,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1384,7 +1374,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1407,7 +1396,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1649,8 +1637,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1726,8 +1712,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1812,7 +1796,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1835,7 +1818,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1984,6 +1966,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2130,6 +2113,8 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2137,10 +2122,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2283,6 +2268,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2429,6 +2415,8 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2436,10 +2424,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2518,14 +2506,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2538,13 +2524,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -2553,16 +2541,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -2597,14 +2575,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2617,13 +2593,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -2654,8 +2632,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -2731,8 +2707,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -2816,7 +2790,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -2839,7 +2812,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -2882,8 +2854,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -2959,8 +2929,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -3044,7 +3012,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -3067,7 +3034,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -3144,6 +3110,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3290,19 +3257,19 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3419,6 +3386,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3565,19 +3533,19 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3630,14 +3598,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3650,13 +3616,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -3665,16 +3633,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -3709,14 +3667,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3729,13 +3685,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -4004,8 +3962,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4081,8 +4037,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4167,7 +4121,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4190,7 +4143,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -4611,8 +4563,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4688,8 +4638,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4774,7 +4722,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4797,7 +4744,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -4814,8 +4760,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4891,8 +4835,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4977,7 +4919,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -5000,7 +4941,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining

View File

@@ -198,8 +198,6 @@ components:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -275,8 +273,6 @@ components:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -361,7 +357,6 @@ components:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -384,7 +379,6 @@ components:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1251,8 +1245,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1328,8 +1320,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1413,7 +1403,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1436,7 +1425,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1676,8 +1664,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1753,8 +1739,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1839,7 +1823,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1862,7 +1845,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1993,6 +1975,11 @@ paths:
this field to specify the quantity of each prepaid feature. This
quantity includes the included amount and billing units defined when
setting up the plan. (optional)
@param version - The version of the plan to attach. (optional)
@param customize - Customize the plan to attach. Can either override the
price of the plan, the items in the plan, or both. (optional)
tags:
- billing
requestBody:
@@ -2032,6 +2019,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2178,6 +2166,8 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2185,10 +2175,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2331,6 +2321,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2477,6 +2468,8 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2484,10 +2477,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2566,14 +2559,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2586,13 +2577,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -2601,16 +2594,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -2645,14 +2628,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2665,13 +2646,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -2702,8 +2685,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -2779,8 +2760,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -2864,7 +2843,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -2887,7 +2865,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -2930,8 +2907,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -3007,8 +2982,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -3092,7 +3065,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -3115,7 +3087,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -3192,6 +3163,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3338,19 +3310,19 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3467,6 +3439,7 @@ paths:
up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3613,19 +3586,19 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the
plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3678,14 +3651,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3698,13 +3669,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -3713,16 +3686,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -3757,14 +3720,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3777,13 +3738,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -4052,8 +4015,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4129,8 +4090,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4215,7 +4174,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4238,7 +4196,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -4659,8 +4616,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4736,8 +4691,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4822,7 +4775,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4845,7 +4797,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -4862,8 +4813,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4939,8 +4888,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -5025,7 +4972,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -5048,7 +4994,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining

View File

@@ -19,6 +19,7 @@
},
"devDependencies": {
"@types/bun": "latest",
"@types/node": "^24.0.3"
"@types/node": "^24.0.3",
"tsgo": "catalog:"
}
}

View File

@@ -1,16 +1,16 @@
lockVersion: 2.0.0
id: 7b300647-cd76-49e9-bf77-7d1bf5446d66
management:
docChecksum: 9b26038b0f2a1ba63acb8bafb2c178fd
docChecksum: 2599354f8d9fec10f95f15d1c9096b1d
docVersion: 2.1.0
speakeasyVersion: 1.719.0
generationVersion: 2.824.1
releaseVersion: 0.8.25
configChecksum: 455706e7c673fa1444e7f4db4ca90c5f
releaseVersion: 0.8.26
configChecksum: b6c3c32777c82006d83440f8a980d2af
persistentEdits:
generation_id: 74144e98-8f07-4222-a25c-9a40e8f1479b
pristine_commit_hash: 57e185a8cc44e8c4c4332fae73e8f5d06bb89182
pristine_tree_hash: 198ed5d2ca32f133be3b23183072b8cf290083ac
generation_id: ddc35772-b2eb-4820-b753-62525d82a8eb
pristine_commit_hash: 60a4122091e83ecafdd2621fef72c448d614bdf2
pristine_tree_hash: eea50d885bff1b9f808c6350c2e0ad0b877155a9
features:
typescript:
additionalDependencies: 0.1.0
@@ -92,16 +92,16 @@ trackedFiles:
pristine_git_object: 1a9b2c56cbffafe4f9ce50040d67cd01cc9713ad
docs/models/balances-check-balance.md:
id: 2617c1dd40dc
last_write_checksum: sha1:b6ea15452d02660ba7d87e1eca23a1d3a4315499
pristine_git_object: 927b0c458fad1b8592a033f948d031cae34a380f
last_write_checksum: sha1:882a4db4be46b51f0e0bbb565b41ee2f650b318c
pristine_git_object: 5db52bece2fb9d7552625a88b9ca0d56605be4dd
docs/models/balances-check-billing-method.md:
id: 583834db21cd
last_write_checksum: sha1:7d77b700b2ae048d475a184872eb5d28a97b6739
pristine_git_object: d7269db25959238ddb6f8c668389c092078db207
docs/models/balances-check-breakdown.md:
id: de24bb88bcba
last_write_checksum: sha1:2beb4afa766570ace9320732a452e7c4cbd6e626
pristine_git_object: d48fa230ac24414d710ef9e86d62f782f7b156e6
last_write_checksum: sha1:391725266f289e1957c1e64efe73e02ee316caf9
pristine_git_object: a4f2014656b6e3d5e46c239db56099ad94fd1195
docs/models/balances-check-credit-schema.md:
id: c589ed3caba6
last_write_checksum: sha1:2bb946ab9f2ca06de9ec86b6f0339ef4d8175667
@@ -152,8 +152,8 @@ trackedFiles:
pristine_git_object: f0bffa7d66f032f26856f1c39d97c8565c2e3b47
docs/models/balances-check-response.md:
id: bd48955a780a
last_write_checksum: sha1:7211c396d72762a4dc9079086dbcab7d89500b3b
pristine_git_object: 260858a12e1f3884bcfc8ff0c5fbaa42fa2dad29
last_write_checksum: sha1:1f3f7c9ac94fdfc6cd2420fc8aef65797e127abe
pristine_git_object: 13c90b2a54df4c30caf755d899adac4ab7fc2749
docs/models/balances-check-scenario.md:
id: aefabfed1a3d
last_write_checksum: sha1:0c14ca643df4a726f3aaf30f5c2c1caa3cad2d72
@@ -188,8 +188,8 @@ trackedFiles:
pristine_git_object: 29cb6a93841aafe72287fee85a49cb3fbcd092e2
docs/models/balances-track-balance-breakdown.md:
id: bfa6c8f0598f
last_write_checksum: sha1:c80cefa9fc6a091d43b5ab66f4ed3df5843b38ed
pristine_git_object: e3afcde4144dfe0140561a3585a987e52340908b
last_write_checksum: sha1:11cd84de20bebedd8614835f2be1bf41609a2d70
pristine_git_object: c4ccc9979aa3750535aebbc726d9228f1b8ef2d2
docs/models/balances-track-balance-credit-schema.md:
id: 5529602a29be
last_write_checksum: sha1:a4da519e6607287c1da2115032df1be457a27eb8
@@ -236,20 +236,20 @@ trackedFiles:
pristine_git_object: 882d9d3dc934b7ed7c4fedc1874a78a72081e2d8
docs/models/balances-track-balance.md:
id: a63fed0309ba
last_write_checksum: sha1:f6a293ca8449b8d210e299590f0fbd34ddbdcf98
pristine_git_object: 52c41561b9c8e72359420533558865b3862ebe34
last_write_checksum: sha1:910bdad0ad4ade89f612abc291732723fe079d50
pristine_git_object: 932237fa5f2929d6d1dd872afe99c94319204535
docs/models/balances-track-balances.md:
id: 021ee4a29341
last_write_checksum: sha1:a69ebfbec0aa40c774ea8bf90e2b25816fb91626
pristine_git_object: 64c61a7b593f5de89c1c9ec772ce343393a7fa1d
last_write_checksum: sha1:bab8be67683b4da8c4e68fb98fcc2b45b05b41a8
pristine_git_object: a19a265977811693320f0e11d414d9202a5da65b
docs/models/balances-track-billing-method.md:
id: a6b8fad7a6ff
last_write_checksum: sha1:7b2aecd489e7876dc1dc4b7b90010b915691b996
pristine_git_object: 22f323f1f684d0e45189794dcc59954a3be194d0
docs/models/balances-track-breakdown.md:
id: 9889d0b0d3a3
last_write_checksum: sha1:1b93e28f63b721a108af735a320456bcb58374c4
pristine_git_object: 6bdf25b7f4450f3518f623439e36f5fec51ae49c
last_write_checksum: sha1:6a24d8a6e6432216a3989241265b2bb120f89111
pristine_git_object: e11ae4e8ad25391630930694d47a2658d17a0f6c
docs/models/balances-track-credit-schema.md:
id: d719ea66b30f
last_write_checksum: sha1:60385b355cf8a70cedb250f948cf3b195715ea27
@@ -288,8 +288,8 @@ trackedFiles:
pristine_git_object: d6ce345bb4647a172589c205cefe33d1c49d7570
docs/models/balances-track-response.md:
id: 1505ee74210a
last_write_checksum: sha1:c0f6b3d7f04110e8c7ed3729e8f19d91508500af
pristine_git_object: 298ff88b2a8c75792576febf9c3ee655e04dca69
last_write_checksum: sha1:7cabd4dedfdf30d7db034e0a8df088d5e2487af4
pristine_git_object: ee6fc647bf340a621d98ecd83a923ce5c7bc8004
docs/models/balances-track-rollover.md:
id: f2a1b55f4f24
last_write_checksum: sha1:412f352852450e765e62aa33fda87a155804e483
@@ -324,8 +324,8 @@ trackedFiles:
pristine_git_object: ab7956e12dcd465a3823a93285b175fdc2bbd582
docs/models/balances.md:
id: 2f042cf3d0aa
last_write_checksum: sha1:961df8a92770eefa6e3761b58dc0f8119e43ff37
pristine_git_object: 165def0fce7a0dfeed684b9c15322003eb879dfa
last_write_checksum: sha1:9a9c2a84d066247446703b35af6efe14f5df1cb3
pristine_git_object: fd59d3018e8e84c9fcdf744a438072eff75638b6
docs/models/billing-attach-billing-behavior.md:
id: 69bb81e8c7dc
last_write_checksum: sha1:09f6094796a2f12ee8a2c68c8017b476fd54c086
@@ -340,8 +340,8 @@ trackedFiles:
pristine_git_object: bcc209eac8b4b53dc8977de477b10736462a6750
docs/models/billing-attach-customize.md:
id: fdbcde378958
last_write_checksum: sha1:c57ddf7091160673850d174c73a94aafe12d3eb5
pristine_git_object: 8769359a342520e11101d1dd6b994525016d52ef
last_write_checksum: sha1:7bfa0fc1444dc4916482edc359762fcb84b0a41a
pristine_git_object: f3eda471186b21392e9d1bc031ae3f6307d59233
docs/models/billing-attach-discount-union.md:
id: 01f04cffd3dd
last_write_checksum: sha1:99f3732c455c922da151a6e6c7a20f5bcf659d4b
@@ -376,8 +376,8 @@ trackedFiles:
pristine_git_object: e33e3d806a642d9b936d867e0eec217edda9199f
docs/models/billing-attach-invoice-mode.md:
id: 9cd0f26dd730
last_write_checksum: sha1:57eb9b452bd34bf32b95e710ab1e470df1860be6
pristine_git_object: 6a80b61ff7dc1608f596b7a38ba93b2414af8485
last_write_checksum: sha1:1748f7a34350dea3662e548f8edc6bd4d95c812f
pristine_git_object: 1a41dead8e8bd4a813724e9835328f73657eab37
docs/models/billing-attach-invoice.md:
id: dc71d6a68aab
last_write_checksum: sha1:c06f7dc2fbb36310c43da2f99ad72082e5e3373f
@@ -424,8 +424,8 @@ trackedFiles:
pristine_git_object: a458416b2fd8ef52ebaf49c4c37d35cdc192e4be
docs/models/billing-attach-request.md:
id: b6f36e00f4c1
last_write_checksum: sha1:024a9d4bf2bf901a9a33f241a9765ec32a3fe6df
pristine_git_object: 6bfaf425b902076b25d2fe3750dac6a78e522272
last_write_checksum: sha1:bd2bca7e8167796b1469d9eb956c160106f9dc9d
pristine_git_object: 6115d4c5cb713a6a0a4fc1714bb40eb9e39905f6
docs/models/billing-attach-required-action.md:
id: 8ba37f3620e5
last_write_checksum: sha1:7063b6fd636642582b41505c53e0fd925839f987
@@ -462,18 +462,14 @@ trackedFiles:
id: 1495a9fc1816
last_write_checksum: sha1:85ca489229e4fd71fb11e150d367915c9417e7ac
pristine_git_object: ca72a1af609666308d5289e00c53aee7a46afb82
docs/models/billing-preview-attach-credit.md:
id: 2f7dd9d1bd0b
last_write_checksum: sha1:e97d009f76a98c0c6deff27669303afdf0f3fbbe
pristine_git_object: 9d7743e943a74e86d09b5316c314352289739690
docs/models/billing-preview-attach-customize-reset.md:
id: 08b7672cceb1
last_write_checksum: sha1:012d6ca68c8304d2970da533c2fcdd47c3a474de
pristine_git_object: 417e782695458da4e3d20d842557e3cde0d8165d
docs/models/billing-preview-attach-customize.md:
id: db4350a07b4a
last_write_checksum: sha1:0a665c0882e5d27d9428dbf996acf60f117b95b9
pristine_git_object: d10c255ae6fd1af91041edc5da5d752d5e241c5a
last_write_checksum: sha1:7ca078b89d1ddb807de370c1cb33fa9c7f311827
pristine_git_object: cbec9da518bc8bce53df143487191d092a8be704
docs/models/billing-preview-attach-discount-request1.md:
id: b7463c8fcc7e
last_write_checksum: sha1:72de3ad51a1b6baa1e76b49c85d36cbe6be4c56d
@@ -516,8 +512,8 @@ trackedFiles:
pristine_git_object: 39f8ffc2e65acf9add7aa452b0e13145699d88e3
docs/models/billing-preview-attach-invoice-mode.md:
id: "579551578440"
last_write_checksum: sha1:3371297f697da8192218fea2b9fba18c70a456c9
pristine_git_object: f1524f24c5407b552b1f4e2988e2747b13ea31c2
last_write_checksum: sha1:3ee9de3e1a1d3f8a33333f4a95f72532de5ff929
pristine_git_object: 9ed84d9ceedd9d43de863044f7902ed81e199574
docs/models/billing-preview-attach-item-price-interval.md:
id: 9292f3405760
last_write_checksum: sha1:7196e1880b16f567598337a0cb543cf4ca2b9985
@@ -536,8 +532,8 @@ trackedFiles:
pristine_git_object: 8bad9add40c4cbf0ce3f01d0d4291c8723d8034b
docs/models/billing-preview-attach-line-item.md:
id: ee96cc430bdf
last_write_checksum: sha1:e259f42764feea773fd951cc908888accd1132bc
pristine_git_object: bbb676d956f6278fd67535e8cbdc0d36941ff389
last_write_checksum: sha1:7b5558d14250b8866c8046b751229956f1b488cc
pristine_git_object: cabb85b7184469d0e4eb7b1c955bba9d99ebbef3
docs/models/billing-preview-attach-next-cycle-discount.md:
id: 0c48ff87c206
last_write_checksum: sha1:d0013ae39b392f8e57d1cd3ac3fcfde3f8f2673d
@@ -548,8 +544,8 @@ trackedFiles:
pristine_git_object: f08fff29f4eaff3516916bea3ea7986f1f48c24a
docs/models/billing-preview-attach-next-cycle-line-item.md:
id: 91e717af160b
last_write_checksum: sha1:8e0cb3e74e755374cdea328471341c39a10a125a
pristine_git_object: b844edb4179b05d6d56740136a2cab407a913e7b
last_write_checksum: sha1:7a9dd47f011f262a3f77a417f1821b9c4308fec9
pristine_git_object: d31f66e6273801a88fc176f76be1480255e3b31d
docs/models/billing-preview-attach-next-cycle.md:
id: 74850a3b3f53
last_write_checksum: sha1:5f0def9a42f509bd6207aa6244b330f33df50af1
@@ -584,12 +580,12 @@ trackedFiles:
pristine_git_object: 784a14506156879c0745ac8d9172f468fbeece98
docs/models/billing-preview-attach-request.md:
id: 3f00ff275eb9
last_write_checksum: sha1:94e2531f9bdc85782a5004af3476b1da21f03813
pristine_git_object: 6da57d0e064d5ba4e8478be9b5a0b4ab6fb25b2f
last_write_checksum: sha1:27d7fa29701311a9f8401f30a53a3ae49119143c
pristine_git_object: dd592a2f9ed74a081031b5d60fac41f8ce874c94
docs/models/billing-preview-attach-response.md:
id: 28169ccdb7ce
last_write_checksum: sha1:e89231255e62adada9286a24d7f4bc063d66397c
pristine_git_object: d13d67e3bb28c80374d69a4f28975116fcf43bc0
last_write_checksum: sha1:374bba5ebede36501fc1e0659cf098b52068ac0e
pristine_git_object: bea2b64d85a52436189f74b7b55d929069f4d7e3
docs/models/billing-preview-attach-rollover-request.md:
id: b64b48b2920a
last_write_checksum: sha1:6bf382304fde4646e1233fca8bba98f9e578297a
@@ -614,14 +610,10 @@ trackedFiles:
id: 84c691cb9224
last_write_checksum: sha1:2c927b75756dfa054e42bfa357ee74efd22171ed
pristine_git_object: 29380f328502e86965d828a21266e7fcc1f8f71b
docs/models/billing-preview-update-credit.md:
id: 3a266f3ae693
last_write_checksum: sha1:92de11e58d47e65938c6d493fbd7124543284cbc
pristine_git_object: adf2289fe11a27037157d3d3ab43a71d4bf569e0
docs/models/billing-preview-update-customize.md:
id: 9aea6b63543c
last_write_checksum: sha1:3e059861be2b6456db96d6174e791b1294efd4e2
pristine_git_object: abaa75e9e66e4c869e19574dce9ffb43cd5d4bf6
last_write_checksum: sha1:c766c53504776dada8d726769c70fbd5b02a84e7
pristine_git_object: c452501c4d3f26109ee32f8677b5c29d962486ae
docs/models/billing-preview-update-discount.md:
id: 1c01f60de9f7
last_write_checksum: sha1:135f79ccda4e8ce197ba4a0db58b4a36b05ac536
@@ -652,8 +644,8 @@ trackedFiles:
pristine_git_object: 729798893c6cbeaa8ea67671c9a591fbc20c3b01
docs/models/billing-preview-update-invoice-mode.md:
id: 3b23bf8970e5
last_write_checksum: sha1:1dd6ae1568f10b177e035c56b68c5ca99e40c02c
pristine_git_object: 7b502dc6cbe5ded6534cb111462020a2ce9630a6
last_write_checksum: sha1:e9baa60060fb27fe5458a77bf22daa173e7d65cc
pristine_git_object: e11c822a5bb5bec80d5e84a9541cc38041ce33a3
docs/models/billing-preview-update-item-price-interval.md:
id: fb22f4118c73
last_write_checksum: sha1:e76e6f8c053d78452ab5b28bd1a53e6e2e04a3a2
@@ -668,8 +660,8 @@ trackedFiles:
pristine_git_object: 69874c55c6a4e3e236c35a9084c69c8c911756d6
docs/models/billing-preview-update-line-item.md:
id: d647f3522082
last_write_checksum: sha1:736ce30b9f3d023cec443a74c98e0eafd5403ba1
pristine_git_object: 61b9b0355c1bfc7244b59ee6e1d77153cd647025
last_write_checksum: sha1:f88b8b1f40062efa2071058f361988d40c236e6c
pristine_git_object: 1ed943f4e07f70a2e53533bc18b475bb05f4e91c
docs/models/billing-preview-update-next-cycle-discount.md:
id: 9c3601f4d54f
last_write_checksum: sha1:396dabe7d30e31f233d6c2e197e6ef674e6302fc
@@ -680,12 +672,12 @@ trackedFiles:
pristine_git_object: 4a645d24eaca5511ab3d2b4a23b2f5c5bfcbb24f
docs/models/billing-preview-update-next-cycle-line-item.md:
id: 542fb852b4ae
last_write_checksum: sha1:4e746403ac802a953e0a0b7dc845066884e4c9af
pristine_git_object: 68c508b5019db30b614a415572f54f859f2ab81d
last_write_checksum: sha1:72a6ae263c17a2eaf259ec01c0514fff76e38ebd
pristine_git_object: 76d411dc08437fc30de3858266274b28def2c17d
docs/models/billing-preview-update-next-cycle.md:
id: 6036c027e884
last_write_checksum: sha1:8aeec947a7a80d0b173b5f913ef2779c20c0507b
pristine_git_object: ffc4ac84f71e55852d538374e682ce190c936f45
last_write_checksum: sha1:69ae45131c9d7288c58509330a560a5c8257e972
pristine_git_object: 3a02cabaf0e2b8340bcc8a52498583df1b8f340c
docs/models/billing-preview-update-on-decrease.md:
id: c1e80b9245b3
last_write_checksum: sha1:b77aa7b0df8d21104e35cd98e40c520c110a6780
@@ -708,8 +700,8 @@ trackedFiles:
pristine_git_object: 981563dc95fa105eaf903810acdf57d536287761
docs/models/billing-preview-update-request.md:
id: 5eb7bb9c4e4b
last_write_checksum: sha1:31ab71fa2c1f690383362829cbfb22430c468ceb
pristine_git_object: e2f0308fe57a3e34677b1bd5dfee848db87f7d49
last_write_checksum: sha1:e041d24f991ccfefdaf51023e140749a3eae7958
pristine_git_object: 07a22eeaad9210f81758e4dc5e8430a83e08b122
docs/models/billing-preview-update-reset-interval.md:
id: 453adf1acc00
last_write_checksum: sha1:acc6ae3f2a0d931d052d13dd6384339270065c94
@@ -720,8 +712,8 @@ trackedFiles:
pristine_git_object: 1c6ae89cce28249d170b684c6bd2e9e33f892efd
docs/models/billing-preview-update-response.md:
id: fb81ae40e654
last_write_checksum: sha1:86642eff5b4c18b1a5b7b9fbfea10bbf256ea958
pristine_git_object: e78bea29070f24d79746d32295baa745cd03b16b
last_write_checksum: sha1:84f2b9d5804e7155fbcaab11df9c796d288f1c71
pristine_git_object: 53925f7fde6ec1d9d20412aeb65c52bb950aacc9
docs/models/billing-preview-update-rollover.md:
id: d5c045d6805d
last_write_checksum: sha1:09a485f911c4795cfa7e4764da2a08f7404020aa
@@ -764,8 +756,8 @@ trackedFiles:
pristine_git_object: 0395a87548b4be60308a174558b5a83316575892
docs/models/billing-update-customize.md:
id: 533e2ca5e4bd
last_write_checksum: sha1:cd4b0e2f48bfbdf8f4dbc2de51567fc5aa0a8201
pristine_git_object: 5aab2d4567e33c0ab2922717d553b626f1ebefc6
last_write_checksum: sha1:2efd7c30b8caf828b782da4cb584982763312914
pristine_git_object: 3155a23f41866237cce1467ef8b360c12b4abb2c
docs/models/billing-update-duration-type.md:
id: f711ec227260
last_write_checksum: sha1:1f658a150a3f09c6a9779127d147b86643ea21af
@@ -788,8 +780,8 @@ trackedFiles:
pristine_git_object: a5ca2395c55d099fdc8ca0eb2ca7d93121cc36a3
docs/models/billing-update-invoice-mode.md:
id: 33eaf6fc88e5
last_write_checksum: sha1:652d8c947e49e2cb8fdceb9fc12b383fcea983af
pristine_git_object: b0d26a7c6a014dbf629b547e2dd86d2ffffeeaf5
last_write_checksum: sha1:0a1a226e00b716e08cde966896c19f69a9ed233b
pristine_git_object: 41a918bde1c4d93d4320d511da5037b9e419a527
docs/models/billing-update-invoice.md:
id: af93d501891d
last_write_checksum: sha1:682f8cbaa0f49befed72b184cde626b6f2bfdc03
@@ -828,8 +820,8 @@ trackedFiles:
pristine_git_object: d21ea7ddeec02d3d27542b7fe435fd4d3491f2bc
docs/models/billing-update-request.md:
id: 29e20b402adf
last_write_checksum: sha1:50a2aea5847479e1471a865ff0d6d4454c01ffab
pristine_git_object: cdfe4085d7f9e3ab0d1ddc3041b0a017a83e6c79
last_write_checksum: sha1:12280466435b737c9b9ef3bdfe45616f62729cf5
pristine_git_object: ad79f248303e56d87664e7c017394af279afd7a7
docs/models/billing-update-required-action.md:
id: bf7357d5d4cb
last_write_checksum: sha1:41c74d57e6714477fb6b7d5f6855beaf1a618ce1
@@ -860,8 +852,8 @@ trackedFiles:
pristine_git_object: 60fcbcb344d4c6c73b744c34eb416803c8090b11
docs/models/breakdown.md:
id: 786823ab8ff0
last_write_checksum: sha1:120ff2cfb315e426ed72d0e2aa4648989f5b3e68
pristine_git_object: e4072746d40d0ceda15539556f7e73c933579701
last_write_checksum: sha1:6992c68ed199fd46e06c6e7d26d412704f9164f8
pristine_git_object: f6bdbd480cbf0f5ae1083f2c9cd3a9cd0fb80e9f
docs/models/config-rollover.md:
id: 5ee80b023fde
last_write_checksum: sha1:e62db7791a2a08562f37d915c7487fee45a3cadb
@@ -940,8 +932,8 @@ trackedFiles:
pristine_git_object: adb4e6a216daf5fe4f5e1566821240b1406007e1
docs/models/customer.md:
id: 42ac97d31359
last_write_checksum: sha1:22834f41273cf7395438b355022d0521722f5910
pristine_git_object: 440255c4ce5e7f51a7afcf2d41eaa8f2fa5371cf
last_write_checksum: sha1:9d3f9fa3d14b9a85ee6e8bb245e213768ebc4da2
pristine_git_object: d7c1b370d1bdab1832f7315616c7b5dae45661e6
docs/models/delete-customer-globals.md:
id: e2b2740e2b2d
last_write_checksum: sha1:92a62a15010425dfd1b008717705100796c00620
@@ -996,16 +988,16 @@ trackedFiles:
pristine_git_object: 5fe6a61067cd319d6cd0d1e1e7f1d165c0d4579d
docs/models/incoming-balances.md:
id: d374de62f567
last_write_checksum: sha1:d7ef7ab6b42ebdde8ef5ee1bded563f90bd04ac7
pristine_git_object: 35a1e51181af1fecb47ecb5d75d22913956da33c
last_write_checksum: sha1:0427c9d1c60180243f7b1b21a6a25e4af2d929f1
pristine_git_object: d7aa18a435815c67678b401063f4ea446448eedc
docs/models/incoming-billing-method.md:
id: 602168a4cedc
last_write_checksum: sha1:a71ce01497dd5ee960fcc3f2a1e6966fe717df61
pristine_git_object: ad0d10422e0934600ccf04b155b577591de9e2fa
docs/models/incoming-breakdown.md:
id: a52e025e8649
last_write_checksum: sha1:a490299294b08ca84dfa010df67fc25beab2dfd3
pristine_git_object: 10321802dbd89ac6445d0c62eed1ddfdb41200e9
last_write_checksum: sha1:ab685e06091f5e02efb87bd2dcaa0d29785cbd83
pristine_git_object: ef753ea993933e410d6576012cfc66524d6babf5
docs/models/incoming-credit-schema.md:
id: e3f652113358
last_write_checksum: sha1:12c18c9e498e040d8635b4e4bad010e6ced3a48e
@@ -1048,8 +1040,8 @@ trackedFiles:
pristine_git_object: 24ad3e91fca94f76da5397679897bbaf953637a9
docs/models/incoming.md:
id: 440441d25a42
last_write_checksum: sha1:c19a2a6b94cf1678e17cc687b9d7319eed37199d
pristine_git_object: 1bc0be9a88fc1a8e4b0453ea0587d87486d403a9
last_write_checksum: sha1:5265a1e6b833d8ef04d95642994fdfb2ed0d9d55
pristine_git_object: 14b39cf62ca462ee56b5a47651a178dd97cb4d8c
docs/models/interval-incoming-enum.md:
id: 4beaa3b22e5b
last_write_checksum: sha1:957607f01827ff06ecda175d8880a6ab252c7ac3
@@ -1068,16 +1060,16 @@ trackedFiles:
pristine_git_object: ed47413dfd80f05f59b2a5f870b612430faea3f6
docs/models/list-customers-balances.md:
id: 46cd8155bb0e
last_write_checksum: sha1:6fcc20430236a07c65b3391c71b14aa15421605d
pristine_git_object: cdcffe81063aa55d0b0493814cce455a79861095
last_write_checksum: sha1:1d670bb537ecaffe2f48ced508c1cf672b2ade03
pristine_git_object: 57123fe519103cc83169e9ddaa0a7fcbaa15d94d
docs/models/list-customers-billing-method.md:
id: 0d3398dec326
last_write_checksum: sha1:f13e148e053d42bde8430b3fda4803bf7163f77c
pristine_git_object: 3ddd429f50edea95c30f8d0f163aca6e809e74da
docs/models/list-customers-breakdown.md:
id: ccf93d67f0e0
last_write_checksum: sha1:92ff7fa9775849de3d2a2b2659dcc21dab80299f
pristine_git_object: 4a5ff7d07cda1383156e6ea3fb84b1e02fa83b7e
last_write_checksum: sha1:c57363b82b82a2630374718c21832b4cc8f4dedc
pristine_git_object: e24c52777169794b632e0838ea0c4f6c88734fc2
docs/models/list-customers-credit-schema.md:
id: bd8c18aa56d6
last_write_checksum: sha1:7a96afb453ef3df9964ffa03fa62738c2185353d
@@ -1176,16 +1168,16 @@ trackedFiles:
pristine_git_object: 93010d453c873028de83eddc22d515539582a209
docs/models/outgoing-balances.md:
id: bf7fc0b18cbd
last_write_checksum: sha1:2cd9523d9ff7584b2d1b4e82860d220c186da7c1
pristine_git_object: 01579531ab9601a60ae6110bf95de52690ad620a
last_write_checksum: sha1:dd3bba83ba5328e99cb0f175cf7225717e609db7
pristine_git_object: 33ccd99f1aaf9ab3760306c80154cd042ed18e93
docs/models/outgoing-billing-method.md:
id: 109e17e2f8f5
last_write_checksum: sha1:11090fd3c60432cd6a94cb17d62a3581138c2313
pristine_git_object: 4db5123b9d9f60197fbcfd8bfd5304354037eb0d
docs/models/outgoing-breakdown.md:
id: 0593f700f7df
last_write_checksum: sha1:c9efa7448a652154ecbb803055d09e12e5f7052a
pristine_git_object: 2ce1cc741d3875a2b73bcb666cde0cec331b49fb
last_write_checksum: sha1:d8ed909dfa9b88622a4fe23311328b46470bbd19
pristine_git_object: 979288102952763413ae4c5baa92ac15f082613d
docs/models/outgoing-credit-schema.md:
id: aef5d0af0d19
last_write_checksum: sha1:93b6d0d8f5426c2efe1a188d806f552975444808
@@ -1228,8 +1220,8 @@ trackedFiles:
pristine_git_object: d6c26e5ff159fb5aac08f53f8d3bbf81f8ce4ac5
docs/models/outgoing.md:
id: 5ead4a3a13e9
last_write_checksum: sha1:f2abecbb4f4ff64ac112f062665c9c17e89a33d8
pristine_git_object: 3223f6bd64485bbdffd3b5614c7a569afbff9fd2
last_write_checksum: sha1:ddf1046db0aefda84dcc4a697603075b52409808
pristine_git_object: 1bc95403e0807bfeeac952251f6edb62953a38ae
docs/models/plan-billing-method.md:
id: 4789ae90ae01
last_write_checksum: sha1:8b53127c48cd1e81a29d62093ae96a52359b268a
@@ -1400,16 +1392,16 @@ trackedFiles:
pristine_git_object: 72df6cb602ecac3658f8cbb19ea2c460995b7a4a
docs/models/update-customer-balances.md:
id: 1bfa8c6cffed
last_write_checksum: sha1:1631a16dc7a915fc7d0210f91619827f8a3f96db
pristine_git_object: 80debc4a39d851ec13b55403eb711b39789f7871
last_write_checksum: sha1:4d0032ada0430399279f5fd8f7c27906c6211626
pristine_git_object: 011ff0fe532ae95af0738f860353ad9e097e3ce9
docs/models/update-customer-billing-method.md:
id: 88c216b41cc9
last_write_checksum: sha1:3bb481957c5c6c49eafbf6f203f509f5b7e2cd58
pristine_git_object: 8ce9fde5f55f832e49db75595f2d8ce9043491ac
docs/models/update-customer-breakdown.md:
id: f58ab0f6bff1
last_write_checksum: sha1:d5500884443579f8045496a18a527dbf1d2bc859
pristine_git_object: 90db320850fb6303be46e757a1bfe8d132894182
last_write_checksum: sha1:15dae25ce69e028151ceb3fea98a1c8b540aed53
pristine_git_object: a39a9da7e62530194a691bc5587b94df8253d336
docs/models/update-customer-credit-schema.md:
id: 3cf3ff338501
last_write_checksum: sha1:ab98468adfe3343dadcaf47c557f168345bfe0d2
@@ -1492,8 +1484,8 @@ trackedFiles:
pristine_git_object: c7aa4176ebe0ecc174019273ac857b26e1986c2b
docs/sdks/billing/README.md:
id: dc915331dd9d
last_write_checksum: sha1:3827b8f7ddd06e51bc2816b203f80d272071e114
pristine_git_object: 23e341bbae7daaf4e327dc3c5bb13fa57a97bd8c
last_write_checksum: sha1:9e5ac33eb2f8161d4a9813184ce0bda310b5184e
pristine_git_object: b4b6ad4f74cdaf1bd54e8ec0afabf089e9c26613
docs/sdks/customers/README.md:
id: 9332759cffc2
last_write_checksum: sha1:67ee9f4c5ba6f23fd7e16807f8503ed5a065e1ba
@@ -1524,12 +1516,12 @@ trackedFiles:
pristine_git_object: 900d545ed58929951e2208e1bec791cb264429a4
jsr.json:
id: 7f6ab7767282
last_write_checksum: sha1:67275431c3eb5f32540c60074c3ee683e81452d3
pristine_git_object: 278b8c189ba9a3906d310744ff52a091738f11de
last_write_checksum: sha1:81f59385b4f8527291ecad9b442981054bb1c9af
pristine_git_object: 498da37844b72100f84a7a0e8dab8e6011222af1
package.json:
id: 7030d0b2f71b
last_write_checksum: sha1:8bb2c8764fcabe89c0fd1df2fb6b20d0354ff6fe
pristine_git_object: ae9c10d74e318d990aab95f7e73394bcb1283863
last_write_checksum: sha1:1cf6dc171bd97df401d76a20b37cff97a8f79f2f
pristine_git_object: ac3ec23ec56922ecd27496c75330ab80bb4ce2c4
src/core.ts:
id: f431fdbcd144
last_write_checksum: sha1:f8f24a3ca09c1efb285d7a75ad3697d0128f47e2
@@ -1552,8 +1544,8 @@ trackedFiles:
pristine_git_object: e3f89175fafe3b0a6c5074af1b1d24b8b3ba778b
src/funcs/billing-attach.ts:
id: c23b3cd15f32
last_write_checksum: sha1:314b37d4503c268e6706e28597fda9cc283f7b37
pristine_git_object: d8bca161bff272a4ef07c36f07b5d0a2167b2013
last_write_checksum: sha1:b8b163019c58d7e64b39d1ea4524f9ad1ceb706c
pristine_git_object: 2730fb8f3f16c04719808eccd3f7c03aef12e7fb
src/funcs/billing-preview-attach.ts:
id: d262a9163889
last_write_checksum: sha1:90fb559c4fd90f6339c34c9428da7d69359e78ec
@@ -1612,8 +1604,8 @@ trackedFiles:
pristine_git_object: 44be0eae8246521b230e8e711a88eff738fc015d
src/lib/config.ts:
id: 320761608fb3
last_write_checksum: sha1:d0c50c1b166ca206b68742a4c3f916f86793df75
pristine_git_object: 9446befa93d48d6b0a0f9fff4e48528b1ebca735
last_write_checksum: sha1:cbc217ef66dbc1a7713cea3ed30b3afbe58f85f8
pristine_git_object: c80c88bd24b38e4183bb4602ef8df47e61d57381
src/lib/dlv.ts:
id: b1988214835a
last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250
@@ -1680,40 +1672,40 @@ trackedFiles:
pristine_git_object: 7cfcf2c90f1cfaa152ee2f4033187aa20b1c696b
src/models/balances-check-op.ts:
id: b818c72b5764
last_write_checksum: sha1:fd74e98b1fd9fd8dfa0ae2ded58d816ff7465231
pristine_git_object: 3ed86b0b4af8383c3e4534db44042c86fa9b06d2
last_write_checksum: sha1:43ba10dc6d3f77ac0c27566aa7da722be99b9b91
pristine_git_object: 202ad5a71f0bfd85e6d100d8aa477d2c106f4e35
src/models/balances-create-op.ts:
id: 0ac1d9c85f60
last_write_checksum: sha1:93f8b8a57403da4a95b83dcb2c7a54029694d2a4
pristine_git_object: 4691d74f2c76904a0ac5fe8c9db7d95b9fcfb2d1
src/models/balances-track-op.ts:
id: 827123ccf6a9
last_write_checksum: sha1:33dc08e050dab96683fd77c9520e1783755a15fc
pristine_git_object: bf34bd60326f0cdb85f2e09660678d758fb3fb44
last_write_checksum: sha1:ea05f8b6cca9224837c7cc3e99cb20ca0a77363b
pristine_git_object: c4a0072f6642989ad51949650bccaf1d4869702c
src/models/balances-update-op.ts:
id: 212dd68fb106
last_write_checksum: sha1:57e79acb25df86996d96340471e5716119f66ba7
pristine_git_object: 111f5ade15069959b73926dc632a622a5f1f7eaf
src/models/billing-attach-op.ts:
id: c0a94471ba75
last_write_checksum: sha1:20007a9004de3ff25060da97a0efbb4efd8baf4d
pristine_git_object: 278602bb47a4c23a23f2fd6f6f6ce3d339a37e5c
last_write_checksum: sha1:d32dd4646bdad734acf091264f04eba411e29cc6
pristine_git_object: a80e00630e5ea26c67ed6b2fc8c852f62b574c67
src/models/billing-preview-attach-op.ts:
id: ad719a76005b
last_write_checksum: sha1:6130f34a58b2bf990885593f7f1d426f58dc99da
pristine_git_object: 27c9d844b64a0a4dc9c09aeaf41b3b0e039f8a0b
last_write_checksum: sha1:d8c0b961e6f23fe733cd8483a7467721f24755f4
pristine_git_object: 8cad4b5fee2c41b1a5c56e5b3ed4061ef82cf8a6
src/models/billing-preview-update-op.ts:
id: 381d33cff672
last_write_checksum: sha1:3d834b2a724d17922b884dbe05eb9736e22ef2a1
pristine_git_object: ffc9948f6795cf86fdabe5caceb787aa569ad97a
last_write_checksum: sha1:f8a999fa5cae22c7388e9c105d8bfb8daf4bb1de
pristine_git_object: 6caf3a21e1905c23bb01b75f7168bc8885e0e55f
src/models/billing-setup-payment-op.ts:
id: cc957e224289
last_write_checksum: sha1:be82f17cbf8ea59c8d5fed908d3c91ebb61f45f3
pristine_git_object: c5ae80c858560b595473286d2a757a5878d56469
src/models/billing-update-op.ts:
id: e7371769c7ca
last_write_checksum: sha1:a20f3f651db4e58f53d8facb29526c0816d20703
pristine_git_object: 02674fc4e112614054edeeacb25149ef36871f4b
last_write_checksum: sha1:4daf1f198b91c30be0ff075d2d08c70bd900d642
pristine_git_object: 28e62dae1c16c346623b96cab5b6823162bbbed5
src/models/customer-data.ts:
id: 04dac7ee392e
last_write_checksum: sha1:418a3dc8273f1a7f0b06e3558d6fb352ca31bfb1
@@ -1724,8 +1716,8 @@ trackedFiles:
pristine_git_object: b6a303e11f4d5964b94379a470104d00ff8fb5cc
src/models/customer.ts:
id: 20be78c552a4
last_write_checksum: sha1:7da1822a0a2164cbaea657e45e4783ee78f17d0b
pristine_git_object: efd6254df0d122443fa999504f1d6b41e3185046
last_write_checksum: sha1:834fdd87d593fe97b8d00680f1f868571e814aec
pristine_git_object: 85200c4624b20c9991cd822a07f6f4c070e0c752
src/models/delete-customer-op.ts:
id: 5a0865a96e72
last_write_checksum: sha1:c13b51ffb77a1436b29b76a21686c69813c1e81d
@@ -1744,8 +1736,8 @@ trackedFiles:
pristine_git_object: 049aff41b9e5a2c33bdc0f7f3241a4e2c0cf14d0
src/models/list-customers-op.ts:
id: b391692c8429
last_write_checksum: sha1:61b3fbd1ea038f8bf0406eb97fdede1685d38baa
pristine_git_object: 0499fcd8cacaca8bf488cf3a314bf8f5d076c27a
last_write_checksum: sha1:5f940428ca63d4e852d4b2b63abba9f258bc4cda
pristine_git_object: dae93235f3abd02ddb5558bbaa90e260d09ba204
src/models/list-plans-op.ts:
id: 513cde894485
last_write_checksum: sha1:df5e3899fe571eedffbebb6dd234e6d5b673b90e
@@ -1768,16 +1760,16 @@ trackedFiles:
pristine_git_object: 3774cc1e9bbb80ac592990aa86f8d4a38ee51f29
src/models/update-customer-op.ts:
id: 5d226d30d8e4
last_write_checksum: sha1:97f5ee259d4004b497d2cd949721f595b525e290
pristine_git_object: a9ad129a3327f9f8a9a8a8aa29e213b947f19c0b
last_write_checksum: sha1:2691abf4914fdc17ee2bfd41d39931aa968a894e
pristine_git_object: 249d7b1e7c1809d933e9109b5c32b9672996868c
src/sdk/balances.ts:
id: 9ad229cb9d64
last_write_checksum: sha1:d80897969e038afaca2195fc694d98bf4ff5a374
pristine_git_object: a339128fd41eb46b423d5b7ea44ef9370c61f8c3
src/sdk/billing.ts:
id: 10905058c4ad
last_write_checksum: sha1:9bb6b8827d623595bbb535b3ee1a02c3c70f3066
pristine_git_object: d58344cb08d684984e59b96f5b5a3a1abb824945
last_write_checksum: sha1:49cc390bd072973e21df2c234ee113e604426f67
pristine_git_object: 5e3899481df00efca75de9c2aa555735a9c03a8d
src/sdk/customers.ts:
id: d33e193e0c00
last_write_checksum: sha1:3e4d794f7a68a5e1962483b578b5643b339581fe
@@ -2123,7 +2115,7 @@ examples:
application/json: {"customer_id": "cus_123", "name": "John Doe", "email": "john@example.com"}
responses:
"200":
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": true, "subscriptions": [{"plan_id": "plan_123", "auto_enable": false, "add_on": false, "status": "active", "past_due": false, "canceled_at": 9611.97, "expires_at": 7806.81, "trial_ends_at": null, "started_at": 6124.93, "current_period_start": null, "current_period_end": 9733.97, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"object": "balance", "feature_id": "<id>", "granted": 8321.34, "remaining": 5.02, "usage": 8589.77, "unlimited": true, "overage_allowed": true, "max_purchase": 5498.35, "next_reset_at": 8214.93}}}
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": true, "subscriptions": [{"plan_id": "plan_123", "auto_enable": false, "add_on": false, "status": "active", "past_due": false, "canceled_at": 9611.97, "expires_at": 7806.81, "trial_ends_at": null, "started_at": 6124.93, "current_period_start": null, "current_period_end": 9733.97, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"feature_id": "<id>", "granted": 8321.34, "remaining": 5.02, "usage": 8589.77, "unlimited": true, "overage_allowed": true, "max_purchase": 5498.35, "next_reset_at": 8214.93}}}
listPlans:
speakeasy-default-list-plans:
parameters:
@@ -2179,7 +2171,7 @@ examples:
application/json: {"customer_id": "cus_123", "name": "Jane Doe", "email": "jane@example.com"}
responses:
"200":
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": true, "subscriptions": [{"plan_id": "plan_123", "auto_enable": true, "add_on": true, "status": "active", "past_due": true, "canceled_at": 8303.59, "expires_at": 2755.88, "trial_ends_at": 1461.02, "started_at": 1649.05, "current_period_start": 8034.1, "current_period_end": 8058.66, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"object": "balance", "feature_id": "<id>", "granted": 7559.37, "remaining": 952.25, "usage": 7029.24, "unlimited": true, "overage_allowed": true, "max_purchase": 7619.46, "next_reset_at": 411.76}}}
application/json: {"id": "cus_123", "name": "John Doe", "email": "john@example.com", "created_at": 1717000000, "fingerprint": "1234567890", "stripe_id": "cus_123", "env": "sandbox", "metadata": {}, "send_email_receipts": true, "subscriptions": [{"plan_id": "plan_123", "auto_enable": true, "add_on": true, "status": "active", "past_due": true, "canceled_at": 8303.59, "expires_at": 2755.88, "trial_ends_at": 1461.02, "started_at": 1649.05, "current_period_start": 8034.1, "current_period_end": 8058.66, "quantity": 1}], "purchases": [], "balances": {"balance_1": {"feature_id": "<id>", "granted": 7559.37, "remaining": 952.25, "usage": 7029.24, "unlimited": true, "overage_allowed": true, "max_purchase": 7619.46, "next_reset_at": 411.76}}}
deleteCustomer:
speakeasy-default-delete-customer:
parameters:
@@ -2209,7 +2201,7 @@ examples:
application/json: {"customer_id": "<id>", "plan_id": "<id>", "redirect_mode": "always"}
responses:
"200":
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "at usually sunbathe how forenenst", "amount": 7882.21, "total_quantity": 6544.84, "paid_quantity": 1520.59, "plan_id": "<id>"}], "total": 6124.21, "currency": "Venezuelan bolívar", "incoming": [{"plan": {"id": "<id>", "name": "<value>", "description": null, "group": "<value>", "version": 8678.59, "add_on": true, "auto_enable": true, "price": {"amount": 794.59, "interval": "week"}, "items": [{"feature_id": "<id>", "included": 2063.68, "unlimited": true, "reset": {"interval": "hour"}, "price": {"interval": "month", "billing_units": 2123.59, "billing_method": "usage_based", "max_purchase": 9099.32}}], "created_at": 7665.78, "env": "live", "archived": true, "base_variant_id": null}, "feature_quantities": [{"feature_id": "<id>", "quantity": 4464.31}], "balances": {}}], "outgoing": [], "redirect_type": "autumn_checkout"}
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "at usually sunbathe how forenenst", "amount": 7882.21, "plan_id": "<id>", "total_quantity": 6544.84, "paid_quantity": 1520.59}], "total": 6124.21, "currency": "Venezuelan bolívar", "incoming": [{"plan": {"id": "<id>", "name": "<value>", "description": null, "group": "<value>", "version": 8678.59, "add_on": true, "auto_enable": true, "price": {"amount": 794.59, "interval": "week"}, "items": [{"feature_id": "<id>", "included": 2063.68, "unlimited": true, "reset": {"interval": "hour"}, "price": {"interval": "month", "billing_units": 2123.59, "billing_method": "usage_based", "max_purchase": 9099.32}}], "created_at": 7665.78, "env": "live", "archived": true, "base_variant_id": null}, "feature_quantities": [{"feature_id": "<id>", "quantity": 4464.31}], "balances": {}}], "outgoing": [], "redirect_type": "autumn_checkout"}
billingUpdate:
speakeasy-default-billing-update:
parameters:
@@ -2229,7 +2221,7 @@ examples:
application/json: {"customer_id": "<id>"}
responses:
"200":
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "across at yet biodegradable wing retention between quash", "amount": 8095.76, "total_quantity": 5397.71, "paid_quantity": 3590.49, "plan_id": "<id>"}], "total": 7497.66, "currency": "Peso Uruguayo"}
application/json: {"customer_id": "<id>", "line_items": [{"title": "<value>", "description": "across at yet biodegradable wing retention between quash", "amount": 8095.76, "plan_id": "<id>", "total_quantity": 5397.71, "paid_quantity": 3590.49}], "total": 7497.66, "currency": "Peso Uruguayo"}
billingSetupPayment:
speakeasy-default-billing-setup-payment:
parameters:
@@ -2269,7 +2261,7 @@ examples:
application/json: {"customer_id": "<id>"}
responses:
"200":
application/json: {"allowed": true, "customer_id": "<id>", "balance": {"object": "balance", "feature_id": "<id>", "granted": 7002.31, "remaining": 9536.21, "usage": 3270.65, "unlimited": false, "overage_allowed": true, "max_purchase": 8252.55, "next_reset_at": 9394.31}}
application/json: {"allowed": true, "customer_id": "<id>", "balance": {"feature_id": "<id>", "granted": 7002.31, "remaining": 9536.21, "usage": 3270.65, "unlimited": false, "overage_allowed": true, "max_purchase": 8252.55, "next_reset_at": 9394.31}}
balancesTrack:
speakeasy-default-balances-track:
parameters:
@@ -2279,5 +2271,5 @@ examples:
application/json: {"customer_id": "<id>"}
responses:
"200":
application/json: {"customer_id": "<id>", "value": 3371.48, "balance": {"object": "balance", "feature_id": "<id>", "granted": 4457.97, "remaining": 7901.2, "usage": 9728.03, "unlimited": false, "overage_allowed": false, "max_purchase": null, "next_reset_at": 9011.85}}
application/json: {"customer_id": "<id>", "value": 3371.48, "balance": {"feature_id": "<id>", "granted": 4457.97, "remaining": 7901.2, "usage": 9728.03, "unlimited": false, "overage_allowed": false, "max_purchase": null, "next_reset_at": 9011.85}}
examplesVersion: 1.0.2

View File

@@ -33,7 +33,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: false
typescript:
version: 0.8.25
version: 0.8.26
acceptHeaderEnum: false
additionalDependencies:
dependencies: {}

View File

@@ -196,8 +196,6 @@ components:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -273,8 +271,6 @@ components:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -359,7 +355,6 @@ components:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -382,7 +377,6 @@ components:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1236,8 +1230,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1313,8 +1305,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1398,7 +1388,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1421,7 +1410,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1659,8 +1647,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -1736,8 +1722,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -1822,7 +1806,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -1845,7 +1828,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -1971,6 +1953,10 @@ paths:
@param entityId - The ID of the entity to attach the plan to. (optional)
@param featureQuantities - If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. (optional)
@param version - The version of the plan to attach. (optional)
@param customize - Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. (optional)
tags:
- billing
requestBody:
@@ -2007,6 +1993,7 @@ paths:
description: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2153,6 +2140,7 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2160,10 +2148,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2303,6 +2291,7 @@ paths:
description: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -2449,6 +2438,7 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
plan_id:
type: string
invoice_mode:
@@ -2456,10 +2446,10 @@ paths:
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -2538,14 +2528,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2558,13 +2546,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -2573,16 +2563,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -2617,14 +2597,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -2637,13 +2615,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -2674,8 +2654,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -2751,8 +2729,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -2836,7 +2812,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -2859,7 +2834,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -2902,8 +2876,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -2979,8 +2951,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -3064,7 +3034,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -3087,7 +3056,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -3161,6 +3129,7 @@ paths:
description: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3307,19 +3276,18 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3433,6 +3401,7 @@ paths:
description: If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan.
version:
type: number
description: The version of the plan to attach.
free_trial:
anyOf:
- type: object
@@ -3579,19 +3548,18 @@ paths:
- expiry_duration_type
required:
- feature_id
description: Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
plan_id:
anyOf:
- type: string
- type: "null"
type: string
invoice_mode:
type: object
properties:
enabled:
type: boolean
enable_product_immediately:
enable_plan_immediately:
type: boolean
default: false
finalize_invoice:
finalize:
type: boolean
default: true
required:
@@ -3644,14 +3612,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3664,13 +3630,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
total:
type: number
currency:
@@ -3679,16 +3647,6 @@ paths:
type: number
period_end:
type: number
credit:
type: object
properties:
amount:
type: number
description:
type: string
required:
- amount
- description
next_cycle:
type: object
properties:
@@ -3723,14 +3681,12 @@ paths:
required:
- amountOff
default: []
is_base:
type: boolean
plan_id:
type: string
total_quantity:
type: number
paid_quantity:
type: number
plan_id:
type: string
deferred_for_trial:
type: boolean
effective_period:
@@ -3743,13 +3699,15 @@ paths:
required:
- start
- end
is_base:
type: boolean
required:
- title
- description
- amount
- plan_id
- total_quantity
- paid_quantity
- plan_id
required:
- starts_at
- total
@@ -4009,8 +3967,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4086,8 +4042,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4172,7 +4126,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4195,7 +4148,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -4589,8 +4541,6 @@ paths:
anyOf:
- type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4666,8 +4616,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4752,7 +4700,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4775,7 +4722,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining
@@ -4792,8 +4738,6 @@ paths:
additionalProperties:
type: object
properties:
object:
const: balance
feature_id:
type: string
feature:
@@ -4869,8 +4813,6 @@ paths:
items:
type: object
properties:
object:
const: balance_breakdown
id:
type: string
default: ""
@@ -4955,7 +4897,6 @@ paths:
- type: number
- type: "null"
required:
- object
- plan_id
- included_grant
- prepaid_grant
@@ -4978,7 +4919,6 @@ paths:
- balance
- expires_at
required:
- object
- feature_id
- granted
- remaining

View File

@@ -9,8 +9,8 @@ sources:
- 2.1.0
Autumn API Stripped:
sourceNamespace: autumn-api-stripped
sourceRevisionDigest: sha256:e23309626b28cb7cb5f2adbd8d59f4a769332629fd1a070dc6bf4236192d47e4
sourceBlobDigest: sha256:c974b9c4fa51784e1726ff062a264b4d280a8f0041be381e9994b0fc953f9cdc
sourceRevisionDigest: sha256:3c2b0984859b57cb45257efef3e1a1bfe48fd0ef1c2e3c3702d42b955cf096db
sourceBlobDigest: sha256:a10bc74dc833d54d6024f61f2d24fd5975f011ab69e88b489a46abb73c1eb4bd
tags:
- latest
- 2.1.0
@@ -25,8 +25,8 @@ targets:
autumn-python:
source: Autumn API Stripped
sourceNamespace: autumn-api-stripped
sourceRevisionDigest: sha256:e23309626b28cb7cb5f2adbd8d59f4a769332629fd1a070dc6bf4236192d47e4
sourceBlobDigest: sha256:c974b9c4fa51784e1726ff062a264b4d280a8f0041be381e9994b0fc953f9cdc
sourceRevisionDigest: sha256:3c2b0984859b57cb45257efef3e1a1bfe48fd0ef1c2e3c3702d42b955cf096db
sourceBlobDigest: sha256:a10bc74dc833d54d6024f61f2d24fd5975f011ab69e88b489a46abb73c1eb4bd
codeSamplesNamespace: autumn-api-python-code-samples
codeSamplesRevisionDigest: sha256:ca39ee64d522fc8fdba083d3fc8eef936be15f8f65340bb75bb6cce7b7190561
workflow:

View File

@@ -169,6 +169,8 @@ const response = await client.attach({ customerId: "cus_123", planId: "pro_plan"
@param customerId - The ID of the customer to attach the plan to.
@param entityId - The ID of the entity to attach the plan to. (optional)
@param featureQuantities - If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. (optional)
@param version - The version of the plan to attach. (optional)
@param customize - Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. (optional)
* [previewAttach](docs/sdks/billing/README.md#previewattach) - Preview billing changes before attaching a plan.
* [update](docs/sdks/billing/README.md#update) - Update an existing subscription.
* [previewUpdate](docs/sdks/billing/README.md#previewupdate) - Preview billing changes before updating a subscription.
@@ -236,6 +238,8 @@ const response = await client.attach({ customerId: "cus_123", planId: "pro_plan"
@param customerId - The ID of the customer to attach the plan to.
@param entityId - The ID of the entity to attach the plan to. (optional)
@param featureQuantities - If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. (optional)
@param version - The version of the plan to attach. (optional)
@param customize - Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. (optional)
- [`billingPreviewAttach`](docs/sdks/billing/README.md#previewattach) - Preview billing changes before attaching a plan.
- [`billingPreviewUpdate`](docs/sdks/billing/README.md#previewupdate) - Preview billing changes before updating a subscription.
- [`billingSetupPayment`](docs/sdks/billing/README.md#setuppayment) - Create a setup payment session for a customer.

View File

@@ -6,7 +6,6 @@
import { BalancesCheckBalance } from "@useautumn/sdk";
let value: BalancesCheckBalance = {
object: "balance",
featureId: "<id>",
granted: 5805.07,
remaining: 2547.08,
@@ -22,7 +21,6 @@ let value: BalancesCheckBalance = {
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `object` | *"balance"* | :heavy_check_mark: | N/A |
| `featureId` | *string* | :heavy_check_mark: | N/A |
| `feature` | [models.BalancesCheckFeature](../models/balances-check-feature.md) | :heavy_minus_sign: | N/A |
| `granted` | *number* | :heavy_check_mark: | N/A |

View File

@@ -6,7 +6,6 @@
import { BalancesCheckBreakdown } from "@useautumn/sdk";
let value: BalancesCheckBreakdown = {
object: "balance_breakdown",
planId: "<id>",
includedGrant: 639.18,
prepaidGrant: 9880.63,
@@ -30,7 +29,6 @@ let value: BalancesCheckBreakdown = {
| Field | Type | Required | Description |
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
| `object` | *"balance_breakdown"* | :heavy_check_mark: | N/A |
| `id` | *string* | :heavy_minus_sign: | N/A |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `includedGrant` | *number* | :heavy_check_mark: | N/A |

View File

@@ -11,7 +11,6 @@ let value: BalancesCheckResponse = {
allowed: true,
customerId: "<id>",
balance: {
object: "balance",
featureId: "<id>",
granted: 5669.36,
remaining: 9220.56,

View File

@@ -6,7 +6,6 @@
import { BalancesTrackBalanceBreakdown } from "@useautumn/sdk";
let value: BalancesTrackBalanceBreakdown = {
object: "balance_breakdown",
planId: "<id>",
includedGrant: 1267.23,
prepaidGrant: 7892.69,
@@ -30,7 +29,6 @@ let value: BalancesTrackBalanceBreakdown = {
| Field | Type | Required | Description |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `object` | *"balance_breakdown"* | :heavy_check_mark: | N/A |
| `id` | *string* | :heavy_minus_sign: | N/A |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `includedGrant` | *number* | :heavy_check_mark: | N/A |

View File

@@ -6,7 +6,6 @@
import { BalancesTrackBalance } from "@useautumn/sdk";
let value: BalancesTrackBalance = {
object: "balance",
featureId: "<id>",
granted: 6031.57,
remaining: 4645.12,
@@ -22,7 +21,6 @@ let value: BalancesTrackBalance = {
| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| `object` | *"balance"* | :heavy_check_mark: | N/A |
| `featureId` | *string* | :heavy_check_mark: | N/A |
| `feature` | [models.BalancesTrackBalanceFeature](../models/balances-track-balance-feature.md) | :heavy_minus_sign: | N/A |
| `granted` | *number* | :heavy_check_mark: | N/A |

View File

@@ -6,7 +6,6 @@
import { BalancesTrackBalances } from "@useautumn/sdk";
let value: BalancesTrackBalances = {
object: "balance",
featureId: "<id>",
granted: 4279.52,
remaining: 1892.83,
@@ -22,7 +21,6 @@ let value: BalancesTrackBalances = {
| Field | Type | Required | Description |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `object` | *"balance"* | :heavy_check_mark: | N/A |
| `featureId` | *string* | :heavy_check_mark: | N/A |
| `feature` | [models.BalancesTrackFeature](../models/balances-track-feature.md) | :heavy_minus_sign: | N/A |
| `granted` | *number* | :heavy_check_mark: | N/A |

View File

@@ -6,7 +6,6 @@
import { BalancesTrackBreakdown } from "@useautumn/sdk";
let value: BalancesTrackBreakdown = {
object: "balance_breakdown",
planId: null,
includedGrant: 9958.89,
prepaidGrant: 8123.08,
@@ -30,7 +29,6 @@ let value: BalancesTrackBreakdown = {
| Field | Type | Required | Description |
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
| `object` | *"balance_breakdown"* | :heavy_check_mark: | N/A |
| `id` | *string* | :heavy_minus_sign: | N/A |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `includedGrant` | *number* | :heavy_check_mark: | N/A |

View File

@@ -11,7 +11,6 @@ let value: BalancesTrackResponse = {
customerId: "<id>",
value: 107.2,
balance: {
object: "balance",
featureId: "<id>",
granted: 121.68,
remaining: 7842.83,

View File

@@ -6,7 +6,6 @@
import { Balances } from "@useautumn/sdk";
let value: Balances = {
object: "balance",
featureId: "<id>",
granted: 3195.9,
remaining: 3289.89,
@@ -22,7 +21,6 @@ let value: Balances = {
| Field | Type | Required | Description |
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
| `object` | *"balance"* | :heavy_check_mark: | N/A |
| `featureId` | *string* | :heavy_check_mark: | N/A |
| `feature` | [models.CustomerFeature](../models/customer-feature.md) | :heavy_minus_sign: | N/A |
| `granted` | *number* | :heavy_check_mark: | N/A |

View File

@@ -1,5 +1,7 @@
# BillingAttachCustomize
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
## Example Usage
```typescript

View File

@@ -13,7 +13,7 @@ let value: BillingAttachInvoiceMode = {
## Fields
| Field | Type | Required | Description |
| -------------------------- | -------------------------- | -------------------------- | -------------------------- |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `enabled` | *boolean* | :heavy_check_mark: | N/A |
| `enableProductImmediately` | *boolean* | :heavy_minus_sign: | N/A |
| `finalizeInvoice` | *boolean* | :heavy_minus_sign: | N/A |
| `enablePlanImmediately` | *boolean* | :heavy_minus_sign: | N/A |
| `finalize` | *boolean* | :heavy_minus_sign: | N/A |

View File

@@ -18,9 +18,9 @@ let value: BillingAttachRequest = {
| `customerId` | *string* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entityId` | *string* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `featureQuantities` | [models.BillingAttachFeatureQuantities](../models/billing-attach-feature-quantities.md)[] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *number* | :heavy_minus_sign: | N/A |
| `version` | *number* | :heavy_minus_sign: | The version of the plan to attach. |
| `freeTrial` | [models.BillingAttachFreeTrial](../models/billing-attach-free-trial.md) | :heavy_minus_sign: | N/A |
| `customize` | [models.BillingAttachCustomize](../models/billing-attach-customize.md) | :heavy_minus_sign: | N/A |
| `customize` | [models.BillingAttachCustomize](../models/billing-attach-customize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `invoiceMode` | [models.BillingAttachInvoiceMode](../models/billing-attach-invoice-mode.md) | :heavy_minus_sign: | N/A |
| `discounts` | *models.BillingAttachDiscountUnion*[] | :heavy_minus_sign: | N/A |

View File

@@ -1,20 +0,0 @@
# BillingPreviewAttachCredit
## Example Usage
```typescript
import { BillingPreviewAttachCredit } from "@useautumn/sdk";
let value: BillingPreviewAttachCredit = {
amount: 3819.54,
description:
"reasoning broadcast above shoddy ah lustrous wisely physically fooey bah",
};
```
## Fields
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `amount` | *number* | :heavy_check_mark: | N/A |
| `description` | *string* | :heavy_check_mark: | N/A |

View File

@@ -1,5 +1,7 @@
# BillingPreviewAttachCustomize
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
## Example Usage
```typescript

View File

@@ -13,7 +13,7 @@ let value: BillingPreviewAttachInvoiceMode = {
## Fields
| Field | Type | Required | Description |
| -------------------------- | -------------------------- | -------------------------- | -------------------------- |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `enabled` | *boolean* | :heavy_check_mark: | N/A |
| `enableProductImmediately` | *boolean* | :heavy_minus_sign: | N/A |
| `finalizeInvoice` | *boolean* | :heavy_minus_sign: | N/A |
| `enablePlanImmediately` | *boolean* | :heavy_minus_sign: | N/A |
| `finalize` | *boolean* | :heavy_minus_sign: | N/A |

View File

@@ -10,9 +10,9 @@ let value: BillingPreviewAttachLineItem = {
description:
"anti plagiarise why gah bludgeon from whoever experience celsius",
amount: 9045.15,
planId: "<id>",
totalQuantity: 8695.78,
paidQuantity: 1093.11,
planId: "<id>",
};
```
@@ -24,9 +24,9 @@ let value: BillingPreviewAttachLineItem = {
| `description` | *string* | :heavy_check_mark: | N/A |
| `amount` | *number* | :heavy_check_mark: | N/A |
| `discounts` | [models.BillingPreviewAttachDiscountResponse](../models/billing-preview-attach-discount-response.md)[] | :heavy_minus_sign: | N/A |
| `isBase` | *boolean* | :heavy_minus_sign: | N/A |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `totalQuantity` | *number* | :heavy_check_mark: | N/A |
| `paidQuantity` | *number* | :heavy_check_mark: | N/A |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `deferredForTrial` | *boolean* | :heavy_minus_sign: | N/A |
| `effectivePeriod` | [models.BillingPreviewAttachEffectivePeriod](../models/billing-preview-attach-effective-period.md) | :heavy_minus_sign: | N/A |
| `isBase` | *boolean* | :heavy_minus_sign: | N/A |

View File

@@ -9,9 +9,9 @@ let value: BillingPreviewAttachNextCycleLineItem = {
title: "<value>",
description: "overdub boohoo along instructor",
amount: 7376.73,
planId: "<id>",
totalQuantity: 9732.07,
paidQuantity: 880.16,
planId: "<id>",
};
```
@@ -23,9 +23,9 @@ let value: BillingPreviewAttachNextCycleLineItem = {
| `description` | *string* | :heavy_check_mark: | N/A |
| `amount` | *number* | :heavy_check_mark: | N/A |
| `discounts` | [models.BillingPreviewAttachNextCycleDiscount](../models/billing-preview-attach-next-cycle-discount.md)[] | :heavy_minus_sign: | N/A |
| `isBase` | *boolean* | :heavy_minus_sign: | N/A |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `totalQuantity` | *number* | :heavy_check_mark: | N/A |
| `paidQuantity` | *number* | :heavy_check_mark: | N/A |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `deferredForTrial` | *boolean* | :heavy_minus_sign: | N/A |
| `effectivePeriod` | [models.BillingPreviewAttachNextCycleEffectivePeriod](../models/billing-preview-attach-next-cycle-effective-period.md) | :heavy_minus_sign: | N/A |
| `isBase` | *boolean* | :heavy_minus_sign: | N/A |

View File

@@ -18,9 +18,9 @@ let value: BillingPreviewAttachRequest = {
| `customerId` | *string* | :heavy_check_mark: | The ID of the customer to attach the plan to. |
| `entityId` | *string* | :heavy_minus_sign: | The ID of the entity to attach the plan to. |
| `featureQuantities` | [models.BillingPreviewAttachFeatureQuantities](../models/billing-preview-attach-feature-quantities.md)[] | :heavy_minus_sign: | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
| `version` | *number* | :heavy_minus_sign: | N/A |
| `version` | *number* | :heavy_minus_sign: | The version of the plan to attach. |
| `freeTrial` | [models.BillingPreviewAttachFreeTrial](../models/billing-preview-attach-free-trial.md) | :heavy_minus_sign: | N/A |
| `customize` | [models.BillingPreviewAttachCustomize](../models/billing-preview-attach-customize.md) | :heavy_minus_sign: | N/A |
| `customize` | [models.BillingPreviewAttachCustomize](../models/billing-preview-attach-customize.md) | :heavy_minus_sign: | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
| `planId` | *string* | :heavy_check_mark: | N/A |
| `invoiceMode` | [models.BillingPreviewAttachInvoiceMode](../models/billing-preview-attach-invoice-mode.md) | :heavy_minus_sign: | N/A |
| `discounts` | *models.BillingPreviewAttachDiscountUnion*[] | :heavy_minus_sign: | N/A |

View File

@@ -15,9 +15,9 @@ let value: BillingPreviewAttachResponse = {
description:
"what finally apparatus coaxingly atop inside amid heavily CD notwithstanding",
amount: 8002.47,
planId: "<id>",
totalQuantity: 1699.59,
paidQuantity: 5709.75,
planId: "<id>",
},
],
total: 3142.76,
@@ -65,7 +65,6 @@ let value: BillingPreviewAttachResponse = {
],
balances: {
"key": {
object: "balance",
featureId: "<id>",
granted: 3858.89,
remaining: 9478.44,
@@ -93,7 +92,6 @@ let value: BillingPreviewAttachResponse = {
| `currency` | *string* | :heavy_check_mark: | N/A |
| `periodStart` | *number* | :heavy_minus_sign: | N/A |
| `periodEnd` | *number* | :heavy_minus_sign: | N/A |
| `credit` | [models.BillingPreviewAttachCredit](../models/billing-preview-attach-credit.md) | :heavy_minus_sign: | N/A |
| `nextCycle` | [models.BillingPreviewAttachNextCycle](../models/billing-preview-attach-next-cycle.md) | :heavy_minus_sign: | N/A |
| `incoming` | [models.Incoming](../models/incoming.md)[] | :heavy_check_mark: | N/A |
| `outgoing` | [models.Outgoing](../models/outgoing.md)[] | :heavy_check_mark: | N/A |

View File

@@ -1,19 +0,0 @@
# BillingPreviewUpdateCredit
## Example Usage
```typescript
import { BillingPreviewUpdateCredit } from "@useautumn/sdk";
let value: BillingPreviewUpdateCredit = {
amount: 1261.98,
description: "book whether yuck difficult acidic comb between famously whose",
};
```
## Fields
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `amount` | *number* | :heavy_check_mark: | N/A |
| `description` | *string* | :heavy_check_mark: | N/A |

View File

@@ -1,5 +1,7 @@
# BillingPreviewUpdateCustomize
Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both.
## Example Usage
```typescript

View File

@@ -13,7 +13,7 @@ let value: BillingPreviewUpdateInvoiceMode = {
## Fields
| Field | Type | Required | Description |
| -------------------------- | -------------------------- | -------------------------- | -------------------------- |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `enabled` | *boolean* | :heavy_check_mark: | N/A |
| `enableProductImmediately` | *boolean* | :heavy_minus_sign: | N/A |
| `finalizeInvoice` | *boolean* | :heavy_minus_sign: | N/A |
| `enablePlanImmediately` | *boolean* | :heavy_minus_sign: | N/A |
| `finalize` | *boolean* | :heavy_minus_sign: | N/A |

Some files were not shown because too many files have changed in this diff Show More