public function create(array $data, $debtor)
    {
        $debtors = new Debtor($this->client_raw);
        $debtorHandle = $debtors->getHandle($debtor);

        $id = $this->client
            ->DebtorContact_Create(array(
                'debtorHandle' => $debtorHandle,
                'name'         => $data['name']
            ))->DebtorContact_CreateResult;

        return $this->update($id->Id, $data);
    }
public function create(array $data, $debtor)
    {
        $debtors = new Debtor($this->client_raw);
        $debtorHandle = $debtors->getHandle($debtor);

        $id = $this->client
            ->DebtorContact_Create(array(
                'debtorHandle' => $debtorHandle,
                'name'         => $data['name']
            ))->DebtorContact_CreateResult;

        return $this->update($id->Id, $data);
    }
public function create ( array $ data , $ debtor ) { $ debtors = new Debtor ( $ this -> client_raw ) ; $ debtorHandle = $ debtors -> getHandle ( $ debtor ) ; $ id = $ this -> client -> DebtorContact_Create ( array ( 'debtorHandle' => $ debtorHandle , 'name' => $ data [ 'name' ] ) ) -> DebtorContact_CreateResult ; return $ this -> update ( $ id -> Id , $ data ) ; }
Create a new Contact from data array
@param  array   $data
@param  integer $debtor
@return array
Create a new Contact from data array