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

@ -10,9 +10,9 @@ import (
// Message represents an OFX message in a message set. it is used to ease
// marshalling and unmarshalling.
type Message interface {
Name() string // The name of the OFX transaction wrapper element this represents
Valid() (bool, error) // Called before a Message is marshaled and after it's unmarshaled to ensure the request or response is valid
Type() messageType // The message set this message belongs to
Name() string // The name of the OFX transaction wrapper element this represents
Valid(version ofxVersion) (bool, error) // Called before a Message is marshaled and after it's unmarshaled to ensure the request or response is valid
Type() messageType // The message set this message belongs to
}
type messageType uint