public function update($id)
    {
        $service = $this->getService();

        $rawData       = $this->getRawData(array('customer' => $this->getParams()));
        $response      = $service->request('customers/' . (int)$id, 'PUT', $rawData);
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['customer'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function update($id)
    {
        $service = $this->getService();

        $rawData       = $this->getRawData(array('customer' => $this->getParams()));
        $response      = $service->request('customers/' . (int)$id, 'PUT', $rawData);
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['customer'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function update ( $ id ) { $ service = $ this -> getService ( ) ; $ rawData = $ this -> getRawData ( array ( 'customer' => $ this -> getParams ( ) ) ) ; $ response = $ service -> request ( 'customers/' . ( int ) $ id , 'PUT' , $ rawData ) ; $ responseArray = $ this -> getResponseArray ( $ response ) ; if ( ! $ this -> isError ( ) ) { $ this -> _data = $ responseArray [ 'customer' ] ; } else { $ this -> _data = array ( ) ; } return $ this ; }
Update the customer record in Chargify.

@param int $id

@return Customer
@see Customer::setFirstName()
@see Customer::setLastName()
@see Customer::setEmail()
@see Customer::setOrganization()
@see Customer::setPhone()
@see Customer::setAddress()
@see Customer::setAddress2()
@see Customer::setCity()
@see Customer::setState()
@see Customer::setZip()
@see Customer::setCountry()
@see Customer::setReference()
Update the customer record in Chargify .