//
//  SeniorCitizenSavingModel.swift
//  Product Calculator
//
//  Created by Suraj Kumar Mandal on 05/12/21.
//

import Foundation

// MARK: - SeniorCitizenSavingModel
class SeniorCitizenSavingModel {
    var maturityDate, maturityDisplayDate : String?
    var interestReceived, totalInterestReceived, interestRate : Double?
    var seniorCitizenSavingSchemeLookupsList = [SCSSLookupList]()
    
    init(maturityDate:String, maturityDisplayDate:String, interestReceived:Double, totalInterestReceived:Double, interestRate:Double) {
        self.maturityDate = maturityDate
        self.maturityDisplayDate = maturityDisplayDate
        self.interestReceived = interestReceived
        self.totalInterestReceived = totalInterestReceived
        self.interestRate = interestRate
    }
}


class SCSSLookupList {
    let serialNo, daysToMaturity : Int?
    let referenceDate, referenceMonth, financialYear : String?
    let amountDeposited, totalInterestReceived, interestReceived : Double?
    
    init(serialNo:Int, amountDeposited:Double, totalInterestReceived:Double, interestReceived:Double, daysToMaturity:Int, referenceDate:String, referenceMonth:String, financialYear:String) {
        self.serialNo = serialNo
        self.amountDeposited = amountDeposited
        self.interestReceived = interestReceived
        self.totalInterestReceived = totalInterestReceived
        self.daysToMaturity = daysToMaturity
        self.referenceDate = referenceDate
        self.referenceMonth = referenceMonth
        self.financialYear = financialYear
    }
}
