MangoPay/ApiBankingAliases.php
public function Create($bankingAlias)
    {
        $className = get_class($bankingAlias);
        if ($className == 'MangoPay\BankingAliasIBAN') {
            $methodKey = 'banking_aliases_iban_create';
        } else {
            throw new Libraries\Exception('Wrong entity class for BankingAlias');
        }

        $response = $this->CreateObject($methodKey, $bankingAlias, null, $bankingAlias->WalletId);
        return $this->GetBankingAliasResponse($response);
    }
public function Create($bankingAlias)
    {
        $className = get_class($bankingAlias);
        if ($className == 'MangoPay\BankingAliasIBAN') {
            $methodKey = 'banking_aliases_iban_create';
        } else {
            throw new Libraries\Exception('Wrong entity class for BankingAlias');
        }

        $response = $this->CreateObject($methodKey, $bankingAlias, null, $bankingAlias->WalletId);
        return $this->GetBankingAliasResponse($response);
    }
public function Create ( $ bankingAlias ) { $ className = get_class ( $ bankingAlias ) ; if ( $ className == 'MangoPay\BankingAliasIBAN' ) { $ methodKey = 'banking_aliases_iban_create' ; } else { throw new Libraries \ Exception ( 'Wrong entity class for BankingAlias' ) ; } $ response = $ this -> CreateObject ( $ methodKey , $ bankingAlias , null , $ bankingAlias -> WalletId ) ; return $ this -> GetBankingAliasResponse ( $ response ) ; }
Create a banking alias
@param \MangoPay\BankingAlias $bankingAlias Banking alias
@return \MangoPay\BankingAlias returned from API
@throws Libraries\Exception
Create a banking alias