ofxio

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: LGPL-2.1 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ofxio

I/O library to parse and write OFX/QFX/QBO files

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BANKMSGSRSV1

type BANKMSGSRSV1 struct {
	CURDEF   string    `xml:"STMTTRNRS>STMTRS>CURDEF"`
	BANKID   string    `xml:"STMTTRNRS>STMTRS>BANKACCTFROM>BANKID"`
	ACCID    string    `xml:"STMTTRNRS>STMTRS>BANKACCTFROM>ACCTID"`
	ACCTTYPE string    `xml:"STMTTRNRS>STMTRS>BANKACCTFROM>ACCTTYPE"`
	Txs      []*BankTx `xml:"STMTTRNRS>STMTRS>BANKTRANLIST>STMTTRN"`
}

type BankTx

type BankTx struct {
	XMLName  xml.Name        `xml:"STMTTRN"`
	TRNTYPE  string          `xml:"TRNTYPE"`
	DTPOSTED string          `xml:"DTPOSTED"`
	DTUSER   string          `xml:"DTUSER"`
	TRNAMT   decimal.Decimal `xml:"TRNAMT"`
	FITID    string          `xml:"FITID"`
	NAME     string          `xml:"NAME"`
	MEMO     string          `xml:"MEMO"`
	BANKID   string          `xml:"BANKACCTTO>BANKID"`
	ACCTID   string          `xml:"BANKACCTTO>ACCTID"`
	ACCTTYPE string          `xml:"BANKACCTTO>ACCTTYPE"`
}

type CREDITCARDMSGSRSV1

type CREDITCARDMSGSRSV1 struct {
	TRNUID      string          `xml:"CCSTMTTRNRS>TRNUID"`
	CODE        string          `xml:"CCSTMTTRNRS>STATUS>CODE"`
	SEVERITY    string          `xml:"CCSTMTTRNRS>STATUS>SEVERITY"`
	CURDEF      string          `xml:"CCSTMTTRNRS>CCSTMTRS>CURDEF"`
	ACCTID      string          `xml:"CCSTMTTRNRS>CCSTMTRS>CCACCTFROM>ACCTID"`
	DTSTART     string          `xml:"CCSTMTTRNRS>CCSTMTRS>BANKTRANLIST>DTSTART"`
	DTEND       string          `xml:"CCSTMTTRNRS>CCSTMTRS>BANKTRANLIST>DTEND"`
	Txs         []*CcTx         `xml:"CCSTMTTRNRS>CCSTMTRS>BANKTRANLIST>STMTTRN"`
	LEDGERBAL   decimal.Decimal `xml:"CCSTMTTRNRS>CCSTMTRS>LEDGERBAL>BALAMT"`
	LEDGERBALDT string          `xml:"CCSTMTTRNRS>CCSTMTRS>LEDGERBAL>DTASOF"`
	AVAILBAL    decimal.Decimal `xml:"CCSTMTTRNRS>CCSTMTRS>AVAILBAL>BALAMT"`
	AVAILBALDT  string          `xml:"CCSTMTTRNRS>CCSTMTRS>AVAILBAL>DTASOF"`
}

type CcTx

type CcTx struct {
	XMLName  xml.Name        `xml:"STMTTRN"`
	TRNTYPE  string          `xml:"TRNTYPE"`
	DTPOSTED string          `xml:"DTPOSTED"`
	DTUSER   string          `xml:"DTUSER"`
	TRNAMT   decimal.Decimal `xml:"TRNAMT"`
	FITID    string          `xml:"FITID"`
	NAME     string          `xml:"NAME"`
	ACCTID   string          `xml:"CCACCTTO>ACCTID"`
	MEMO     string          `xml:"MEMO"`
}

type Doc

type Doc struct {
	XMLName xml.Name `xml:"OFX"`
	SONRS   SONRS    `xml:"SIGNONMSGSRSV1>SONRS"`
	// BANKMSGSRSV1       BANKMSGSRSV1       `xml:"BANKMSGSRSV1,omitempty"`
	CREDITCARDMSGSRSV1 CREDITCARDMSGSRSV1 `xml:"CREDITCARDMSGSRSV1,omitempty"`
}

func Import

func Import(r io.Reader) (doc *Doc, err error)

func (*Doc) Export

func (doc *Doc) Export(w io.Writer) (err error)

type SONRS

type SONRS struct {
	CODE     int    `xml:"STATUS>CODE"`
	SEVERITY string `xml:"STATUS>SEVERITY"`
	DTSERVER string `xml:"DTSERVER"`
	LANGUAGE string `xml:"LANGUAGE"`
	DTPROFUP string `xml:"DTPROFUP"`
	ORG      string `xml:"FI>ORG"`
	FID      string `xml:"FI>FID"`
	INTUBID  string `xml:"INTU.BID,omitempty"`
}

Jump to

Keyboard shortcuts

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