1
1
import type {
2
2
__experimental_CheckoutCacheState ,
3
3
__experimental_CheckoutInstance ,
4
+ BillingCheckoutResource ,
5
+ BillingSubscriptionPlanPeriod ,
4
6
ClerkAPIResponseError ,
5
- CommerceCheckoutResource ,
6
- CommerceSubscriptionPlanPeriod ,
7
7
ConfirmCheckoutParams ,
8
8
SetActiveNavigate ,
9
9
} from '@clerk/types' ;
@@ -24,7 +24,7 @@ describe('useCheckout type tests', () => {
24
24
type ValidOptions = {
25
25
for : 'organization' ;
26
26
planId : string ;
27
- planPeriod : CommerceSubscriptionPlanPeriod ;
27
+ planPeriod : BillingSubscriptionPlanPeriod ;
28
28
} ;
29
29
expectTypeOf < ValidOptions > ( ) . toMatchTypeOf < UseCheckoutParameters > ( ) ;
30
30
} ) ;
@@ -33,7 +33,7 @@ describe('useCheckout type tests', () => {
33
33
type InvalidOptions = {
34
34
for : 'invalid' ;
35
35
planId : string ;
36
- planPeriod : CommerceSubscriptionPlanPeriod ;
36
+ planPeriod : BillingSubscriptionPlanPeriod ;
37
37
} ;
38
38
expectTypeOf < UseCheckoutParameters > ( ) . not . toEqualTypeOf < InvalidOptions > ( ) ;
39
39
} ) ;
@@ -51,7 +51,7 @@ describe('useCheckout type tests', () => {
51
51
type InvalidOptions = {
52
52
for : 'organization' ;
53
53
planId : string ;
54
- planPeriod : CommerceSubscriptionPlanPeriod ;
54
+ planPeriod : BillingSubscriptionPlanPeriod ;
55
55
invalidProp : boolean ;
56
56
} ;
57
57
expectTypeOf < UseCheckoutParameters > ( ) . not . toEqualTypeOf < InvalidOptions > ( ) ;
@@ -78,7 +78,7 @@ describe('useCheckout type tests', () => {
78
78
79
79
type CheckoutResult =
80
80
| {
81
- data : CommerceCheckoutResource ;
81
+ data : BillingCheckoutResource ;
82
82
error : null ;
83
83
}
84
84
| {
@@ -101,7 +101,7 @@ describe('useCheckout type tests', () => {
101
101
102
102
type CheckoutResult =
103
103
| {
104
- data : CommerceCheckoutResource ;
104
+ data : BillingCheckoutResource ;
105
105
error : null ;
106
106
}
107
107
| {
0 commit comments