/*
 * This file is part of Bitsquare.
 *
 * Bitsquare is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at
 * your option) any later version.
 *
 * Bitsquare is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
 */

package io.bitsquare.locale;

public class BankUtil {

    public static boolean requiresHolderId(String countryCode) {
        if (countryCode == null)
            countryCode = "";
        switch (countryCode) {
            case "BR":
            case "CL":
                return true;
            default:
                return false;
        }
    }

    //TODO set country specific labels
    public static String getBankCodeLabel(String countryCode) {
        if (countryCode == null)
            countryCode = "";
        switch (countryCode) {
            default:
                return "Bank nr.(BIC/SWIFT):";
        }

    }

    //TODO set country specific labels
    public static String getBranchCodeLabel(String countryCode) {
        if (countryCode == null)
            countryCode = "";
        switch (countryCode) {
            case "US":
                return "Routing Number:";
            case "GB":
                return "Sort Number:";
            case "CA":
                return "Transit Number:";
            default:
                return "Branch nr. (optional):";
        }
    }

    //TODO set country specific labels
    public static String getAccountNrLabel(String countryCode) {
        if (countryCode == null)
            countryCode = "";
        switch (countryCode) {
            default:
                return "Account nr.(IBAN):";
        }
    }

    public static String getHolderIdLabel(String countryCode) {
        if (countryCode == null)
            countryCode = "";
        switch (countryCode) {
            case "BR":
                return "CPF Number:";
            case "CL":
                return "RUT Number:";
            default:
                return "Personal ID:";
        }
    }
}

@@ -1302,17 +1302,20 @@
 Bank nr.
-(
+ or 
 BIC/SWIF
@@ -1315,17 +1315,16 @@
 IC/SWIFT
-)
 :%22;%0A    
@@ -2073,14 +2073,16 @@
  nr.
-(
+ or 
 IBAN
-)
 :%22;%0A

Change wording for bank form