public function updateEFTBankAccount( CustomerVault\Profile $profile, CustomerVault\EFTBankaccounts $bankDetails )
    {
        $profile->setRequiredFields(array('id'));
		$profile->checkRequiredFields();
        $bankDetails->setRequiredFields(array(
            'transitNumber',
            'institutionId',
            'accountHolderName',
            'billingAddressId'
        ));
        $bankDetails->checkRequiredFields();
        $bankDetails->setOptionalFields(array(
            'nickName',
            'merchantRefNum',
            'accountNumber'
        ));
        $request = new Request(array(
            'method' => Request::PUT,
            'uri' => $this->prepareURI("/profiles/" . $profile->id . "/eftbankaccounts/" . $bankDetails->id),
            'body' => $bankDetails
        ));
        $response = $this->client->processRequest($request);
        return new CustomerVault\EFTBankaccounts($response);
    }
public function updateEFTBankAccount( CustomerVault\Profile $profile, CustomerVault\EFTBankaccounts $bankDetails )
    {
        $profile->setRequiredFields(array('id'));
		$profile->checkRequiredFields();
        $bankDetails->setRequiredFields(array(
            'transitNumber',
            'institutionId',
            'accountHolderName',
            'billingAddressId'
        ));
        $bankDetails->checkRequiredFields();
        $bankDetails->setOptionalFields(array(
            'nickName',
            'merchantRefNum',
            'accountNumber'
        ));
        $request = new Request(array(
            'method' => Request::PUT,
            'uri' => $this->prepareURI("/profiles/" . $profile->id . "/eftbankaccounts/" . $bankDetails->id),
            'body' => $bankDetails
        ));
        $response = $this->client->processRequest($request);
        return new CustomerVault\EFTBankaccounts($response);
    }
public function updateEFTBankAccount ( CustomerVault \ Profile $ profile , CustomerVault \ EFTBankaccounts $ bankDetails ) { $ profile -> setRequiredFields ( array ( 'id' ) ) ; $ profile -> checkRequiredFields ( ) ; $ bankDetails -> setRequiredFields ( array ( 'transitNumber' , 'institutionId' , 'accountHolderName' , 'billingAddressId' ) ) ; $ bankDetails -> checkRequiredFields ( ) ; $ bankDetails -> setOptionalFields ( array ( 'nickName' , 'merchantRefNum' , 'accountNumber' ) ) ; $ request = new Request ( array ( 'method' => Request :: PUT , 'uri' => $ this -> prepareURI ( "/profiles/" . $ profile -> id . "/eftbankaccounts/" . $ bankDetails -> id ) , 'body' => $ bankDetails ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CustomerVault \ EFTBankaccounts ( $ response ) ; }
Update EFT bank account

@param CustomerVault\Profile $profile
@param CustomerVault\EFTBankaccounts $bankDetails
@return \Paysafe\CustomerVault\Profile
@throws PaysafeException
Update EFT bank account