getCheckDigits method

String getCheckDigits(
  1. Country country
)

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

Implementation

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

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

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

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

    case Country.italy:
      {
        return prepareIban().substring(2, 4);
      }

    default:
      {
        return "";
      }
  }
}