FDTDRDetailsModel.swift 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // FDTDRDetailsModel.swift
  3. // Product Calculator
  4. //
  5. // Created by Suraj Kumar Mandal on 17/11/21.
  6. //
  7. import Foundation
  8. // MARK: - FDTDRDetails
  9. class FDTDRDetailsModel {
  10. var maturityDate, maturityDisplayDate : String?
  11. var interestReceived, totalInterestReceived : Int?
  12. var bankFdTdrLookupList = [FDTDRLookupList]()
  13. init(maturityDate:String, maturityDisplayDate:String, interestReceived:Int, totalInterestReceived:Int) {
  14. self.maturityDate = maturityDate
  15. self.maturityDisplayDate = maturityDisplayDate
  16. self.interestReceived = interestReceived
  17. self.totalInterestReceived = totalInterestReceived
  18. }
  19. }
  20. class FDTDRLookupList {
  21. let serialNo, amountDeposited, interestReceived, interestAccrued, totalInterestAccrued, daysToMaturity : Int?
  22. let referenceDate, referenceMonth, financialYear : String?
  23. init(serialNo:Int, amountDeposited:Int, interestReceived:Int, interestAccrued:Int, totalInterestAccrued:Int, daysToMaturity:Int, referenceDate:String, referenceMonth:String, financialYear:String) {
  24. self.serialNo = serialNo
  25. self.amountDeposited = amountDeposited
  26. self.interestReceived = interestReceived
  27. self.interestAccrued = interestAccrued
  28. self.totalInterestAccrued = totalInterestAccrued
  29. self.daysToMaturity = daysToMaturity
  30. self.referenceDate = referenceDate
  31. self.referenceMonth = referenceMonth
  32. self.financialYear = financialYear
  33. }
  34. }