import { StripePrice } from './stripe';

export type Currency = 'GBP' | 'USD' | 'EUR' | 'SAR' | 'AED' | 'QAR' | 'KWD' | 'BHD' | 'OMR';
export type BillingPeriod = 'monthly' | 'yearly';
export type TierId = 'tier1' | 'tier2' | 'tier3' | 'tier4' | 'tier5';

export interface CurrencyInfo {
  rate: number;
  symbol: string;
  code: Currency;
}

export interface PricingTier {
  id: TierId;
  nameEn: string;
  nameAr: string;
  priceGBP: number;
  setupGBP: number;
  popular: boolean;
  featuresEn: string[];
  featuresAr: string[];
  stripeProductId?: string;
  stripePrices?: StripePrice[];
}

export interface SerializableStripeProduct {
  tierId: TierId;
  stripeProductId: string;
  name: string;
  description: string | null;
  features: string[];
  prices: StripePrice[];
}
