Skip to content

Commit 22f258f

Browse files
committed
remove optional is_removable
1 parent 9702850 commit 22f258f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/clerk-js/src/core/resources/CommercePaymentSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class CommercePaymentSource extends BaseResource implements CommercePayme
3636
this.paymentMethod = data.payment_method;
3737
this.cardType = data.card_type;
3838
this.isDefault = data.is_default;
39-
this.isRemovable = data.is_removable ?? false;
39+
this.isRemovable = data.is_removable;
4040
this.status = data.status;
4141
this.walletType = data.wallet_type ?? undefined;
4242

packages/types/src/commerce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export interface CommercePaymentSourceResource extends ClerkResource {
9696
paymentMethod: string;
9797
cardType: string;
9898
isDefault: boolean;
99-
isRemovable?: boolean;
99+
isRemovable: boolean;
100100
status: CommercePaymentSourceStatus;
101101
walletType: string | undefined;
102102
remove: (params?: RemovePaymentSourceParams) => Promise<DeletedObjectResource>;

packages/types/src/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ export interface CommercePaymentSourceJSON extends ClerkResourceJSON {
638638
payment_method: string;
639639
card_type: string;
640640
is_default: boolean;
641-
is_removable?: boolean;
641+
is_removable: boolean;
642642
status: CommercePaymentSourceStatus;
643643
wallet_type: string | null;
644644
}

0 commit comments

Comments
 (0)