mirror of
https://github.com/aclindsa/ofxgo.git
synced 2025-06-30 19:28:39 -04:00
Make the OFX spec version an 'enum'
This commit is contained in:
@ -40,7 +40,7 @@ func TestMarshalAcctInfoRequest(t *testing.T) {
|
||||
var client = ofxgo.Client{
|
||||
AppID: "OFXGO",
|
||||
AppVer: "0001",
|
||||
SpecVersion: "203",
|
||||
SpecVersion: ofxgo.OfxVersion203,
|
||||
}
|
||||
|
||||
var request ofxgo.Request
|
||||
@ -112,7 +112,7 @@ func TestUnmarshalAcctInfoResponse(t *testing.T) {
|
||||
</OFX>`)
|
||||
var expected ofxgo.Response
|
||||
|
||||
expected.Version = "203"
|
||||
expected.Version = ofxgo.OfxVersion203
|
||||
expected.Signon.Status.Code = 0
|
||||
expected.Signon.Status.Severity = "INFO"
|
||||
expected.Signon.DtServer = *ofxgo.NewDateGMT(2006, 1, 15, 11, 23, 03, 0)
|
||||
|
Reference in New Issue
Block a user