mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-11-14 17:20:04 -05:00
25 lines
521 B
Go
25 lines
521 B
Go
package ofxgo
|
|
|
|
import (
|
|
"github.com/golang/go/src/encoding/xml"
|
|
)
|
|
|
|
type ProfileRequest struct {
|
|
XMLName xml.Name `xml:"PROFTRNRQ"`
|
|
TrnUID UID `xml:"TRNUID"`
|
|
ClientRouting String `xml:"PROFRQ>CLIENTROUTING"` // Forced to NONE
|
|
DtProfup Date `xml:"PROFRQ>DTPROFUP"`
|
|
}
|
|
|
|
func (r *ProfileRequest) Name() string {
|
|
return "PROFTRNRQ"
|
|
}
|
|
|
|
func (r *ProfileRequest) Valid() (bool, error) {
|
|
if ok, err := r.TrnUID.Valid(); !ok {
|
|
return false, err
|
|
}
|
|
r.ClientRouting = "NONE"
|
|
return true, nil
|
|
}
|