model

package
v0.0.0-...-9c61c7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmortizationResult

type AmortizationResult struct {
	MonthlyPayments []MonthlyPayment
}

type AmortizationResults

type AmortizationResults struct {
	PaymentPlans []AmortizationResult
}

type Debt

type Debt struct {
	MonthlyBudget int         `json:"monthly_budget"`
	Tradelines    []Tradeline `json:"tradelines"`
}

type MonthlyPayment

type MonthlyPayment struct {
	ID               string
	Month            int
	Interest         float64
	PrincipalPayment float64
	RemainingBalance float64
}

Tradeline Input Array request for getting information on the debt accounts.

type Payment

type Payment struct {
	Month                 string
	TotalPayment          float64
	TotalPrincipalPayment float64
	TotalInterest         float64
	MonthlyPayments       []MonthlyPayment
}

type PaymentTable

type PaymentTable struct {
	Month           int
	TotalInterest   float64
	Balance         float64
	TotalPaidAmount float64
	Payment         []Payment
}

type Payoff

type Payoff struct {
	ID            string  `json:"id"`
	TimeInMonths  float64 `json:"time_in_months"`
	TotalAmount   float64 `json:"total_amount"`
	TotalInterest float64 `json:"total_interest"`
	LastPayment   float64 `json:"last_payment"`
	PaidOff       bool    `json:"paid_off"`
}

Payoff structure for paying off debt

type PayoffResult

type PayoffResult struct {
	Payoff Payoff `json:"payoff"`
}

type Results

type Results struct {
	PayoffResult  []PayoffResult       `json:"result"`
	Amortization  AmortizationResults  `json:"amortization"`
	PaymentTables map[int]PaymentTable `json:"aggregated"`
}

type Tradeline

type Tradeline struct {
	ID                      string  `json:"id"`
	AccountName             string  `json:"account_name"`
	Balance                 float64 `json:"balance"`
	MinimumPayment          int     `json:"minimum_payment"`
	InterestRate            float64 `json:"interest_rate"`
	RevolvingOrInstallement string  `json:"revolving_or_installement"`
}

Tradeline Input Array request for getting information on the debt accounts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL