simplefin

package
v0.0.0-...-dda0381 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APICalls float64 = 0
)

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	Org              organization    `json:"org"`
	ID               string          `json:"id"`
	Name             string          `json:"name"`
	Currency         string          `json:"currency"`
	Balance          decimal.Decimal `json:"balance"`
	AvailableBalance decimal.Decimal `json:"available-balance"`
	BalanceDate      int64           `json:"balance-date"`
	Transactions     []Transactions  `json:"transactions"`
	Extra            []string        `json:"extra"`
}

type AccountsResponse

type AccountsResponse struct {
	Errors   []string   `json:"errors"`
	Accounts []Accounts `json:"accounts"`
}

type Filter

type Filter struct {
	StartDate int64
	EndDate   int64
	Pending   bool
}

type Simplefin

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

func New

func New(accessUrl string) *Simplefin

func (*Simplefin) Accounts

func (f *Simplefin) Accounts() (AccountsResponse, error)

func (*Simplefin) SetFilter

func (f *Simplefin) SetFilter(newFilter Filter)

func (*Simplefin) ToQuery

func (f *Simplefin) ToQuery() string

type Transactions

type Transactions struct {
	ID           string          `json:"id"`
	Posted       int64           `json:"posted"`
	TransactedAt int64           `json:"transacted_at,omitempty"` // "2018-09-17T12:46:47+01:00"
	Amount       decimal.Decimal `json:"amount"`
	Description  string          `json:"description"`
	Pending      bool            `json:"pending"`
	Extra        []string        `json:"extra"`
}

Jump to

Keyboard shortcuts

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