12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // SukanyaSamriddhiModel.swift
- // Product Calculator
- //
- // Created by Suraj Kumar Mandal on 05/12/21.
- //
- import Foundation
- // MARK: - SukanyaSamriddhiModel
- class SukanyaSamriddhiModel {
- var depositDate, depositMaturityDate, paymentMaturityDate, maturityDisplayDate, paymentmaturityDisplayDate, financialYear : String?
- var amountDepositFreq, term : Int?
- var depositAmount, annualInterest, compundFreq, totalAmountDeposited, maturityAmount, totalInterestReceived, interestRate : Double?
- var sukanyaSamSchLookupList = [SukanyaSamriddhiLookupList]()
-
- init(depositDate:String, depositMaturityDate:String, paymentMaturityDate:String, maturityDisplayDate:String, paymentmaturityDisplayDate:String, financialYear:String, amountDepositFreq:Int, term:Int, depositAmount:Double, annualInterest:Double, compundFreq:Double, totalAmountDeposited:Double, maturityAmount:Double, totalInterestReceived:Double, interestRate:Double) {
- self.depositDate = depositDate
- self.depositMaturityDate = depositMaturityDate
- self.paymentMaturityDate = paymentMaturityDate
- self.maturityDisplayDate = maturityDisplayDate
- self.paymentmaturityDisplayDate = paymentmaturityDisplayDate
- self.financialYear = financialYear
- self.amountDepositFreq = amountDepositFreq
- self.term = term
- self.depositAmount = depositAmount
- self.annualInterest = annualInterest
- self.compundFreq = compundFreq
- self.totalAmountDeposited = totalAmountDeposited
- self.maturityAmount = maturityAmount
- self.totalInterestReceived = totalInterestReceived
- self.interestRate = interestRate
- }
- }
- class SukanyaSamriddhiLookupList {
- let serialNo, daysToMaturity : Int?
- let referenceDate, referenceMonth, financialYear : String?
- let openingBal, amountDeposited, interestAccrued, interestCredited, totalInterestAccrued, closingBalance, interestRate : Double?
-
- init(serialNo:Int, daysToMaturity:Int, referenceDate:String, referenceMonth:String, financialYear:String, openingBal:Double, amountDeposited:Double, interestAccrued:Double, interestCredited:Double, totalInterestAccrued:Double, closingBalance:Double, interestRate:Double) {
- self.serialNo = serialNo
- self.daysToMaturity = daysToMaturity
- self.referenceDate = referenceDate
- self.referenceMonth = referenceMonth
- self.financialYear = financialYear
- self.openingBal = openingBal
- self.amountDeposited = amountDeposited
- self.interestAccrued = interestAccrued
- self.interestCredited = interestCredited
- self.totalInterestAccrued = totalInterestAccrued
- self.closingBalance = closingBalance
- self.interestRate = interestRate
- }
- }
|