1 2 3 4 5 6 7 8 9 10 11 12 13 14
15
16 package plaid
17
18 type Institution int
19
20 const (
21 AMEX = iota
22 BBT
23 BOFA
24 CAPONE
25 SCHWAB
26 CHASE
27 CITI
28 FIDELITY
29 NFCU
30 PNC
31 SUNTRUST
32 TD
33 US
34 USAA
35 WELLS
36 )
37
38 type InstitutionNames struct {
39 DisplayName string
40 CodeName string
41 }
42
43 type InstitutionNameMap map[Institution]InstitutionNames
44
45 var supportedInstitutions InstitutionNameMap
46
47 func init() {
48 supportedInstitutions = InstitutionNameMap{
49 AMEX: {"Amex", "amex"},
50 BBT: {"BB&T", "bbt"},
51 BOFA: {"Bank of America", "bofa"},
52 CAPONE: {"Capital One", "capone"},
53 CITI: {"Citi", "citi"},
54 SCHWAB: {"Chales Schwab", "schwab"},
55 CHASE: {"Chase", "chase"},
56 FIDELITY: {"Fidelity", "fidelity"},
57 NFCU: {"Navy FCU", "nfcu"},
58 PNC: {"PNC", "pnc"},
59 SUNTRUST: {"Suntrust", "suntrust"},
60 TD: {"TD Bank", "td"},
61 US: {"US Bank", "us"},
62 USAA: {"USAA", "usaa"},
63 WELLS: {"Wells Fargo", "wells"},
64 }
65 }