File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
clerk-js/src/core/resources Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/clerk-js ' : minor
3
+ ' @clerk/types ' : minor
4
+ ---
5
+
6
+ [ Billing Beta] Update checkout.status type to be ` 'needs_confirmation' | 'completed' ` instead of ` string ` .
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class CommerceCheckout extends BaseResource implements CommerceCheckoutRe
18
18
plan ! : CommercePlan ;
19
19
planPeriod ! : CommerceSubscriptionPlanPeriod ;
20
20
planPeriodStart ! : number | undefined ;
21
- status ! : string ;
21
+ status ! : 'needs_confirmation' | 'completed' ;
22
22
totals ! : CommerceCheckoutTotals ;
23
23
isImmediatePlanChange ! : boolean ;
24
24
Original file line number Diff line number Diff line change @@ -1503,7 +1503,7 @@ export interface CommerceCheckoutResource extends ClerkResource {
1503
1503
* <ClerkProvider clerkJsVersion="x.x.x" />
1504
1504
* ```
1505
1505
*/
1506
- status : string ;
1506
+ status : 'needs_confirmation' | 'completed' ;
1507
1507
/**
1508
1508
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1509
1509
* It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
Original file line number Diff line number Diff line change @@ -870,7 +870,7 @@ export interface CommerceCheckoutJSON extends ClerkResourceJSON {
870
870
plan : CommercePlanJSON ;
871
871
plan_period : CommerceSubscriptionPlanPeriod ;
872
872
plan_period_start ?: number ;
873
- status : string ;
873
+ status : 'needs_confirmation' | 'completed' ;
874
874
totals : CommerceCheckoutTotalsJSON ;
875
875
is_immediate_plan_change : boolean ;
876
876
}
You can’t perform that action at this time.
0 commit comments