export type InvoiceStatus =
  | "PENDING"
  | "WAIT_PAYMENT"
  | "PAID"
  | "ARCHIVED"
  | "OVERDUE";

export type ReceiptItemType = {
  id: string;
  createdAt: string;
  updatedAt: string;
  name: string;
  count: string | number;
  unitPrice: string | number;
  discount: string | number;
  totalPrice: number;
  subscriptionPlan?: string | null;
  items: ReceiptItemType[];
  user: {
    firstName: string;
    lastName: string;
  };
  dueDate: string;
  status: InvoiceStatus;
  paidAt: string;
  numericId: string;
  lateFee: number;
};

export type ReceiptDetailItemType = {
  id: string;
  createdAt: string;
  updatedAt: string;
  name: string;
  count: string | number;
  unitPrice: string | number;
  discount: string | number;
  totalPrice: number;
  subscriptionPlan?: string | null;
};

export type RequestApproveInvoiceType = {
  phone: string;
  id: string;
};

export type ApproveInvoiceType = {
  phone: string;
  code: string;
  id: string;
};

export type ApplyDiscountType = {
  id: string;
  code: string;
};

export type RemoveDiscountType = {
  id: string;
};
