Skip to content

BankAccount

Pieter Hordijk edited this page Dec 30, 2018 · 9 revisions

TOC

Albania

Validates the input (string) to be a valid Albanian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Albania;

(new Albania())->validate('AL47212110090000000235698741');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Albania when the validated value is not a valid Albanian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Andorra

Validates the input (string) to be a valid Andorran IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Andorra;

(new Andorra())->validate('AD1200012030200359100100');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Andorra when the validated value is not a valid Andorran IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Austria

Validates the input (string) to be a valid Austrian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Austria;

(new Austria())->validate('AT611904300234573201');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Austria when the validated value is not a valid Austrian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Azerbaijan

Validates the input (string) to be a valid Azerbaijani IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Azerbaijan;

(new Azerbaijan())->validate('AZ21NABZ00000000137010001944');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Azerbaijan when the validated value is not a valid Azerbaijani IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Bahrain

Validates the input (string) to be a valid Bahraini IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Bahrain;

(new Bahrain())->validate('BH67BMAG00001299123456');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Bahrain when the validated value is not a valid Bahraini IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Belgium

Validates the input (string) to be a valid Belgium IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Belgium;

(new Belgium())->validate('BE68539007547034');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Belgium when the validated value is not a valid Belgium IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Belgium

Validates the input (string) to be a valid Belgian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Belgium;

(new Belgium())->validate('BE68539007547034');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Belgium when the validated value is not a valid Belgian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

BosniaAndHerzegovina

Validates the input (string) to be a valid Bosnian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\BosniaAndHerzegovina;

(new BosniaAndHerzegovina())->validate('BA391290079401028494');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.BosniaAndHerzegovina when the validated value is not a valid Bosnian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Brazil

Validates the input (string) to be a valid Brazilian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Brazil;

(new Brazil())->validate('BR9700360305000010009795493P1');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Brazil when the validated value is not a valid Brazilian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

BritishVirginIslands

Validates the input (string) to be a valid IBAN code from the British Virgin Islands.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\BritishVirginIslands;

(new BritishVirginIslands())->validate('VG96VPVG0000012345678901');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.BritishVirginIslands when the validated value is not a valid IBAN code from the British Virgin Islands
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Bulgaria

Validates the input (string) to be a valid Bulgarian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Bulgaria;

(new Bulgaria())->validate('BG80BNBG96611020345678');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Bulgaria when the validated value is not a valid Bulgarian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Bulgaria

Validates the input (string) to be a valid Bulgarian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Bulgaria;

(new Bulgaria())->validate('BG80BNBG96611020345678');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Bulgaria when the validated value is not a valid Bulgarian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

CostaRica

Validates the input (string) to be a valid Costa Rican IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\CostaRica;

(new CostaRica())->validate('CR05015202001026284066');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.CostaRica when the validated value is not a valid Costa Rican IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Croatia

Validates the input (string) to be a valid Croatian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Croatia;

(new Croatia())->validate('HR1210010051863000160');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Croatia when the validated value is not a valid Croatian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Cyprus

Validates the input (string) to be a valid Cypriot IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Cyprus;

(new Cyprus())->validate('CY17002001280000001200527600');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Cyprus when the validated value is not a valid Cypriot IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

CzechRepublic

Validates the input (string) to be a valid Czech IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\CzechRepublic;

(new CzechRepublic())->validate('CZ6508000000192000145399');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.CzechRepublic when the validated value is not a valid Czech IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Denmark

Validates the input (string) to be a valid Danish IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Denmark;

(new Denmark())->validate('DK5000400440116243');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Denmark when the validated value is not a valid Danish IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

DominicanRepublic

Validates the input (string) to be a valid Dominican IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\DominicanRepublic;

(new DominicanRepublic())->validate('DO28BAGR00000001212453611324');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.DominicanRepublic when the validated value is not a valid Dominican IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

EastTimor

Validates the input (string) to be a valid East Timor IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\EastTimor;

(new EastTimor())->validate('TL380080012345678910157');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.EastTimor when the validated value is not a valid East Timor IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Estonia

Validates the input (string) to be a valid Estonian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Estonia;

(new Estonia())->validate('EE382200221020145685');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Estonia when the validated value is not a valid Estonian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

FaroeIslands

Validates the input (string) to be a valid IBAN code from the Faroe Islands.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\FaroeIslands;

(new FaroeIslands())->validate('FO2000400440116243');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.FaroeIslands when the validated value is not a valid IBAN code from the FaroeIslands
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Finland

Validates the input (string) to be a valid Finnish IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Finland;

(new Finland())->validate('FI2112345600000785');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Finland when the validated value is not a valid Finnish IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

France

Validates the input (string) to be a valid French IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\France;

(new France())->validate('FR1420041010050500013M02606');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.France when the validated value is not a valid French IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Georgia

Validates the input (string) to be a valid Georgian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Georgia;

(new Georgia())->validate('GE29NB0000000101904917');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Georgia when the validated value is not a valid Georgian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Germany

Validates the input (string) to be a valid German IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Germany;

(new Germany())->validate('DE89370400440532013000');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Germany when the validated value is not a valid German IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Gibraltar

Validates the input (string) to be a valid Gibraltarian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Gibraltar;

(new Gibraltar())->validate('GI75NWBK000000007099453');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Gibraltar when the validated value is not a valid Gibraltarian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Greece

Validates the input (string) to be a valid Greece IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Greece;

(new Greece())->validate('GR1601101250000000012300695');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Greece when the validated value is not a valid Greece IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Greenland

Validates the input (string) to be a valid Greenlandish IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Greenland;

(new Greenland())->validate('GL2000400440116243');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Greenland when the validated value is not a valid Greenlandish IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Guatemala

Validates the input (string) to be a valid Guatemalan IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Guatemala;

(new Guatemala())->validate('GT82TRAJ01020000001210029690');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Guatemala when the validated value is not a valid Guatemalan IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Hungary

Validates the input (string) to be a valid Hungarian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Hungary;

(new Hungary())->validate('HU42117730161111101800000000');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Hungary when the validated value is not a valid Hungarian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Iceland

Validates the input (string) to be a valid Icelandic IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Iceland;

(new Iceland())->validate('IS140159260076545510730339');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Iceland when the validated value is not a valid Icelandic IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Ireland

Validates the input (string) to be a valid Irish IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Ireland;

(new Ireland())->validate('IE29AIBK93115212345678');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Ireland when the validated value is not a valid Irish IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Israel

Validates the input (string) to be a valid Israeli IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Israel;

(new Israel())->validate('IL620108000000099999999');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Israel when the validated value is not a valid Israeli IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Italy

Validates the input (string) to be a valid Italian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Italy;

(new Italy())->validate('IT60X0542811101000000123456');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Italy when the validated value is not a valid Italian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Jordan

Validates the input (string) to be a valid Jordanian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Jordan;

(new Jordan())->validate('JO94CBJO0010000000000131000302');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Jordan when the validated value is not a valid Jordanian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid
Clone this wiki locally