export type PaymentType = {
  id: string;
  amount: number;
  createdAt: string;
  reference: string;
  status: "PENDING" | "COMPLETED" | "FAILED" | "CANCELED";
  transactionId: string | null;
  type: "CARD_TO_CARD" | "BANK_TRANSFER";
};

export type PaymentItemsType = {
  id: string;
  amount: number;
  bankAccount: {
    IBan: string;
    cardNumber: string;
    accountOwnerName: string;
  };
  comment?: string;
  createdAt: string;
  receiptUrl: string;
  status: "PENDING" | "APPROVED" | "REJECTED";
  user: {
    id: string;
    firstName: string;
    lastName: string;
    phone: string;
  };
  type: PaymentStatusType;
};

export type PaymentStatusType = "CARD_TO_CARD" | "GATEWAY" | "SHEBA";

export type PaymentGatewayType = {
  amount: string;
  id: string;
  createdAt: string;
  reference: string;
  status: "PENDING" | "COMPLETED" | "FAILED" | "CANCELED";
  paymentGateway: {
    id: string;
    name: string;
    nameFa: string;
    description: string;
  };
  user: {
    id: string;
    firstName: string;
    lastName: string;
    phone: string;
  };
};

export type RejectPaymentType = {
  id: string;
  comment?: string;
};
