1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-06-30 19:28:39 -04:00

Use named constants instead of strings for enum-like OFX fields

This adds a python script to generate constants.go when `go generate` is
called, and updates the structs, tests, and command-line client to all
use the new named constants.
This commit is contained in:
2017-04-06 05:58:22 -04:00
parent ea700b33a9
commit 4521bb377a
16 changed files with 3030 additions and 382 deletions

View File

@ -126,12 +126,12 @@ func TestUnmarshalAcctInfoResponse(t *testing.T) {
BankAcctFrom: ofxgo.BankAcct{
BankId: "8367556009",
AcctId: "000999847",
AcctType: "MONEYMRKT",
AcctType: ofxgo.AcctTypeMoneyMrkt,
},
SupTxDl: true,
XferSrc: true,
XferDest: true,
SvcStatus: "ACTIVE",
SvcStatus: ofxgo.SvcStatusActive,
}
acctInfoResponse := ofxgo.AcctInfoResponse{