This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1181 from spaghettimaster/master
Added uk_UA Payment provider with bank name generator
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
namespace Faker\Provider\uk_Ua; | ||
|
||
class Payment extends \Faker\Provider\Payment | ||
{ | ||
/** | ||
* @see list of Ukraine banks (2017-29-03), source: https://uk.wikipedia.org/wiki/%D0%91%D0%B0%D0%BD%D0%BA%D0%B8_%D0%A3%D0%BA%D1%80%D0%B0%D1%97%D0%BD%D0%B8 | ||
*/ | ||
protected static $banks = array( | ||
'А-Банк', | ||
'Авангард', | ||
'Альфа-Банк', | ||
'Альянс', | ||
'Апекс-банк', | ||
'Банк 3/4', | ||
'БТА Банк', | ||
'VS Bank', | ||
'ВТБ', | ||
'Глобус', | ||
'Діамантбанк', | ||
'Deutsche Bank', | ||
'Ідея Банк', | ||
'ING', | ||
'Індустріалбанк', | ||
'Кредит Європа Банк', | ||
'Crédit Agricole', | ||
'Кредобанк', | ||
'Львів', | ||
'Мегабанк', | ||
'МетаБанк', | ||
'Міжнародний інвестиційний банк', | ||
'Оксі Банк', | ||
'OTP Bank', | ||
'Ощадбанк', | ||
'Перший Інвестиційний Банк', | ||
'Південний', | ||
'Piraeus Bank', | ||
'Правекс-Банк', | ||
'ПриватБанк', | ||
'ПроКредит Банк', | ||
'Промінвестбанк', | ||
'ПУМБ', | ||
'Радабанк', | ||
'Райффайзен Аваль', | ||
'Сбербанк', | ||
'SEB', | ||
'Сітібанк', | ||
'Укргазбанк', | ||
'Укрексімбанк', | ||
'УкрСиббанк', | ||
'Укрсоцбанк', | ||
'Універсал Банк', | ||
'Фамільний', | ||
'Forward Bank', | ||
'Центр', | ||
'Unex' | ||
); | ||
|
||
/** | ||
* @example 'Сітібанк' | ||
*/ | ||
public static function bank() | ||
{ | ||
return static::randomElement(static::$banks); | ||
} | ||
} |