public function createSEPABankAccount( CustomerVault\SEPABankaccounts $bankDetails )
    {
        $bankDetails->setRequiredFields(array(
            'iban',
            'accountHolderName',
            'billingAddressId'
        ));
        $bankDetails->checkRequiredFields();
        $bankDetails->setOptionalFields(array(
            'bic',
            'mandates',
            'nickName',
            'merchantRefNum'
        ));

        $request = new Request(array(
            'method' => Request::POST,
            'uri' => $this->prepareURI("/profiles/" . $bankDetails->id . "/sepabankaccounts"),
            'body' => $bankDetails
        ));

        $response = $this->client->processRequest($request);
        return new CustomerVault\SEPABankaccounts($response);
    }
public function createSEPABankAccount( CustomerVault\SEPABankaccounts $bankDetails )
    {
        $bankDetails->setRequiredFields(array(
            'iban',
            'accountHolderName',
            'billingAddressId'
        ));
        $bankDetails->checkRequiredFields();
        $bankDetails->setOptionalFields(array(
            'bic',
            'mandates',
            'nickName',
            'merchantRefNum'
        ));

        $request = new Request(array(
            'method' => Request::POST,
            'uri' => $this->prepareURI("/profiles/" . $bankDetails->id . "/sepabankaccounts"),
            'body' => $bankDetails
        ));

        $response = $this->client->processRequest($request);
        return new CustomerVault\SEPABankaccounts($response);
    }
public function createSEPABankAccount ( CustomerVault \ SEPABankaccounts $ bankDetails ) { $ bankDetails -> setRequiredFields ( array ( 'iban' , 'accountHolderName' , 'billingAddressId' ) ) ; $ bankDetails -> checkRequiredFields ( ) ; $ bankDetails -> setOptionalFields ( array ( 'bic' , 'mandates' , 'nickName' , 'merchantRefNum' ) ) ; $ request = new Request ( array ( 'method' => Request :: POST , 'uri' => $ this -> prepareURI ( "/profiles/" . $ bankDetails -> id . "/sepabankaccounts" ) , 'body' => $ bankDetails ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CustomerVault \ SEPABankaccounts ( $ response ) ; }
Creates SEPA bank account for given profile id.

@param CustomerVault\SEPABankaccounts $bankDetails https://developer.optimalpayments.com/en/documentation/customer-vault-api/sepa-bank-accounts/
@return \Paysafe\CustomerVault\Profile https://developer.optimalpayments.com/en/documentation/customer-vault-api/profiles/
@throws PaysafeException
Creates SEPA bank account for given profile id .