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

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