diff --git a/profile.go b/profile.go index e133e8d..43f5908 100644 --- a/profile.go +++ b/profile.go @@ -54,7 +54,7 @@ type SignonInfo struct { type MessageSet struct { XMLName xml.Name // Name string // (copy of XMLName.Local) - Ver String `xml:"MSGSETCORE>VER"` // Message set version - should always match 'n' in + Ver Int `xml:"MSGSETCORE>VER"` // Message set version - should always match 'n' in Url String `xml:"MSGSETCORE>URL"` // URL where messages in this set are to be set OfxSec String `xml:"MSGSETCORE>OFXSEC"` // NONE or 'TYPE 1' TranspSec Boolean `xml:"MSGSETCORE>TRANSPSEC"` // Transport-level security must be used diff --git a/profile_test.go b/profile_test.go index 0a80323..c385d6d 100644 --- a/profile_test.go +++ b/profile_test.go @@ -231,7 +231,7 @@ NEWFILEUID:NONE MessageSetList: ofxgo.MessageSetList{ ofxgo.MessageSet{ Name: "SIGNONMSGSETV1", - Ver: "1", + Ver: 1, Url: "https://ofx.example.com/cgi-ofx/exampleofx", OfxSec: "NONE", TranspSec: true, @@ -243,7 +243,7 @@ NEWFILEUID:NONE }, ofxgo.MessageSet{ Name: "SIGNUPMSGSETV1", - Ver: "1", + Ver: 1, Url: "https://ofx.example.com/cgi-ofx/exampleofx", OfxSec: "NONE", TranspSec: true, @@ -255,7 +255,7 @@ NEWFILEUID:NONE }, ofxgo.MessageSet{ Name: "INVSTMTMSGSETV1", - Ver: "1", + Ver: 1, Url: "https://ofx.example.com/cgi-ofx/exampleofx", OfxSec: "NONE", TranspSec: true, @@ -267,7 +267,7 @@ NEWFILEUID:NONE }, ofxgo.MessageSet{ Name: "SECLISTMSGSETV1", - Ver: "1", + Ver: 1, Url: "https://ofx.example.com/cgi-ofx/exampleofx", OfxSec: "NONE", TranspSec: true, @@ -279,7 +279,7 @@ NEWFILEUID:NONE }, ofxgo.MessageSet{ Name: "PROFMSGSETV1", - Ver: "1", + Ver: 1, Url: "https://ofx.example.com/cgi-ofx/exampleofx", OfxSec: "NONE", TranspSec: true,