export interface PaymentResponse {
  status: number;
  success: boolean;
  results: {
    pager: Pager;
    payments: Payment[];
  };
}

export interface Payment {
  _id: string;
  user: User;
  transaction_id: string | null;
  payment_method: PaymentMethod;
  priceDetails: PriceDetails;
  totalPrice: number;
  paymentStatus: string;
  createdAt: string;
}

export interface User {
  fullName: string;
}

export interface PaymentMethod {
  _id: string;
  title_fa: string;
  title_en: string;
  description: string;
  provider: string;
  isActive: boolean;
  type: string;
}

export interface PriceDetails {
  shipping_cost: number;
  process_cost: number;
  total_retail_price: number;
  total_payable_price: number;
  total_discount: number;
  coupon_discount: number;
}

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

export type CreateFineType = {
  title: string;
  fine_percentage: number;
};

export interface FineRule {
  _id: string;
  title: string;
  fine_percentage: number;
  deleted: boolean;
  createdAt: string;
  updatedAt: string;
}

export interface GetFinesResponse {
  status: number;
  success: boolean;
  results: {
    fineRules: FineRule[];
  };
}
