diff --git a/website/resources/ts/types/index.ts b/website/resources/ts/types/index.ts index 9ce0f84..d8128fd 100644 --- a/website/resources/ts/types/index.ts +++ b/website/resources/ts/types/index.ts @@ -45,6 +45,14 @@ export interface SharedPageProps { domains: DomainProps } +export interface PlanPrice { + id: number + plan_id: number + billing_cycle: 'monthly' | 'quarterly' | 'semi_annual' | 'annual' + price: string + stripe_price_id: string | null +} + export interface Plan { id: number name: string @@ -57,6 +65,7 @@ export interface Plan { stock_quantity: number | null status: string sort_order: number + prices?: PlanPrice[] } export interface Subscription { @@ -64,6 +73,7 @@ export interface Subscription { type: string stripe_status: string gateway: string + billing_cycle: 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | null current_period_start: string | null current_period_end: string | null ends_at: string | null