UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

34 lines (33 loc) 882 B
import { ClerkResource } from "./resource.js"; import { CommerceSettingsJSONSnapshot } from "./snapshots.js"; import { ClerkResourceJSON } from "./json.js"; //#region src/types/commerceSettings.d.ts interface CommerceSettingsJSON extends ClerkResourceJSON { billing: { stripe_publishable_key: string | null; organization: { enabled: boolean; has_paid_plans: boolean; }; user: { enabled: boolean; has_paid_plans: boolean; }; }; } interface CommerceSettingsResource extends ClerkResource { billing: { stripePublishableKey: string | null; organization: { enabled: boolean; hasPaidPlans: boolean; }; user: { enabled: boolean; hasPaidPlans: boolean; }; }; __internal_toSnapshot: () => CommerceSettingsJSONSnapshot; } //#endregion export { CommerceSettingsJSON, CommerceSettingsResource };