amex

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

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

Go to latest
Published: Sep 6, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Main string
	Sub  string
}

func (*Category) String

func (c *Category) String() string

func (*Category) UnmarshalText

func (c *Category) UnmarshalText(data []byte) error

type CityState

type CityState struct {
	City  string
	State string
}

func (*CityState) UnmarshalText

func (c *CityState) UnmarshalText(data []byte) error

type Fields

type Fields struct {
	User    string
	Account string
}

type Parser

type Parser struct{}

func (Parser) Filetype

func (Parser) Filetype() string

func (Parser) Parse

func (Parser) Parse(acc pfin.Account, filename string, data []byte) (txns []pfin.Transaction, err error)

type Raw

type Raw struct {
	Date                     util.DateUS `csv:"Date"`
	Description              string      `csv:"Description"`
	CardMember               string      `csv:"Card Member"`
	AccountNumber            string      `csv:"Account #"`
	Amount                   float64     `csv:"Amount"`
	ExtendedDetails          string      `csv:"Extended Details"`
	AppearsOnYourStatementAs string      `csv:"Appears On Your Statement As"`
	Address                  string      `csv:"Address"`

	CityState `csv:"City/State"`

	ZipCode   string `csv:"Zip Code"`
	Country   string `csv:"Country"`
	Reference string `csv:"Reference"`

	Category `csv:"Category"`
}

type Transaction

type Transaction struct {
	Fields // computed fields
	Raw    // csv fields
}

func (Transaction) Account

func (tx Transaction) Account() string

func (Transaction) Amount

func (tx Transaction) Amount() float64

func (Transaction) Card

func (tx Transaction) Card() string

func (Transaction) Category

func (tx Transaction) Category() string

func (Transaction) Date

func (tx Transaction) Date() time.Time

func (Transaction) Name

func (tx Transaction) Name() string

func (Transaction) String

func (tx Transaction) String() string

func (Transaction) User

func (tx Transaction) User() string

Jump to

Keyboard shortcuts

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