feat(addons): finalize event addon catalog and ai styling upgrade flow
This commit is contained in:
@@ -1990,7 +1990,14 @@ export async function getEventAiEditSummary(slug: string): Promise<AiEditUsageSu
|
||||
|
||||
export async function createEventAddonCheckout(
|
||||
eventSlug: string,
|
||||
params: { addon_key: string; quantity?: number; success_url?: string; cancel_url?: string }
|
||||
params: {
|
||||
addon_key: string;
|
||||
quantity?: number;
|
||||
success_url?: string;
|
||||
cancel_url?: string;
|
||||
accepted_terms?: boolean;
|
||||
accepted_waiver?: boolean;
|
||||
}
|
||||
): Promise<{ checkout_url: string | null; checkout_id: string | null; expires_at: string | null }> {
|
||||
const response = await authorizedFetch(`${eventEndpoint(eventSlug)}/addons/checkout`, {
|
||||
method: 'POST',
|
||||
@@ -2656,6 +2663,8 @@ export type Package = {
|
||||
included_package_slug?: string | null;
|
||||
lemonsqueezy_variant_id?: string | null;
|
||||
lemonsqueezy_product_id?: string | null;
|
||||
can_checkout?: boolean;
|
||||
checkout_provider?: 'paypal' | 'lemonsqueezy' | string;
|
||||
branding_allowed?: boolean | null;
|
||||
watermark_allowed?: boolean | null;
|
||||
features: string[] | Record<string, boolean> | null;
|
||||
|
||||
Reference in New Issue
Block a user