src/app/utilities/debt.ts
Debt class
used to hold individual debt data
constructor(amount: number, type: string, term: number, monthlyRepay: number, apr: number, deposit: number, totalRepaid: number, costOfCredit: number, debtConfirmed: boolean)
|
amount |
amount: |
apr |
apr: |
costOfCredit |
costOfCredit: |
debtConfirmed |
debtConfirmed: |
deposit |
deposit: |
monthlyRepay |
monthlyRepay: |
term |
term: |
totalRepaid |
totalRepaid: |
type |
type: |
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
) { }
}