Address.php
5 years ago
Company.php
5 years ago
Internet.php
5 years ago
Payment.php
5 years ago
Person.php
5 years ago
PhoneNumber.php
5 years ago
Text.php
5 years ago
Payment.php
57 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\de_DE; |
| 4 | |
| 5 | class Payment extends \Faker\Provider\Payment |
| 6 | { |
| 7 | /** |
| 8 | * International Bank Account Number (IBAN) |
| 9 | * @link http://en.wikipedia.org/wiki/International_Bank_Account_Number |
| 10 | * @param string $prefix for generating bank account number of a specific bank |
| 11 | * @param string $countryCode ISO 3166-1 alpha-2 country code |
| 12 | * @param integer $length total length without country code and 2 check digits |
| 13 | * @return string |
| 14 | */ |
| 15 | public static function bankAccountNumber($prefix = '', $countryCode = 'DE', $length = null) |
| 16 | { |
| 17 | return static::iban($countryCode, $prefix, $length); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Sources: |
| 22 | * The 19 largest German banks by total assets |
| 23 | * @see https://de.wikipedia.org/wiki/Liste_der_größten_Banken_in_Deutschland |
| 24 | * The 20 largest co-operative banks by branch count |
| 25 | * @see https://de.wikipedia.org/wiki/Liste_der_Genossenschaftsbanken_in_Deutschland |
| 26 | * The 20 largest public savings banks by branch count |
| 27 | * @see https://de.wikipedia.org/wiki/Liste_der_Sparkassen_in_Deutschland |
| 28 | */ |
| 29 | protected static $banks = array( |
| 30 | 'Bank 1 Saar', 'Bayerische Landesbank', 'BBBank', 'Berliner Sparkasse', 'Berliner Volksbank', 'Braunschweigische Landessparkasse', |
| 31 | 'Commerzbank', |
| 32 | 'DekaBank Deutsche Girozentrale', 'Deutsche Apotheker- und Ärztebank', 'Deutsche Bank', 'Deutsche Kreditbank', 'Deutsche Pfandbriefbank', 'Dortmunder Volksbank', 'DZ Bank', |
| 33 | 'Erzgebirgssparkasse', |
| 34 | 'Frankfurter Sparkasse', 'Frankfurter Volksbank', |
| 35 | 'Hamburger Sparkasse', 'Hannoversche Volksbank', 'HSGV', 'HSH Nordbank', |
| 36 | 'ING-DiBa', |
| 37 | 'KfW', 'Kreissparkasse Esslingen-Nürtingen', 'Kreissparkasse Heilbronn', 'Kreissparkasse Köln', 'Kreissparkasse Ludwigsburg', 'Kreissparkasse München Starnberg Ebersberg', |
| 38 | 'L-Bank', 'Landesbank Baden-Württemberg', 'Landesbank Hessen-Thüringen', 'Landessparkasse zu Oldenburg', 'Landwirtschaftliche Rentenbank', |
| 39 | 'Mittelbrandenburgische Sparkasse in Potsdam', |
| 40 | 'Nassauische Sparkasse', 'Norddeutsche Landesbank', 'NRW.Bank', |
| 41 | 'Ostsächsische Sparkasse Dresden', |
| 42 | 'Postbank', |
| 43 | 'Sparkasse Hannover', 'Sparkasse KölnBonn', 'Sparkasse Mainfranken Würzburg', 'Sparkasse Nürnberg', 'Sparkasse Pforzheim Calw', 'Stadtsparkasse München', |
| 44 | 'Unicredit Bank', |
| 45 | 'Vereinigte Volksbank', 'Volksbank, Hildesheim-Lehrte-Pattensen', 'Volksbank Alzey-Worms', 'Volksbank Braunschweig Wolfsburg', 'Volksbank Darmstadt - Südhessen', 'Volksbank Hohenlohe', 'Volksbank Kraichgau Wiesloch-Sinsheim', 'Volksbank Lüneburger Heide', 'Volksbank Mittelhessen', 'Volksbank Paderborn-Höxter-Detmold', 'Volksbank Raiffeisenbank Rosenheim-Chiemsee', 'Volksbank Stuttgart', 'VR Bank Main-Kinzig-Büdingen', |
| 46 | 'WGZ Bank', |
| 47 | ); |
| 48 | |
| 49 | /** |
| 50 | * @example 'Volksbank Stuttgart' |
| 51 | */ |
| 52 | public static function bank() |
| 53 | { |
| 54 | return static::randomElement(static::$banks); |
| 55 | } |
| 56 | } |
| 57 |