ynabimporter

package
v0.0.0-...-80fda32 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Round

func Round(x, unit float64) float64

Types

type ImportYNABRunner

type ImportYNABRunner struct {
	// contains filtered or unexported fields
}

func NewImportYNABRunner

func NewImportYNABRunner() (*ImportYNABRunner, error)

func (*ImportYNABRunner) Close

func (importer *ImportYNABRunner) Close() error

func (*ImportYNABRunner) Run

func (importer *ImportYNABRunner) Run() error

type LastSeen

type LastSeen struct {
	Endpoint string
	LastSeen string
}

type SQLAccount

type SQLAccount struct {
	bun.BaseModel `bun:"table:accounts"`
	ID            int64  `bun:",pk,autoincrement"`
	Key           string `bun:",pk,unique"`
	Date          time.Time
	Name          string
	Currency      string
	BudgetName    string
	OnBudget      bool
	Type          string
	Balance       float64
	USD           float64
	CAD           float64
}

type SQLBudget

type SQLBudget struct {
	bun.BaseModel `bun:"table:budgets"`
	ID            int64  `bun:",pk,autoincrement"`
	Key           string `bun:",pk,unique"`
	Category      string
	CategoryGroup string
	Month         time.Time
	Name          string
	Currency      string
	Budgeted      float64
	Activity      float64
	ActivityUSD   float64
	ActivityCAD   float64
	Balance       float64
	BalanceUSD    float64
	BalanceCAD    float64
	Amount        float64
	USD           float64
	CAD           float64
	Fields        map[string]interface{} `bun:"type:jsonb"`
}

type SQLNetWorth

type SQLNetWorth struct {
	bun.BaseModel   `bun:"table:networth"`
	ID              int64     `bun:",pk,autoincrement"`
	Date            time.Time `bun:",unique"`
	USD             float64
	CAD             float64
	BudgetBreakdown map[string]map[string]float64 `bun:"type:jsonb"`
}

type TransactionType

type TransactionType string

type YnabSubTransaction

type YnabSubTransaction struct {
	*ynab.SubTransaction
	Parent *YnabTransaction
}

func (*YnabSubTransaction) Account

func (t *YnabSubTransaction) Account() string

func (*YnabSubTransaction) Amount

func (t *YnabSubTransaction) Amount() float64

func (*YnabSubTransaction) Category

func (t *YnabSubTransaction) Category() string

func (*YnabSubTransaction) CategoryGroup

func (t *YnabSubTransaction) CategoryGroup() string

func (*YnabSubTransaction) Date

func (t *YnabSubTransaction) Date() string

func (*YnabSubTransaction) HasSubTransactions

func (t *YnabSubTransaction) HasSubTransactions() bool

func (*YnabSubTransaction) IndexKey

func (t *YnabSubTransaction) IndexKey() string

func (*YnabSubTransaction) Memo

func (t *YnabSubTransaction) Memo() string

func (*YnabSubTransaction) Payee

func (t *YnabSubTransaction) Payee() string

func (*YnabSubTransaction) SubTransactions

func (t *YnabSubTransaction) SubTransactions() []financialimporter.Transaction

func (*YnabSubTransaction) Tags

func (t *YnabSubTransaction) Tags() []string

func (*YnabSubTransaction) TransactionType

type YnabTransaction

type YnabTransaction struct {
	*ynab.TransactionDetail
	Regex         *regexp.Regexp
	CategoryIDMap map[string]category
}

func (*YnabTransaction) Account

func (t *YnabTransaction) Account() string

func (*YnabTransaction) Amount

func (t *YnabTransaction) Amount() float64

func (*YnabTransaction) Category

func (t *YnabTransaction) Category() string

func (*YnabTransaction) CategoryGroup

func (t *YnabTransaction) CategoryGroup() string

func (*YnabTransaction) Date

func (t *YnabTransaction) Date() string

func (*YnabTransaction) HasSubTransactions

func (t *YnabTransaction) HasSubTransactions() bool

func (*YnabTransaction) IndexKey

func (t *YnabTransaction) IndexKey() string

func (*YnabTransaction) Memo

func (t *YnabTransaction) Memo() string

func (*YnabTransaction) Payee

func (t *YnabTransaction) Payee() string

func (*YnabTransaction) SubTransactions

func (t *YnabTransaction) SubTransactions() []financialimporter.Transaction

func (*YnabTransaction) Tags

func (t *YnabTransaction) Tags() []string

func (*YnabTransaction) TransactionType

func (t *YnabTransaction) TransactionType() financialimporter.TransactionType

Jump to

Keyboard shortcuts

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