feat: add PlanPrice interface and update Plan/Subscription types
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,14 @@ export interface SharedPageProps {
|
|||||||
domains: DomainProps
|
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 {
|
export interface Plan {
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name: string
|
||||||
@@ -57,6 +65,7 @@ export interface Plan {
|
|||||||
stock_quantity: number | null
|
stock_quantity: number | null
|
||||||
status: string
|
status: string
|
||||||
sort_order: number
|
sort_order: number
|
||||||
|
prices?: PlanPrice[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Subscription {
|
export interface Subscription {
|
||||||
@@ -64,6 +73,7 @@ export interface Subscription {
|
|||||||
type: string
|
type: string
|
||||||
stripe_status: string
|
stripe_status: string
|
||||||
gateway: string
|
gateway: string
|
||||||
|
billing_cycle: 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | null
|
||||||
current_period_start: string | null
|
current_period_start: string | null
|
||||||
current_period_end: string | null
|
current_period_end: string | null
|
||||||
ends_at: string | null
|
ends_at: string | null
|
||||||
|
|||||||
Reference in New Issue
Block a user