The billing module has been refined and enhanced to include deeper validation and detailing of billing plans and products. The checkout session creation process was revised to handle more complex scenarios, incorporating better parsing and validation. Additional validations were added for the plan and product schemas, improving product details extraction, and rearranging of module exports was made for better organization. The code refactor allows easier future modifications and upgrades for recurring and one-time payments with nuanced product configurations.
15 lines
347 B
TypeScript
15 lines
347 B
TypeScript
import { SupabaseClient } from '@supabase/supabase-js';
|
|
|
|
import 'server-only';
|
|
|
|
import { Database } from '@kit/supabase/database';
|
|
|
|
export class DeleteTeamAccountService {
|
|
constructor(private readonly client: SupabaseClient<Database>) {}
|
|
|
|
async deleteTeamAccount(params: { accountId: string }) {
|
|
// TODO
|
|
// implement this method
|
|
}
|
|
}
|