1- import type { CommercePlanJSON , CommercePlanJSONSnapshot , CommercePlanResource } from '@clerk/types' ;
1+ import type { CommercePayerType , CommercePlanJSON , CommercePlanJSONSnapshot , CommercePlanResource } from '@clerk/types' ;
22
33import { BaseResource , CommerceFeature } from './internal' ;
44
@@ -17,7 +17,7 @@ export class CommercePlan extends BaseResource implements CommercePlanResource {
1717 isDefault ! : boolean ;
1818 isRecurring ! : boolean ;
1919 hasBaseFee ! : boolean ;
20- payerType ! : string [ ] ;
20+ forPayerType ! : CommercePayerType ;
2121 publiclyVisible ! : boolean ;
2222 slug ! : string ;
2323 avatarUrl ! : string ;
@@ -47,7 +47,7 @@ export class CommercePlan extends BaseResource implements CommercePlanResource {
4747 this . isDefault = data . is_default ;
4848 this . isRecurring = data . is_recurring ;
4949 this . hasBaseFee = data . has_base_fee ;
50- this . payerType = data . payer_type ;
50+ this . forPayerType = data . for_payer_type ;
5151 this . publiclyVisible = data . publicly_visible ;
5252 this . slug = data . slug ;
5353 this . avatarUrl = data . avatar_url ;
@@ -73,7 +73,7 @@ export class CommercePlan extends BaseResource implements CommercePlanResource {
7373 is_default : this . isDefault ,
7474 is_recurring : this . isRecurring ,
7575 has_base_fee : this . hasBaseFee ,
76- payer_type : this . payerType ,
76+ for_payer_type : this . forPayerType ,
7777 publicly_visible : this . publiclyVisible ,
7878 slug : this . slug ,
7979 avatar_url : this . avatarUrl ,
0 commit comments