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

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

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

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

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

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

        return $this->sendBankAccount($vendor, $miraklBankInfo);
    }
public function addBankInformation ( $ vendor , $ miraklBankInfo , $ checkBankStatus = false ) { if ( $ checkBankStatus ) { $ bankInfoStatus = $ this -> getBankInfoStatus ( $ vendor ) ; if ( trim ( $ bankInfoStatus ) == BankInfoStatus :: BLANK ) { return false ; } } if ( is_array ( $ miraklBankInfo ) ) { $ bankInfo = new BankInfo ( ) ; $ miraklBankInfo = $ bankInfo -> setMiraklData ( $ miraklBankInfo ) ; } return $ this -> sendBankAccount ( $ vendor , $ miraklBankInfo ) ; }
Add the bank information to a wallet
The call will fail if the bank information status is not blank
@param VendorInterface $vendor
@param array|BankInfo $miraklBankInfo
@param bool|false $checkBankStatus set to true if you also want to check to bank info status prior to add them
@return bool
Add the bank information to a wallet The call will fail if the bank information status is not blank