Skip to content

Commit

Permalink
Add VUB_BANK back to SwiftCode constants (#80)
Browse files Browse the repository at this point in the history
* Add VUB_BANK back to SwiftCode constants

"Všeobecná úverová banka" with key SUBASKBX is still in offical gopay documentation and works just fine
https://doc.gopay.com/cs/#swift
  • Loading branch information
MichaelTichy222 authored Feb 8, 2021
1 parent d7605e3 commit 81d931b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Api/Lists/SwiftCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class SwiftCode
public const SLOVENSKA_SPORITELNA = 'GIBASKBX';
public const TATRA_BANKA = 'TATRSKBX';
public const UNICREDIT_BANK_SK = 'UNCRSKBX';
public const VUB_BANK = 'SUBASKBX';

/**
* @return string[]
Expand Down Expand Up @@ -58,6 +59,7 @@ public static function sk(): array
self::SLOVENSKA_SPORITELNA,
self::TATRA_BANKA,
self::UNICREDIT_BANK_SK,
self::VUB_BANK,
];
}

Expand Down
4 changes: 2 additions & 2 deletions tests/cases/unit/Api/Lists/SwiftCode.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require __DIR__ . '/../../../../bootstrap.php';

// All
test(function (): void {
Assert::count(13, SwiftCode::all());
Assert::count(14, SwiftCode::all());
});

// CZ
Expand All @@ -21,5 +21,5 @@ test(function (): void {

// SK
test(function (): void {
Assert::count(4, SwiftCode::sk());
Assert::count(5, SwiftCode::sk());
});

0 comments on commit 81d931b

Please sign in to comment.