statement

package
v0.0.0-2415 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaRowHeaders

type MetaRowHeaders struct {
	TransactionHistory string
	AccountNumber      string
	AccountName        string
	AccountNickName    string
	Type               string
	StatementPeriod    string
}

type Statement

type Statement struct {
	Meta         StatementMeta             `json:"meta"`
	Transactions []transaction.Transaction `json:"transactions"`
}

func Parse

func Parse(payload []byte) (*Statement, error)

Parse receives an argument raw bytes of a statement file from Kasikorn, i.e. CSV file from Kasikorn and parses it.

type StatementMeta

type StatementMeta struct {
	DownloadedOn time.Time       `json:"downloadedOn"`
	AsOf         time.Time       `json:"asOf"`
	Account      account.Account `json:"account"`
	Period       struct {
		From time.Time `json:"from"`
		To   time.Time `json:"to"`
	} `json:"period"`
}

Jump to

Keyboard shortcuts

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