export interface SubscriptionUser {
  id: string;
  createdAt: string;
  updatedAt: string;
  email: string | null;
  phone: string;
  userName: string;
  firstName: string;
  lastName: string;
  birthDate: string | null;
  nationalCode: string | null;
  profilePic: string | null;
  emailVerified: boolean;
  financialType: string | null;
  deletedAt: string | null;
}

export interface SubscriptionService {
  name: string;
  title: string;
}

export interface SubscriptionPlan {
  id: string;
  createdAt: string;
  updatedAt: string;
  name: string;
  duration: number;
  isFree: boolean;
  price: number;
  originalPrice: number;
  isActive: boolean;
  service: SubscriptionService;
  deletedAt: string | null;
}

export interface UserSubscription {
  id: string;
  createdAt: string;
  updatedAt: string;
  user: SubscriptionUser;
  plan: SubscriptionPlan;
  startDate: string;
  endDate: string;
  businessName: string;
  businessPhone: string;
  description: string | null;
  slug: string;
  status: string;
}

export interface SubscriptionPager {
  page: number;
  limit: number;
  totalItems: number;
  totalPages: number;
  prevPage: boolean | string;
  nextPage: string | null;
}

export interface UserSubscriptionsData {
  pager: SubscriptionPager;
  userSubscriptions: UserSubscription[];
  pagination: boolean;
}

export interface UserSubscriptionsResponse {
  statusCode: number;
  success: boolean;
  data: UserSubscriptionsData;
}
