From 1017dbb0aeb3216f34013ff34c1900b1459473d5 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Thu, 6 Apr 2017 20:30:51 -0400 Subject: [PATCH] signup: Stop using the wrong enum for InvAcctType --- signup.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/signup.go b/signup.go index 1f3380c..c25dd2c 100644 --- a/signup.go +++ b/signup.go @@ -80,13 +80,13 @@ func (ci *CCAcctInfo) String() string { } type InvAcctInfo struct { - XMLName xml.Name `xml:"INVACCTINFO"` - InvAcctFrom InvAcct `xml:"INVACCTFROM"` - UsProductType usProductType `xml:"USPRODUCTTYPE"` // One of 401K, 403B, IRA, KEOGH, OTHER, SARSEP, SIMPLE, NORMAL, TDA, TRUST, UGMA - Checking Boolean `xml:"CHECKING"` // Has check-writing privileges - SvcStatus svcStatus `xml:"SVCSTATUS"` // One of AVAIL (available, but not yet requested), PEND (requested, but not yet available), ACTIVE - InvAcctType acctClassification `xml:"INVACCTTYPE,omitempty"` // One of INDIVIDUAL, JOINT, TRUST, CORPORATE - OptionLevel String `xml:"OPTIONLEVEL,omitempty"` // Text desribing option trading privileges + XMLName xml.Name `xml:"INVACCTINFO"` + InvAcctFrom InvAcct `xml:"INVACCTFROM"` + UsProductType usProductType `xml:"USPRODUCTTYPE"` // One of 401K, 403B, IRA, KEOGH, OTHER, SARSEP, SIMPLE, NORMAL, TDA, TRUST, UGMA + Checking Boolean `xml:"CHECKING"` // Has check-writing privileges + SvcStatus svcStatus `xml:"SVCSTATUS"` // One of AVAIL (available, but not yet requested), PEND (requested, but not yet available), ACTIVE + InvAcctType holderType `xml:"INVACCTTYPE,omitempty"` // One of INDIVIDUAL, JOINT, TRUST, CORPORATE + OptionLevel String `xml:"OPTIONLEVEL,omitempty"` // Text desribing option trading privileges } // Make pointers to these structs print nicely