original_string: 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);
          
      }
code: 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);
          
      }
code_tokens: 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 ) ; }
docstring: Process Create a Mandate.
  @param \Paysafe\CustomerVault\Mandate $mandate
  @return \Paysafe\CustomerVault\Mandate
  @throws PaysafeException
docstring_tokens: Process Create a Mandate .