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:
4
bank.go
4
bank.go
@ -29,7 +29,7 @@ func (r *StatementRequest) Name() string {
|
||||
|
||||
// Valid returns (true, nil) if this struct would be valid OFX if marshalled
|
||||
// into XML/SGML
|
||||
func (r *StatementRequest) Valid() (bool, error) {
|
||||
func (r *StatementRequest) Valid(version ofxVersion) (bool, error) {
|
||||
// TODO implement
|
||||
return true, nil
|
||||
}
|
||||
@ -181,7 +181,7 @@ func (sr *StatementResponse) Name() string {
|
||||
}
|
||||
|
||||
// Valid returns (true, nil) if this struct was valid OFX when unmarshalled
|
||||
func (sr *StatementResponse) Valid() (bool, error) {
|
||||
func (sr *StatementResponse) Valid(version ofxVersion) (bool, error) {
|
||||
//TODO implement
|
||||
return true, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user