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