getBankCode method

String getBankCode(
  1. Country country
)

Ülkeye göre 'Banka Kodu' bilgisini geri döndürür.

Implementation

String getBankCode(Country country) {
  switch (country) {
    case Country.turkish:
      {
        return prepareIban().substring(4, 9);
      }

    case Country.england:
      {
        return prepareIban().substring(4, 8);
      }

    case Country.germany:
      {
        return prepareIban().substring(4, 12);
      }

    case Country.france:
      {
        return prepareIban().substring(4, 9);
      }

    case Country.italy:
      {
        return prepareIban().substring(5, 10);
      }

    default:
      {
        return "";
      }
  }
}