mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-09-21 10:20:04 -04:00
24 lines
474 B
Go
24 lines
474 B
Go
package ofxgo
|
|
|
|
import (
|
|
"github.com/golang/go/src/encoding/xml"
|
|
)
|
|
|
|
type OfxAcctInfoRequest struct {
|
|
XMLName xml.Name `xml:"ACCTINFOTRNRQ"`
|
|
TrnUID OfxUID `xml:"TRNUID"`
|
|
CltCookie OfxInt `xml:"CLTCOOKIE"`
|
|
DtAcctup OfxDate `xml:"ACCTINFORQ>DTACCTUP"`
|
|
}
|
|
|
|
func (r *OfxAcctInfoRequest) Name() string {
|
|
return "ACCTINFOTRNRQ"
|
|
}
|
|
|
|
func (r *OfxAcctInfoRequest) Valid() (bool, error) {
|
|
if ok, err := r.TrnUID.Valid(); !ok {
|
|
return false, err
|
|
}
|
|
return true, nil
|
|
}
|