mirror of
https://github.com/aclindsa/ofxgo.git
synced 2025-07-01 11:48:38 -04:00
Move credit cards to the right message set
They don't belong in with the banking message set like they were, even though they're in the same section in the spec...
This commit is contained in:
17
response.go
17
response.go
@ -10,11 +10,11 @@ import (
|
||||
)
|
||||
|
||||
type Response struct {
|
||||
Version string // String for OFX header, defaults to 203
|
||||
Signon SignonResponse //<SIGNONMSGSETV1>
|
||||
Signup []Message //<SIGNUPMSGSETV1>
|
||||
Banking []Message //<BANKMSGSETV1>
|
||||
//<CREDITCARDMSGSETV1>
|
||||
Version string // String for OFX header, defaults to 203
|
||||
Signon SignonResponse //<SIGNONMSGSETV1>
|
||||
Signup []Message //<SIGNUPMSGSETV1>
|
||||
Banking []Message //<BANKMSGSETV1>
|
||||
CreditCards []Message //<CREDITCARDMSGSETV1>
|
||||
//<LOANMSGSETV1>
|
||||
Investments []Message //<INVSTMTMSGSETV1>
|
||||
//<INTERXFERMSGSETV1>
|
||||
@ -269,7 +269,12 @@ func ParseResponse(reader io.Reader) (*Response, error) {
|
||||
return nil, err
|
||||
}
|
||||
or.Banking = msgs
|
||||
//case "CREDITCARDMSGSRSV1":
|
||||
case "CREDITCARDMSGSRSV1":
|
||||
msgs, err := DecodeCCMessageSet(decoder, start)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
or.CreditCards = msgs
|
||||
//case "LOANMSGSRSV1":
|
||||
case "INVSTMTMSGSRSV1":
|
||||
msgs, err := DecodeInvestmentsMessageSet(decoder, start)
|
||||
|
Reference in New Issue
Block a user