You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The `BillingSubscriptionItemSeats` type represents seat entitlements attached to a subscription item.
225
+
*
226
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
227
+
*/
228
+
exportinterfaceBillingSubscriptionItemSeats{
229
+
/**
230
+
* The seat limit active while the parent subscription item was active. `null` means unlimited.
231
+
*/
232
+
quantity: number|null;
233
+
}
234
+
235
+
/**
236
+
* The `BillingPlanUnitPriceTier` type represents a single pricing tier for a unit type on a plan.
237
+
*
238
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
239
+
*/
240
+
exportinterfaceBillingPlanUnitPriceTier{
241
+
/**
242
+
* The unique identifier of the unit price tier.
243
+
*/
244
+
id: string;
245
+
/**
246
+
* The first block number this tier applies to.
247
+
*/
248
+
startsAtBlock: number;
249
+
/**
250
+
* The final block this tier applies to. `null` means unlimited.
251
+
*/
252
+
endsAfterBlock: number|null;
253
+
/**
254
+
* The fee charged for each block in this tier.
255
+
*/
256
+
feePerBlock: BillingMoneyAmount;
257
+
}
258
+
259
+
/**
260
+
* The `BillingPlanUnitPrice` type represents unit pricing for a specific unit type (for example, seats) on a plan.
261
+
*
262
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
263
+
*/
264
+
exportinterfaceBillingPlanUnitPrice{
265
+
/**
266
+
* The unit name, for example `seats`.
267
+
*/
268
+
name: string;
269
+
/**
270
+
* Number of units represented by one billable block.
271
+
*/
272
+
blockSize: number;
273
+
/**
274
+
* Tiers that define how each block range is priced.
275
+
*/
276
+
tiers: BillingPlanUnitPriceTier[];
277
+
}
278
+
279
+
/**
280
+
* The `BillingPerUnitTotalTier` type represents the cost breakdown for a single tier in checkout totals.
281
+
*
282
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
283
+
*/
284
+
exportinterfaceBillingPerUnitTotalTier{
285
+
/**
286
+
* The quantity billed within this tier. `null` means unlimited.
287
+
*/
288
+
quantity: number|null;
289
+
/**
290
+
* The fee charged per block for this tier.
291
+
*/
292
+
feePerBlock: BillingMoneyAmount;
293
+
/**
294
+
* The total billed amount for this tier.
295
+
*/
296
+
total: BillingMoneyAmount;
297
+
}
298
+
299
+
/**
300
+
* The `BillingPerUnitTotal` type represents the per-unit cost breakdown in checkout totals.
301
+
*
302
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
303
+
*/
304
+
exportinterfaceBillingPerUnitTotal{
305
+
/**
306
+
* The unit name, for example `seats`.
307
+
*/
308
+
name: string;
309
+
/**
310
+
* Number of units represented by one billable block.
311
+
*/
312
+
blockSize: number;
313
+
/**
314
+
* Detailed tier breakdown for this unit total.
315
+
*/
316
+
tiers: BillingPerUnitTotalTier[];
317
+
}
318
+
219
319
/**
220
320
* The `FeatureResource` type represents a Feature of a Plan.
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
601
+
*/
602
+
exportinterfaceBillingSubscriptionItemSeatsJSON{
603
+
/**
604
+
* The number of seats available. `null` means unlimited.
605
+
*/
606
+
quantity: number|null;
607
+
}
608
+
609
+
/**
610
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
611
+
*
612
+
* Represents a single pricing tier for a unit type on a plan.
613
+
*/
614
+
exportinterfaceBillingPlanUnitPriceTierJSON{
615
+
id: string;
616
+
object: 'commerce_unit_price';
617
+
starts_at_block: number;
618
+
/**
619
+
* `null` means unlimited.
620
+
*/
621
+
ends_after_block: number|null;
622
+
fee_per_block: BillingMoneyAmountJSON;
623
+
}
624
+
625
+
/**
626
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
627
+
*
628
+
* Represents unit pricing for a specific unit type (for example, seats) on a plan.
629
+
*/
630
+
exportinterfaceBillingPlanUnitPriceJSON{
631
+
name: string;
632
+
block_size: number;
633
+
tiers: BillingPlanUnitPriceTierJSON[];
634
+
}
635
+
636
+
/**
637
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
638
+
*
639
+
* Represents the cost breakdown for a single tier in checkout totals.
640
+
*/
641
+
exportinterfaceBillingPerUnitTotalTierJSON{
642
+
/**
643
+
* `null` means unlimited.
644
+
*/
645
+
quantity: number|null;
646
+
fee_per_block: BillingMoneyAmountJSON;
647
+
total: BillingMoneyAmountJSON;
648
+
}
649
+
650
+
/**
651
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
652
+
*
653
+
* Represents the per-unit cost breakdown in checkout totals.
654
+
*/
655
+
exportinterfaceBillingPerUnitTotalJSON{
656
+
name: string;
657
+
block_size: number;
658
+
tiers: BillingPerUnitTotalTierJSON[];
659
+
}
660
+
599
661
/**
600
662
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
0 commit comments