getBankAccountNumber method

String getBankAccountNumber(
  1. Country country
)

Ülkeye göre 'Banka Hesap Numarası' bilgisini geri döndürür.

Implementation

String getBankAccountNumber(Country country) {
  switch (country) {
    case Country.turkish:
      {
        return prepareIban().substring(10, 26);
      }

    case Country.england:
      {
        return prepareIban().substring(14, 22);
      }

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

    case Country.france:
      {
        return prepareIban().substring(14, 25);
      }

    case Country.italy:
      {
        return prepareIban().substring(15, 27);
      }

    default:
      {
        return "";
      }
  }
}