File

src/app/utilities/debt.ts

Description

Debt class
used to hold individual debt data

Constructor

constructor(amount: number, type: string, term: number, monthlyRepay: number, apr: number, deposit: number, totalRepaid: number, costOfCredit: number, debtConfirmed: boolean)

Properties

amount
amount: number
apr
apr: number
costOfCredit
costOfCredit: number
debtConfirmed
debtConfirmed: boolean
deposit
deposit: number
monthlyRepay
monthlyRepay: number
term
term: number
totalRepaid
totalRepaid: number
type
type: string
export class Debt {
    constructor(
        public amount: number,
        public type: string,
        public term: number,
        public monthlyRepay: number,
        public apr: number,
        public deposit: number,
        public totalRepaid: number,
        public costOfCredit: number,
        public debtConfirmed: boolean
    ) {  }
}

/**
 * Debt Formatted class
 * used to hold individual formatted debt data 
*/
export class DebtFormatted {
    constructor(
        public amount: string,
        public monthlyRepay: string,
        public apr: string,
        public deposit: string,
        public totalRepaid: string,
        public costOfCredit: string
    ) {  }
}

results matching ""

    No results matching ""