1/* 2Copyright 2017 The Perkeep Authors 3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 6You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9Unless required by applicable law or agreed to in writing, software 10distributed under the License is distributed on an "AS IS" BASIS, 11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12See the License for the specific language governing permissions and 13limitations under the License. 14*/ 15 16package plaid 17 18type Institution int 19 20const ( 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 38type InstitutionNames struct { 39 DisplayName string 40 CodeName string 41} 42 43type InstitutionNameMap map[Institution]InstitutionNames 44 45var supportedInstitutions InstitutionNameMap 46 47func 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} 66