public function isBankInfoUsable(VendorInterface $vendor, $miraklBankInfo, $checkBankStatus = false)
    {
        if ($checkBankStatus) {
            $bankInfoStatus = $this->getBankInfoStatus($vendor);

            if (trim($bankInfoStatus) == BankInfoStatus::VALIDATED) {
                return false;
            }
        }

        if (is_array($miraklBankInfo)) {
            $bankInfo = new BankInfo();
            $miraklBankInfo = $bankInfo->setMiraklData($miraklBankInfo);
        }

        return $this->isBankInfosSynchronised($vendor, $miraklBankInfo);
    }
public function isBankInfoUsable(VendorInterface $vendor, $miraklBankInfo, $checkBankStatus = false)
    {
        if ($checkBankStatus) {
            $bankInfoStatus = $this->getBankInfoStatus($vendor);

            if (trim($bankInfoStatus) == BankInfoStatus::VALIDATED) {
                return false;
            }
        }

        if (is_array($miraklBankInfo)) {
            $bankInfo = new BankInfo();
            $miraklBankInfo = $bankInfo->setMiraklData($miraklBankInfo);
        }

        return $this->isBankInfosSynchronised($vendor, $miraklBankInfo);
    }
public function isBankInfoUsable ( VendorInterface $ vendor , $ miraklBankInfo , $ checkBankStatus = false ) { if ( $ checkBankStatus ) { $ bankInfoStatus = $ this -> getBankInfoStatus ( $ vendor ) ; if ( trim ( $ bankInfoStatus ) == BankInfoStatus :: VALIDATED ) { return false ; } } if ( is_array ( $ miraklBankInfo ) ) { $ bankInfo = new BankInfo ( ) ; $ miraklBankInfo = $ bankInfo -> setMiraklData ( $ miraklBankInfo ) ; } return $ this -> isBankInfosSynchronised ( $ vendor , $ miraklBankInfo ) ; }
Return true if banking information is the same at Mirakl and HiPay
The soap call will fail if the bank info status at HiPay is not validated
@param VendorInterface $vendor
@param array|BankInfo $miraklBankInfo
@param boolean $checkBankStatus set to true if you also want to check to bank info status prior to fetch them
@return false|true is the status of the baking information is not validated
@throws InvalidBankInfoException the the information is not same by
Return true if banking information is the same at Mirakl and HiPay The soap call will fail if the bank info status at HiPay is not validated