public function createMandates(CustomerVault\Mandates $mandates ,$bankaccounts) {
         $mandates->setRequiredFields(array(
             'reference'
        ));
        $mandates->checkRequiredFields();
        
           $request = new Request(array(
             'method' => Request::POST,
             'uri' => $this->prepareURI("/profiles/" . $mandates->profileID."/".$bankaccounts."/".$mandates->bankAccountId."/mandates"),
             'body' => $mandates
            ));

        $response = $this->client->processRequest($request);
        return new CustomerVault\Mandates($response);
        
    }