Documentation ¶
Index ¶
- func Round(x, unit float64) float64
- type ImportYNABRunner
- type ItemWithDate
- type LastSeen
- type SQLAccount
- type SQLBudget
- type SQLNetWorth
- type TransactionType
- type YnabSubTransaction
- func (t *YnabSubTransaction) Account() string
- func (t *YnabSubTransaction) Amount() float64
- func (t *YnabSubTransaction) Category() string
- func (t *YnabSubTransaction) CategoryGroup() string
- func (t *YnabSubTransaction) Date() string
- func (t *YnabSubTransaction) HasSubTransactions() bool
- func (t *YnabSubTransaction) IndexKey() string
- func (t *YnabSubTransaction) Memo() string
- func (t *YnabSubTransaction) Payee() string
- func (t *YnabSubTransaction) SubTransactions() []financialimporter.Transaction
- func (t *YnabSubTransaction) Tags() []string
- func (t *YnabSubTransaction) TransactionType() financialimporter.TransactionType
- type YnabTransaction
- func (t *YnabTransaction) Account() string
- func (t *YnabTransaction) Amount() float64
- func (t *YnabTransaction) Category() string
- func (t *YnabTransaction) CategoryGroup() string
- func (t *YnabTransaction) Date() string
- func (t *YnabTransaction) HasSubTransactions() bool
- func (t *YnabTransaction) IndexKey() string
- func (t *YnabTransaction) Memo() string
- func (t *YnabTransaction) Payee() string
- func (t *YnabTransaction) SubTransactions() []financialimporter.Transaction
- func (t *YnabTransaction) Tags() []string
- func (t *YnabTransaction) TransactionType() financialimporter.TransactionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ItemWithDate ¶
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 }
func (SQLAccount) ItemDate ¶
func (a SQLAccount) ItemDate() time.Time
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"` }
func (SQLNetWorth) ItemDate ¶
func (s SQLNetWorth) ItemDate() time.Time
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 ¶
func (t *YnabSubTransaction) TransactionType() financialimporter.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
Click to show internal directories.
Click to hide internal directories.