mirror of
https://github.com/aclindsa/ofxgo.git
synced 2025-07-01 11:48:38 -04:00
Initial commit
This commit is contained in:
24
profile.go
Normal file
24
profile.go
Normal file
@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user