1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-09-21 10:20:04 -04:00
ofxgo/acctinfo.go

24 lines
465 B
Go
Raw Normal View History

2017-03-11 07:15:15 -05:00
package ofxgo
import (
"github.com/golang/go/src/encoding/xml"
)
2017-03-11 07:18:02 -05:00
type AcctInfoRequest struct {
2017-03-11 07:15:15 -05:00
XMLName xml.Name `xml:"ACCTINFOTRNRQ"`
2017-03-11 07:18:02 -05:00
TrnUID UID `xml:"TRNUID"`
CltCookie Int `xml:"CLTCOOKIE"`
DtAcctup Date `xml:"ACCTINFORQ>DTACCTUP"`
2017-03-11 07:15:15 -05:00
}
2017-03-11 07:18:02 -05:00
func (r *AcctInfoRequest) Name() string {
2017-03-11 07:15:15 -05:00
return "ACCTINFOTRNRQ"
}
2017-03-11 07:18:02 -05:00
func (r *AcctInfoRequest) Valid() (bool, error) {
2017-03-11 07:15:15 -05:00
if ok, err := r.TrnUID.Valid(); !ok {
return false, err
}
return true, nil
}