import { Document } from 'mongoose'; import { PAYMENT_TERMS_TYPE, PAYMENT_TYPE } from '../constants/app'; import { IDefaultAttributes } from './commonInterface'; export interface ITerms1Schema { date: Date; amount: number; } export interface IFeeStructure { terms: ITerms1Schema[]; totalAmount: number; frequency: PAYMENT_TERMS_TYPE; title: string; referenceId: string; } export interface IFee1Schema { feeTypeId: string; isNotApplicableForGirls: boolean; paymentMethod: PAYMENT_TYPE[]; feeStructure: IFeeStructure[]; } export interface ISchoolFee1ModelAttributes extends IDefaultAttributes, Document { id: string; instituteId: string; stdId: string[]; commonDueDate: number; fees: IFee1Schema[]; academicCalendarId: string; oldId?: string; }