1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-01 11:48:38 -04:00

Add OFX version to Valid() calls

This allows for future differentiation based on different requirements
of different versions of the OFX specification.
This commit is contained in:
2017-04-17 11:11:46 -04:00
parent 0eba6741f2
commit 9bd9c01962
10 changed files with 23 additions and 23 deletions

View File

@ -42,7 +42,7 @@ func (r *SecListRequest) Name() string {
// Valid returns (true, nil) if this struct would be valid OFX if marshalled
// into XML/SGML
func (r *SecListRequest) Valid() (bool, error) {
func (r *SecListRequest) Valid(version ofxVersion) (bool, error) {
// TODO implement
return true, nil
}
@ -73,7 +73,7 @@ func (r *SecListResponse) Name() string {
}
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
func (r *SecListResponse) Valid() (bool, error) {
func (r *SecListResponse) Valid(version ofxVersion) (bool, error) {
// TODO implement
return true, nil
}
@ -224,7 +224,7 @@ func (r *SecurityList) Name() string {
}
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
func (r *SecurityList) Valid() (bool, error) {
func (r *SecurityList) Valid(version ofxVersion) (bool, error) {
// TODO implement
return true, nil
}