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:
@ -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{
|
||||
|
Reference in New Issue
Block a user