/** @return bool */
 public function supports(BankAccountInterface $bankAccount)
 {
     $accountNumber = $bankAccount->getAccountNumber();
     $sortCode = $bankAccount->getSortCode();
     return 10 === strlen($accountNumber) && $sortCode->isBetween(new SortCode('080000'), new SortCode('090000')) && !$sortCode->isBetween(new SortCode('083000'), new SortCode('084000'));
     // Exclude Citibank
 }
예제 #2
0
 /** @return bool */
 public function supports(BankAccountInterface $bankAccount)
 {
     $accountNumber = $bankAccount->getAccountNumber();
     $sortCode = $bankAccount->getSortCode();
     return 9 === strlen($accountNumber) && ($sortCode->isBetween(new SortCode('090000'), new SortCode('092000')) || $sortCode->isBetween(new SortCode('720000'), new SortCode('730000')) || $sortCode->isBetween(new SortCode('890000'), new SortCode('893000')));
 }
예제 #3
0
 public static function createFromBankAccount(BankAccountInterface $bankAccount)
 {
     return new self($bankAccount, $bankAccount->getSortCode(), $bankAccount->getAccountNumber());
 }
예제 #4
0
 /** @return bool */
 public function supports(BankAccountInterface $bankAccount)
 {
     $accountNumber = $bankAccount->getAccountNumber();
     $sortCode = $bankAccount->getSortCode();
     return 10 === strlen($accountNumber) && ($sortCode->isBetween(new SortCode('010000'), new SortCode('020000')) || $sortCode->isBetween(new SortCode('500000'), new SortCode('600000')) || $sortCode->isBetween(new SortCode('600000'), new SortCode('670000')));
 }
예제 #5
0
 /** @return bool */
 public function supports(BankAccountInterface $bankAccount)
 {
     return 6 === strlen($bankAccount->getAccountNumber());
 }