feat: enhance OrganizationSettings to display Tax IDs alongside business name for improved billing clarity

This commit is contained in:
Usman Baig
2026-02-20 15:36:50 +01:00
parent 2d37d065c0
commit a4f2bebd10
2 changed files with 22 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
import { API_URL } from './client'
export interface TaxID {
type: string
value: string
country?: string
}
export interface SubscriptionDetails {
plan_id: string
subscription_status: string
@@ -15,6 +21,8 @@ export interface SubscriptionDetails {
pageview_usage?: number
/** Business name from Stripe Tax ID collection / business purchase flow (optional). */
business_name?: string
/** Tax IDs collected on the Stripe customer (VAT, EIN, etc.) for invoice verification. */
tax_ids?: TaxID[]
}
async function billingFetch<T>(endpoint: string, options: RequestInit = {}): Promise<T> {