Skip to content

Commit 5c4beab

Browse files
committed
feat(backend): Add support for annual-only Billing plans
1 parent 430c73c commit 5c4beab

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.changeset/all-readers-dream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
'@clerk/backend': minor
23
'@clerk/localizations': minor
34
'@clerk/clerk-js': minor
45
'@clerk/shared': minor

packages/backend/src/api/resources/CommercePlan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class BillingPlan {
4545
/**
4646
* The monthly fee of the Plan.
4747
*/
48-
readonly fee: BillingMoneyAmount,
48+
readonly fee: BillingMoneyAmount | null,
4949
/**
5050
* The annual fee of the Plan.
5151
*/

packages/backend/src/api/resources/JSON.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ export interface BillingPlanJSON extends ClerkResourceJSON {
854854
is_recurring: boolean;
855855
has_base_fee: boolean;
856856
publicly_visible: boolean;
857-
fee: BillingMoneyAmountJSON;
857+
fee: BillingMoneyAmountJSON | null;
858858
annual_fee: BillingMoneyAmountJSON | null;
859859
annual_monthly_fee: BillingMoneyAmountJSON | null;
860860
for_payer_type: 'org' | 'user';

0 commit comments

Comments
 (0)